OSDN Git Service

Make -fdata-sections work for AVR port.
[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.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER 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_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: none,assert,fold,gc,gcac,misc,
871                           rtlflag,rtl,tree,valgrind;
872                           default is assert,gc,misc,rtlflag,tree
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-threads        enable thread usage for target GCC
884   --enable-threads=LIB    use LIB thread package for target GCC
885   --enable-objc-gc        enable the use of Boehm's garbage collector with
886                           the GNU Objective-C runtime
887   --disable-shared        don't provide a shared libgcc
888   --enable-intermodule    build the compiler in one step
889   --enable-languages=LIST specify which front-ends to build
890   --enable-initfini-array       use .init_array/.fini_array sections
891   --enable-sjlj-exceptions
892                           arrange to use setjmp/longjmp exception handling
893   --enable-libunwind-exceptions  force use libunwind for exceptions
894   --disable-win32-registry
895                           disable lookup of installation paths in the
896                           Registry on Windows hosts
897   --enable-win32-registry enable registry lookup (default)
898   --enable-win32-registry=KEY
899                           use KEY instead of GCC version as the last portion
900                           of the registry key
901   --enable-maintainer-mode
902                           enable make rules and dependencies not useful
903                           (and sometimes confusing) to the casual installer
904   --enable-version-specific-runtime-libs
905                           specify that runtime libraries should be
906                           installed in a compiler-specific directory
907
908 Optional Packages:
909   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
910   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
911   --with-local-prefix=DIR specifies directory to put local include
912   --with-gxx-include-dir=DIR
913                           specifies directory to put g++ header files
914   --with-cpp-install-dir=DIR
915                           install the user visible C preprocessor in DIR
916                           (relative to PREFIX) as well as PREFIX/bin
917   --with-gnu-ld           arrange to work with GNU ld.
918   --with-ld               arrange to use the specified ld (full pathname)
919   --with-demangler-in-ld  try to use demangler in GNU ld.
920   --with-gnu-as           arrange to work with GNU as
921   --with-as               arrange to use the specified as (full pathname)
922   --with-stabs            arrange to use stabs instead of host debug format
923   --with-dwarf2           force the default debug format to be DWARF 2
924   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
926   --with-gc={page,zone}   choose the garbage collection mechanism to use
927                           with the compiler
928   --with-system-zlib      use installed libz
929   --with-libbanshee       enable libbanshee
930   --with-slibdir=DIR      shared libraries in DIR LIBDIR
931
932 Some influential environment variables:
933   CC          C compiler command
934   CFLAGS      C compiler flags
935   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
936               nonstandard directory <lib dir>
937   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
938               headers in a nonstandard directory <include dir>
939   CPP         C preprocessor
940   GMPLIBS     How to link GMP
941   GMPINC      How to find GMP include files
942
943 Use these variables to override the choices made by `configure' or to help
944 it to find libraries and programs with nonstandard names/locations.
945
946 _ACEOF
947 fi
948
949 if test "$ac_init_help" = "recursive"; then
950   # If there are subdirs, report their specific --help.
951   ac_popdir=`pwd`
952   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
953     test -d $ac_dir || continue
954     ac_builddir=.
955
956 if test "$ac_dir" != .; then
957   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
958   # A "../" for each directory in $ac_dir_suffix.
959   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 else
961   ac_dir_suffix= ac_top_builddir=
962 fi
963
964 case $srcdir in
965   .)  # No --srcdir option.  We are building in place.
966     ac_srcdir=.
967     if test -z "$ac_top_builddir"; then
968        ac_top_srcdir=.
969     else
970        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971     fi ;;
972   [\\/]* | ?:[\\/]* )  # Absolute path.
973     ac_srcdir=$srcdir$ac_dir_suffix;
974     ac_top_srcdir=$srcdir ;;
975   *) # Relative path.
976     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
977     ac_top_srcdir=$ac_top_builddir$srcdir ;;
978 esac
979
980 # Do not use `cd foo && pwd` to compute absolute paths, because
981 # the directories may not exist.
982 case `pwd` in
983 .) ac_abs_builddir="$ac_dir";;
984 *)
985   case "$ac_dir" in
986   .) ac_abs_builddir=`pwd`;;
987   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
988   *) ac_abs_builddir=`pwd`/"$ac_dir";;
989   esac;;
990 esac
991 case $ac_abs_builddir in
992 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 *)
994   case ${ac_top_builddir}. in
995   .) ac_abs_top_builddir=$ac_abs_builddir;;
996   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
997   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
998   esac;;
999 esac
1000 case $ac_abs_builddir in
1001 .) ac_abs_srcdir=$ac_srcdir;;
1002 *)
1003   case $ac_srcdir in
1004   .) ac_abs_srcdir=$ac_abs_builddir;;
1005   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1006   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1007   esac;;
1008 esac
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 *)
1012   case $ac_top_srcdir in
1013   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1014   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1015   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1016   esac;;
1017 esac
1018
1019     cd $ac_dir
1020     # Check for guested configure; otherwise get Cygnus style configure.
1021     if test -f $ac_srcdir/configure.gnu; then
1022       echo
1023       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1024     elif test -f $ac_srcdir/configure; then
1025       echo
1026       $SHELL $ac_srcdir/configure  --help=recursive
1027     elif test -f $ac_srcdir/configure.ac ||
1028            test -f $ac_srcdir/configure.in; then
1029       echo
1030       $ac_configure --help
1031     else
1032       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033     fi
1034     cd "$ac_popdir"
1035   done
1036 fi
1037
1038 test -n "$ac_init_help" && exit 0
1039 if $ac_init_version; then
1040   cat <<\_ACEOF
1041
1042 Copyright (C) 2003 Free Software Foundation, Inc.
1043 This configure script is free software; the Free Software Foundation
1044 gives unlimited permission to copy, distribute and modify it.
1045 _ACEOF
1046   exit 0
1047 fi
1048 exec 5>config.log
1049 cat >&5 <<_ACEOF
1050 This file contains any messages produced by compilers while
1051 running configure, to aid debugging if configure makes a mistake.
1052
1053 It was created by $as_me, which was
1054 generated by GNU Autoconf 2.59.  Invocation command line was
1055
1056   $ $0 $@
1057
1058 _ACEOF
1059 {
1060 cat <<_ASUNAME
1061 ## --------- ##
1062 ## Platform. ##
1063 ## --------- ##
1064
1065 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1066 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1067 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1068 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1069 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070
1071 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1072 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1073
1074 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1075 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1076 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1077 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1078 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1079 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1080 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1081
1082 _ASUNAME
1083
1084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1085 for as_dir in $PATH
1086 do
1087   IFS=$as_save_IFS
1088   test -z "$as_dir" && as_dir=.
1089   echo "PATH: $as_dir"
1090 done
1091
1092 } >&5
1093
1094 cat >&5 <<_ACEOF
1095
1096
1097 ## ----------- ##
1098 ## Core tests. ##
1099 ## ----------- ##
1100
1101 _ACEOF
1102
1103
1104 # Keep a trace of the command line.
1105 # Strip out --no-create and --no-recursion so they do not pile up.
1106 # Strip out --silent because we don't want to record it for future runs.
1107 # Also quote any args containing shell meta-characters.
1108 # Make two passes to allow for proper duplicate-argument suppression.
1109 ac_configure_args=
1110 ac_configure_args0=
1111 ac_configure_args1=
1112 ac_sep=
1113 ac_must_keep_next=false
1114 for ac_pass in 1 2
1115 do
1116   for ac_arg
1117   do
1118     case $ac_arg in
1119     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1120     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121     | -silent | --silent | --silen | --sile | --sil)
1122       continue ;;
1123     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1125     esac
1126     case $ac_pass in
1127     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128     2)
1129       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1130       if test $ac_must_keep_next = true; then
1131         ac_must_keep_next=false # Got value, back to normal.
1132       else
1133         case $ac_arg in
1134           *=* | --config-cache | -C | -disable-* | --disable-* \
1135           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1136           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1137           | -with-* | --with-* | -without-* | --without-* | --x)
1138             case "$ac_configure_args0 " in
1139               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1140             esac
1141             ;;
1142           -* ) ac_must_keep_next=true ;;
1143         esac
1144       fi
1145       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1146       # Get rid of the leading space.
1147       ac_sep=" "
1148       ;;
1149     esac
1150   done
1151 done
1152 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1153 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154
1155 # When interrupted or exit'd, cleanup temporary files, and complete
1156 # config.log.  We remove comments because anyway the quotes in there
1157 # would cause problems or look ugly.
1158 # WARNING: Be sure not to use single quotes in there, as some shells,
1159 # such as our DU 5.0 friend, will then `close' the trap.
1160 trap 'exit_status=$?
1161   # Save into config.log some information that might help in debugging.
1162   {
1163     echo
1164
1165     cat <<\_ASBOX
1166 ## ---------------- ##
1167 ## Cache variables. ##
1168 ## ---------------- ##
1169 _ASBOX
1170     echo
1171     # The following way of writing the cache mishandles newlines in values,
1172 {
1173   (set) 2>&1 |
1174     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1175     *ac_space=\ *)
1176       sed -n \
1177         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1178           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179       ;;
1180     *)
1181       sed -n \
1182         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1183       ;;
1184     esac;
1185 }
1186     echo
1187
1188     cat <<\_ASBOX
1189 ## ----------------- ##
1190 ## Output variables. ##
1191 ## ----------------- ##
1192 _ASBOX
1193     echo
1194     for ac_var in $ac_subst_vars
1195     do
1196       eval ac_val=$`echo $ac_var`
1197       echo "$ac_var='"'"'$ac_val'"'"'"
1198     done | sort
1199     echo
1200
1201     if test -n "$ac_subst_files"; then
1202       cat <<\_ASBOX
1203 ## ------------- ##
1204 ## Output files. ##
1205 ## ------------- ##
1206 _ASBOX
1207       echo
1208       for ac_var in $ac_subst_files
1209       do
1210         eval ac_val=$`echo $ac_var`
1211         echo "$ac_var='"'"'$ac_val'"'"'"
1212       done | sort
1213       echo
1214     fi
1215
1216     if test -s confdefs.h; then
1217       cat <<\_ASBOX
1218 ## ----------- ##
1219 ## confdefs.h. ##
1220 ## ----------- ##
1221 _ASBOX
1222       echo
1223       sed "/^$/d" confdefs.h | sort
1224       echo
1225     fi
1226     test "$ac_signal" != 0 &&
1227       echo "$as_me: caught signal $ac_signal"
1228     echo "$as_me: exit $exit_status"
1229   } >&5
1230   rm -f core *.core &&
1231   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232     exit $exit_status
1233      ' 0
1234 for ac_signal in 1 2 13 15; do
1235   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1236 done
1237 ac_signal=0
1238
1239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1240 rm -rf conftest* confdefs.h
1241 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 echo >confdefs.h
1243
1244 # Predefined preprocessor variables.
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_NAME "$PACKAGE_NAME"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_STRING "$PACKAGE_STRING"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1268 _ACEOF
1269
1270
1271 # Let the site file select an alternate cache file if it wants to.
1272 # Prefer explicitly selected file to automatically selected ones.
1273 if test -z "$CONFIG_SITE"; then
1274   if test "x$prefix" != xNONE; then
1275     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276   else
1277     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278   fi
1279 fi
1280 for ac_site_file in $CONFIG_SITE; do
1281   if test -r "$ac_site_file"; then
1282     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1283 echo "$as_me: loading site script $ac_site_file" >&6;}
1284     sed 's/^/| /' "$ac_site_file" >&5
1285     . "$ac_site_file"
1286   fi
1287 done
1288
1289 if test -r "$cache_file"; then
1290   # Some versions of bash will fail to source /dev/null (special
1291   # files actually), so we avoid doing that.
1292   if test -f "$cache_file"; then
1293     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1294 echo "$as_me: loading cache $cache_file" >&6;}
1295     case $cache_file in
1296       [\\/]* | ?:[\\/]* ) . $cache_file;;
1297       *)                      . ./$cache_file;;
1298     esac
1299   fi
1300 else
1301   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1302 echo "$as_me: creating cache $cache_file" >&6;}
1303   >$cache_file
1304 fi
1305
1306 # Check that the precious variables saved in the cache have kept the same
1307 # value.
1308 ac_cache_corrupted=false
1309 for ac_var in `(set) 2>&1 |
1310                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1311   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1312   eval ac_new_set=\$ac_env_${ac_var}_set
1313   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1314   eval ac_new_val="\$ac_env_${ac_var}_value"
1315   case $ac_old_set,$ac_new_set in
1316     set,)
1317       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1318 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1319       ac_cache_corrupted=: ;;
1320     ,set)
1321       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1323       ac_cache_corrupted=: ;;
1324     ,);;
1325     *)
1326       if test "x$ac_old_val" != "x$ac_new_val"; then
1327         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1328 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1329         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1330 echo "$as_me:   former value:  $ac_old_val" >&2;}
1331         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1332 echo "$as_me:   current value: $ac_new_val" >&2;}
1333         ac_cache_corrupted=:
1334       fi;;
1335   esac
1336   # Pass precious variables to config.status.
1337   if test "$ac_new_set" = set; then
1338     case $ac_new_val in
1339     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1340       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1341     *) ac_arg=$ac_var=$ac_new_val ;;
1342     esac
1343     case " $ac_configure_args " in
1344       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1345       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1346     esac
1347   fi
1348 done
1349 if $ac_cache_corrupted; then
1350   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1351 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1352   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1353 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1354    { (exit 1); exit 1; }; }
1355 fi
1356
1357 ac_ext=c
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383
1384
1385 #Set to 1 on a release branch
1386 is_release=
1387
1388 # Determine the host, build, and target systems
1389 ac_aux_dir=
1390 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1391   if test -f $ac_dir/install-sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install-sh -c"
1394     break
1395   elif test -f $ac_dir/install.sh; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/install.sh -c"
1398     break
1399   elif test -f $ac_dir/shtool; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/shtool install -c"
1402     break
1403   fi
1404 done
1405 if test -z "$ac_aux_dir"; then
1406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1408    { (exit 1); exit 1; }; }
1409 fi
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413
1414 # Make sure we can run config.sub.
1415 $ac_config_sub sun4 >/dev/null 2>&1 ||
1416   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1418    { (exit 1); exit 1; }; }
1419
1420 echo "$as_me:$LINENO: checking build system type" >&5
1421 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1422 if test "${ac_cv_build+set}" = set; then
1423   echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425   ac_cv_build_alias=$build_alias
1426 test -z "$ac_cv_build_alias" &&
1427   ac_cv_build_alias=`$ac_config_guess`
1428 test -z "$ac_cv_build_alias" &&
1429   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1431    { (exit 1); exit 1; }; }
1432 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1433   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1435    { (exit 1); exit 1; }; }
1436
1437 fi
1438 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1439 echo "${ECHO_T}$ac_cv_build" >&6
1440 build=$ac_cv_build
1441 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444
1445
1446 echo "$as_me:$LINENO: checking host system type" >&5
1447 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1448 if test "${ac_cv_host+set}" = set; then
1449   echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451   ac_cv_host_alias=$host_alias
1452 test -z "$ac_cv_host_alias" &&
1453   ac_cv_host_alias=$ac_cv_build_alias
1454 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1455   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1457    { (exit 1); exit 1; }; }
1458
1459 fi
1460 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1461 echo "${ECHO_T}$ac_cv_host" >&6
1462 host=$ac_cv_host
1463 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466
1467
1468 echo "$as_me:$LINENO: checking target system type" >&5
1469 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1470 if test "${ac_cv_target+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   ac_cv_target_alias=$target_alias
1474 test "x$ac_cv_target_alias" = "x" &&
1475   ac_cv_target_alias=$ac_cv_host_alias
1476 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1477   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1483 echo "${ECHO_T}$ac_cv_target" >&6
1484 target=$ac_cv_target
1485 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 # The aliases save the names the user supplied, while $host etc.
1491 # will get canonicalized.
1492 test -n "$target_alias" &&
1493   test "$program_prefix$program_suffix$program_transform_name" = \
1494     NONENONEs,x,x, &&
1495   program_prefix=${target_alias}-
1496
1497 # Determine the noncanonical target name, for directory use.
1498  case ${build_alias} in
1499   "") build_noncanonical=${build} ;;
1500   *) build_noncanonical=${build_alias} ;;
1501 esac
1502
1503  case ${host_alias} in
1504   "") host_noncanonical=${build_noncanonical} ;;
1505   *) host_noncanonical=${host_alias} ;;
1506 esac
1507
1508  case ${target_alias} in
1509   "") target_noncanonical=${host_noncanonical} ;;
1510   *) target_noncanonical=${target_alias} ;;
1511 esac
1512
1513
1514
1515
1516 # Determine the target- and build-specific subdirectories
1517   # Prefix 'build-' so this never conflicts with target_subdir.
1518 build_subdir="build-${build_noncanonical}"
1519 # Not really a subdirectory, but here for completeness.
1520 host_subdir=.
1521 # No prefix.
1522 target_subdir=${target_noncanonical}
1523
1524
1525 # Set program_transform_name
1526 test "$program_prefix" != NONE &&
1527   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1528 # Use a double $ so make ignores it.
1529 test "$program_suffix" != NONE &&
1530   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1531 # Double any \ or $.  echo might interpret backslashes.
1532 # By default was `s,x,x', remove it if useless.
1533 cat <<\_ACEOF >conftest.sed
1534 s/[\\$]/&&/g;s/;s,x,x,$//
1535 _ACEOF
1536 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1537 rm conftest.sed
1538
1539
1540 # Check for bogus environment variables.
1541 # Test if LIBRARY_PATH contains the notation for the current directory
1542 # since this would lead to problems installing/building glibc.
1543 # LIBRARY_PATH contains the current directory if one of the following
1544 # is true:
1545 # - one of the terminals (":" and ";") is the first or last sign
1546 # - two terminals occur directly after each other
1547 # - the path contains an element with a dot in it
1548 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1549 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1550 case ${LIBRARY_PATH} in
1551   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1552     library_path_setting="contains current directory"
1553     ;;
1554   *)
1555     library_path_setting="ok"
1556     ;;
1557 esac
1558 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1559 echo "${ECHO_T}$library_path_setting" >&6
1560 if test "$library_path_setting" != "ok"; then
1561 { { echo "$as_me:$LINENO: error:
1562 *** LIBRARY_PATH shouldn't contain the current directory when
1563 *** building gcc. Please change the environment variable
1564 *** and run configure again." >&5
1565 echo "$as_me: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&2;}
1569    { (exit 1); exit 1; }; }
1570 fi
1571
1572 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1573 # since this would lead to problems installing/building glibc.
1574 # GCC_EXEC_PREFIX contains the current directory if one of the following
1575 # is true:
1576 # - one of the terminals (":" and ";") is the first or last sign
1577 # - two terminals occur directly after each other
1578 # - the path contains an element with a dot in it
1579 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1580 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1581 case ${GCC_EXEC_PREFIX} in
1582   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1583     gcc_exec_prefix_setting="contains current directory"
1584     ;;
1585   *)
1586     gcc_exec_prefix_setting="ok"
1587     ;;
1588 esac
1589 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1590 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1591 if test "$gcc_exec_prefix_setting" != "ok"; then
1592 { { echo "$as_me:$LINENO: error:
1593 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1594 *** building gcc. Please change the environment variable
1595 *** and run configure again." >&5
1596 echo "$as_me: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&2;}
1600    { (exit 1); exit 1; }; }
1601 fi
1602
1603 # -----------
1604 # Directories
1605 # -----------
1606
1607 # Specify the local prefix
1608 local_prefix=
1609
1610 # Check whether --with-local-prefix or --without-local-prefix was given.
1611 if test "${with_local_prefix+set}" = set; then
1612   withval="$with_local_prefix"
1613   case "${withval}" in
1614 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1615 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1616    { (exit 1); exit 1; }; } ;;
1617 no)     ;;
1618 *)      local_prefix=$with_local_prefix ;;
1619 esac
1620 fi;
1621
1622 # Default local prefix if it is empty
1623 if test x$local_prefix = x; then
1624         local_prefix=/usr/local
1625 fi
1626
1627 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1628 # passed in by the toplevel make and thus we'd get different behavior
1629 # depending on where we built the sources.
1630 gcc_gxx_include_dir=
1631 # Specify the g++ header file directory
1632
1633 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1634 if test "${with_gxx_include_dir+set}" = set; then
1635   withval="$with_gxx_include_dir"
1636   case "${withval}" in
1637 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1638 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1639    { (exit 1); exit 1; }; } ;;
1640 no)     ;;
1641 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1642 esac
1643 fi;
1644
1645 if test x${gcc_gxx_include_dir} = x; then
1646   if test x${enable_version_specific_runtime_libs} = xyes; then
1647     gcc_gxx_include_dir='${libsubdir}/include/c++'
1648   else
1649     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1650     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1651   fi
1652 fi
1653
1654
1655 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1656 if test "${with_cpp_install_dir+set}" = set; then
1657   withval="$with_cpp_install_dir"
1658   if test x$withval = xyes; then
1659   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1660 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1661    { (exit 1); exit 1; }; }
1662 elif test x$withval != xno; then
1663   cpp_install_dir=$withval
1664 fi
1665 fi;
1666
1667 # We would like to our source tree to be readonly.  However when releases or
1668 # pre-releases are generated, the flex/bison generated files as well as the
1669 # various formats of manuals need to be included along with the rest of the
1670 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1671 # just that.
1672
1673 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1674 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1675     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1676 if test "${enable_generated_files_in_srcdir+set}" = set; then
1677   enableval="$enable_generated_files_in_srcdir"
1678   generated_files_in_srcdir=$enableval
1679 else
1680   generated_files_in_srcdir=no
1681 fi;
1682
1683 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1684 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1685
1686 if test "$generated_files_in_srcdir" = "yes"; then
1687   GENINSRC=''
1688 else
1689   GENINSRC='#'
1690 fi
1691
1692
1693 # -------------------
1694 # Find default linker
1695 # -------------------
1696
1697 # With GNU ld
1698
1699 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1700 if test "${with_gnu_ld+set}" = set; then
1701   withval="$with_gnu_ld"
1702   gnu_ld_flag="$with_gnu_ld"
1703 else
1704   gnu_ld_flag=no
1705 fi;
1706
1707 # With pre-defined ld
1708
1709 # Check whether --with-ld or --without-ld was given.
1710 if test "${with_ld+set}" = set; then
1711   withval="$with_ld"
1712   DEFAULT_LINKER="$with_ld"
1713 fi;
1714 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1715   if test ! -x "$DEFAULT_LINKER"; then
1716     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1717 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1718    { (exit 1); exit 1; }; }
1719   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1720     gnu_ld_flag=yes
1721   fi
1722
1723 cat >>confdefs.h <<_ACEOF
1724 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1725 _ACEOF
1726
1727 fi
1728
1729 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1730 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1731 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1732   if test x"$gnu_ld_flag" = x"no"; then
1733     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1734 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1735   else
1736     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1737 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1738   fi
1739 else
1740   echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744 # With demangler in GNU ld
1745
1746 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1747 if test "${with_demangler_in_ld+set}" = set; then
1748   withval="$with_demangler_in_ld"
1749   demangler_in_ld="$with_demangler_in_ld"
1750 else
1751   demangler_in_ld=no
1752 fi;
1753
1754 # ----------------------
1755 # Find default assembler
1756 # ----------------------
1757
1758 # With GNU as
1759
1760 # Check whether --with-gnu-as or --without-gnu-as was given.
1761 if test "${with_gnu_as+set}" = set; then
1762   withval="$with_gnu_as"
1763   gas_flag="$with_gnu_as"
1764 else
1765   gas_flag=no
1766 fi;
1767
1768
1769 # Check whether --with-as or --without-as was given.
1770 if test "${with_as+set}" = set; then
1771   withval="$with_as"
1772   DEFAULT_ASSEMBLER="$with_as"
1773 fi;
1774 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1775   if test ! -x "$DEFAULT_ASSEMBLER"; then
1776     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1777 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1778    { (exit 1); exit 1; }; }
1779   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1780     gas_flag=yes
1781   fi
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1785 _ACEOF
1786
1787 fi
1788
1789 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1790 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1791 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1792   if test x"$gas_flag" = x"no"; then
1793     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1794 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1795   else
1796     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1797 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1798   fi
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 # ---------------
1805 # Find C compiler
1806 # ---------------
1807
1808 # If a non-executable a.out is present (e.g. created by GNU as above even if
1809 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1810 # file, even when creating an executable, so an execution test fails.
1811 # Remove possible default executable files to avoid this.
1812 #
1813 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1814 # Autoconf includes it.
1815 rm -f a.out a.exe b.out
1816
1817 # Find the native compiler
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829   echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831   if test -n "$CC"; then
1832   ac_cv_prog_CC="$CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837   IFS=$as_save_IFS
1838   test -z "$as_dir" && as_dir=.
1839   for ac_exec_ext in '' $ac_executable_extensions; do
1840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843     break 2
1844   fi
1845 done
1846 done
1847
1848 fi
1849 fi
1850 CC=$ac_cv_prog_CC
1851 if test -n "$CC"; then
1852   echo "$as_me:$LINENO: result: $CC" >&5
1853 echo "${ECHO_T}$CC" >&6
1854 else
1855   echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1857 fi
1858
1859 fi
1860 if test -z "$ac_cv_prog_CC"; then
1861   ac_ct_CC=$CC
1862   # Extract the first word of "gcc", so it can be a program name with args.
1863 set dummy gcc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test -n "$ac_ct_CC"; then
1870   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_prog_ac_ct_CC="gcc"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 echo "${ECHO_T}$ac_ct_CC" >&6
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897   CC=$ac_ct_CC
1898 else
1899   CC="$ac_cv_prog_CC"
1900 fi
1901
1902 if test -z "$CC"; then
1903   if test -n "$ac_tool_prefix"; then
1904   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1905 set dummy ${ac_tool_prefix}cc; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$CC"; then
1912   ac_cv_prog_CC="$CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921     ac_cv_prog_CC="${ac_tool_prefix}cc"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 CC=$ac_cv_prog_CC
1931 if test -n "$CC"; then
1932   echo "$as_me:$LINENO: result: $CC" >&5
1933 echo "${ECHO_T}$CC" >&6
1934 else
1935   echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939 fi
1940 if test -z "$ac_cv_prog_CC"; then
1941   ac_ct_CC=$CC
1942   # Extract the first word of "cc", so it can be a program name with args.
1943 set dummy cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$ac_ct_CC"; then
1950   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_ac_ct_CC="cc"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1969 if test -n "$ac_ct_CC"; then
1970   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1971 echo "${ECHO_T}$ac_ct_CC" >&6
1972 else
1973   echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977   CC=$ac_ct_CC
1978 else
1979   CC="$ac_cv_prog_CC"
1980 fi
1981
1982 fi
1983 if test -z "$CC"; then
1984   # Extract the first word of "cc", so it can be a program name with args.
1985 set dummy cc; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994   ac_prog_rejected=no
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2003        ac_prog_rejected=yes
2004        continue
2005      fi
2006     ac_cv_prog_CC="cc"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012
2013 if test $ac_prog_rejected = yes; then
2014   # We found a bogon in the path, so make sure we never use it.
2015   set dummy $ac_cv_prog_CC
2016   shift
2017   if test $# != 0; then
2018     # We chose a different compiler from the bogus one.
2019     # However, it has the same basename, so the bogon will be chosen
2020     # first if we set CC to just the basename; use the full file name.
2021     shift
2022     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2023   fi
2024 fi
2025 fi
2026 fi
2027 CC=$ac_cv_prog_CC
2028 if test -n "$CC"; then
2029   echo "$as_me:$LINENO: result: $CC" >&5
2030 echo "${ECHO_T}$CC" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$CC"; then
2038   if test -n "$ac_tool_prefix"; then
2039   for ac_prog in cl
2040   do
2041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$CC"; then
2049   ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069   echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076     test -n "$CC" && break
2077   done
2078 fi
2079 if test -z "$CC"; then
2080   ac_ct_CC=$CC
2081   for ac_prog in cl
2082 do
2083   # Extract the first word of "$ac_prog", so it can be a program name with args.
2084 set dummy $ac_prog; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$ac_ct_CC"; then
2091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     ac_cv_prog_ac_ct_CC="$ac_prog"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118   test -n "$ac_ct_CC" && break
2119 done
2120
2121   CC=$ac_ct_CC
2122 fi
2123
2124 fi
2125
2126
2127 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&2;}
2131    { (exit 1); exit 1; }; }
2132
2133 # Provide some information about the compiler.
2134 echo "$as_me:$LINENO:" \
2135      "checking for C compiler version" >&5
2136 ac_compiler=`set X $ac_compile; echo $2`
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2138   (eval $ac_compiler --version </dev/null >&5) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2143   (eval $ac_compiler -v </dev/null >&5) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2148   (eval $ac_compiler -V </dev/null >&5) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2159
2160 int
2161 main ()
2162 {
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177   (eval $ac_link_default) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; then
2181   # Find the output, starting from the most likely.  This scheme is
2182 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183 # resort.
2184
2185 # Be careful to initialize this variable, since it used to be cached.
2186 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187 ac_cv_exeext=
2188 # b.out is created by i960 compilers.
2189 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2190 do
2191   test -f "$ac_file" || continue
2192   case $ac_file in
2193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194         ;;
2195     conftest.$ac_ext )
2196         # This is the source file.
2197         ;;
2198     [ab].out )
2199         # We found the default executable, but exeext='' is most
2200         # certainly right.
2201         break;;
2202     *.* )
2203         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204         # FIXME: I believe we export ac_cv_exeext for Libtool,
2205         # but it would be cool to find out if it's true.  Does anybody
2206         # maintain Libtool? --akim.
2207         export ac_cv_exeext
2208         break;;
2209     * )
2210         break;;
2211   esac
2212 done
2213 else
2214   echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&2;}
2221    { (exit 77); exit 77; }; }
2222 fi
2223
2224 ac_exeext=$ac_cv_exeext
2225 echo "$as_me:$LINENO: result: $ac_file" >&5
2226 echo "${ECHO_T}$ac_file" >&6
2227
2228 # Check the compiler produces executables we can run.  If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233 # If not cross compiling, check that we can run a simple program.
2234 if test "$cross_compiling" != yes; then
2235   if { ac_try='./$ac_file'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241     cross_compiling=no
2242   else
2243     if test "$cross_compiling" = maybe; then
2244         cross_compiling=yes
2245     else
2246         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&2;}
2252    { (exit 1); exit 1; }; }
2253     fi
2254   fi
2255 fi
2256 echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6
2258
2259 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260 ac_clean_files=$ac_clean_files_save
2261 # Check the compiler produces executables we can run.  If not, either
2262 # the compiler is broken, or we cross compile.
2263 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266 echo "${ECHO_T}$cross_compiling" >&6
2267
2268 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271   (eval $ac_link) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284           export ac_cv_exeext
2285           break;;
2286     * ) break;;
2287   esac
2288 done
2289 else
2290   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&2;}
2294    { (exit 1); exit 1; }; }
2295 fi
2296
2297 rm -f conftest$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299 echo "${ECHO_T}$ac_cv_exeext" >&6
2300
2301 rm -f conftest.$ac_ext
2302 EXEEXT=$ac_cv_exeext
2303 ac_exeext=$EXEEXT
2304 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306 if test "${ac_cv_objext+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   cat >conftest.$ac_ext <<_ACEOF
2310 /* confdefs.h.  */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h.  */
2315
2316 int
2317 main ()
2318 {
2319
2320   ;
2321   return 0;
2322 }
2323 _ACEOF
2324 rm -f conftest.o conftest.obj
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326   (eval $ac_compile) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; then
2330   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2331   case $ac_file in
2332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2333     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334        break;;
2335   esac
2336 done
2337 else
2338   echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&2;}
2345    { (exit 1); exit 1; }; }
2346 fi
2347
2348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349 fi
2350 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351 echo "${ECHO_T}$ac_cv_objext" >&6
2352 OBJEXT=$ac_cv_objext
2353 ac_objext=$OBJEXT
2354 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365
2366 int
2367 main ()
2368 {
2369 #ifndef __GNUC__
2370        choke me
2371 #endif
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_compiler_gnu=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_compiler_gnu=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 CFLAGS="-g"
2415 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h.  */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h.  */
2426
2427 int
2428 main ()
2429 {
2430
2431   ;
2432   return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437   (eval $ac_compile) 2>conftest.er1
2438   ac_status=$?
2439   grep -v '^ *+' conftest.er1 >conftest.err
2440   rm -f conftest.er1
2441   cat conftest.err >&5
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); } &&
2444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_cv_prog_cc_g=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_cv_prog_cc_g=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468   CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470   if test "$GCC" = yes; then
2471     CFLAGS="-g -O2"
2472   else
2473     CFLAGS="-g"
2474   fi
2475 else
2476   if test "$GCC" = yes; then
2477     CFLAGS="-O2"
2478   else
2479     CFLAGS=
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   ac_cv_prog_cc_stdc=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495 #include <stdarg.h>
2496 #include <stdio.h>
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2503      char **p;
2504      int i;
2505 {
2506   return p[i];
2507 }
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2509 {
2510   char *s;
2511   va_list v;
2512   va_start (v,p);
2513   s = g (p, va_arg (v,int));
2514   va_end (v);
2515   return s;
2516 }
2517
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2519    function prototypes and stuff, but not '\xHH' hex character constants.
2520    These don't provoke an error unfortunately, instead are silently treated
2521    as 'x'.  The following induces an error, until -std1 is added to get
2522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2523    array size at least.  It's necessary to write '\x00'==0 to get something
2524    that's true only with -std1.  */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2533 int
2534 main ()
2535 {
2536 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX                   -qlanglvl=ansi
2544 # Ultrix and OSF/1      -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2547 # SVR4                  -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550   CC="$ac_save_CC $ac_arg"
2551   rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; } &&
2566          { ac_try='test -s conftest.$ac_objext'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; }; then
2572   ac_cv_prog_cc_stdc=$ac_arg
2573 break
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 fi
2579 rm -f conftest.err conftest.$ac_objext
2580 done
2581 rm -f conftest.$ac_ext conftest.$ac_objext
2582 CC=$ac_save_CC
2583
2584 fi
2585
2586 case "x$ac_cv_prog_cc_stdc" in
2587   x|xno)
2588     echo "$as_me:$LINENO: result: none needed" >&5
2589 echo "${ECHO_T}none needed" >&6 ;;
2590   *)
2591     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2592 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2593     CC="$CC $ac_cv_prog_cc_stdc" ;;
2594 esac
2595
2596 # Some people use a C++ compiler to compile C.  Since we use `exit',
2597 # in C++ we need to declare it.  In case someone uses the same compiler
2598 # for both compiling C and C++ we need to have the C++ compiler decide
2599 # the declaration of exit, since it's the most demanding environment.
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #ifndef __cplusplus
2602   choke me
2603 #endif
2604 _ACEOF
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607   (eval $ac_compile) 2>conftest.er1
2608   ac_status=$?
2609   grep -v '^ *+' conftest.er1 >conftest.err
2610   rm -f conftest.er1
2611   cat conftest.err >&5
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   for ac_declaration in \
2627    '' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640 $ac_declaration
2641 #include <stdlib.h>
2642 int
2643 main ()
2644 {
2645 exit (42);
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; } &&
2665          { ac_try='test -s conftest.$ac_objext'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; }; then
2671   :
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 continue
2677 fi
2678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679   cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685 $ac_declaration
2686 int
2687 main ()
2688 {
2689 exit (42);
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696   (eval $ac_compile) 2>conftest.er1
2697   ac_status=$?
2698   grep -v '^ *+' conftest.er1 >conftest.err
2699   rm -f conftest.er1
2700   cat conftest.err >&5
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; }; then
2715   break
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 fi
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 done
2723 rm -f conftest*
2724 if test -n "$ac_declaration"; then
2725   echo '#ifdef __cplusplus' >>confdefs.h
2726   echo $ac_declaration      >>confdefs.h
2727   echo '#endif'             >>confdefs.h
2728 fi
2729
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742 if test "x$CC" != xcc; then
2743   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2744 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2745 else
2746   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2747 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2748 fi
2749 set dummy $CC; ac_cc=`echo $2 |
2750                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2751 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 # Make sure it works both with $CC and with simple cc.
2770 # We do the test twice because some compilers refuse to overwrite an
2771 # existing .o file with -o, though they will create one.
2772 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2773 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); };
2783 then
2784   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2785   if test "x$CC" != xcc; then
2786     # Test first that cc exists at all.
2787     if { ac_try='cc -c conftest.$ac_ext >&5'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2794       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); };
2804       then
2805         # cc works too.
2806         :
2807       else
2808         # cc exists but doesn't like -o.
2809         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2810       fi
2811     fi
2812   fi
2813 else
2814   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815 fi
2816 rm -f conftest*
2817
2818 fi
2819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2820   echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825
2826 cat >>confdefs.h <<\_ACEOF
2827 #define NO_MINUS_C_MINUS_O 1
2828 _ACEOF
2829
2830 fi
2831
2832 # autoconf is lame and doesn't give us any substitution variable for this.
2833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2834   NO_MINUS_C_MINUS_O=yes
2835 else
2836   OUTPUT_OPTION='-o $@'
2837 fi
2838
2839
2840
2841 # -------------------------
2842 # Check C compiler features
2843 # -------------------------
2844
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2851 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2852 # On Suns, sometimes $CPP names a directory.
2853 if test -n "$CPP" && test -d "$CPP"; then
2854   CPP=
2855 fi
2856 if test -z "$CPP"; then
2857   if test "${ac_cv_prog_CPP+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860       # Double quotes because CPP needs to be expanded
2861     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2862     do
2863       ac_preproc_ok=false
2864 for ac_c_preproc_warn_flag in '' yes
2865 do
2866   # Use a header file that comes with gcc, so configuring glibc
2867   # with a fresh cross-compiler works.
2868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869   # <limits.h> exists even on freestanding compilers.
2870   # On the NeXT, cc -E runs the code through the compiler's parser,
2871   # not just through cpp. "Syntax error" is here to catch this case.
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 #ifdef __STDC__
2879 # include <limits.h>
2880 #else
2881 # include <assert.h>
2882 #endif
2883                      Syntax error
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } >/dev/null; then
2893   if test -s conftest.err; then
2894     ac_cpp_err=$ac_c_preproc_warn_flag
2895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2896   else
2897     ac_cpp_err=
2898   fi
2899 else
2900   ac_cpp_err=yes
2901 fi
2902 if test -z "$ac_cpp_err"; then
2903   :
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908   # Broken: fails on valid input.
2909 continue
2910 fi
2911 rm -f conftest.err conftest.$ac_ext
2912
2913   # OK, works on sane cases.  Now check whether non-existent headers
2914   # can be detected and how.
2915   cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921 #include <ac_nonexistent.h>
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } >/dev/null; then
2931   if test -s conftest.err; then
2932     ac_cpp_err=$ac_c_preproc_warn_flag
2933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934   else
2935     ac_cpp_err=
2936   fi
2937 else
2938   ac_cpp_err=yes
2939 fi
2940 if test -z "$ac_cpp_err"; then
2941   # Broken: success on invalid input.
2942 continue
2943 else
2944   echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947   # Passes both tests.
2948 ac_preproc_ok=:
2949 break
2950 fi
2951 rm -f conftest.err conftest.$ac_ext
2952
2953 done
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2957   break
2958 fi
2959
2960     done
2961     ac_cv_prog_CPP=$CPP
2962
2963 fi
2964   CPP=$ac_cv_prog_CPP
2965 else
2966   ac_cv_prog_CPP=$CPP
2967 fi
2968 echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2970 ac_preproc_ok=false
2971 for ac_c_preproc_warn_flag in '' yes
2972 do
2973   # Use a header file that comes with gcc, so configuring glibc
2974   # with a fresh cross-compiler works.
2975   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976   # <limits.h> exists even on freestanding compilers.
2977   # On the NeXT, cc -E runs the code through the compiler's parser,
2978   # not just through cpp. "Syntax error" is here to catch this case.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #ifdef __STDC__
2986 # include <limits.h>
2987 #else
2988 # include <assert.h>
2989 #endif
2990                      Syntax error
2991 _ACEOF
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null; then
3000   if test -s conftest.err; then
3001     ac_cpp_err=$ac_c_preproc_warn_flag
3002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003   else
3004     ac_cpp_err=
3005   fi
3006 else
3007   ac_cpp_err=yes
3008 fi
3009 if test -z "$ac_cpp_err"; then
3010   :
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015   # Broken: fails on valid input.
3016 continue
3017 fi
3018 rm -f conftest.err conftest.$ac_ext
3019
3020   # OK, works on sane cases.  Now check whether non-existent headers
3021   # can be detected and how.
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028 #include <ac_nonexistent.h>
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } >/dev/null; then
3038   if test -s conftest.err; then
3039     ac_cpp_err=$ac_c_preproc_warn_flag
3040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041   else
3042     ac_cpp_err=
3043   fi
3044 else
3045   ac_cpp_err=yes
3046 fi
3047 if test -z "$ac_cpp_err"; then
3048   # Broken: success on invalid input.
3049 continue
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054   # Passes both tests.
3055 ac_preproc_ok=:
3056 break
3057 fi
3058 rm -f conftest.err conftest.$ac_ext
3059
3060 done
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3064   :
3065 else
3066   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&2;}
3070    { (exit 1); exit 1; }; }
3071 fi
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   ac_cv_c_inline=no
3086 for ac_kw in inline __inline__ __inline; do
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #ifndef __cplusplus
3094 typedef int foo_t;
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3097 #endif
3098
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102   (eval $ac_compile) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   ac_cv_c_inline=$ac_kw; break
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 fi
3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3128 done
3129
3130 fi
3131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3132 echo "${ECHO_T}$ac_cv_c_inline" >&6
3133
3134
3135 case $ac_cv_c_inline in
3136   inline | yes) ;;
3137   *)
3138     case $ac_cv_c_inline in
3139       no) ac_val=;;
3140       *) ac_val=$ac_cv_c_inline;;
3141     esac
3142     cat >>confdefs.h <<_ACEOF
3143 #ifndef __cplusplus
3144 #define inline $ac_val
3145 #endif
3146 _ACEOF
3147     ;;
3148 esac
3149
3150
3151 echo "$as_me:$LINENO: checking for long long int" >&5
3152 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3153 if test "${ac_cv_c_long_long+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166 long long int i;
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>conftest.er1
3174   ac_status=$?
3175   grep -v '^ *+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } &&
3180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; } &&
3186          { ac_try='test -s conftest.$ac_objext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_c_long_long=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_cv_c_long_long=no
3198 fi
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3202 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3203   if test $ac_cv_c_long_long = yes; then
3204
3205 cat >>confdefs.h <<\_ACEOF
3206 #define HAVE_LONG_LONG 1
3207 _ACEOF
3208
3209   fi
3210 echo "$as_me:$LINENO: checking for __int64" >&5
3211 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3212 if test "${ac_cv_c___int64+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225 __int64 i;
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3232   (eval $ac_compile) 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } &&
3239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; }; then
3251   ac_cv_c___int64=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_cv_c___int64=no
3257 fi
3258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3261 echo "${ECHO_T}$ac_cv_c___int64" >&6
3262   if test $ac_cv_c___int64 = yes; then
3263
3264 cat >>confdefs.h <<\_ACEOF
3265 #define HAVE___INT64 1
3266 _ACEOF
3267
3268   fi
3269
3270
3271 # sizeof(char) is 1 by definition.
3272 echo "$as_me:$LINENO: checking size of void *" >&5
3273 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3274 if test "${ac_cv_sizeof_void_p+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include "confdefs.h"
3285 #include <sys/types.h>
3286
3287
3288 int
3289 main ()
3290 {
3291 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298   (eval $ac_compile) 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } &&
3305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307   (eval $ac_try) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; } &&
3311          { ac_try='test -s conftest.$ac_objext'
3312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313   (eval $ac_try) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; }; then
3317   ac_cv_sizeof_void_p=$ac_size
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 fi
3323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3324   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3325 done
3326
3327 fi
3328
3329 if test x$ac_cv_sizeof_void_p = x ; then
3330   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3331 echo "$as_me: error: cannot determine a size for void *" >&2;}
3332    { (exit 1); exit 1; }; }
3333 fi
3334 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3335 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3336
3337 cat >>confdefs.h <<_ACEOF
3338 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3339 _ACEOF
3340
3341
3342 echo "$as_me:$LINENO: checking size of short" >&5
3343 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3344 if test "${ac_cv_sizeof_short+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #include "confdefs.h"
3355 #include <sys/types.h>
3356
3357
3358 int
3359 main ()
3360 {
3361 switch (0) case 0: case (sizeof (short) == $ac_size):;
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368   (eval $ac_compile) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } &&
3375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; } &&
3381          { ac_try='test -s conftest.$ac_objext'
3382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383   (eval $ac_try) 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; }; then
3387   ac_cv_sizeof_short=$ac_size
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 fi
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394   if test x$ac_cv_sizeof_short != x ; then break; fi
3395 done
3396
3397 fi
3398
3399 if test x$ac_cv_sizeof_short = x ; then
3400   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3401 echo "$as_me: error: cannot determine a size for short" >&2;}
3402    { (exit 1); exit 1; }; }
3403 fi
3404 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3405 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3406
3407 cat >>confdefs.h <<_ACEOF
3408 #define SIZEOF_SHORT $ac_cv_sizeof_short
3409 _ACEOF
3410
3411
3412 echo "$as_me:$LINENO: checking size of int" >&5
3413 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3414 if test "${ac_cv_sizeof_int+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424 #include "confdefs.h"
3425 #include <sys/types.h>
3426
3427
3428 int
3429 main ()
3430 {
3431 switch (0) case 0: case (sizeof (int) == $ac_size):;
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438   (eval $ac_compile) 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; } &&
3451          { ac_try='test -s conftest.$ac_objext'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   ac_cv_sizeof_int=$ac_size
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 fi
3463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464   if test x$ac_cv_sizeof_int != x ; then break; fi
3465 done
3466
3467 fi
3468
3469 if test x$ac_cv_sizeof_int = x ; then
3470   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3471 echo "$as_me: error: cannot determine a size for int" >&2;}
3472    { (exit 1); exit 1; }; }
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3475 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3476
3477 cat >>confdefs.h <<_ACEOF
3478 #define SIZEOF_INT $ac_cv_sizeof_int
3479 _ACEOF
3480
3481
3482 echo "$as_me:$LINENO: checking size of long" >&5
3483 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3484 if test "${ac_cv_sizeof_long+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3488   cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #include "confdefs.h"
3495 #include <sys/types.h>
3496
3497
3498 int
3499 main ()
3500 {
3501 switch (0) case 0: case (sizeof (long) == $ac_size):;
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508   (eval $ac_compile) 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } &&
3515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; } &&
3521          { ac_try='test -s conftest.$ac_objext'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; }; then
3527   ac_cv_sizeof_long=$ac_size
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 fi
3533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534   if test x$ac_cv_sizeof_long != x ; then break; fi
3535 done
3536
3537 fi
3538
3539 if test x$ac_cv_sizeof_long = x ; then
3540   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3541 echo "$as_me: error: cannot determine a size for long" >&2;}
3542    { (exit 1); exit 1; }; }
3543 fi
3544 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3545 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3546
3547 cat >>confdefs.h <<_ACEOF
3548 #define SIZEOF_LONG $ac_cv_sizeof_long
3549 _ACEOF
3550
3551
3552 if test $ac_cv_c_long_long = yes; then
3553   echo "$as_me:$LINENO: checking size of long long" >&5
3554 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3555 if test "${ac_cv_sizeof_long_long+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3559   cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565 #include "confdefs.h"
3566 #include <sys/types.h>
3567
3568
3569 int
3570 main ()
3571 {
3572 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579   (eval $ac_compile) 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } &&
3586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588   (eval $ac_try) 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); }; } &&
3592          { ac_try='test -s conftest.$ac_objext'
3593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594   (eval $ac_try) 2>&5
3595   ac_status=$?
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); }; }; then
3598   ac_cv_sizeof_long_long=$ac_size
3599 else
3600   echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 fi
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3606 done
3607
3608 fi
3609
3610 if test x$ac_cv_sizeof_long_long = x ; then
3611   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3612 echo "$as_me: error: cannot determine a size for long long" >&2;}
3613    { (exit 1); exit 1; }; }
3614 fi
3615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3616 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3617
3618 cat >>confdefs.h <<_ACEOF
3619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3620 _ACEOF
3621
3622
3623 fi
3624 if test $ac_cv_c___int64 = yes; then
3625   echo "$as_me:$LINENO: checking size of __int64" >&5
3626 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3627 if test "${ac_cv_sizeof___int64+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3631   cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637 #include "confdefs.h"
3638 #include <sys/types.h>
3639
3640
3641 int
3642 main ()
3643 {
3644 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651   (eval $ac_compile) 2>conftest.er1
3652   ac_status=$?
3653   grep -v '^ *+' conftest.er1 >conftest.err
3654   rm -f conftest.er1
3655   cat conftest.err >&5
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } &&
3658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; } &&
3664          { ac_try='test -s conftest.$ac_objext'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; }; then
3670   ac_cv_sizeof___int64=$ac_size
3671 else
3672   echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675 fi
3676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3677   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3678 done
3679
3680 fi
3681
3682 if test x$ac_cv_sizeof___int64 = x ; then
3683   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3684 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3685    { (exit 1); exit 1; }; }
3686 fi
3687 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3688 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3689
3690 cat >>confdefs.h <<_ACEOF
3691 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3692 _ACEOF
3693
3694
3695 fi
3696
3697 # ---------------------
3698 # Warnings and checking
3699 # ---------------------
3700
3701 # Check $CC warning features (if it's GCC).
3702 # We want to use -pedantic, but we don't want warnings about
3703 # * 'long long'
3704 # * variadic macros
3705 # So, we only use -pedantic if we can disable those warnings.
3706
3707 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3708 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3709 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   save_CFLAGS="$CFLAGS"
3713   CFLAGS="-Wno-long-long"
3714   cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720
3721 _ACEOF
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724   (eval $ac_compile) 2>conftest.er1
3725   ac_status=$?
3726   grep -v '^ *+' conftest.er1 >conftest.err
3727   rm -f conftest.er1
3728   cat conftest.err >&5
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } &&
3731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733   (eval $ac_try) 2>&5
3734   ac_status=$?
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); }; } &&
3737          { ac_try='test -s conftest.$ac_objext'
3738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739   (eval $ac_try) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); }; }; then
3743   ac_cv_prog_cc_w_no_long_long=yes
3744 else
3745   echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 ac_cv_prog_cc_w_no_long_long=no
3749 fi
3750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3751   CFLAGS="$save_CFLAGS"
3752
3753 fi
3754 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3755 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3756
3757 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3758 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3759 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   save_CFLAGS="$CFLAGS"
3763   CFLAGS="-Wno-variadic-macros"
3764   cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770
3771 _ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774   (eval $ac_compile) 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } &&
3781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; } &&
3787          { ac_try='test -s conftest.$ac_objext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   ac_cv_prog_cc_w_no_variadic_macros=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 ac_cv_prog_cc_w_no_variadic_macros=no
3799 fi
3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3801   CFLAGS="$save_CFLAGS"
3802
3803 fi
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3805 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3806
3807 strict1_warn=
3808 if test $ac_cv_prog_cc_w_no_long_long = yes \
3809    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3810   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3811 fi
3812
3813
3814 # Add -Wold-style-definition if it's accepted
3815 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3816 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3817 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   save_CFLAGS="$CFLAGS"
3821   CFLAGS="-Wold-style-definition"
3822   cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h.  */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h.  */
3828
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832   (eval $ac_compile) 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } &&
3839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; } &&
3845          { ac_try='test -s conftest.$ac_objext'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; }; then
3851   ac_cv_prog_cc_w_old_style_definition=yes
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_cv_prog_cc_w_old_style_definition=no
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859   CFLAGS="$save_CFLAGS"
3860
3861 fi
3862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3863 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3864 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3865   strict1_warn="${strict1_warn} -Wold-style-definition"
3866 fi
3867
3868 # Enable -Werror, period.
3869 # Check whether --enable-werror_always or --disable-werror_always was given.
3870 if test "${enable_werror_always+set}" = set; then
3871   enableval="$enable_werror_always"
3872
3873 else
3874   enable_werror_always=no
3875 fi;
3876 if test x${enable_werror_always} = xyes ; then
3877   strict1_warn="${strict1_warn} -Werror"
3878   WERROR=-Werror
3879 fi
3880
3881 # If the native compiler is GCC, we can enable warnings even in stage1.
3882 # That's useful for people building cross-compilers, or just running a
3883 # quick `make'.
3884 warn_cflags=
3885 if test "x$GCC" = "xyes"; then
3886   warn_cflags='$(GCC_WARN_CFLAGS)'
3887 fi
3888
3889
3890 # Enable -Werror in bootstrap stage2 and later.
3891 # Check whether --enable-werror or --disable-werror was given.
3892 if test "${enable_werror+set}" = set; then
3893   enableval="$enable_werror"
3894
3895 else
3896   if test x$is_release = x ; then
3897   # Default to "yes" on development branches.
3898   enable_werror=yes
3899 else
3900   # Default to "no" on release branches.
3901   enable_werror=no
3902 fi
3903 fi;
3904 if test x$enable_werror = xyes ; then
3905   WERROR=-Werror
3906 fi
3907
3908
3909 # Enable expensive internal checks
3910 # Check whether --enable-checking or --disable-checking was given.
3911 if test "${enable_checking+set}" = set; then
3912   enableval="$enable_checking"
3913   ac_checking=
3914 ac_tree_checking=
3915 ac_rtl_checking=
3916 ac_rtlflag_checking=
3917 ac_gc_checking=
3918 ac_gc_always_collect=
3919 ac_fold_checking=
3920 ac_assert_checking=
3921 case "${enableval}" in
3922 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3923         ac_rtlflag_checking=1 ; ac_assert_checking=1 ;;
3924 no)     ;;
3925 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3926         set fnord $enableval; shift
3927         IFS="$ac_save_IFS"
3928         ac_assert_checking=1
3929         for check
3930         do
3931                 case $check in
3932                 assert) ac_assert_checking=1 ;;
3933                 fold)   ac_fold_checking=1 ;;
3934                 gc)     ac_gc_checking=1 ;;
3935                 gcac)   ac_gc_always_collect=1 ;;
3936                 misc)   ac_checking=1 ;;
3937                 rtlflag)        ac_rtlflag_checking=1 ;;
3938                 rtl)    ac_rtl_checking=1 ;;
3939                 tree)   ac_tree_checking=1 ;;
3940                 valgrind)       ac_checking_valgrind=1 ;;
3941                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3942 echo "$as_me: error: unknown check category $check" >&2;}
3943    { (exit 1); exit 1; }; } ;;
3944                 esac
3945         done
3946         ;;
3947 esac
3948
3949 else
3950
3951 # Determine the default checks.
3952 if test x$is_release = x ; then
3953   # Enable some checks for development versions of GCC
3954   ac_assert_checking=1;
3955   ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3956 else
3957   # Disable all but assertions for release versions of GCC.
3958   ac_assert_checking=1;
3959 fi
3960 fi;
3961 nocommon_flag=""
3962 if test x$ac_checking != x ; then
3963
3964 cat >>confdefs.h <<\_ACEOF
3965 #define ENABLE_CHECKING 1
3966 _ACEOF
3967
3968   nocommon_flag=-fno-common
3969 fi
3970
3971 if test x$ac_assert_checking != x ; then
3972
3973 cat >>confdefs.h <<\_ACEOF
3974 #define ENABLE_ASSERT_CHECKING 1
3975 _ACEOF
3976
3977 fi
3978 if test x$ac_tree_checking != x ; then
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_TREE_CHECKING 1
3982 _ACEOF
3983
3984   TREEBROWSER=tree-browser.o
3985 fi
3986
3987 if test x$ac_rtl_checking != x ; then
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define ENABLE_RTL_CHECKING 1
3991 _ACEOF
3992
3993 fi
3994 if test x$ac_rtlflag_checking != x ; then
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define ENABLE_RTL_FLAG_CHECKING 1
3998 _ACEOF
3999
4000 fi
4001 if test x$ac_gc_checking != x ; then
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define ENABLE_GC_CHECKING 1
4005 _ACEOF
4006
4007 fi
4008 if test x$ac_gc_always_collect != x ; then
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define ENABLE_GC_ALWAYS_COLLECT 1
4012 _ACEOF
4013
4014 fi
4015 if test x$ac_fold_checking != x ; then
4016
4017 cat >>confdefs.h <<\_ACEOF
4018 #define ENABLE_FOLD_CHECKING 1
4019 _ACEOF
4020
4021 fi
4022 valgrind_path_defines=
4023 valgrind_command=
4024
4025
4026 echo "$as_me:$LINENO: checking for egrep" >&5
4027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4028 if test "${ac_cv_prog_egrep+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4032     then ac_cv_prog_egrep='grep -E'
4033     else ac_cv_prog_egrep='egrep'
4034     fi
4035 fi
4036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4038  EGREP=$ac_cv_prog_egrep
4039
4040
4041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052 #include <stdlib.h>
4053 #include <stdarg.h>
4054 #include <string.h>
4055 #include <float.h>
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067   (eval $ac_compile) 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; } &&
4080          { ac_try='test -s conftest.$ac_objext'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   ac_cv_header_stdc=yes
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 ac_cv_header_stdc=no
4092 fi
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094
4095 if test $ac_cv_header_stdc = yes; then
4096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097   cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 #include <string.h>
4104
4105 _ACEOF
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107   $EGREP "memchr" >/dev/null 2>&1; then
4108   :
4109 else
4110   ac_cv_header_stdc=no
4111 fi
4112 rm -f conftest*
4113
4114 fi
4115
4116 if test $ac_cv_header_stdc = yes; then
4117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4118   cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 #include <stdlib.h>
4125
4126 _ACEOF
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128   $EGREP "free" >/dev/null 2>&1; then
4129   :
4130 else
4131   ac_cv_header_stdc=no
4132 fi
4133 rm -f conftest*
4134
4135 fi
4136
4137 if test $ac_cv_header_stdc = yes; then
4138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139   if test "$cross_compiling" = yes; then
4140   :
4141 else
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <ctype.h>
4149 #if ((' ' & 0x0FF) == 0x020)
4150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4152 #else
4153 # define ISLOWER(c) \
4154                    (('a' <= (c) && (c) <= 'i') \
4155                      || ('j' <= (c) && (c) <= 'r') \
4156                      || ('s' <= (c) && (c) <= 'z'))
4157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4158 #endif
4159
4160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4161 int
4162 main ()
4163 {
4164   int i;
4165   for (i = 0; i < 256; i++)
4166     if (XOR (islower (i), ISLOWER (i))
4167         || toupper (i) != TOUPPER (i))
4168       exit(2);
4169   exit (0);
4170 }
4171 _ACEOF
4172 rm -f conftest$ac_exeext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4174   (eval $ac_link) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   :
4184 else
4185   echo "$as_me: program exited with status $ac_status" >&5
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ( exit $ac_status )
4190 ac_cv_header_stdc=no
4191 fi
4192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4193 fi
4194 fi
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4198 if test $ac_cv_header_stdc = yes; then
4199
4200 cat >>confdefs.h <<\_ACEOF
4201 #define STDC_HEADERS 1
4202 _ACEOF
4203
4204 fi
4205
4206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4217                   inttypes.h stdint.h unistd.h
4218 do
4219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4220 echo "$as_me:$LINENO: checking for $ac_header" >&5
4221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 $ac_includes_default
4232
4233 #include <$ac_header>
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237   (eval $ac_compile) 2>conftest.er1
4238   ac_status=$?
4239   grep -v '^ *+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } &&
4244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; } &&
4250          { ac_try='test -s conftest.$ac_objext'
4251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252   (eval $ac_try) 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }; }; then
4256   eval "$as_ac_Header=yes"
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 eval "$as_ac_Header=no"
4262 fi
4263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4264 fi
4265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4268   cat >>confdefs.h <<_ACEOF
4269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4270 _ACEOF
4271
4272 fi
4273
4274 done
4275
4276
4277 if test "${ac_cv_header_valgrind_h+set}" = set; then
4278   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4279 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4280 if test "${ac_cv_header_valgrind_h+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 fi
4283 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4284 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4285 else
4286   # Is the header compilable?
4287 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4288 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 $ac_includes_default
4296 #include <valgrind.h>
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300   (eval $ac_compile) 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } &&
4307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest.$ac_objext'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   ac_header_compiler=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_header_compiler=no
4325 fi
4326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4328 echo "${ECHO_T}$ac_header_compiler" >&6
4329
4330 # Is the header present?
4331 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4332 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h.  */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h.  */
4339 #include <valgrind.h>
4340 _ACEOF
4341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4343   ac_status=$?
4344   grep -v '^ *+' conftest.er1 >conftest.err
4345   rm -f conftest.er1
4346   cat conftest.err >&5
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } >/dev/null; then
4349   if test -s conftest.err; then
4350     ac_cpp_err=$ac_c_preproc_warn_flag
4351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4352   else
4353     ac_cpp_err=
4354   fi
4355 else
4356   ac_cpp_err=yes
4357 fi
4358 if test -z "$ac_cpp_err"; then
4359   ac_header_preproc=yes
4360 else
4361   echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364   ac_header_preproc=no
4365 fi
4366 rm -f conftest.err conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4368 echo "${ECHO_T}$ac_header_preproc" >&6
4369
4370 # So?  What about this header?
4371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4372   yes:no: )
4373     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4374 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4375     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4376 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4377     ac_header_preproc=yes
4378     ;;
4379   no:yes:* )
4380     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4381 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4382     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4383 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4384     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4385 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4386     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4387 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4388     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4389 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4390     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4391 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4392     (
4393       cat <<\_ASBOX
4394 ## ------------------------------------------ ##
4395 ## Report this to the AC_PACKAGE_NAME lists.  ##
4396 ## ------------------------------------------ ##
4397 _ASBOX
4398     ) |
4399       sed "s/^/$as_me: WARNING:     /" >&2
4400     ;;
4401 esac
4402 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4403 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4404 if test "${ac_cv_header_valgrind_h+set}" = set; then
4405   echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407   ac_cv_header_valgrind_h=$ac_header_preproc
4408 fi
4409 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4410 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4411
4412 fi
4413 if test $ac_cv_header_valgrind_h = yes; then
4414   have_valgrind_h=yes
4415 else
4416   have_valgrind_h=no
4417 fi
4418
4419
4420
4421 if test x$ac_checking_valgrind != x ; then
4422   # It is certainly possible that there's valgrind but no valgrind.h.
4423   # GCC relies on making annotations so we must have both.
4424   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4425 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4426   cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 #include <valgrind/memcheck.h>
4433 #ifndef VALGRIND_DISCARD
4434 #error VALGRIND_DISCARD not defined
4435 #endif
4436 _ACEOF
4437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4439   ac_status=$?
4440   grep -v '^ *+' conftest.er1 >conftest.err
4441   rm -f conftest.er1
4442   cat conftest.err >&5
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } >/dev/null; then
4445   if test -s conftest.err; then
4446     ac_cpp_err=$ac_c_preproc_warn_flag
4447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4448   else
4449     ac_cpp_err=
4450   fi
4451 else
4452   ac_cpp_err=yes
4453 fi
4454 if test -z "$ac_cpp_err"; then
4455   gcc_cv_header_valgrind_memcheck_h=yes
4456 else
4457   echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460   gcc_cv_header_valgrind_memcheck_h=no
4461 fi
4462 rm -f conftest.err conftest.$ac_ext
4463   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4464 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4465   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4466 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4467   cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 #include <memcheck.h>
4474 #ifndef VALGRIND_DISCARD
4475 #error VALGRIND_DISCARD not defined
4476 #endif
4477 _ACEOF
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } >/dev/null; then
4486   if test -s conftest.err; then
4487     ac_cpp_err=$ac_c_preproc_warn_flag
4488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4489   else
4490     ac_cpp_err=
4491   fi
4492 else
4493   ac_cpp_err=yes
4494 fi
4495 if test -z "$ac_cpp_err"; then
4496   gcc_cv_header_memcheck_h=yes
4497 else
4498   echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501   gcc_cv_header_memcheck_h=no
4502 fi
4503 rm -f conftest.err conftest.$ac_ext
4504   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4505 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4506
4507 # Prepare PATH_SEPARATOR.
4508 # The user is always right.
4509 if test "${PATH_SEPARATOR+set}" != set; then
4510   echo "#! /bin/sh" >conf$$.sh
4511   echo  "exit 0"   >>conf$$.sh
4512   chmod +x conf$$.sh
4513   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4514     PATH_SEPARATOR=';'
4515   else
4516     PATH_SEPARATOR=:
4517   fi
4518   rm -f conf$$.sh
4519 fi
4520
4521 # Find out how to test for executable files. Don't use a zero-byte file,
4522 # as systems may use methods other than mode bits to determine executability.
4523 cat >conf$$.file <<_ASEOF
4524 #! /bin/sh
4525 exit 0
4526 _ASEOF
4527 chmod +x conf$$.file
4528 if test -x conf$$.file >/dev/null 2>&1; then
4529   ac_executable_p="test -x"
4530 else
4531   ac_executable_p="test -f"
4532 fi
4533 rm -f conf$$.file
4534
4535 # Extract the first word of "valgrind", so it can be a program name with args.
4536 set dummy valgrind; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_path_valgrind_path+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   case "$valgrind_path" in
4543   [\\/]* | ?:[\\/]*)
4544     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4545     ;;
4546   *)
4547     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4548     for ac_dir in $PATH; do
4549       IFS="$ac_save_IFS"
4550       test -z "$ac_dir" && ac_dir=.
4551       for ac_exec_ext in '' $ac_executable_extensions; do
4552         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4553           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4554             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4555             break 2
4556           fi
4557         fi
4558       done
4559     done
4560     IFS="$ac_save_IFS"
4561     ;;
4562 esac
4563 fi
4564 valgrind_path="$ac_cv_path_valgrind_path"
4565 if test -n "$valgrind_path"; then
4566   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4567 echo "${ECHO_T}$valgrind_path" >&6
4568 else
4569   echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4571 fi
4572
4573   if test "x$valgrind_path" = "x" \
4574     || (test $have_valgrind_h = no \
4575         && test $gcc_cv_header_memcheck_h = no \
4576         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4577         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4578 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4579    { (exit 1); exit 1; }; }
4580   fi
4581   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4582   valgrind_command="$valgrind_path -q"
4583
4584 cat >>confdefs.h <<\_ACEOF
4585 #define ENABLE_VALGRIND_CHECKING 1
4586 _ACEOF
4587
4588   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4589
4590 cat >>confdefs.h <<\_ACEOF
4591 #define HAVE_VALGRIND_MEMCHECK_H 1
4592 _ACEOF
4593
4594   fi
4595   if test $gcc_cv_header_memcheck_h = yes; then
4596
4597 cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_MEMCHECK_H 1
4599 _ACEOF
4600
4601   fi
4602 fi
4603
4604
4605
4606 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4607 if test "${enable_mapped_location+set}" = set; then
4608   enableval="$enable_mapped_location"
4609
4610 else
4611   enable_mapped_location=no
4612 fi;
4613
4614 if test "$enable_mapped_location" = yes ; then
4615
4616 cat >>confdefs.h <<\_ACEOF
4617 #define USE_MAPPED_LOCATION 1
4618 _ACEOF
4619
4620 fi
4621
4622 # Enable code coverage collection
4623 # Check whether --enable-coverage or --disable-coverage was given.
4624 if test "${enable_coverage+set}" = set; then
4625   enableval="$enable_coverage"
4626   case "${enableval}" in
4627   yes|noopt)
4628     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4629     ;;
4630   opt)
4631     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4632     ;;
4633   no)
4634     # a.k.a. --disable-coverage
4635     coverage_flags=""
4636     ;;
4637   *)
4638     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4639 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4640    { (exit 1); exit 1; }; }
4641     ;;
4642 esac
4643 else
4644   coverage_flags=""
4645 fi;
4646
4647
4648 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4649 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4650   enableval="$enable_gather_detailed_mem_stats"
4651
4652 else
4653   enable_gather_detailed_mem_stats=no
4654 fi;
4655 if test x$enable_gather_detailed_mem_stats = xyes ; then
4656
4657 cat >>confdefs.h <<\_ACEOF
4658 #define GATHER_STATISTICS 1
4659 _ACEOF
4660
4661 fi
4662
4663 # -------------------------------
4664 # Miscenalleous configure options
4665 # -------------------------------
4666
4667 # With stabs
4668
4669 # Check whether --with-stabs or --without-stabs was given.
4670 if test "${with_stabs+set}" = set; then
4671   withval="$with_stabs"
4672   stabs="$with_stabs"
4673 else
4674   stabs=no
4675 fi;
4676
4677 # Determine whether or not multilibs are enabled.
4678 # Check whether --enable-multilib or --disable-multilib was given.
4679 if test "${enable_multilib+set}" = set; then
4680   enableval="$enable_multilib"
4681
4682 else
4683   enable_multilib=yes
4684 fi;
4685
4686
4687 # Enable __cxa_atexit for C++.
4688 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4689 if test "${enable___cxa_atexit+set}" = set; then
4690   enableval="$enable___cxa_atexit"
4691
4692 fi;
4693
4694 # Enable threads
4695 # Pass with no value to take the default
4696 # Pass with a value to specify a thread package
4697 # Check whether --enable-threads or --disable-threads was given.
4698 if test "${enable_threads+set}" = set; then
4699   enableval="$enable_threads"
4700
4701 else
4702   enable_threads=''
4703 fi;
4704
4705 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4706 if test "${enable_objc_gc+set}" = set; then
4707   enableval="$enable_objc_gc"
4708   if test x$enable_objc_gc = xno; then
4709         objc_boehm_gc=''
4710 else
4711         objc_boehm_gc=1
4712 fi
4713 else
4714   objc_boehm_gc=''
4715 fi;
4716
4717
4718 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4719 if test "${with_dwarf2+set}" = set; then
4720   withval="$with_dwarf2"
4721   dwarf2="$with_dwarf2"
4722 else
4723   dwarf2=no
4724 fi;
4725
4726 # Check whether --enable-shared or --disable-shared was given.
4727 if test "${enable_shared+set}" = set; then
4728   enableval="$enable_shared"
4729
4730   case $enable_shared in
4731   yes | no) ;;
4732   *)
4733     enable_shared=no
4734     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4735     for pkg in $enableval; do
4736       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4737         enable_shared=yes
4738       fi
4739     done
4740     IFS="$ac_save_ifs"
4741     ;;
4742   esac
4743
4744 else
4745   enable_shared=yes
4746 fi;
4747
4748
4749
4750 # Check whether --with-sysroot or --without-sysroot was given.
4751 if test "${with_sysroot+set}" = set; then
4752   withval="$with_sysroot"
4753
4754  case ${with_sysroot} in
4755  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4756  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4757  esac
4758
4759  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4760  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4761
4762  if test "x$exec_prefix" = xNONE; then
4763   if test "x$prefix" = xNONE; then
4764    test_prefix=/usr/local
4765   else
4766    test_prefix=$prefix
4767   fi
4768  else
4769   test_prefix=$exec_prefix
4770  fi
4771  case ${TARGET_SYSTEM_ROOT} in
4772  "${test_prefix}"|"${test_prefix}/"*|\
4773  '${exec_prefix}'|'${exec_prefix}/'*)
4774    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4775    TARGET_SYSTEM_ROOT_DEFINE="$t"
4776    ;;
4777  esac
4778
4779 else
4780
4781  TARGET_SYSTEM_ROOT=
4782  TARGET_SYSTEM_ROOT_DEFINE=
4783  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4784
4785 fi;
4786
4787
4788
4789
4790 # Build with intermodule optimisations
4791 # Check whether --enable-intermodule or --disable-intermodule was given.
4792 if test "${enable_intermodule+set}" = set; then
4793   enableval="$enable_intermodule"
4794   case ${enable_intermodule} in
4795   yes) onestep="-onestep";;
4796   *) onestep="";;
4797 esac
4798 else
4799   onestep=""
4800 fi;
4801
4802
4803 # Sanity check enable_languages in case someone does not run the toplevel
4804 # configure # script.
4805 # Check whether --enable-languages or --disable-languages was given.
4806 if test "${enable_languages+set}" = set; then
4807   enableval="$enable_languages"
4808   case ,${enable_languages}, in
4809        ,,|,yes,)
4810                 # go safe -- we cannot be much sure without the toplevel
4811                 # configure's
4812                 # analysis of which target libs are present and usable
4813                 enable_languages=c
4814                 ;;
4815          *,all,*)
4816                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4817 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4818    { (exit 1); exit 1; }; }
4819                 ;;
4820         *,c,*)
4821                 ;;
4822         *)
4823                 enable_languages=c,${enable_languages}
4824                 ;;
4825 esac
4826 else
4827   enable_languages=c
4828 fi;
4829
4830 subdirs=
4831 for lang in ${srcdir}/*/config-lang.in
4832 do
4833         case $lang in
4834         # The odd quoting in the next line works around
4835         # an apparent bug in bash 1.12 on linux.
4836         ${srcdir}/[*]/config-lang.in) ;;
4837         *)
4838           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4839           if test "x$lang_alias" = x
4840           then
4841                 echo "$lang doesn't set \$language." 1>&2
4842                 exit 1
4843           fi
4844           case ",$enable_languages," in
4845           *,$lang_alias,*)
4846             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4847           esac
4848           ;;
4849         esac
4850 done
4851
4852
4853 # -------------------------
4854 # Checks for other programs
4855 # -------------------------
4856
4857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4858 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   cat >conftest.make <<\_ACEOF
4864 all:
4865         @echo 'ac_maketemp="$(MAKE)"'
4866 _ACEOF
4867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4869 if test -n "$ac_maketemp"; then
4870   eval ac_cv_prog_make_${ac_make}_set=yes
4871 else
4872   eval ac_cv_prog_make_${ac_make}_set=no
4873 fi
4874 rm -f conftest.make
4875 fi
4876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4877   echo "$as_me:$LINENO: result: yes" >&5
4878 echo "${ECHO_T}yes" >&6
4879   SET_MAKE=
4880 else
4881   echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883   SET_MAKE="MAKE=${MAKE-make}"
4884 fi
4885
4886
4887 # Find some useful tools
4888 for ac_prog in gawk mawk nawk awk
4889 do
4890   # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_prog_AWK+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   if test -n "$AWK"; then
4898   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907     ac_cv_prog_AWK="$ac_prog"
4908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912 done
4913
4914 fi
4915 fi
4916 AWK=$ac_cv_prog_AWK
4917 if test -n "$AWK"; then
4918   echo "$as_me:$LINENO: result: $AWK" >&5
4919 echo "${ECHO_T}$AWK" >&6
4920 else
4921   echo "$as_me:$LINENO: result: no" >&5
4922 echo "${ECHO_T}no" >&6
4923 fi
4924
4925   test -n "$AWK" && break
4926 done
4927
4928 # We need awk to create options.c and options.h.
4929 # Bail out if it's missing.
4930 case ${AWK} in
4931   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4932 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4933    { (exit 1); exit 1; }; } ;;
4934 esac
4935
4936 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4938 if test "${gcc_cv_prog_LN_S+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   rm -f conftestdata_t
4942 echo >conftestdata_f
4943 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4944 then
4945   gcc_cv_prog_LN_S="ln -s"
4946 else
4947   if ln conftestdata_f conftestdata_t 2>/dev/null
4948   then
4949     gcc_cv_prog_LN_S=ln
4950   else
4951     gcc_cv_prog_LN_S=cp
4952   fi
4953 fi
4954 rm -f conftestdata_f conftestdata_t
4955
4956 fi
4957 LN_S="$gcc_cv_prog_LN_S"
4958 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4959   echo "$as_me:$LINENO: result: yes" >&5
4960 echo "${ECHO_T}yes" >&6
4961 else
4962   if test "$gcc_cv_prog_LN_S" = "ln"; then
4963     echo "$as_me:$LINENO: result: no, using ln" >&5
4964 echo "${ECHO_T}no, using ln" >&6
4965   else
4966     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4967 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4968   fi
4969 fi
4970
4971 echo "$as_me:$LINENO: checking whether ln works" >&5
4972 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4973 if test "${acx_cv_prog_LN+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   rm -f conftestdata_t
4977 echo >conftestdata_f
4978 if ln conftestdata_f conftestdata_t 2>/dev/null
4979 then
4980   acx_cv_prog_LN=ln
4981 else
4982   acx_cv_prog_LN=no
4983 fi
4984 rm -f conftestdata_f conftestdata_t
4985
4986 fi
4987 if test $acx_cv_prog_LN = no; then
4988   LN="$LN_S"
4989   echo "$as_me:$LINENO: result: no, using $LN" >&5
4990 echo "${ECHO_T}no, using $LN" >&6
4991 else
4992   LN="$acx_cv_prog_LN"
4993   echo "$as_me:$LINENO: result: yes" >&5
4994 echo "${ECHO_T}yes" >&6
4995 fi
4996
4997 if test -n "$ac_tool_prefix"; then
4998   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   if test -n "$RANLIB"; then
5006   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013   for ac_exec_ext in '' $ac_executable_extensions; do
5014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020 done
5021
5022 fi
5023 fi
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026   echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5028 else
5029   echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5031 fi
5032
5033 fi
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035   ac_ct_RANLIB=$RANLIB
5036   # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   if test -n "$ac_ct_RANLIB"; then
5044   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051   for ac_exec_ext in '' $ac_executable_extensions; do
5052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053     ac_cv_prog_ac_ct_RANLIB="ranlib"
5054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058 done
5059
5060   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5061 fi
5062 fi
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5067 else
5068   echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 fi
5071
5072   RANLIB=$ac_ct_RANLIB
5073 else
5074   RANLIB="$ac_cv_prog_RANLIB"
5075 fi
5076
5077 case "${host}" in
5078 *-*-darwin*)
5079   # By default, the Darwin ranlib will not treat common symbols as
5080   # definitions when  building the archive table of contents.  Other
5081   # ranlibs do that; pass an option to the Darwin ranlib that makes
5082   # it behave similarly.
5083   ranlib_flags="-c"
5084   ;;
5085 *)
5086   ranlib_flags=""
5087 esac
5088
5089
5090 # Find a good install program.  We prefer a C program (faster),
5091 # so one script is as good as another.  But avoid the broken or
5092 # incompatible versions:
5093 # SysV /etc/install, /usr/sbin/install
5094 # SunOS /usr/etc/install
5095 # IRIX /sbin/install
5096 # AIX /bin/install
5097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5099 # ./install, which can be erroneously created by make from ./install.sh.
5100 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5101 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5102 if test -z "$INSTALL"; then
5103 if test "${ac_cv_path_install+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5107   for ac_dir in $PATH; do
5108     # Account for people who put trailing slashes in PATH elements.
5109     case "$ac_dir/" in
5110     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5111     *)
5112       # OSF1 and SCO ODT 3.0 have their own names for install.
5113       for ac_prog in ginstall scoinst install; do
5114         if test -f $ac_dir/$ac_prog; then
5115           if test $ac_prog = install &&
5116             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5117             # AIX install.  It has an incompatible calling convention.
5118             # OSF/1 installbsd also uses dspmsg, but is usable.
5119             :
5120           else
5121             ac_cv_path_install="$ac_dir/$ac_prog -c"
5122             break 2
5123           fi
5124         fi
5125       done
5126       ;;
5127     esac
5128   done
5129   IFS="$ac_save_IFS"
5130
5131 fi
5132   if test "${ac_cv_path_install+set}" = set; then
5133     INSTALL="$ac_cv_path_install"
5134   else
5135     # As a last resort, use the slow shell script.  We don't cache a
5136     # path for INSTALL within a source directory, because that will
5137     # break other packages using the cache if that directory is
5138     # removed, or if the path is relative.
5139     INSTALL="$ac_install_sh"
5140   fi
5141 fi
5142 echo "$as_me:$LINENO: result: $INSTALL" >&5
5143 echo "${ECHO_T}$INSTALL" >&6
5144
5145 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5146 # It thinks the first close brace ends the variable substitution.
5147 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5148
5149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5150
5151
5152 # See if cmp has --ignore-initial.
5153 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5154 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5155 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158    echo abfoo >t1
5159   echo cdfoo >t2
5160   gcc_cv_prog_cmp_skip=slowcompare
5161   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5162     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5163       :
5164     else
5165       gcc_cv_prog_cmp_skip=gnucompare
5166     fi
5167   fi
5168   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5169     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5170       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5171         :
5172       else
5173         gcc_cv_prog_cmp_skip=fastcompare
5174       fi
5175     fi
5176   fi
5177   rm t1 t2
5178
5179 fi
5180 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5181 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5182 make_compare_target=$gcc_cv_prog_cmp_skip
5183
5184
5185
5186 # See if we have the mktemp command.
5187 # Extract the first word of "mktemp", so it can be a program name with args.
5188 set dummy mktemp; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if test -n "$have_mktemp_command"; then
5195   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202   for ac_exec_ext in '' $ac_executable_extensions; do
5203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_prog_have_mktemp_command="yes"
5205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209 done
5210
5211   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5212 fi
5213 fi
5214 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5215 if test -n "$have_mktemp_command"; then
5216   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5217 echo "${ECHO_T}$have_mktemp_command" >&6
5218 else
5219   echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223
5224 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5225
5226 # See if makeinfo has been installed and is modern enough
5227 # that we can use it.
5228 # Extract the first word of "makeinfo", so it can be a program name with args.
5229 set dummy makeinfo; ac_word=$2
5230 echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5232 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   if test -n "$MAKEINFO"; then
5236   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243   for ac_exec_ext in '' $ac_executable_extensions; do
5244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245     ac_cv_prog_MAKEINFO="makeinfo"
5246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250 done
5251
5252 fi
5253 fi
5254 MAKEINFO=$ac_cv_prog_MAKEINFO
5255 if test -n "$MAKEINFO"; then
5256   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5257 echo "${ECHO_T}$MAKEINFO" >&6
5258 else
5259   echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5261 fi
5262
5263 if test -n "$MAKEINFO"; then
5264   # Found it, now check the version.
5265   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5266 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5267 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270     ac_prog_version=`$MAKEINFO --version 2>&1 |
5271                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5272   echo "configure:5272: version of makeinfo is $ac_prog_version" >&5
5273   case $ac_prog_version in
5274     '')     gcc_cv_prog_makeinfo_modern=no;;
5275     4.[2-9]*)
5276             gcc_cv_prog_makeinfo_modern=yes;;
5277     *)      gcc_cv_prog_makeinfo_modern=no;;
5278   esac
5279
5280 fi
5281 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5282 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5283 else
5284   gcc_cv_prog_makeinfo_modern=no
5285 fi
5286
5287 if test $gcc_cv_prog_makeinfo_modern = no; then
5288   MAKEINFO="$MISSING makeinfo"
5289   { echo "$as_me:$LINENO: WARNING:
5290 *** Makeinfo is missing or too old.
5291 *** Info documentation will not be built." >&5
5292 echo "$as_me: WARNING:
5293 *** Makeinfo is missing or too old.
5294 *** Info documentation will not be built." >&2;}
5295   BUILD_INFO=
5296 else
5297   BUILD_INFO=info
5298 fi
5299
5300
5301 # Is pod2man recent enough to regenerate manpages?
5302 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5303 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5304 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5305   echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6
5307   GENERATED_MANPAGES=generated-manpages
5308 else
5309   echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5311   GENERATED_MANPAGES=
5312 fi
5313
5314
5315 # How about lex?
5316 for ac_prog in flex
5317 do
5318   # Extract the first word of "$ac_prog", so it can be a program name with args.
5319 set dummy $ac_prog; ac_word=$2
5320 echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322 if test "${ac_cv_prog_FLEX+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   if test -n "$FLEX"; then
5326   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333   for ac_exec_ext in '' $ac_executable_extensions; do
5334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335     ac_cv_prog_FLEX="$ac_prog"
5336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340 done
5341
5342 fi
5343 fi
5344 FLEX=$ac_cv_prog_FLEX
5345 if test -n "$FLEX"; then
5346   echo "$as_me:$LINENO: result: $FLEX" >&5
5347 echo "${ECHO_T}$FLEX" >&6
5348 else
5349   echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6
5351 fi
5352
5353   test -n "$FLEX" && break
5354 done
5355 test -n "$FLEX" || FLEX="$MISSING flex"
5356
5357
5358 # Bison?
5359 for ac_prog in bison
5360 do
5361   # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_BISON+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   if test -n "$BISON"; then
5369   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376   for ac_exec_ext in '' $ac_executable_extensions; do
5377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378     ac_cv_prog_BISON="$ac_prog"
5379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383 done
5384
5385 fi
5386 fi
5387 BISON=$ac_cv_prog_BISON
5388 if test -n "$BISON"; then
5389   echo "$as_me:$LINENO: result: $BISON" >&5
5390 echo "${ECHO_T}$BISON" >&6
5391 else
5392   echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394 fi
5395
5396   test -n "$BISON" && break
5397 done
5398 test -n "$BISON" || BISON="$MISSING bison"
5399
5400
5401 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
5402 # check for build == host before using them.
5403
5404 # NM
5405 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5406   && test -d ../binutils ; then
5407   NM='$(objdir)/../binutils/nm-new'
5408 else
5409   # Extract the first word of "nm", so it can be a program name with args.
5410 set dummy nm; ac_word=$2
5411 echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5413 if test "${ac_cv_prog_NM+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   if test -n "$NM"; then
5417   ac_cv_prog_NM="$NM" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424   for ac_exec_ext in '' $ac_executable_extensions; do
5425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426     ac_cv_prog_NM="nm"
5427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431 done
5432
5433   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5434 fi
5435 fi
5436 NM=$ac_cv_prog_NM
5437 if test -n "$NM"; then
5438   echo "$as_me:$LINENO: result: $NM" >&5
5439 echo "${ECHO_T}$NM" >&6
5440 else
5441   echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5443 fi
5444
5445 fi
5446
5447 # AR
5448 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5449   && test -d ../binutils ; then
5450   AR='$(objdir)/../binutils/ar'
5451 else
5452   # Extract the first word of "ar", so it can be a program name with args.
5453 set dummy ar; ac_word=$2
5454 echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5456 if test "${ac_cv_prog_AR+set}" = set; then
5457   echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459   if test -n "$AR"; then
5460   ac_cv_prog_AR="$AR" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467   for ac_exec_ext in '' $ac_executable_extensions; do
5468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469     ac_cv_prog_AR="ar"
5470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474 done
5475
5476   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5477 fi
5478 fi
5479 AR=$ac_cv_prog_AR
5480 if test -n "$AR"; then
5481   echo "$as_me:$LINENO: result: $AR" >&5
5482 echo "${ECHO_T}$AR" >&6
5483 else
5484   echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5486 fi
5487
5488 fi
5489
5490
5491 # --------------------
5492 # Checks for C headers
5493 # --------------------
5494
5495 echo "$as_me:$LINENO: checking for GNU C library" >&5
5496 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5497 if test "${gcc_cv_glibc+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h.  */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h.  */
5506 #include <features.h>
5507 int
5508 main ()
5509 {
5510
5511 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5512 #error Not a GNU C library system
5513 #endif
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520   (eval $ac_compile) 2>conftest.er1
5521   ac_status=$?
5522   grep -v '^ *+' conftest.er1 >conftest.err
5523   rm -f conftest.er1
5524   cat conftest.err >&5
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); } &&
5527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529   (eval $ac_try) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); }; } &&
5533          { ac_try='test -s conftest.$ac_objext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   gcc_cv_glibc=yes
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 gcc_cv_glibc=no
5545 fi
5546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548
5549 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5550 echo "${ECHO_T}$gcc_cv_glibc" >&6
5551 if test $gcc_cv_glibc = yes; then
5552
5553 cat >>confdefs.h <<\_ACEOF
5554 #define _GNU_SOURCE 1
5555 _ACEOF
5556
5557 fi
5558
5559 # Need to reject headers which give warnings, so that the -Werror bootstrap
5560 # works later. *sigh*  This needs to come before all header checks.
5561
5562 ac_c_preproc_warn_flag=yes
5563
5564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5566 if test "${ac_cv_header_stdc+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h.  */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h.  */
5575 #include <stdlib.h>
5576 #include <stdarg.h>
5577 #include <string.h>
5578 #include <float.h>
5579
5580 int
5581 main ()
5582 {
5583
5584   ;
5585   return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590   (eval $ac_compile) 2>conftest.er1
5591   ac_status=$?
5592   grep -v '^ *+' conftest.er1 >conftest.err
5593   rm -f conftest.er1
5594   cat conftest.err >&5
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } &&
5597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; } &&
5603          { ac_try='test -s conftest.$ac_objext'
5604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605   (eval $ac_try) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   ac_cv_header_stdc=yes
5610 else
5611   echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 ac_cv_header_stdc=no
5615 fi
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5617
5618 if test $ac_cv_header_stdc = yes; then
5619   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620   cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 #include <string.h>
5627
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630   $EGREP "memchr" >/dev/null 2>&1; then
5631   :
5632 else
5633   ac_cv_header_stdc=no
5634 fi
5635 rm -f conftest*
5636
5637 fi
5638
5639 if test $ac_cv_header_stdc = yes; then
5640   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 #include <stdlib.h>
5648
5649 _ACEOF
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651   $EGREP "free" >/dev/null 2>&1; then
5652   :
5653 else
5654   ac_cv_header_stdc=no
5655 fi
5656 rm -f conftest*
5657
5658 fi
5659
5660 if test $ac_cv_header_stdc = yes; then
5661   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662   if test "$cross_compiling" = yes; then
5663   :
5664 else
5665   cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671 #include <ctype.h>
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 #else
5676 # define ISLOWER(c) \
5677                    (('a' <= (c) && (c) <= 'i') \
5678                      || ('j' <= (c) && (c) <= 'r') \
5679                      || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5681 #endif
5682
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5684 int
5685 main ()
5686 {
5687   int i;
5688   for (i = 0; i < 256; i++)
5689     if (XOR (islower (i), ISLOWER (i))
5690         || toupper (i) != TOUPPER (i))
5691       exit(2);
5692   exit (0);
5693 }
5694 _ACEOF
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697   (eval $ac_link) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702   (eval $ac_try) 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); }; }; then
5706   :
5707 else
5708   echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ( exit $ac_status )
5713 ac_cv_header_stdc=no
5714 fi
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 fi
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define STDC_HEADERS 1
5725 _ACEOF
5726
5727 fi
5728
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5742 #include <time.h>
5743
5744 int
5745 main ()
5746 {
5747 if ((struct tm *) 0)
5748 return 0;
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755   (eval $ac_compile) 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; } &&
5768          { ac_try='test -s conftest.$ac_objext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   ac_cv_header_time=yes
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 ac_cv_header_time=no
5780 fi
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5784 echo "${ECHO_T}$ac_cv_header_time" >&6
5785 if test $ac_cv_header_time = yes; then
5786
5787 cat >>confdefs.h <<\_ACEOF
5788 #define TIME_WITH_SYS_TIME 1
5789 _ACEOF
5790
5791 fi
5792
5793 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5794 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5795 if test "${gcc_cv_header_string+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 #include <string.h>
5805 #include <strings.h>
5806 int
5807 main ()
5808 {
5809
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816   (eval $ac_compile) 2>conftest.er1
5817   ac_status=$?
5818   grep -v '^ *+' conftest.er1 >conftest.err
5819   rm -f conftest.er1
5820   cat conftest.err >&5
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; } &&
5829          { ac_try='test -s conftest.$ac_objext'
5830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831   (eval $ac_try) 2>&5
5832   ac_status=$?
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); }; }; then
5835   gcc_cv_header_string=yes
5836 else
5837   echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 gcc_cv_header_string=no
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5845 echo "${ECHO_T}$gcc_cv_header_string" >&6
5846 if test $gcc_cv_header_string = yes; then
5847
5848 cat >>confdefs.h <<\_ACEOF
5849 #define STRING_WITH_STRINGS 1
5850 _ACEOF
5851
5852 fi
5853
5854 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5855 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5856 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865 #include <sys/types.h>
5866 #include <sys/wait.h>
5867 #ifndef WEXITSTATUS
5868 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5869 #endif
5870 #ifndef WIFEXITED
5871 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5872 #endif
5873
5874 int
5875 main ()
5876 {
5877   int s;
5878   wait (&s);
5879   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886   (eval $ac_compile) 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } &&
5893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895   (eval $ac_try) 2>&5
5896   ac_status=$?
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); }; } &&
5899          { ac_try='test -s conftest.$ac_objext'
5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901   (eval $ac_try) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; }; then
5905   ac_cv_header_sys_wait_h=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_header_sys_wait_h=no
5911 fi
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913 fi
5914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5915 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5916 if test $ac_cv_header_sys_wait_h = yes; then
5917
5918 cat >>confdefs.h <<\_ACEOF
5919 #define HAVE_SYS_WAIT_H 1
5920 _ACEOF
5921
5922 fi
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5946                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5947                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5948                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5949 do
5950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <$ac_header>
5963 _ACEOF
5964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5966   ac_status=$?
5967   grep -v '^ *+' conftest.er1 >conftest.err
5968   rm -f conftest.er1
5969   cat conftest.err >&5
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } >/dev/null; then
5972   if test -s conftest.err; then
5973     ac_cpp_err=$ac_c_preproc_warn_flag
5974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5975   else
5976     ac_cpp_err=
5977   fi
5978 else
5979   ac_cpp_err=yes
5980 fi
5981 if test -z "$ac_cpp_err"; then
5982   eval "$as_ac_Header=yes"
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987   eval "$as_ac_Header=no"
5988 fi
5989 rm -f conftest.err conftest.$ac_ext
5990 fi
5991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994   cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
5997
5998 fi
5999 done
6000
6001
6002 # Check for thread headers.
6003 echo "$as_me:$LINENO: checking for thread.h" >&5
6004 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6005 if test "${ac_cv_header_thread_h+set}" = set; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 #include <thread.h>
6015 _ACEOF
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018   ac_status=$?
6019   grep -v '^ *+' conftest.er1 >conftest.err
6020   rm -f conftest.er1
6021   cat conftest.err >&5
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } >/dev/null; then
6024   if test -s conftest.err; then
6025     ac_cpp_err=$ac_c_preproc_warn_flag
6026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027   else
6028     ac_cpp_err=
6029   fi
6030 else
6031   ac_cpp_err=yes
6032 fi
6033 if test -z "$ac_cpp_err"; then
6034   ac_cv_header_thread_h=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039   ac_cv_header_thread_h=no
6040 fi
6041 rm -f conftest.err conftest.$ac_ext
6042 fi
6043 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6045 if test $ac_cv_header_thread_h = yes; then
6046   have_thread_h=yes
6047 else
6048   have_thread_h=
6049 fi
6050
6051 echo "$as_me:$LINENO: checking for pthread.h" >&5
6052 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_pthread_h+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #include <pthread.h>
6063 _ACEOF
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066   ac_status=$?
6067   grep -v '^ *+' conftest.er1 >conftest.err
6068   rm -f conftest.er1
6069   cat conftest.err >&5
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } >/dev/null; then
6072   if test -s conftest.err; then
6073     ac_cpp_err=$ac_c_preproc_warn_flag
6074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6075   else
6076     ac_cpp_err=
6077   fi
6078 else
6079   ac_cpp_err=yes
6080 fi
6081 if test -z "$ac_cpp_err"; then
6082   ac_cv_header_pthread_h=yes
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087   ac_cv_header_pthread_h=no
6088 fi
6089 rm -f conftest.err conftest.$ac_ext
6090 fi
6091 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6092 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6093 if test $ac_cv_header_pthread_h = yes; then
6094   have_pthread_h=yes
6095 else
6096   have_pthread_h=
6097 fi
6098
6099
6100 # These tests can't be done till we know if we have limits.h.
6101 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6102 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6103 if test "${gcc_cv_decl_char_bit+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112 #ifdef HAVE_LIMITS_H
6113 #include <limits.h>
6114 #endif
6115 #ifdef CHAR_BIT
6116 found
6117 #endif
6118 _ACEOF
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120   $EGREP "found" >/dev/null 2>&1; then
6121   gcc_cv_decl_char_bit=yes
6122 else
6123   gcc_cv_decl_char_bit=no
6124 fi
6125 rm -f conftest*
6126
6127
6128 fi
6129 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6130 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6131 if test $gcc_cv_decl_char_bit = no; then
6132   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6133 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6134 if test "${gcc_cv_c_nbby+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   i=8
6138  gcc_cv_c_nbby=
6139  while test $i -lt 65; do
6140    cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146
6147 int
6148 main ()
6149 {
6150 switch(0) {
6151   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6152   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6153   ; }
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160   (eval $ac_compile) 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; } &&
6173          { ac_try='test -s conftest.$ac_objext'
6174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175   (eval $ac_try) 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; }; then
6179   gcc_cv_c_nbby=$i; break
6180 else
6181   echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 fi
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186    i=`expr $i + 1`
6187  done
6188  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6189
6190 fi
6191 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6192 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6193 if test $gcc_cv_c_nbby = failed; then
6194   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6195 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6196    { (exit 1); exit 1; }; }
6197 else
6198
6199 cat >>confdefs.h <<_ACEOF
6200 #define CHAR_BIT $gcc_cv_c_nbby
6201 _ACEOF
6202
6203 fi
6204 fi
6205 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6207 if test "${ac_cv_c_bigendian+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   ac_cv_c_bigendian=unknown
6211 # See if sys/param.h defines the BYTE_ORDER macro.
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218 #include <sys/types.h>
6219 #include <sys/param.h>
6220 int
6221 main ()
6222 {
6223
6224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6225  bogus endian macros
6226 #endif
6227   ;
6228   return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233   (eval $ac_compile) 2>conftest.er1
6234   ac_status=$?
6235   grep -v '^ *+' conftest.er1 >conftest.err
6236   rm -f conftest.er1
6237   cat conftest.err >&5
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } &&
6240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   # It does; now see whether it defined to BIG_ENDIAN or not.
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h.  */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h.  */
6259 #include <sys/types.h>
6260 #include <sys/param.h>
6261 int
6262 main ()
6263 {
6264
6265 #if BYTE_ORDER != BIG_ENDIAN
6266  not big endian
6267 #endif
6268   ;
6269   return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274   (eval $ac_compile) 2>conftest.er1
6275   ac_status=$?
6276   grep -v '^ *+' conftest.er1 >conftest.err
6277   rm -f conftest.er1
6278   cat conftest.err >&5
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } &&
6281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; } &&
6287          { ac_try='test -s conftest.$ac_objext'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; }; then
6293   ac_cv_c_bigendian=yes
6294 else
6295   echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_cv_c_bigendian=no
6299 fi
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 fi
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 if test $ac_cv_c_bigendian = unknown; then
6308 if test "$cross_compiling" = yes; then
6309    echo $ac_n "cross-compiling... " 2>&6
6310 else
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 main () {
6318   /* Are we little or big endian?  From Harbison&Steele.  */
6319   union
6320   {
6321     long l;
6322     char c[sizeof (long)];
6323   } u;
6324   u.l = 1;
6325   exit (u.c[sizeof (long) - 1] == 1);
6326 }
6327 _ACEOF
6328 rm -f conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330   (eval $ac_link) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_cv_c_bigendian=no
6340 else
6341   echo "$as_me: program exited with status $ac_status" >&5
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ( exit $ac_status )
6346 ac_cv_c_bigendian=yes
6347 fi
6348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6349 fi
6350 fi
6351 fi
6352 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6354 if test $ac_cv_c_bigendian = unknown; then
6355 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6356 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6357
6358 cat >conftest.c <<EOF
6359 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6360 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6361 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6362 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6363 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6364 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6365 int main() { _ascii (); _ebcdic (); return 0; }
6366 EOF
6367  if test -f conftest.c ; then
6368      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6369         if test `grep -l BIGenDianSyS conftest.o` ; then
6370            echo $ac_n ' big endian probe OK, ' 1>&6
6371            ac_cv_c_bigendian=yes
6372         fi
6373         if test `grep -l LiTTleEnDian conftest.o` ; then
6374            echo $ac_n ' little endian probe OK, ' 1>&6
6375            if test $ac_cv_c_bigendian = yes ; then
6376             ac_cv_c_bigendian=unknown;
6377            else
6378             ac_cv_c_bigendian=no
6379            fi
6380         fi
6381         echo $ac_n 'guessing bigendian ...  ' >&6
6382      fi
6383   fi
6384 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6385 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6386 fi
6387 if test $ac_cv_c_bigendian = yes; then
6388
6389 cat >>confdefs.h <<\_ACEOF
6390 #define WORDS_BIGENDIAN 1
6391 _ACEOF
6392
6393
6394 cat >>confdefs.h <<\_ACEOF
6395 #define HOST_WORDS_BIG_ENDIAN 1
6396 _ACEOF
6397
6398   BYTEORDER=4321
6399 else
6400   BYTEORDER=1234
6401 fi
6402
6403 cat >>confdefs.h <<_ACEOF
6404 #define BYTEORDER $BYTEORDER
6405 _ACEOF
6406
6407 if test $ac_cv_c_bigendian = unknown; then
6408   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6409 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6410    { (exit 1); exit 1; }; }
6411 fi
6412
6413
6414 # --------
6415 # UNSORTED
6416 # --------
6417
6418 # Stage specific cflags for build.
6419 stage1_cflags=
6420 case $build in
6421 vax-*-*)
6422   if test x$GCC = xyes
6423   then
6424     stage1_cflags="-Wa,-J"
6425   else
6426     stage1_cflags="-J"
6427   fi
6428   ;;
6429 powerpc-*-darwin*)
6430   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6431   # sources; use -no-cpp-precomp to get to GNU cpp.
6432   # Apple's GCC has bugs in designated initializer handling, so disable
6433   # that too.
6434   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6435   ;;
6436 esac
6437
6438
6439 # These libraries may be used by collect2.
6440 # We may need a special search path to get them linked.
6441 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6442 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6443 if test "${gcc_cv_collect2_libs+set}" = set; then
6444   echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446   save_LIBS="$LIBS"
6447 for libs in '' -lld -lmld \
6448                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6449                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6450 do
6451         LIBS="$libs"
6452         cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458
6459 /* Override any gcc2 internal prototype to avoid an error.  */
6460 #ifdef __cplusplus
6461 extern "C"
6462 #endif
6463 /* We use char because int might match the return type of a gcc2
6464    builtin and then its argument prototype would still apply.  */
6465 char ldopen ();
6466 int
6467 main ()
6468 {
6469 ldopen ();
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476   (eval $ac_link) 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; } &&
6489          { ac_try='test -s conftest$ac_exeext'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; }; then
6495   gcc_cv_collect2_libs="$libs"; break
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 fi
6501 rm -f conftest.err conftest.$ac_objext \
6502       conftest$ac_exeext conftest.$ac_ext
6503 done
6504 LIBS="$save_LIBS"
6505 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6506 fi
6507 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6508 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6509 case $gcc_cv_collect2_libs in
6510         "none required")        ;;
6511         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6512 esac
6513
6514
6515 # When building Ada code on Alpha, we need exc_resume which is usually in
6516 # -lexc.  So test for it.
6517 save_LIBS="$LIBS"
6518 LIBS=
6519 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6520 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6521 if test "${ac_cv_search_exc_resume+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   ac_func_search_save_LIBS=$LIBS
6525 ac_cv_search_exc_resume=no
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532
6533 /* Override any gcc2 internal prototype to avoid an error.  */
6534 #ifdef __cplusplus
6535 extern "C"
6536 #endif
6537 /* We use char because int might match the return type of a gcc2
6538    builtin and then its argument prototype would still apply.  */
6539 char exc_resume ();
6540 int
6541 main ()
6542 {
6543 exc_resume ();
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550   (eval $ac_link) 2>conftest.er1
6551   ac_status=$?
6552   grep -v '^ *+' conftest.er1 >conftest.err
6553   rm -f conftest.er1
6554   cat conftest.err >&5
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; } &&
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_exc_resume="none required"
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 fi
6575 rm -f conftest.err conftest.$ac_objext \
6576       conftest$ac_exeext conftest.$ac_ext
6577 if test "$ac_cv_search_exc_resume" = no; then
6578   for ac_lib in exc; do
6579     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6580     cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h.  */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h.  */
6586
6587 /* Override any gcc2 internal prototype to avoid an error.  */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 /* We use char because int might match the return type of a gcc2
6592    builtin and then its argument prototype would still apply.  */
6593 char exc_resume ();
6594 int
6595 main ()
6596 {
6597 exc_resume ();
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604   (eval $ac_link) 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } &&
6611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613   (eval $ac_try) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; } &&
6617          { ac_try='test -s conftest$ac_exeext'
6618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619   (eval $ac_try) 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; }; then
6623   ac_cv_search_exc_resume="-l$ac_lib"
6624 break
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 fi
6630 rm -f conftest.err conftest.$ac_objext \
6631       conftest$ac_exeext conftest.$ac_ext
6632   done
6633 fi
6634 LIBS=$ac_func_search_save_LIBS
6635 fi
6636 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6637 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6638 if test "$ac_cv_search_exc_resume" != no; then
6639   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6640
6641 fi
6642
6643 GNAT_LIBEXC="$LIBS"
6644 LIBS="$save_LIBS"
6645
6646
6647 # Some systems put ldexp and frexp in libm instead of libc; assume
6648 # they're both in the same place.  jcf-dump needs them.
6649 save_LIBS="$LIBS"
6650 LIBS=
6651 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6652 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6653 if test "${ac_cv_search_ldexp+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   ac_func_search_save_LIBS=$LIBS
6657 ac_cv_search_ldexp=no
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664
6665 /* Override any gcc2 internal prototype to avoid an error.  */
6666 #ifdef __cplusplus
6667 extern "C"
6668 #endif
6669 /* We use char because int might match the return type of a gcc2
6670    builtin and then its argument prototype would still apply.  */
6671 char ldexp ();
6672 int
6673 main ()
6674 {
6675 ldexp ();
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682   (eval $ac_link) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest$ac_exeext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_search_ldexp="none required"
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 fi
6707 rm -f conftest.err conftest.$ac_objext \
6708       conftest$ac_exeext conftest.$ac_ext
6709 if test "$ac_cv_search_ldexp" = no; then
6710   for ac_lib in m; do
6711     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6712     cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h.  */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h.  */
6718
6719 /* Override any gcc2 internal prototype to avoid an error.  */
6720 #ifdef __cplusplus
6721 extern "C"
6722 #endif
6723 /* We use char because int might match the return type of a gcc2
6724    builtin and then its argument prototype would still apply.  */
6725 char ldexp ();
6726 int
6727 main ()
6728 {
6729 ldexp ();
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736   (eval $ac_link) 2>conftest.er1
6737   ac_status=$?
6738   grep -v '^ *+' conftest.er1 >conftest.err
6739   rm -f conftest.er1
6740   cat conftest.err >&5
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; } &&
6749          { ac_try='test -s conftest$ac_exeext'
6750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751   (eval $ac_try) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); }; }; then
6755   ac_cv_search_ldexp="-l$ac_lib"
6756 break
6757 else
6758   echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 fi
6762 rm -f conftest.err conftest.$ac_objext \
6763       conftest$ac_exeext conftest.$ac_ext
6764   done
6765 fi
6766 LIBS=$ac_func_search_save_LIBS
6767 fi
6768 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6769 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6770 if test "$ac_cv_search_ldexp" != no; then
6771   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6772
6773 fi
6774
6775 LDEXP_LIB="$LIBS"
6776 LIBS="$save_LIBS"
6777
6778
6779 # Use <inttypes.h> only if it exists,
6780 # doesn't clash with <sys/types.h>, and declares intmax_t.
6781 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6782 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6783 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h.  */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h.  */
6792 #include <sys/types.h>
6793 #include <inttypes.h>
6794 int
6795 main ()
6796 {
6797 intmax_t i = -1;
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804   (eval $ac_compile) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813   (eval $ac_try) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); }; } &&
6817          { ac_try='test -s conftest.$ac_objext'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; }; then
6823   gcc_cv_header_inttypes_h=yes
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 gcc_cv_header_inttypes_h=no
6829 fi
6830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 fi
6832
6833 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6834 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6835 if test $gcc_cv_header_inttypes_h = yes; then
6836
6837 cat >>confdefs.h <<\_ACEOF
6838 #define HAVE_INTTYPES_H 1
6839 _ACEOF
6840
6841 fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6870         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6871         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6872         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6873         setlocale
6874 do
6875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6876 echo "$as_me:$LINENO: checking for $ac_func" >&5
6877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6878 if eval "test \"\${$as_ac_var+set}\" = set"; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6889 #define $ac_func innocuous_$ac_func
6890
6891 /* System header to define __stub macros and hopefully few prototypes,
6892     which can conflict with char $ac_func (); below.
6893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6894     <limits.h> exists even on freestanding compilers.  */
6895
6896 #ifdef __STDC__
6897 # include <limits.h>
6898 #else
6899 # include <assert.h>
6900 #endif
6901
6902 #undef $ac_func
6903
6904 /* Override any gcc2 internal prototype to avoid an error.  */
6905 #ifdef __cplusplus
6906 extern "C"
6907 {
6908 #endif
6909 /* We use char because int might match the return type of a gcc2
6910    builtin and then its argument prototype would still apply.  */
6911 char $ac_func ();
6912 /* The GNU C library defines this for functions which it implements
6913     to always fail with ENOSYS.  Some functions are actually named
6914     something starting with __ and the normal name is an alias.  */
6915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6916 choke me
6917 #else
6918 char (*f) () = $ac_func;
6919 #endif
6920 #ifdef __cplusplus
6921 }
6922 #endif
6923
6924 int
6925 main ()
6926 {
6927 return f != $ac_func;
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934   (eval $ac_link) 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; } &&
6947          { ac_try='test -s conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   eval "$as_ac_var=yes"
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 eval "$as_ac_var=no"
6959 fi
6960 rm -f conftest.err conftest.$ac_objext \
6961       conftest$ac_exeext conftest.$ac_ext
6962 fi
6963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6965 if test `eval echo '${'$as_ac_var'}'` = yes; then
6966   cat >>confdefs.h <<_ACEOF
6967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6968 _ACEOF
6969
6970 fi
6971 done
6972
6973
6974 if test x$ac_cv_func_mbstowcs = xyes; then
6975   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6976 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6977 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980       if test "$cross_compiling" = yes; then
6981   gcc_cv_func_mbstowcs_works=yes
6982 else
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <stdlib.h>
6990 int main()
6991 {
6992   mbstowcs(0, "", 0);
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998   (eval $ac_link) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003   (eval $ac_try) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }; }; then
7007   gcc_cv_func_mbstowcs_works=yes
7008 else
7009   echo "$as_me: program exited with status $ac_status" >&5
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 ( exit $ac_status )
7014 gcc_cv_func_mbstowcs_works=no
7015 fi
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 fi
7019 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7020 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7021   if test x$gcc_cv_func_mbstowcs_works = xyes; then
7022
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_WORKING_MBSTOWCS 1
7025 _ACEOF
7026
7027   fi
7028 fi
7029
7030 echo "$as_me:$LINENO: checking for ssize_t" >&5
7031 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7032 if test "${ac_cv_type_ssize_t+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041 $ac_includes_default
7042 int
7043 main ()
7044 {
7045 if ((ssize_t *) 0)
7046   return 0;
7047 if (sizeof (ssize_t))
7048   return 0;
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055   (eval $ac_compile) 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; } &&
7068          { ac_try='test -s conftest.$ac_objext'
7069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070   (eval $ac_try) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }; }; then
7074   ac_cv_type_ssize_t=yes
7075 else
7076   echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_type_ssize_t=no
7080 fi
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082 fi
7083 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7084 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7085 if test $ac_cv_type_ssize_t = yes; then
7086   :
7087 else
7088
7089 cat >>confdefs.h <<_ACEOF
7090 #define ssize_t int
7091 _ACEOF
7092
7093 fi
7094
7095
7096 # Try to determine the array type of the second argument of getgroups
7097 # for the target system (int or gid_t).
7098 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7099 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7100 if test "${ac_cv_type_uid_t+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h.  */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h.  */
7109 #include <sys/types.h>
7110
7111 _ACEOF
7112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113   $EGREP "uid_t" >/dev/null 2>&1; then
7114   ac_cv_type_uid_t=yes
7115 else
7116   ac_cv_type_uid_t=no
7117 fi
7118 rm -f conftest*
7119
7120 fi
7121 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7122 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7123 if test $ac_cv_type_uid_t = no; then
7124
7125 cat >>confdefs.h <<\_ACEOF
7126 #define uid_t int
7127 _ACEOF
7128
7129
7130 cat >>confdefs.h <<\_ACEOF
7131 #define gid_t int
7132 _ACEOF
7133
7134 fi
7135
7136 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7137 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7138 if test "${ac_cv_type_getgroups+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test "$cross_compiling" = yes; then
7142   ac_cv_type_getgroups=cross
7143 else
7144   cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h.  */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h.  */
7150 /* Thanks to Mike Rendell for this test.  */
7151 #include <sys/types.h>
7152 #define NGID 256
7153 #undef MAX
7154 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7155
7156 int
7157 main ()
7158 {
7159   gid_t gidset[NGID];
7160   int i, n;
7161   union { gid_t gval; long lval; }  val;
7162
7163   val.lval = -1;
7164   for (i = 0; i < NGID; i++)
7165     gidset[i] = val.gval;
7166   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7167                  gidset);
7168   /* Exit non-zero if getgroups seems to require an array of ints.  This
7169      happens when gid_t is short but getgroups modifies an array of ints.  */
7170   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7171 }
7172 _ACEOF
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   ac_cv_type_getgroups=gid_t
7185 else
7186   echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ( exit $ac_status )
7191 ac_cv_type_getgroups=int
7192 fi
7193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7194 fi
7195 if test $ac_cv_type_getgroups = cross; then
7196         cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h.  */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h.  */
7202 #include <unistd.h>
7203
7204 _ACEOF
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7207   ac_cv_type_getgroups=gid_t
7208 else
7209   ac_cv_type_getgroups=int
7210 fi
7211 rm -f conftest*
7212
7213 fi
7214 fi
7215 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7216 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7217
7218 cat >>confdefs.h <<_ACEOF
7219 #define GETGROUPS_T $ac_cv_type_getgroups
7220 _ACEOF
7221
7222
7223 if test "${target}" = "${build}"; then
7224   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7225 else
7226   case "${target}" in
7227         # This condition may need some tweaking.  It should include all
7228         # targets where the array type of the second argument of getgroups
7229         # is int and the type of gid_t is not equivalent to int.
7230         *-*-sunos* | *-*-ultrix*)
7231                 TARGET_GETGROUPS_T=int
7232                 ;;
7233         *)
7234                 TARGET_GETGROUPS_T=gid_t
7235                 ;;
7236   esac
7237 fi
7238
7239
7240 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7241 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7242 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   if test "$cross_compiling" = yes; then
7246   gcc_cv_func_printf_ptr=no
7247 else
7248   cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254 #include <stdio.h>
7255
7256 int main()
7257 {
7258   char buf[64];
7259   char *p = buf, *q = NULL;
7260   sprintf(buf, "%p", p);
7261   sscanf(buf, "%p", &q);
7262   return (p != q);
7263 }
7264 _ACEOF
7265 rm -f conftest$ac_exeext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267   (eval $ac_link) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; }; then
7276   gcc_cv_func_printf_ptr=yes
7277 else
7278   echo "$as_me: program exited with status $ac_status" >&5
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ( exit $ac_status )
7283 gcc_cv_func_printf_ptr=no
7284 fi
7285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7286 fi
7287 rm -f core core.* *.core
7288 fi
7289 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7290 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7291 if test $gcc_cv_func_printf_ptr = yes ; then
7292
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_PRINTF_PTR 1
7295 _ACEOF
7296
7297 fi
7298
7299
7300 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7301 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7302 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h.  */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h.  */
7311 #include <sys/mman.h>
7312 _ACEOF
7313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } >/dev/null; then
7321   if test -s conftest.err; then
7322     ac_cpp_err=$ac_c_preproc_warn_flag
7323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7324   else
7325     ac_cpp_err=
7326   fi
7327 else
7328   ac_cpp_err=yes
7329 fi
7330 if test -z "$ac_cpp_err"; then
7331   ac_cv_header_sys_mman_h=yes
7332 else
7333   echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336   ac_cv_header_sys_mman_h=no
7337 fi
7338 rm -f conftest.err conftest.$ac_ext
7339 fi
7340 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7341 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7342 if test $ac_cv_header_sys_mman_h = yes; then
7343   gcc_header_sys_mman_h=yes
7344 else
7345   gcc_header_sys_mman_h=no
7346 fi
7347
7348 echo "$as_me:$LINENO: checking for mmap" >&5
7349 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7350 if test "${ac_cv_func_mmap+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7361 #define mmap innocuous_mmap
7362
7363 /* System header to define __stub macros and hopefully few prototypes,
7364     which can conflict with char mmap (); below.
7365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7366     <limits.h> exists even on freestanding compilers.  */
7367
7368 #ifdef __STDC__
7369 # include <limits.h>
7370 #else
7371 # include <assert.h>
7372 #endif
7373
7374 #undef mmap
7375
7376 /* Override any gcc2 internal prototype to avoid an error.  */
7377 #ifdef __cplusplus
7378 extern "C"
7379 {
7380 #endif
7381 /* We use char because int might match the return type of a gcc2
7382    builtin and then its argument prototype would still apply.  */
7383 char mmap ();
7384 /* The GNU C library defines this for functions which it implements
7385     to always fail with ENOSYS.  Some functions are actually named
7386     something starting with __ and the normal name is an alias.  */
7387 #if defined (__stub_mmap) || defined (__stub___mmap)
7388 choke me
7389 #else
7390 char (*f) () = mmap;
7391 #endif
7392 #ifdef __cplusplus
7393 }
7394 #endif
7395
7396 int
7397 main ()
7398 {
7399 return f != mmap;
7400   ;
7401   return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406   (eval $ac_link) 2>conftest.er1
7407   ac_status=$?
7408   grep -v '^ *+' conftest.er1 >conftest.err
7409   rm -f conftest.er1
7410   cat conftest.err >&5
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); } &&
7413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415   (eval $ac_try) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); }; } &&
7419          { ac_try='test -s conftest$ac_exeext'
7420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421   (eval $ac_try) 2>&5
7422   ac_status=$?
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); }; }; then
7425   ac_cv_func_mmap=yes
7426 else
7427   echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ac_cv_func_mmap=no
7431 fi
7432 rm -f conftest.err conftest.$ac_objext \
7433       conftest$ac_exeext conftest.$ac_ext
7434 fi
7435 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7436 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7437 if test $ac_cv_func_mmap = yes; then
7438   gcc_func_mmap=yes
7439 else
7440   gcc_func_mmap=no
7441 fi
7442
7443 if test "$gcc_header_sys_mman_h" != yes \
7444  || test "$gcc_func_mmap" != yes; then
7445    gcc_cv_func_mmap_file=no
7446    gcc_cv_func_mmap_dev_zero=no
7447    gcc_cv_func_mmap_anon=no
7448 else
7449    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7450 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7451 if test "${gcc_cv_func_mmap_file+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   # Add a system to this blacklist if
7455    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7456    # memory area containing the same data that you'd get if you applied
7457    # read() to the same fd.  The only system known to have a problem here
7458    # is VMS, where text files have record structure.
7459    case "$host_os" in
7460      vms* | ultrix*)
7461         gcc_cv_func_mmap_file=no ;;
7462      *)
7463         gcc_cv_func_mmap_file=yes;;
7464    esac
7465 fi
7466 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7467 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7468    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7469 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7470 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   # Add a system to this blacklist if it has mmap() but /dev/zero
7474    # does not exist, or if mmapping /dev/zero does not give anonymous
7475    # zeroed pages with both the following properties:
7476    # 1. If you map N consecutive pages in with one call, and then
7477    #    unmap any subset of those pages, the pages that were not
7478    #    explicitly unmapped remain accessible.
7479    # 2. If you map two adjacent blocks of memory and then unmap them
7480    #    both at once, they must both go away.
7481    # Systems known to be in this category are Windows (all variants),
7482    # VMS, and Darwin.
7483    case "$host_os" in
7484      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7485         gcc_cv_func_mmap_dev_zero=no ;;
7486      *)
7487         gcc_cv_func_mmap_dev_zero=yes;;
7488    esac
7489 fi
7490 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7491 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7492
7493    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7494    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7495 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7496 if test "${gcc_cv_decl_map_anon+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 #include <sys/types.h>
7506 #include <sys/mman.h>
7507 #include <unistd.h>
7508
7509 #ifndef MAP_ANONYMOUS
7510 #define MAP_ANONYMOUS MAP_ANON
7511 #endif
7512
7513 int
7514 main ()
7515 {
7516 int n = MAP_ANONYMOUS;
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523   (eval $ac_compile) 2>conftest.er1
7524   ac_status=$?
7525   grep -v '^ *+' conftest.er1 >conftest.err
7526   rm -f conftest.er1
7527   cat conftest.err >&5
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); } &&
7530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; } &&
7536          { ac_try='test -s conftest.$ac_objext'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; }; then
7542   gcc_cv_decl_map_anon=yes
7543 else
7544   echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547 gcc_cv_decl_map_anon=no
7548 fi
7549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7550 fi
7551 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7552 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7553
7554    if test $gcc_cv_decl_map_anon = no; then
7555      gcc_cv_func_mmap_anon=no
7556    else
7557      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7558 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7559 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7563    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7564    # doesn't give anonymous zeroed pages with the same properties listed
7565    # above for use of /dev/zero.
7566    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7567    case "$host_os" in
7568      vms* | cygwin* | pe | mingw* | sco* | udk* )
7569         gcc_cv_func_mmap_anon=no ;;
7570      *)
7571         gcc_cv_func_mmap_anon=yes;;
7572    esac
7573 fi
7574 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7575 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7576    fi
7577 fi
7578
7579 if test $gcc_cv_func_mmap_file = yes; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_MMAP_FILE 1
7583 _ACEOF
7584
7585 fi
7586 if test $gcc_cv_func_mmap_dev_zero = yes; then
7587
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_MMAP_DEV_ZERO 1
7590 _ACEOF
7591
7592 fi
7593 if test $gcc_cv_func_mmap_anon = yes; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_MMAP_ANON 1
7597 _ACEOF
7598
7599 fi
7600
7601
7602 case "${host}" in
7603 *-*-*vms*)
7604   # Under VMS, vfork works very differently than on Unix. The standard test
7605   # won't work, and it isn't easily adaptable. It makes more sense to
7606   # just force it.
7607   ac_cv_func_vfork_works=yes
7608   ;;
7609 esac
7610 echo "$as_me:$LINENO: checking for pid_t" >&5
7611 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7612 if test "${ac_cv_type_pid_t+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h.  */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h.  */
7621 $ac_includes_default
7622 int
7623 main ()
7624 {
7625 if ((pid_t *) 0)
7626   return 0;
7627 if (sizeof (pid_t))
7628   return 0;
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635   (eval $ac_compile) 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } &&
7642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644   (eval $ac_try) 2>&5
7645   ac_status=$?
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); }; } &&
7648          { ac_try='test -s conftest.$ac_objext'
7649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650   (eval $ac_try) 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   ac_cv_type_pid_t=yes
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 ac_cv_type_pid_t=no
7660 fi
7661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7662 fi
7663 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7665 if test $ac_cv_type_pid_t = yes; then
7666   :
7667 else
7668
7669 cat >>confdefs.h <<_ACEOF
7670 #define pid_t int
7671 _ACEOF
7672
7673 fi
7674
7675
7676
7677 for ac_header in unistd.h vfork.h
7678 do
7679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7680 echo "$as_me:$LINENO: checking for $ac_header" >&5
7681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <$ac_header>
7692 _ACEOF
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7695   ac_status=$?
7696   grep -v '^ *+' conftest.er1 >conftest.err
7697   rm -f conftest.er1
7698   cat conftest.err >&5
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } >/dev/null; then
7701   if test -s conftest.err; then
7702     ac_cpp_err=$ac_c_preproc_warn_flag
7703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7704   else
7705     ac_cpp_err=
7706   fi
7707 else
7708   ac_cpp_err=yes
7709 fi
7710 if test -z "$ac_cpp_err"; then
7711   eval "$as_ac_Header=yes"
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716   eval "$as_ac_Header=no"
7717 fi
7718 rm -f conftest.err conftest.$ac_ext
7719 fi
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7723   cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725 _ACEOF
7726
7727 fi
7728 done
7729
7730
7731
7732 for ac_func in fork vfork
7733 do
7734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7735 echo "$as_me:$LINENO: checking for $ac_func" >&5
7736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_var+set}\" = set"; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7748 #define $ac_func innocuous_$ac_func
7749
7750 /* System header to define __stub macros and hopefully few prototypes,
7751     which can conflict with char $ac_func (); below.
7752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7753     <limits.h> exists even on freestanding compilers.  */
7754
7755 #ifdef __STDC__
7756 # include <limits.h>
7757 #else
7758 # include <assert.h>
7759 #endif
7760
7761 #undef $ac_func
7762
7763 /* Override any gcc2 internal prototype to avoid an error.  */
7764 #ifdef __cplusplus
7765 extern "C"
7766 {
7767 #endif
7768 /* We use char because int might match the return type of a gcc2
7769    builtin and then its argument prototype would still apply.  */
7770 char $ac_func ();
7771 /* The GNU C library defines this for functions which it implements
7772     to always fail with ENOSYS.  Some functions are actually named
7773     something starting with __ and the normal name is an alias.  */
7774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7775 choke me
7776 #else
7777 char (*f) () = $ac_func;
7778 #endif
7779 #ifdef __cplusplus
7780 }
7781 #endif
7782
7783 int
7784 main ()
7785 {
7786 return f != $ac_func;
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793   (eval $ac_link) 2>conftest.er1
7794   ac_status=$?
7795   grep -v '^ *+' conftest.er1 >conftest.err
7796   rm -f conftest.er1
7797   cat conftest.err >&5
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); } &&
7800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; } &&
7806          { ac_try='test -s conftest$ac_exeext'
7807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808   (eval $ac_try) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; }; then
7812   eval "$as_ac_var=yes"
7813 else
7814   echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7816
7817 eval "$as_ac_var=no"
7818 fi
7819 rm -f conftest.err conftest.$ac_objext \
7820       conftest$ac_exeext conftest.$ac_ext
7821 fi
7822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7824 if test `eval echo '${'$as_ac_var'}'` = yes; then
7825   cat >>confdefs.h <<_ACEOF
7826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7827 _ACEOF
7828
7829 fi
7830 done
7831
7832 if test "x$ac_cv_func_fork" = xyes; then
7833   echo "$as_me:$LINENO: checking for working fork" >&5
7834 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7835 if test "${ac_cv_func_fork_works+set}" = set; then
7836   echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838   if test "$cross_compiling" = yes; then
7839   ac_cv_func_fork_works=cross
7840 else
7841   cat >conftest.$ac_ext <<_ACEOF
7842 /* By Ruediger Kuhlmann. */
7843       #include <sys/types.h>
7844       #if HAVE_UNISTD_H
7845       # include <unistd.h>
7846       #endif
7847       /* Some systems only have a dummy stub for fork() */
7848       int main ()
7849       {
7850         if (fork() < 0)
7851           exit (1);
7852         exit (0);
7853       }
7854 _ACEOF
7855 rm -f conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857   (eval $ac_link) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; }; then
7866   ac_cv_func_fork_works=yes
7867 else
7868   echo "$as_me: program exited with status $ac_status" >&5
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872 ( exit $ac_status )
7873 ac_cv_func_fork_works=no
7874 fi
7875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7876 fi
7877 fi
7878 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7879 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7880
7881 else
7882   ac_cv_func_fork_works=$ac_cv_func_fork
7883 fi
7884 if test "x$ac_cv_func_fork_works" = xcross; then
7885   case $host in
7886     *-*-amigaos* | *-*-msdosdjgpp*)
7887       # Override, as these systems have only a dummy fork() stub
7888       ac_cv_func_fork_works=no
7889       ;;
7890     *)
7891       ac_cv_func_fork_works=yes
7892       ;;
7893   esac
7894   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7895 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7896 fi
7897 ac_cv_func_vfork_works=$ac_cv_func_vfork
7898 if test "x$ac_cv_func_vfork" = xyes; then
7899   echo "$as_me:$LINENO: checking for working vfork" >&5
7900 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7901 if test "${ac_cv_func_vfork_works+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   if test "$cross_compiling" = yes; then
7905   ac_cv_func_vfork_works=cross
7906 else
7907   cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913 /* Thanks to Paul Eggert for this test.  */
7914 #include <stdio.h>
7915 #include <stdlib.h>
7916 #include <sys/types.h>
7917 #include <sys/stat.h>
7918 #include <sys/wait.h>
7919 #if HAVE_UNISTD_H
7920 # include <unistd.h>
7921 #endif
7922 #if HAVE_VFORK_H
7923 # include <vfork.h>
7924 #endif
7925 /* On some sparc systems, changes by the child to local and incoming
7926    argument registers are propagated back to the parent.  The compiler
7927    is told about this with #include <vfork.h>, but some compilers
7928    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7929    static variable whose address is put into a register that is
7930    clobbered by the vfork.  */
7931 static void
7932 #ifdef __cplusplus
7933 sparc_address_test (int arg)
7934 # else
7935 sparc_address_test (arg) int arg;
7936 #endif
7937 {
7938   static pid_t child;
7939   if (!child) {
7940     child = vfork ();
7941     if (child < 0) {
7942       perror ("vfork");
7943       _exit(2);
7944     }
7945     if (!child) {
7946       arg = getpid();
7947       write(-1, "", 0);
7948       _exit (arg);
7949     }
7950   }
7951 }
7952
7953 int
7954 main ()
7955 {
7956   pid_t parent = getpid ();
7957   pid_t child;
7958
7959   sparc_address_test (0);
7960
7961   child = vfork ();
7962
7963   if (child == 0) {
7964     /* Here is another test for sparc vfork register problems.  This
7965        test uses lots of local variables, at least as many local
7966        variables as main has allocated so far including compiler
7967        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7968        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7969        reuse the register of parent for one of the local variables,
7970        since it will think that parent can't possibly be used any more
7971        in this routine.  Assigning to the local variable will thus
7972        munge parent in the parent process.  */
7973     pid_t
7974       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7975       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7976     /* Convince the compiler that p..p7 are live; otherwise, it might
7977        use the same hardware register for all 8 local variables.  */
7978     if (p != p1 || p != p2 || p != p3 || p != p4
7979         || p != p5 || p != p6 || p != p7)
7980       _exit(1);
7981
7982     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7983        from child file descriptors.  If the child closes a descriptor
7984        before it execs or exits, this munges the parent's descriptor
7985        as well.  Test for this by closing stdout in the child.  */
7986     _exit(close(fileno(stdout)) != 0);
7987   } else {
7988     int status;
7989     struct stat st;
7990
7991     while (wait(&status) != child)
7992       ;
7993     exit(
7994          /* Was there some problem with vforking?  */
7995          child < 0
7996
7997          /* Did the child fail?  (This shouldn't happen.)  */
7998          || status
7999
8000          /* Did the vfork/compiler bug occur?  */
8001          || parent != getpid()
8002
8003          /* Did the file descriptor bug occur?  */
8004          || fstat(fileno(stdout), &st) != 0
8005          );
8006   }
8007 }
8008 _ACEOF
8009 rm -f conftest$ac_exeext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011   (eval $ac_link) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_cv_func_vfork_works=yes
8021 else
8022   echo "$as_me: program exited with status $ac_status" >&5
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 ( exit $ac_status )
8027 ac_cv_func_vfork_works=no
8028 fi
8029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 fi
8032 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8033 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8034
8035 fi;
8036 if test "x$ac_cv_func_fork_works" = xcross; then
8037   ac_cv_func_vfork_works=$ac_cv_func_vfork
8038   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8039 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8040 fi
8041
8042 if test "x$ac_cv_func_vfork_works" = xyes; then
8043
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_WORKING_VFORK 1
8046 _ACEOF
8047
8048 else
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define vfork fork
8052 _ACEOF
8053
8054 fi
8055 if test "x$ac_cv_func_fork_works" = xyes; then
8056
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_WORKING_FORK 1
8059 _ACEOF
8060
8061 fi
8062
8063
8064
8065
8066   am_cv_lib_iconv_ldpath=
8067
8068 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8069 if test "${with_libiconv_prefix+set}" = set; then
8070   withval="$with_libiconv_prefix"
8071
8072     for dir in `echo "$withval" | tr : ' '`; do
8073       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8074       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8075     done
8076
8077 fi;
8078
8079
8080 for ac_header in iconv.h
8081 do
8082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <$ac_header>
8095 _ACEOF
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } >/dev/null; then
8104   if test -s conftest.err; then
8105     ac_cpp_err=$ac_c_preproc_warn_flag
8106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8107   else
8108     ac_cpp_err=
8109   fi
8110 else
8111   ac_cpp_err=yes
8112 fi
8113 if test -z "$ac_cpp_err"; then
8114   eval "$as_ac_Header=yes"
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119   eval "$as_ac_Header=no"
8120 fi
8121 rm -f conftest.err conftest.$ac_ext
8122 fi
8123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8126   cat >>confdefs.h <<_ACEOF
8127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128 _ACEOF
8129
8130 fi
8131 done
8132
8133
8134   echo "$as_me:$LINENO: checking for iconv" >&5
8135 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8136 if test "${am_cv_func_iconv+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139
8140     am_cv_func_iconv="no, consider installing GNU libiconv"
8141     am_cv_lib_iconv=no
8142     cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h.  */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h.  */
8148 #include <stdlib.h>
8149 #include <iconv.h>
8150 int
8151 main ()
8152 {
8153 iconv_t cd = iconv_open("","");
8154        iconv(cd,NULL,NULL,NULL,NULL);
8155        iconv_close(cd);
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; } &&
8175          { ac_try='test -s conftest$ac_exeext'
8176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177   (eval $ac_try) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; }; then
8181   am_cv_func_iconv=yes
8182 else
8183   echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 fi
8187 rm -f conftest.err conftest.$ac_objext \
8188       conftest$ac_exeext conftest.$ac_ext
8189     if test "$am_cv_func_iconv" != yes; then
8190       am_save_LIBS="$LIBS"
8191       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8192       cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h.  */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h.  */
8198 #include <stdlib.h>
8199 #include <iconv.h>
8200 int
8201 main ()
8202 {
8203 iconv_t cd = iconv_open("","");
8204          iconv(cd,NULL,NULL,NULL,NULL);
8205          iconv_close(cd);
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212   (eval $ac_link) 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } &&
8219          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221   (eval $ac_try) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; } &&
8225          { ac_try='test -s conftest$ac_exeext'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   am_cv_lib_iconv=yes
8232         am_cv_func_iconv=yes
8233 else
8234   echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 fi
8238 rm -f conftest.err conftest.$ac_objext \
8239       conftest$ac_exeext conftest.$ac_ext
8240       LIBS="$am_save_LIBS"
8241     fi
8242
8243 fi
8244 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8245 echo "${ECHO_T}$am_cv_func_iconv" >&6
8246   if test "$am_cv_func_iconv" = yes; then
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_ICONV 1
8250 _ACEOF
8251
8252     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8253 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8254     if test "${am_cv_proto_iconv+set}" = set; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257
8258       cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264
8265 #include <stdlib.h>
8266 #include <iconv.h>
8267 extern
8268 #ifdef __cplusplus
8269 "C"
8270 #endif
8271 #if defined(__STDC__) || defined(__cplusplus)
8272 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8273 #else
8274 size_t iconv();
8275 #endif
8276
8277 int
8278 main ()
8279 {
8280
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8287   (eval $ac_compile) 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296   (eval $ac_try) 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; } &&
8300          { ac_try='test -s conftest.$ac_objext'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; }; then
8306   am_cv_proto_iconv_arg1=""
8307 else
8308   echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 am_cv_proto_iconv_arg1="const"
8312 fi
8313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8314       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);"
8315 fi
8316
8317     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8318     echo "$as_me:$LINENO: result: ${ac_t:-
8319          }$am_cv_proto_iconv" >&5
8320 echo "${ECHO_T}${ac_t:-
8321          }$am_cv_proto_iconv" >&6
8322
8323 cat >>confdefs.h <<_ACEOF
8324 #define ICONV_CONST $am_cv_proto_iconv_arg1
8325 _ACEOF
8326
8327   fi
8328   LIBICONV=
8329   if test "$am_cv_lib_iconv" = yes; then
8330     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8331   fi
8332
8333
8334 # Until we have in-tree GNU iconv:
8335 LIBICONV_DEP=
8336
8337
8338
8339   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8340 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8341 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 #include <locale.h>
8351 int
8352 main ()
8353 {
8354 return LC_MESSAGES
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361   (eval $ac_link) 2>conftest.er1
8362   ac_status=$?
8363   grep -v '^ *+' conftest.er1 >conftest.err
8364   rm -f conftest.er1
8365   cat conftest.err >&5
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } &&
8368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; } &&
8374          { ac_try='test -s conftest$ac_exeext'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   am_cv_val_LC_MESSAGES=yes
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 am_cv_val_LC_MESSAGES=no
8386 fi
8387 rm -f conftest.err conftest.$ac_objext \
8388       conftest$ac_exeext conftest.$ac_ext
8389 fi
8390 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8391 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8392   if test $am_cv_val_LC_MESSAGES = yes; then
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_LC_MESSAGES 1
8396 _ACEOF
8397
8398   fi
8399
8400
8401 # We will need to find libiberty.h and ansidecl.h
8402 saved_CFLAGS="$CFLAGS"
8403 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8429         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8430         fprintf_unlocked strstr errno snprintf vasprintf \
8431         malloc realloc calloc free basename getopt clock getpagesize
8432 do
8433   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8434 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8435 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8436 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445 #undef $ac_tr_decl
8446 #define $ac_tr_decl 1
8447
8448 #include "ansidecl.h"
8449 #include "system.h"
8450
8451 int
8452 main ()
8453 {
8454 #ifndef $ac_func
8455 char *(*pfn) = (char *(*)) $ac_func ;
8456 #endif
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463   (eval $ac_compile) 2>conftest.er1
8464   ac_status=$?
8465   grep -v '^ *+' conftest.er1 >conftest.err
8466   rm -f conftest.er1
8467   cat conftest.err >&5
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } &&
8470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472   (eval $ac_try) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }; } &&
8476          { ac_try='test -s conftest.$ac_objext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   eval "gcc_cv_have_decl_$ac_func=yes"
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 eval "gcc_cv_have_decl_$ac_func=no"
8488 fi
8489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8490 fi
8491
8492 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8493   echo "$as_me:$LINENO: result: yes" >&5
8494 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8495 #define $ac_tr_decl 1
8496 _ACEOF
8497
8498 else
8499   echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8501 #define $ac_tr_decl 0
8502 _ACEOF
8503
8504 fi
8505
8506 done
8507
8508
8509
8510
8511
8512 for ac_func in getrlimit setrlimit getrusage
8513 do
8514   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8515 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8516 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8517 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 #undef $ac_tr_decl
8527 #define $ac_tr_decl 1
8528
8529 #include "ansidecl.h"
8530 #include "system.h"
8531 #ifdef HAVE_SYS_RESOURCE_H
8532 #include <sys/resource.h>
8533 #endif
8534
8535
8536 int
8537 main ()
8538 {
8539 #ifndef $ac_func
8540 char *(*pfn) = (char *(*)) $ac_func ;
8541 #endif
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548   (eval $ac_compile) 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } &&
8555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; } &&
8561          { ac_try='test -s conftest.$ac_objext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   eval "gcc_cv_have_decl_$ac_func=yes"
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 eval "gcc_cv_have_decl_$ac_func=no"
8573 fi
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576
8577 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8578   echo "$as_me:$LINENO: result: yes" >&5
8579 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8580 #define $ac_tr_decl 1
8581 _ACEOF
8582
8583 else
8584   echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8586 #define $ac_tr_decl 0
8587 _ACEOF
8588
8589 fi
8590
8591 done
8592
8593
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600
8601 #include "ansidecl.h"
8602 #include "system.h"
8603 #ifdef HAVE_SYS_RESOURCE_H
8604 #include <sys/resource.h>
8605 #endif
8606
8607 int
8608 main ()
8609 {
8610 rlim_t l = 0;
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617   (eval $ac_compile) 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; } &&
8630          { ac_try='test -s conftest.$ac_objext'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   :
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641
8642 cat >>confdefs.h <<\_ACEOF
8643 #define rlim_t long
8644 _ACEOF
8645
8646 fi
8647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8648
8649
8650 for ac_func in ldgetname
8651 do
8652   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8653 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8654 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8655 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h.  */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h.  */
8664 #undef $ac_tr_decl
8665 #define $ac_tr_decl 1
8666
8667 #include "ansidecl.h"
8668 #include "system.h"
8669 #ifdef HAVE_LDFCN_H
8670 #include <ldfcn.h>
8671 #endif
8672
8673
8674 int
8675 main ()
8676 {
8677 #ifndef $ac_func
8678 char *(*pfn) = (char *(*)) $ac_func ;
8679 #endif
8680   ;
8681   return 0;
8682 }
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686   (eval $ac_compile) 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } &&
8693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; } &&
8699          { ac_try='test -s conftest.$ac_objext'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   eval "gcc_cv_have_decl_$ac_func=yes"
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 eval "gcc_cv_have_decl_$ac_func=no"
8711 fi
8712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8713 fi
8714
8715 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8716   echo "$as_me:$LINENO: result: yes" >&5
8717 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8718 #define $ac_tr_decl 1
8719 _ACEOF
8720
8721 else
8722   echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8724 #define $ac_tr_decl 0
8725 _ACEOF
8726
8727 fi
8728
8729 done
8730
8731
8732
8733 for ac_func in times
8734 do
8735   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8736 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8737 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8738 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 #undef $ac_tr_decl
8748 #define $ac_tr_decl 1
8749
8750 #include "ansidecl.h"
8751 #include "system.h"
8752 #ifdef HAVE_SYS_TIMES_H
8753 #include <sys/times.h>
8754 #endif
8755
8756
8757 int
8758 main ()
8759 {
8760 #ifndef $ac_func
8761 char *(*pfn) = (char *(*)) $ac_func ;
8762 #endif
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769   (eval $ac_compile) 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; } &&
8782          { ac_try='test -s conftest.$ac_objext'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   eval "gcc_cv_have_decl_$ac_func=yes"
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 eval "gcc_cv_have_decl_$ac_func=no"
8794 fi
8795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8796 fi
8797
8798 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8799   echo "$as_me:$LINENO: result: yes" >&5
8800 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8801 #define $ac_tr_decl 1
8802 _ACEOF
8803
8804 else
8805   echo "$as_me:$LINENO: result: no" >&5
8806 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8807 #define $ac_tr_decl 0
8808 _ACEOF
8809
8810 fi
8811
8812 done
8813
8814
8815 # More time-related stuff.
8816 echo "$as_me:$LINENO: checking for struct tms" >&5
8817 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8818 if test "${ac_cv_struct_tms+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828
8829 #include "ansidecl.h"
8830 #include "system.h"
8831 #ifdef HAVE_SYS_TIMES_H
8832 #include <sys/times.h>
8833 #endif
8834
8835 int
8836 main ()
8837 {
8838 struct tms tms;
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845   (eval $ac_compile) 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854   (eval $ac_try) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); }; } &&
8858          { ac_try='test -s conftest.$ac_objext'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; }; then
8864   ac_cv_struct_tms=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_struct_tms=no
8870 fi
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8874 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8875 if test $ac_cv_struct_tms = yes; then
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_STRUCT_TMS 1
8879 _ACEOF
8880
8881 fi
8882
8883 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8884 # revisit after autoconf 2.50.
8885 echo "$as_me:$LINENO: checking for clock_t" >&5
8886 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8887 if test "${gcc_cv_type_clock_t+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h.  */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h.  */
8897
8898 #include "ansidecl.h"
8899 #include "system.h"
8900
8901 int
8902 main ()
8903 {
8904 clock_t x;
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911   (eval $ac_compile) 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; } &&
8924          { ac_try='test -s conftest.$ac_objext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930   gcc_cv_type_clock_t=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 gcc_cv_type_clock_t=no
8936 fi
8937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938 fi
8939 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8940 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8941 if test $gcc_cv_type_clock_t = yes; then
8942
8943 cat >>confdefs.h <<\_ACEOF
8944 #define HAVE_CLOCK_T 1
8945 _ACEOF
8946
8947 fi
8948
8949 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8950 CFLAGS="$saved_CFLAGS"
8951
8952 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8953 if test "${enable_initfini_array+set}" = set; then
8954   enableval="$enable_initfini_array"
8955
8956 else
8957
8958 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8959 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8960 if test "${gcc_cv_initfini_array+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963     if test "$cross_compiling" = yes; then
8964   gcc_cv_initfini_array=no
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972
8973 static int x = -1;
8974 int main (void) { return x; }
8975 int foo (void) { x = 0; }
8976 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8977 _ACEOF
8978 rm -f conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980   (eval $ac_link) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   gcc_cv_initfini_array=yes
8990 else
8991   echo "$as_me: program exited with status $ac_status" >&5
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 ( exit $ac_status )
8996 gcc_cv_initfini_array=no
8997 fi
8998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 fi
9001 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9002 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9003   enable_initfini_array=$gcc_cv_initfini_array
9004
9005 fi;
9006 if test $enable_initfini_array = yes; then
9007
9008 cat >>confdefs.h <<\_ACEOF
9009 #define HAVE_INITFINI_ARRAY 1
9010 _ACEOF
9011
9012 fi
9013
9014 # mkdir takes a single argument on some systems.
9015 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9016 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9017 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9018   echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020   cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h.  */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h.  */
9026
9027 #include <sys/types.h>
9028 #ifdef HAVE_SYS_STAT_H
9029 # include <sys/stat.h>
9030 #endif
9031 #ifdef HAVE_UNISTD_H
9032 # include <unistd.h>
9033 #endif
9034 #ifdef HAVE_DIRECT_H
9035 # include <direct.h>
9036 #endif
9037 int
9038 main ()
9039 {
9040 mkdir ("foo", 0);
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047   (eval $ac_compile) 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest.$ac_objext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   gcc_cv_mkdir_takes_one_arg=no
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 gcc_cv_mkdir_takes_one_arg=yes
9072 fi
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9074 fi
9075 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9076 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9077 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define MKDIR_TAKES_ONE_ARG 1
9081 _ACEOF
9082
9083 fi
9084
9085
9086 # File extensions
9087 manext='.1'
9088 objext='.o'
9089
9090
9091
9092 # With Setjmp/Longjmp based exception handling.
9093 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9094 if test "${enable_sjlj_exceptions+set}" = set; then
9095   enableval="$enable_sjlj_exceptions"
9096   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9097
9098 cat >>confdefs.h <<_ACEOF
9099 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9100 _ACEOF
9101
9102 fi;
9103
9104 if test x$host = x$target; then
9105    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9106 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9107 if test "${ac_cv_lib_unwind_main+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lunwind  $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h.  */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h.  */
9118
9119
9120 int
9121 main ()
9122 {
9123 main ();
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130   (eval $ac_link) 2>conftest.er1
9131   ac_status=$?
9132   grep -v '^ *+' conftest.er1 >conftest.err
9133   rm -f conftest.er1
9134   cat conftest.err >&5
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); } &&
9137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; } &&
9143          { ac_try='test -s conftest$ac_exeext'
9144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145   (eval $ac_try) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   ac_cv_lib_unwind_main=yes
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_cv_lib_unwind_main=no
9155 fi
9156 rm -f conftest.err conftest.$ac_objext \
9157       conftest$ac_exeext conftest.$ac_ext
9158 LIBS=$ac_check_lib_save_LIBS
9159 fi
9160 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9161 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9162 if test $ac_cv_lib_unwind_main = yes; then
9163   use_libunwind_default=yes
9164 else
9165   use_libunwind_default=no
9166 fi
9167
9168 else
9169    use_libunwind_default=no
9170 fi
9171 # Use libunwind based exception handling.
9172 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9173 if test "${enable_libunwind_exceptions+set}" = set; then
9174   enableval="$enable_libunwind_exceptions"
9175   use_libunwind_exceptions=$enableval
9176 else
9177   use_libunwind_exceptions=$use_libunwind_default
9178 fi;
9179 if test x"$use_libunwind_exceptions" = xyes; then
9180
9181 cat >>confdefs.h <<\_ACEOF
9182 #define USE_LIBUNWIND_EXCEPTIONS 1
9183 _ACEOF
9184
9185 fi
9186
9187 # --------------------------------------------------------
9188 # Build, host, and target specific configuration fragments
9189 # --------------------------------------------------------
9190
9191 # Collect build-machine-specific information.
9192 . ${srcdir}/config.build
9193
9194 # Collect host-machine-specific information.
9195 . ${srcdir}/config.host
9196
9197 target_gtfiles=
9198
9199 # Collect target-machine-specific information.
9200 . ${srcdir}/config.gcc
9201
9202 extra_objs="${host_extra_objs} ${extra_objs}"
9203 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9204
9205 # Default the target-machine variables that were not explicitly set.
9206 if test x"$tm_file" = x
9207 then tm_file=$cpu_type/$cpu_type.h; fi
9208
9209 if test x"$extra_headers" = x
9210 then extra_headers=; fi
9211
9212 if test x$md_file = x
9213 then md_file=$cpu_type/$cpu_type.md; fi
9214
9215 if test x$out_file = x
9216 then out_file=$cpu_type/$cpu_type.c; fi
9217
9218 if test x"$tmake_file" = x
9219 then tmake_file=$cpu_type/t-$cpu_type
9220 fi
9221
9222 if test x"$dwarf2" = xyes
9223 then tm_file="$tm_file tm-dwarf2.h"
9224 fi
9225
9226 # Say what files are being used for the output code and MD file.
9227 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9228 echo "Using \`$srcdir/config/$md_file' as machine description file."
9229
9230 # If any of the xm_file variables contain nonexistent files, warn
9231 # about them and drop them.
9232
9233 bx=
9234 for x in $build_xm_file; do
9235   if    test -f $srcdir/config/$x
9236   then      bx="$bx $x"
9237   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9238 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9239   fi
9240 done
9241 build_xm_file="$bx"
9242
9243 hx=
9244 for x in $host_xm_file; do
9245   if    test -f $srcdir/config/$x
9246   then      hx="$hx $x"
9247   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9248 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9249   fi
9250 done
9251 host_xm_file="$hx"
9252
9253 tx=
9254 for x in $xm_file; do
9255   if    test -f $srcdir/config/$x
9256   then      tx="$tx $x"
9257   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9258 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9259   fi
9260 done
9261 xm_file="$tx"
9262
9263 count=a
9264 for f in $tm_file; do
9265         count=${count}x
9266 done
9267 if test $count = ax; then
9268         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9269 else
9270         echo "Using the following target machine macro files:"
9271         for f in $tm_file; do
9272                 echo "  $srcdir/config/$f"
9273         done
9274 fi
9275
9276 if test x$need_64bit_hwint = xyes; then
9277
9278 cat >>confdefs.h <<\_ACEOF
9279 #define NEED_64BIT_HOST_WIDE_INT 1
9280 _ACEOF
9281
9282 fi
9283
9284 if test x$use_long_long_for_widest_fast_int = xyes; then
9285
9286 cat >>confdefs.h <<\_ACEOF
9287 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
9288 _ACEOF
9289
9290 fi
9291
9292 count=a
9293 for f in $host_xm_file; do
9294         count=${count}x
9295 done
9296 if test $count = a; then
9297         :
9298 elif test $count = ax; then
9299         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9300 else
9301         echo "Using the following host machine macro files:"
9302         for f in $host_xm_file; do
9303                 echo "  $srcdir/config/$f"
9304         done
9305 fi
9306 echo "Using ${out_host_hook_obj} for host machine hooks."
9307
9308 if test "$host_xm_file" != "$build_xm_file"; then
9309         count=a
9310         for f in $build_xm_file; do
9311                 count=${count}x
9312         done
9313         if test $count = a; then
9314                 :
9315         elif test $count = ax; then
9316                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9317         else
9318                 echo "Using the following build machine macro files:"
9319                 for f in $build_xm_file; do
9320                         echo "  $srcdir/config/$f"
9321                 done
9322         fi
9323 fi
9324
9325 # ---------
9326 # Threading
9327 # ---------
9328
9329 # Check if a valid thread package
9330 case ${enable_threads} in
9331   "" | no)
9332     # No threads
9333     target_thread_file='single'
9334     ;;
9335   yes)
9336     # default
9337     target_thread_file='single'
9338     ;;
9339   aix | dce | gnat | irix | posix | rtems | \
9340   single | solaris | vxworks | win32 )
9341     target_thread_file=${enable_threads}
9342     ;;
9343   *)
9344     echo "${enable_threads} is an unknown thread package" 1>&2
9345     exit 1
9346     ;;
9347 esac
9348
9349 if test x${thread_file} = x; then
9350   # No thread file set by target-specific clauses in config.gcc,
9351   # so use file chosen by default logic above
9352   thread_file=${target_thread_file}
9353 fi
9354
9355 # Make gthr-default.h if we have a thread file.
9356 gthread_flags=
9357 if test $thread_file != single; then
9358   rm -f gthr-default.h
9359   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9360   gthread_flags=-DHAVE_GTHR_DEFAULT
9361 fi
9362
9363
9364 # --------
9365 # UNSORTED
9366 # --------
9367
9368 if test x$enable___cxa_atexit = xyes || \
9369    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9370    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9371 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9372 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9383 #define __cxa_atexit innocuous___cxa_atexit
9384
9385 /* System header to define __stub macros and hopefully few prototypes,
9386     which can conflict with char __cxa_atexit (); below.
9387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9388     <limits.h> exists even on freestanding compilers.  */
9389
9390 #ifdef __STDC__
9391 # include <limits.h>
9392 #else
9393 # include <assert.h>
9394 #endif
9395
9396 #undef __cxa_atexit
9397
9398 /* Override any gcc2 internal prototype to avoid an error.  */
9399 #ifdef __cplusplus
9400 extern "C"
9401 {
9402 #endif
9403 /* We use char because int might match the return type of a gcc2
9404    builtin and then its argument prototype would still apply.  */
9405 char __cxa_atexit ();
9406 /* The GNU C library defines this for functions which it implements
9407     to always fail with ENOSYS.  Some functions are actually named
9408     something starting with __ and the normal name is an alias.  */
9409 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9410 choke me
9411 #else
9412 char (*f) () = __cxa_atexit;
9413 #endif
9414 #ifdef __cplusplus
9415 }
9416 #endif
9417
9418 int
9419 main ()
9420 {
9421 return f != __cxa_atexit;
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428   (eval $ac_link) 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } &&
9435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; } &&
9441          { ac_try='test -s conftest$ac_exeext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   ac_cv_func___cxa_atexit=yes
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ac_cv_func___cxa_atexit=no
9453 fi
9454 rm -f conftest.err conftest.$ac_objext \
9455       conftest$ac_exeext conftest.$ac_ext
9456 fi
9457 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9458 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9459 if test $ac_cv_func___cxa_atexit = yes; then
9460
9461 cat >>confdefs.h <<\_ACEOF
9462 #define DEFAULT_USE_CXA_ATEXIT 1
9463 _ACEOF
9464
9465 else
9466   echo "__cxa_atexit can't be enabled on this target"
9467 fi
9468
9469 fi
9470
9471 # Look for a file containing extra machine modes.
9472 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9473   extra_modes_file='$(srcdir)'/config/${extra_modes}
9474
9475
9476 cat >>confdefs.h <<_ACEOF
9477 #define EXTRA_MODES_FILE "config/$extra_modes"
9478 _ACEOF
9479
9480 fi
9481
9482 # auto-host.h is the file containing items generated by autoconf and is
9483 # the first file included by config.h.
9484 # If host=build, it is correct to have bconfig include auto-host.h
9485 # as well.  If host!=build, we are in error and need to do more
9486 # work to find out the build config parameters.
9487 if test x$host = x$build
9488 then
9489         build_auto=auto-host.h
9490 else
9491         # We create a subdir, then run autoconf in the subdir.
9492         # To prevent recursion we set host and build for the new
9493         # invocation of configure to the build for this invocation
9494         # of configure.
9495         tempdir=build.$$
9496         rm -rf $tempdir
9497         mkdir $tempdir
9498         cd $tempdir
9499         case ${srcdir} in
9500         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9501         *) realsrcdir=../${srcdir};;
9502         esac
9503         saved_CFLAGS="${CFLAGS}"
9504         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9505         ${realsrcdir}/configure \
9506                 --enable-languages=${enable_languages-all} \
9507                 --target=$target_alias --host=$build_alias --build=$build_alias
9508         CFLAGS="${saved_CFLAGS}"
9509
9510         # We just finished tests for the build machine, so rename
9511         # the file auto-build.h in the gcc directory.
9512         mv auto-host.h ../auto-build.h
9513         cd ..
9514         rm -rf $tempdir
9515         build_auto=auto-build.h
9516 fi
9517
9518
9519 tm_file="${tm_file} defaults.h"
9520 tm_p_file="${tm_p_file} tm-preds.h"
9521 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9522 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9523 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9524 # put this back in temporarily.
9525 xm_file="ansidecl.h ${xm_file}"
9526
9527 # --------
9528 # UNSORTED
9529 # --------
9530
9531 # Get the version trigger filename from the toplevel
9532 if test "${with_gcc_version_trigger+set}" = set; then
9533         gcc_version_trigger=$with_gcc_version_trigger
9534 else
9535         gcc_version_trigger=${srcdir}/version.c
9536 fi
9537 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9538 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9539
9540 # Compile in configure arguments.
9541 if test -f configargs.h ; then
9542         # Being re-configured.
9543         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9544         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9545 else
9546         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9547 fi
9548
9549 # Double all backslashes and backslash all quotes to turn
9550 # gcc_config_arguments into a C string.
9551 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9552 $gcc_config_arguments
9553 EOF
9554 gcc_config_arguments_str=`cat conftest.out`
9555 rm -f conftest.out
9556
9557 cat > configargs.h <<EOF
9558 /* Generated automatically. */
9559 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9560 static const char thread_model[] = "$thread_file";
9561
9562 static const struct {
9563   const char *name, *value;
9564 } configure_default_options[] = $configure_default_options;
9565 EOF
9566
9567 # Internationalization
9568 PACKAGE=gcc
9569 VERSION="$gcc_version"
9570
9571 cat >>confdefs.h <<_ACEOF
9572 #define PACKAGE "$PACKAGE"
9573 _ACEOF
9574
9575
9576
9577
9578 # If we haven't got the data from the intl directory,
9579 # assume NLS is disabled.
9580 USE_NLS=no
9581 LIBINTL=
9582 LIBINTL_DEP=
9583 INCINTL=
9584 XGETTEXT=
9585 GMSGFMT=
9586 POSUB=
9587 if test -f ../intl/config.intl; then
9588   . ../intl/config.intl
9589 fi
9590 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9591 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9592 if test x"$USE_NLS" != xyes; then
9593   echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9595 else
9596   echo "$as_me:$LINENO: result: yes" >&5
9597 echo "${ECHO_T}yes" >&6
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define ENABLE_NLS 1
9601 _ACEOF
9602
9603
9604   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9605 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9606   # Look for .po and .gmo files in the source directory.
9607   CATALOGS=
9608   XLINGUAS=
9609   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9610     # If there aren't any .gmo files the shell will give us the
9611     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9612     # weeded out.
9613     case "$cat" in *\**)
9614       continue;;
9615     esac
9616     # The quadruple backslash is collapsed to a double backslash
9617     # by the backticks, then collapsed again by the double quotes,
9618     # leaving us with one backslash in the sed expression (right
9619     # before the dot that mustn't act as a wildcard).
9620     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9621     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9622     # The user is allowed to set LINGUAS to a list of languages to
9623     # install catalogs for.  If it's empty that means "all of them."
9624     if test "x$LINGUAS" = x; then
9625       CATALOGS="$CATALOGS $cat"
9626       XLINGUAS="$XLINGUAS $lang"
9627     else
9628       case "$LINGUAS" in *$lang*)
9629         CATALOGS="$CATALOGS $cat"
9630         XLINGUAS="$XLINGUAS $lang"
9631         ;;
9632       esac
9633     fi
9634   done
9635   LINGUAS="$XLINGUAS"
9636   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9637 echo "${ECHO_T}$LINGUAS" >&6
9638 fi
9639
9640 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9641 # -liconv on the link line twice.
9642 case "$LIBINTL" in *$LIBICONV*)
9643         LIBICONV= ;;
9644 esac
9645
9646 # Windows32 Registry support for specifying GCC installation paths.
9647 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9648 if test "${enable_win32_registry+set}" = set; then
9649   enableval="$enable_win32_registry"
9650
9651 fi;
9652 case $host_os in
9653         win32 | pe | cygwin* | mingw32* | uwin*)
9654 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9655 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9656 if test "x$enable_win32_registry" != xno; then
9657
9658 cat >>confdefs.h <<\_ACEOF
9659 #define ENABLE_WIN32_REGISTRY 1
9660 _ACEOF
9661
9662   echo "$as_me:$LINENO: result: yes" >&5
9663 echo "${ECHO_T}yes" >&6
9664   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9665 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9666 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   ac_func_search_save_LIBS=$LIBS
9670 ac_cv_search_RegOpenKeyExA=no
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h.  */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h.  */
9677
9678 /* Override any gcc2 internal prototype to avoid an error.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 /* We use char because int might match the return type of a gcc2
9683    builtin and then its argument prototype would still apply.  */
9684 char RegOpenKeyExA ();
9685 int
9686 main ()
9687 {
9688 RegOpenKeyExA ();
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695   (eval $ac_link) 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_search_RegOpenKeyExA="none required"
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 fi
9720 rm -f conftest.err conftest.$ac_objext \
9721       conftest$ac_exeext conftest.$ac_ext
9722 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9723   for ac_lib in advapi32; do
9724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9725     cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731
9732 /* Override any gcc2 internal prototype to avoid an error.  */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 /* We use char because int might match the return type of a gcc2
9737    builtin and then its argument prototype would still apply.  */
9738 char RegOpenKeyExA ();
9739 int
9740 main ()
9741 {
9742 RegOpenKeyExA ();
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749   (eval $ac_link) 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
9753   cat conftest.err >&5
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9769 break
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 fi
9775 rm -f conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777   done
9778 fi
9779 LIBS=$ac_func_search_save_LIBS
9780 fi
9781 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9782 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9783 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9784   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9785
9786 fi
9787
9788 else
9789   echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6
9791 fi
9792
9793 # Check if user specified a different registry key.
9794 case "x${enable_win32_registry}" in
9795 x | xyes)
9796   # default.
9797   gcc_cv_win32_registry_key="$VERSION"
9798   ;;
9799 xno)
9800   # no registry lookup.
9801   gcc_cv_win32_registry_key=''
9802   ;;
9803 *)
9804   # user-specified key.
9805   gcc_cv_win32_registry_key="$enable_win32_registry"
9806   ;;
9807 esac
9808
9809 if test "x$enable_win32_registry" != xno; then
9810   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9811 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9812
9813 cat >>confdefs.h <<_ACEOF
9814 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9815 _ACEOF
9816
9817   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9818 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9819 fi
9820 ;;
9821 esac
9822
9823 # Get an absolute path to the GCC top-level source directory
9824 holddir=`${PWDCMD-pwd}`
9825 cd $srcdir
9826 topdir=`${PWDCMD-pwd}`
9827 cd $holddir
9828
9829 # Conditionalize the makefile for this host machine.
9830 xmake_file=
9831 for f in ${host_xmake_file}
9832 do
9833         if test -f ${srcdir}/config/$f
9834         then
9835                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9836         fi
9837 done
9838
9839 # Conditionalize the makefile for this target machine.
9840 tmake_file_=
9841 for f in ${tmake_file}
9842 do
9843         if test -f ${srcdir}/config/$f
9844         then
9845                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9846         fi
9847 done
9848 tmake_file="${tmake_file_}"
9849
9850 symbolic_link='ln -s'
9851
9852 # If the host doesn't support symlinks, modify CC in
9853 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9854 # Otherwise, we can use "CC=$(CC)".
9855 rm -f symtest.tem
9856 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9857 then
9858         cc_set_by_configure="\$(CC)"
9859         quoted_cc_set_by_configure="\$(CC)"
9860         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9861         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9862 else
9863         rm -f symtest.tem
9864         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9865         then
9866                 symbolic_link="cp -p"
9867         else
9868                 symbolic_link="cp"
9869         fi
9870         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9871         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9872         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9873         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9874 fi
9875 rm -f symtest.tem
9876
9877 out_object_file=`basename $out_file .c`.o
9878
9879 tm_file_list=
9880 tm_include_list=
9881 for f in $tm_file; do
9882   case $f in
9883     defaults.h )
9884        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9885        tm_include_list="${tm_include_list} $f"
9886        ;;
9887     * )
9888        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9889        tm_include_list="${tm_include_list} config/$f"
9890        ;;
9891   esac
9892 done
9893
9894 tm_p_file_list=
9895 tm_p_include_list=
9896 for f in $tm_p_file; do
9897   case $f in
9898     tm-preds.h )
9899        tm_p_file_list="${tm_p_file_list} $f"
9900        tm_p_include_list="${tm_p_include_list} $f"
9901        ;;
9902     * )
9903        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9904        tm_p_include_list="${tm_p_include_list} config/$f"
9905   esac
9906 done
9907
9908 xm_file_list=
9909 xm_include_list=
9910 for f in $xm_file; do
9911   case $f in
9912     ansidecl.h )
9913        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9914        xm_include_list="${xm_include_list} $f"
9915        ;;
9916     auto-host.h )
9917        xm_file_list="${xm_file_list} $f"
9918        xm_include_list="${xm_include_list} $f"
9919        ;;
9920     * )
9921        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9922        xm_include_list="${xm_include_list} config/$f"
9923        ;;
9924   esac
9925 done
9926
9927 host_xm_file_list=
9928 host_xm_include_list=
9929 for f in $host_xm_file; do
9930   case $f in
9931     ansidecl.h )
9932        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9933        host_xm_include_list="${host_xm_include_list} $f"
9934        ;;
9935     auto-host.h )
9936        host_xm_file_list="${host_xm_file_list} $f"
9937        host_xm_include_list="${host_xm_include_list} $f"
9938        ;;
9939     * )
9940        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9941        host_xm_include_list="${host_xm_include_list} config/$f"
9942        ;;
9943   esac
9944 done
9945
9946 build_xm_file_list=
9947 for f in $build_xm_file; do
9948   case $f in
9949     ansidecl.h )
9950        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9951        build_xm_include_list="${build_xm_include_list} $f"
9952        ;;
9953     auto-build.h | auto-host.h )
9954        build_xm_file_list="${build_xm_file_list} $f"
9955        build_xm_include_list="${build_xm_include_list} $f"
9956        ;;
9957     * )
9958        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9959        build_xm_include_list="${build_xm_include_list} config/$f"
9960        ;;
9961   esac
9962 done
9963
9964 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9965 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9966 CROSS=
9967 ALL=all.internal
9968 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9969 if test x$host != x$target
9970 then
9971         CROSS="-DCROSS_COMPILE"
9972         ALL=all.cross
9973         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9974         case "$host","$target" in
9975         # Darwin crosses can use the host system's libraries and headers,
9976         # because of the fat library support.  Of course, it must be the
9977         # same version of Darwin on both sides.  Allow the user to
9978         # just say --target=foo-darwin without a version number to mean
9979         # "the version on this system".
9980             *-*-darwin*,*-*-darwin*)
9981                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9982                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9983                 if test $hostos = $targetos -o $targetos = darwin ; then
9984                     CROSS=
9985                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9986                     with_headers=yes
9987                 fi
9988                 ;;
9989
9990             i?86-*-*,x86_64-*-* \
9991             | powerpc*-*-*,powerpc64*-*-*)
9992                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9993         esac
9994 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9995         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9996         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9997 fi
9998
9999 # If this is a cross-compiler that does not
10000 # have its own set of headers then define
10001 # inhibit_libc
10002
10003 # If this is using newlib, without having the headers available now,
10004 # then define inhibit_libc in LIBGCC2_CFLAGS.
10005 # This prevents libgcc2 from containing any code which requires libc
10006 # support.
10007 inhibit_libc=
10008 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10009        test x$with_newlib = xyes ; } &&
10010      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10011        inhibit_libc=-Dinhibit_libc
10012 fi
10013
10014
10015 # When building gcc with a cross-compiler, we need to adjust things so
10016 # that the generator programs are still built with the native compiler.
10017 # Also, we cannot run fixincludes or fix-header.
10018
10019 # These are the normal (build=host) settings:
10020 CC_FOR_BUILD='$(CC)'
10021 BUILD_CFLAGS='$(ALL_CFLAGS)'
10022 STMP_FIXINC=stmp-fixinc
10023
10024 # Possibly disable fixproto, on a per-target basis.
10025 case ${use_fixproto} in
10026   no)
10027     STMP_FIXPROTO=
10028     ;;
10029   yes)
10030     STMP_FIXPROTO=stmp-fixproto
10031     ;;
10032 esac
10033
10034
10035 # And these apply if build != host, or we are generating coverage data
10036 if test x$build != x$host || test "x$coverage_flags" != x
10037 then
10038     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10039
10040     if test "x$TARGET_SYSTEM_ROOT" = x; then
10041         STMP_FIXINC=
10042         STMP_FIXPROTO=
10043     fi
10044 fi
10045
10046 # When bootstrapping from the toplevel, only run fixincludes during stage1
10047 if test -d ../prev-gcc
10048 then
10049     STMP_FIXINC=
10050     cp -R ../prev-gcc/include include
10051 fi
10052
10053 # Expand extra_headers to include complete path.
10054 # This substitutes for lots of t-* files.
10055 extra_headers_list=
10056 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10057 for file in ${extra_headers} ; do
10058   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10059 done
10060
10061 # Define collect2 in Makefile.
10062 case $host_can_use_collect2 in
10063   no) collect2= ;;
10064   *) collect2='collect2$(exeext)' ;;
10065 esac
10066
10067
10068 # Add a definition of USE_COLLECT2 if system wants one.
10069 case $use_collect2 in
10070   no) use_collect2= ;;
10071   "") ;;
10072   *)
10073     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10074     xm_defines="${xm_defines} USE_COLLECT2"
10075     case $host_can_use_collect2 in
10076       no)
10077         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10078 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10079    { (exit 1); exit 1; }; }
10080         ;;
10081     esac
10082     ;;
10083 esac
10084
10085 # ---------------------------
10086 # Assembler & linker features
10087 # ---------------------------
10088
10089 # Identify the assembler which will work hand-in-glove with the newly
10090 # built GCC, so that we can examine its features.  This is the assembler
10091 # which will be driven by the driver program.
10092 #
10093 # If build != host, and we aren't building gas in-tree, we identify a
10094 # build->target assembler and hope that it will have the same features
10095 # as the host->target assembler we'll be using.
10096 echo "$as_me:$LINENO: checking what assembler to use" >&5
10097 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10098 in_tree_gas=no
10099 gcc_cv_as=
10100 gcc_cv_gas_major_version=
10101 gcc_cv_gas_minor_version=
10102 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10103 if test -x "$DEFAULT_ASSEMBLER"; then
10104         gcc_cv_as="$DEFAULT_ASSEMBLER"
10105 elif test -x as$host_exeext; then
10106         # Build using assembler in the current directory.
10107         gcc_cv_as=./as$host_exeext
10108 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10109      && test -f ../gas/Makefile \
10110      && test x$build = x$host; then
10111   # Single tree build which includes gas.  We want to prefer it
10112   # over whatever linker top-level may have detected, since
10113   # we'll use what we're building after installation anyway.
10114   in_tree_gas=yes
10115   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10116 for f in $gcc_cv_as_bfd_srcdir/configure \
10117          $gcc_cv_as_gas_srcdir/configure \
10118          $gcc_cv_as_gas_srcdir/configure.in \
10119          $gcc_cv_as_gas_srcdir/Makefile.in ; do
10120   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10121   if test x$gcc_cv_gas_version != x; then
10122     break
10123   fi
10124 done
10125 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10126 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10127 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10128 case $gcc_cv_gas_patch_version in
10129   "") gcc_cv_gas_patch_version="0" ;;
10130 esac
10131 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10132                             + $gcc_cv_gas_minor_version \) \* 1000 \
10133                             + $gcc_cv_gas_patch_version`
10134
10135   rm -f as$host_exeext
10136   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10137   in_tree_gas_is_elf=no
10138   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10139      || (grep 'obj_format = multi' ../gas/Makefile \
10140          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10141   then
10142     in_tree_gas_is_elf=yes
10143   fi
10144 elif test -x "$AS_FOR_TARGET"; then
10145         gcc_cv_as="$AS_FOR_TARGET"
10146 elif test -x "$AS" && test x$host = x$target; then
10147         gcc_cv_as="$AS"
10148 fi
10149
10150 if test "x$gcc_cv_as" = x; then
10151         # Search the same directories that the installed compiler will
10152         # search.  Else we may find the wrong assembler and lose.  If we
10153         # do not find a suitable assembler binary, then try the user's
10154         # path.
10155         #
10156         # Also note we have to check MD_EXEC_PREFIX before checking the
10157         # user's path.  Unfortunately, there is no good way to get at the
10158         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10159         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10160         # to be fixed as part of the make/configure rewrite too.
10161
10162         if test "x$exec_prefix" = xNONE; then
10163                 if test "x$prefix" = xNONE; then
10164                         test_prefix=/usr/local
10165                 else
10166                         test_prefix=$prefix
10167                 fi
10168         else
10169                 test_prefix=$exec_prefix
10170         fi
10171
10172         # If the loop below does not find an assembler, then use whatever
10173         # one we can find in the users's path.
10174         # user's path.
10175         if test "x$program_prefix" != xNONE; then
10176                 gcc_cv_as=${program_prefix}as$host_exeext
10177         else
10178                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10179         fi
10180
10181         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10182                    $test_prefix/libexec/gcc/$target_noncanonical \
10183                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10184                    /usr/lib/gcc/$target_noncanonical \
10185                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10186                    $test_prefix/$target_noncanonical/bin"
10187
10188         if test x$host = x$target; then
10189             test_dirs="$test_dirs \
10190                    /usr/libexec \
10191                    /usr/ccs/gcc \
10192                    /usr/ccs/bin \
10193                    /udk/usr/ccs/bin \
10194                    /bsd43/usr/lib/cmplrs/cc \
10195                    /usr/cross64/usr/bin \
10196                    /usr/lib/cmplrs/cc \
10197                    /sysv/usr/lib/cmplrs/cc \
10198                    /svr4/usr/lib/cmplrs/cc \
10199                    /usr/bin"
10200         fi
10201
10202         for dir in $test_dirs; do
10203                 if test -x $dir/as$host_exeext; then
10204                         gcc_cv_as=$dir/as$host_exeext
10205                         break;
10206                 fi
10207         done
10208 fi
10209 case $in_tree_gas in
10210   yes)
10211     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10212 echo "${ECHO_T}\"newly built gas\"" >&6
10213     ;;
10214   no)
10215     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10216 echo "${ECHO_T}$gcc_cv_as" >&6
10217     ;;
10218 esac
10219
10220 # Identify the linker which will work hand-in-glove with the newly
10221 # built GCC, so that we can examine its features.  This is the linker
10222 # which will be driven by the driver program.
10223 #
10224 # If build != host, and we aren't building gas in-tree, we identify a
10225 # build->target linker and hope that it will have the same features
10226 # as the host->target linker we'll be using.
10227 echo "$as_me:$LINENO: checking what linker to use" >&5
10228 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10229 in_tree_ld=no
10230 gcc_cv_ld=
10231 gcc_cv_gld_major_version=
10232 gcc_cv_gld_minor_version=
10233 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10234 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10235 if test -x "$DEFAULT_LINKER"; then
10236         gcc_cv_ld="$DEFAULT_LINKER"
10237 elif test -x collect-ld$host_exeext; then
10238         # Build using linker in the current directory.
10239         gcc_cv_ld=./collect-ld$host_exeext
10240 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10241      && test -f ../ld/Makefile \
10242      && test x$build = x$host; then
10243         # Single tree build which includes ld.  We want to prefer it
10244         # over whatever linker top-level may have detected, since
10245         # we'll use what we're building after installation anyway.
10246         in_tree_ld=yes
10247         in_tree_ld_is_elf=no
10248         if (grep 'EMUL = .*elf' ../ld/Makefile \
10249             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10250           in_tree_ld_is_elf=yes
10251         fi
10252         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
10253         do
10254                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10255                 if test x$gcc_cv_gld_version != x; then
10256                         break
10257                 fi
10258         done
10259         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10260         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10261         rm -f collect-ld$host_exeext
10262         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10263                 2>/dev/null
10264 elif test -x "$LD_FOR_TARGET"; then
10265         gcc_cv_ld="$LD_FOR_TARGET"
10266 elif test -x "$LD" && test x$host = x$target; then
10267         gcc_cv_ld="$LD"
10268 fi
10269
10270 if test "x$gcc_cv_ld" = x; then
10271         # Search the same directories that the installed compiler will
10272         # search.  Else we may find the wrong linker and lose.  If we
10273         # do not find a suitable linker binary, then try the user's
10274         # path.
10275         #
10276         # Also note we have to check MD_EXEC_PREFIX before checking the
10277         # user's path.  Unfortunately, there is no good way to get at the
10278         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10279         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10280         # to be fixed as part of the make/configure rewrite too.
10281
10282         if test "x$exec_prefix" = xNONE; then
10283                 if test "x$prefix" = xNONE; then
10284                         test_prefix=/usr/local
10285                 else
10286                         test_prefix=$prefix
10287                 fi
10288         else
10289                 test_prefix=$exec_prefix
10290         fi
10291
10292         # If the loop below does not find an linker, then use whatever
10293         # one we can find in the users's path.
10294         # user's path.
10295         if test "x$program_prefix" != xNONE; then
10296                 gcc_cv_ld=${program_prefix}ld$host_exeext
10297         else
10298                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10299         fi
10300
10301         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10302                    $test_prefix/libexec/gcc/$target_noncanonical \
10303                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10304                    /usr/lib/gcc/$target_noncanonical \
10305                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10306                    $test_prefix/$target_noncanonical/bin"
10307
10308         if test x$host = x$target; then
10309             test_dirs="$test_dirs \
10310                    /usr/libexec \
10311                    /usr/ccs/gcc \
10312                    /usr/ccs/bin \
10313                    /udk/usr/ccs/bin \
10314                    /bsd43/usr/lib/cmplrs/cc \
10315                    /usr/cross64/usr/bin \
10316                    /usr/lib/cmplrs/cc \
10317                    /sysv/usr/lib/cmplrs/cc \
10318                    /svr4/usr/lib/cmplrs/cc \
10319                    /usr/bin"
10320         fi
10321
10322         for dir in $test_dirs; do
10323                 if test -x $dir/ld$host_exeext; then
10324                         gcc_cv_ld=$dir/ld$host_exeext
10325                         break;
10326                 fi
10327         done
10328 fi
10329 case $in_tree_ld in
10330   yes)
10331     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10332 echo "${ECHO_T}\"newly built ld\"" >&6
10333     ;;
10334   no)
10335     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10336 echo "${ECHO_T}$gcc_cv_ld" >&6
10337     ;;
10338 esac
10339
10340 # Figure out what nm we will be using.
10341 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10342 echo "$as_me:$LINENO: checking what nm to use" >&5
10343 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10344 in_tree_nm=no
10345 if test -x nm$host_exeext; then
10346         gcc_cv_nm=./nm$host_exeext
10347 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10348      && test -f ../binutils/Makefile; then
10349         # Single tree build which includes binutils.
10350         in_tree_nm=yes
10351         gcc_cv_nm=./nm$host_exeext
10352         rm -f nm$host_exeext
10353         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10354 elif test "x$program_prefix" != xNONE; then
10355         gcc_cv_nm=${program_prefix}nm$host_exeext
10356 else
10357         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10358 fi
10359 case $in_tree_nm in
10360   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10361 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10362   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10363 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10364 esac
10365
10366 # Figure out what objdump we will be using.
10367 echo "$as_me:$LINENO: checking what objdump to use" >&5
10368 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10369 in_tree_objdump=no
10370 if test -x objdump$host_exeext; then
10371         gcc_cv_objdump=./objdump$host_exeext
10372 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10373      && test -f ../binutils/Makefile; then
10374         # Single tree build which includes binutils.
10375         in_tree_objdump=yes
10376         gcc_cv_objdump=./objdump$host_exeext
10377         rm -f objdump$host_exeext
10378         $symbolic_link ../binutils/objdump$host_exeext \
10379                 objdump$host_exeext 2>/dev/null
10380 elif test "x$program_prefix" != xNONE; then
10381         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10382 else
10383         gcc_cv_objdump=`echo objdump | \
10384                 sed "${program_transform_name}"`$host_exeext
10385 fi
10386 case $in_tree_objdump in
10387   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10388 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10389   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10390 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10391 esac
10392
10393 # Figure out what assembler alignment features are present.
10394 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10395 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10396 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   gcc_cv_as_balign_and_p2align=no
10400     if test $in_tree_gas = yes; then
10401     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10402   then gcc_cv_as_balign_and_p2align=yes
10403 fi
10404   elif test x$gcc_cv_as != x; then
10405     echo '.balign 4
10406 .p2align 2' > conftest.s
10407     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }
10413     then
10414         gcc_cv_as_balign_and_p2align=yes
10415     else
10416       echo "configure: failed program was" >&5
10417       cat conftest.s >&5
10418     fi
10419     rm -f conftest.o conftest.s
10420   fi
10421 fi
10422 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10423 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10424 if test $gcc_cv_as_balign_and_p2align = yes; then
10425
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10428 _ACEOF
10429
10430 fi
10431
10432 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10433 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10434 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   gcc_cv_as_max_skip_p2align=no
10438     if test $in_tree_gas = yes; then
10439     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10440   then gcc_cv_as_max_skip_p2align=yes
10441 fi
10442   elif test x$gcc_cv_as != x; then
10443     echo '.p2align 4,,7' > conftest.s
10444     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
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); }; }
10450     then
10451         gcc_cv_as_max_skip_p2align=yes
10452     else
10453       echo "configure: failed program was" >&5
10454       cat conftest.s >&5
10455     fi
10456     rm -f conftest.o conftest.s
10457   fi
10458 fi
10459 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10460 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10461 if test $gcc_cv_as_max_skip_p2align = yes; then
10462
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10465 _ACEOF
10466
10467 fi
10468
10469 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10470 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10471 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   gcc_cv_as_subsection_m1=no
10475     if test $in_tree_gas = yes; then
10476     if test $in_tree_gas_is_elf = yes \
10477   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10478   then gcc_cv_as_subsection_m1=yes
10479 fi
10480   elif test x$gcc_cv_as != x; then
10481     echo 'conftest_label1: .word 0
10482 .subsection -1
10483 conftest_label2: .word 0
10484 .previous' > conftest.s
10485     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; }
10491     then
10492         if test x$gcc_cv_nm != x; then
10493     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10494     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10495     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10496     then :
10497     else gcc_cv_as_subsection_m1=yes
10498     fi
10499     rm -f conftest.nm1 conftest.nm2
10500   fi
10501     else
10502       echo "configure: failed program was" >&5
10503       cat conftest.s >&5
10504     fi
10505     rm -f conftest.o conftest.s
10506   fi
10507 fi
10508 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10509 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10510 if test $gcc_cv_as_subsection_m1 = yes; then
10511
10512 cat >>confdefs.h <<\_ACEOF
10513 #define HAVE_GAS_SUBSECTION_ORDERING 1
10514 _ACEOF
10515
10516 fi
10517
10518 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10519 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10520 if test "${gcc_cv_as_weak+set}" = set; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   gcc_cv_as_weak=no
10524     if test $in_tree_gas = yes; then
10525     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10526   then gcc_cv_as_weak=yes
10527 fi
10528   elif test x$gcc_cv_as != x; then
10529     echo '      .weak foobar' > conftest.s
10530     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532   (eval $ac_try) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; }
10536     then
10537         gcc_cv_as_weak=yes
10538     else
10539       echo "configure: failed program was" >&5
10540       cat conftest.s >&5
10541     fi
10542     rm -f conftest.o conftest.s
10543   fi
10544 fi
10545 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10546 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10547 if test $gcc_cv_as_weak = yes; then
10548
10549 cat >>confdefs.h <<\_ACEOF
10550 #define HAVE_GAS_WEAK 1
10551 _ACEOF
10552
10553 fi
10554
10555 # .hidden needs to be supported in both the assembler and the linker,
10556 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10557 # This is irritatingly difficult to feature test for; we have to check the
10558 # date string after the version number.  If we've got an in-tree
10559 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10560 # to be safe.
10561 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10562 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10563 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10564 if test "${gcc_cv_as_hidden+set}" = set; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567   gcc_cv_as_hidden=no
10568     if test $in_tree_gas = yes; then
10569     if test $in_tree_gas_is_elf = yes \
10570   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10571   then gcc_cv_as_hidden=yes
10572 fi
10573   elif test x$gcc_cv_as != x; then
10574     echo '      .hidden foobar
10575 foobar:' > conftest.s
10576     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; }
10582     then
10583         gcc_cv_as_hidden=yes
10584     else
10585       echo "configure: failed program was" >&5
10586       cat conftest.s >&5
10587     fi
10588     rm -f conftest.o conftest.s
10589   fi
10590 fi
10591 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10592 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10593
10594
10595 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10596 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10597 if test "${gcc_cv_ld_hidden+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   if test $in_tree_ld = yes ; then
10601   gcc_cv_ld_hidden=no
10602   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 \
10603      && test $in_tree_ld_is_elf = yes; then
10604      gcc_cv_ld_hidden=yes
10605   fi
10606 else
10607   gcc_cv_ld_hidden=yes
10608   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10609   if echo "$ld_ver" | grep GNU > /dev/null; then
10610     ld_vers=`echo $ld_ver | sed -n \
10611         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10612         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10613         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10614         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10615         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10616         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10617     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'`
10618     if test 0"$ld_date" -lt 20020404; then
10619       if test -n "$ld_date"; then
10620         # If there was date string, but was earlier than 2002-04-04, fail
10621         gcc_cv_ld_hidden=no
10622       elif test -z "$ld_vers"; then
10623         # If there was no date string nor ld version number, something is wrong
10624         gcc_cv_ld_hidden=no
10625       else
10626         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10627         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10628         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10629         test -z "$ld_vers_patch" && ld_vers_patch=0
10630         if test "$ld_vers_major" -lt 2; then
10631           gcc_cv_ld_hidden=no
10632         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10633           gcc_cv_ld_hidden="no"
10634         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10635           gcc_cv_ld_hidden=no
10636         fi
10637       fi
10638     fi
10639   else
10640     case "${target}" in
10641       hppa64*-*-hpux* | ia64*-*-hpux*)
10642         gcc_cv_ld_hidden=yes
10643         ;;
10644       *)
10645         gcc_cv_ld_hidden=no
10646         ;;
10647     esac
10648   fi
10649 fi
10650 fi
10651 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10652 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10653 libgcc_visibility=no
10654
10655 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10656   libgcc_visibility=yes
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_GAS_HIDDEN 1
10660 _ACEOF
10661
10662 fi
10663
10664 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10665 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10666 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10667 if test "${gcc_cv_as_leb128+set}" = set; then
10668   echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670   gcc_cv_as_leb128=no
10671     if test $in_tree_gas = yes; then
10672     if test $in_tree_gas_is_elf = yes \
10673   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10674   then gcc_cv_as_leb128=yes
10675 fi
10676   elif test x$gcc_cv_as != x; then
10677     echo '      .data
10678         .uleb128 L2 - L1
10679 L1:
10680         .uleb128 1280
10681         .sleb128 -1010
10682 L2:' > conftest.s
10683     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }
10689     then
10690         # GAS versions before 2.11 do not support uleb128,
10691   # despite appearing to.
10692   # ??? There exists an elf-specific test that will crash
10693   # the assembler.  Perhaps it's better to figure out whether
10694   # arbitrary sections are supported and try the test.
10695   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10696   if echo "$as_ver" | grep GNU > /dev/null; then
10697     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10698     as_major=`echo $as_ver | sed 's/\..*//'`
10699     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10700     if test $as_major -eq 2 && test $as_minor -lt 11
10701     then :
10702     else gcc_cv_as_leb128=yes
10703     fi
10704   fi
10705     else
10706       echo "configure: failed program was" >&5
10707       cat conftest.s >&5
10708     fi
10709     rm -f conftest.o conftest.s
10710   fi
10711 fi
10712 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10713 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10714 if test $gcc_cv_as_leb128 = yes; then
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_AS_LEB128 1
10718 _ACEOF
10719
10720 fi
10721
10722 # GAS versions up to and including 2.11.0 may mis-optimize
10723 # .eh_frame data.
10724 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10725 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10726 if test "${gcc_cv_as_eh_frame+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   gcc_cv_as_eh_frame=no
10730     if test $in_tree_gas = yes; then
10731     if test $in_tree_gas_is_elf = yes \
10732   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10733   then gcc_cv_as_eh_frame=yes
10734 fi
10735   elif test x$gcc_cv_as != x; then
10736     echo '      .text
10737 .LFB1:
10738         .4byte  0
10739 .L1:
10740         .4byte  0
10741 .LFE1:
10742         .section        .eh_frame,"aw",@progbits
10743 __FRAME_BEGIN__:
10744         .4byte  .LECIE1-.LSCIE1
10745 .LSCIE1:
10746         .4byte  0x0
10747         .byte   0x1
10748         .ascii "z\0"
10749         .byte   0x1
10750         .byte   0x78
10751         .byte   0x1a
10752         .byte   0x0
10753         .byte   0x4
10754         .4byte  1
10755         .p2align 1
10756 .LECIE1:
10757 .LSFDE1:
10758         .4byte  .LEFDE1-.LASFDE1
10759 .LASFDE1:
10760         .4byte  .LASFDE1-__FRAME_BEGIN__
10761         .4byte  .LFB1
10762         .4byte  .LFE1-.LFB1
10763         .byte   0x4
10764         .4byte  .LFE1-.LFB1
10765         .byte   0x4
10766         .4byte  .L1-.LFB1
10767 .LEFDE1:' > conftest.s
10768     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }
10774     then
10775           cat > conftest.lit <<EOF
10776  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10777  0010 01000000 12000000 18000000 00000000  ................
10778  0020 08000000 04080000 0044               .........D      
10779 EOF
10780 cat > conftest.big <<EOF
10781  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10782  0010 00000001 00000012 00000018 00000000  ................
10783  0020 00000008 04000000 0844               .........D      
10784 EOF
10785   # If the assembler didn't choke, and we can objdump,
10786   # and we got the correct data, then succeed.
10787   if test x$gcc_cv_objdump != x \
10788   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10789      | tail -3 > conftest.got \
10790   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10791     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10792   then
10793     gcc_cv_as_eh_frame=yes
10794   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800     gcc_cv_as_eh_frame=buggy
10801   else
10802     # Uh oh, what do we do now?
10803     gcc_cv_as_eh_frame=no
10804   fi
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_eh_frame" >&5
10813 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10814
10815
10816 if test $gcc_cv_as_eh_frame = buggy; then
10817
10818 cat >>confdefs.h <<\_ACEOF
10819 #define USE_AS_TRADITIONAL_FORMAT 1
10820 _ACEOF
10821
10822 fi
10823
10824 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10825 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10826 if test "${gcc_cv_as_shf_merge+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   gcc_cv_as_shf_merge=no
10830     if test $in_tree_gas = yes; then
10831     if test $in_tree_gas_is_elf = yes \
10832   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10833   then gcc_cv_as_shf_merge=yes
10834 fi
10835   elif test x$gcc_cv_as != x; then
10836     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10837     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839   (eval $ac_try) 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; }
10843     then
10844         gcc_cv_as_shf_merge=yes
10845     else
10846       echo "configure: failed program was" >&5
10847       cat conftest.s >&5
10848     fi
10849     rm -f conftest.o conftest.s
10850   fi
10851 fi
10852 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10853 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10854
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10858 _ACEOF
10859
10860
10861 # Thread-local storage - the check is heavily parametrized.
10862 conftest_s=
10863 tls_first_major=
10864 tls_first_minor=
10865 tls_as_opt=
10866 case "$target" in
10867   alpha*-*-*)
10868     conftest_s='
10869         .section ".tdata","awT",@progbits
10870 foo:    .long   25
10871         .text
10872         ldq     $27,__tls_get_addr($29)         !literal!1
10873         lda     $16,foo($29)                    !tlsgd!1
10874         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10875         ldq     $27,__tls_get_addr($29)         !literal!2
10876         lda     $16,foo($29)                    !tlsldm!2
10877         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10878         ldq     $1,foo($29)                     !gotdtprel
10879         ldah    $2,foo($29)                     !dtprelhi
10880         lda     $3,foo($2)                      !dtprello
10881         lda     $4,foo($29)                     !dtprel
10882         ldq     $1,foo($29)                     !gottprel
10883         ldah    $2,foo($29)                     !tprelhi
10884         lda     $3,foo($2)                      !tprello
10885         lda     $4,foo($29)                     !tprel'
10886         tls_first_major=2
10887         tls_first_minor=13
10888         tls_as_opt=--fatal-warnings
10889         ;;
10890   i[34567]86-*-*)
10891     conftest_s='
10892         .section ".tdata","awT",@progbits
10893 foo:    .long   25
10894         .text
10895         movl    %gs:0, %eax
10896         leal    foo@TLSGD(,%ebx,1), %eax
10897         leal    foo@TLSLDM(%ebx), %eax
10898         leal    foo@DTPOFF(%eax), %edx
10899         movl    foo@GOTTPOFF(%ebx), %eax
10900         subl    foo@GOTTPOFF(%ebx), %eax
10901         addl    foo@GOTNTPOFF(%ebx), %eax
10902         movl    foo@INDNTPOFF, %eax
10903         movl    $foo@TPOFF, %eax
10904         subl    $foo@TPOFF, %eax
10905         leal    foo@NTPOFF(%ecx), %eax'
10906         tls_first_major=2
10907         tls_first_minor=14
10908         tls_as_opt=--fatal-warnings
10909         ;;
10910   x86_64-*-*)
10911     conftest_s='
10912         .section ".tdata","awT",@progbits
10913 foo:    .long   25
10914         .text
10915         movq    %fs:0, %rax
10916         leaq    foo@TLSGD(%rip), %rdi
10917         leaq    foo@TLSLD(%rip), %rdi
10918         leaq    foo@DTPOFF(%rax), %rdx
10919         movq    foo@GOTTPOFF(%rip), %rax
10920         movq    $foo@TPOFF, %rax'
10921         tls_first_major=2
10922         tls_first_minor=14
10923         tls_as_opt=--fatal-warnings
10924         ;;
10925   ia64-*-*)
10926     conftest_s='
10927         .section ".tdata","awT",@progbits
10928 foo:    data8   25
10929         .text
10930         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10931         addl    r17 = @ltoff(@dtprel(foo#)), gp
10932         addl    r18 = @ltoff(@tprel(foo#)), gp
10933         addl    r19 = @dtprel(foo#), gp
10934         adds    r21 = @dtprel(foo#), r13
10935         movl    r23 = @dtprel(foo#)
10936         addl    r20 = @tprel(foo#), gp
10937         adds    r22 = @tprel(foo#), r13
10938         movl    r24 = @tprel(foo#)'
10939         tls_first_major=2
10940         tls_first_minor=13
10941         tls_as_opt=--fatal-warnings
10942         ;;
10943   powerpc-*-*)
10944     conftest_s='
10945         .section ".tdata","awT",@progbits
10946         .align 2
10947 ld0:    .space 4
10948 ld1:    .space 4
10949 x1:     .space 4
10950 x2:     .space 4
10951 x3:     .space 4
10952         .text
10953         addi 3,31,ld0@got@tlsgd
10954         bl __tls_get_addr
10955         addi 3,31,x1@got@tlsld
10956         bl __tls_get_addr
10957         addi 9,3,x1@dtprel
10958         addis 9,3,x2@dtprel@ha
10959         addi 9,9,x2@dtprel@l
10960         lwz 9,x3@got@tprel(31)
10961         add 9,9,x@tls
10962         addi 9,2,x1@tprel
10963         addis 9,2,x2@tprel@ha
10964         addi 9,9,x2@tprel@l'
10965         tls_first_major=2
10966         tls_first_minor=14
10967         tls_as_opt="-a32 --fatal-warnings"
10968         ;;
10969   powerpc64-*-*)
10970     conftest_s='
10971         .section ".tdata","awT",@progbits
10972         .align 3
10973 ld0:    .space 8
10974 ld1:    .space 8
10975 x1:     .space 8
10976 x2:     .space 8
10977 x3:     .space 8
10978         .text
10979         addi 3,2,ld0@got@tlsgd
10980         bl .__tls_get_addr
10981         nop
10982         addi 3,2,ld1@toc
10983         bl .__tls_get_addr
10984         nop
10985         addi 3,2,x1@got@tlsld
10986         bl .__tls_get_addr
10987         nop
10988         addi 9,3,x1@dtprel
10989         bl .__tls_get_addr
10990         nop
10991         addis 9,3,x2@dtprel@ha
10992         addi 9,9,x2@dtprel@l
10993         bl .__tls_get_addr
10994         nop
10995         ld 9,x3@got@dtprel(2)
10996         add 9,9,3
10997         bl .__tls_get_addr
10998         nop'
10999         tls_first_major=2
11000         tls_first_minor=14
11001         tls_as_opt="-a64 --fatal-warnings"
11002         ;;
11003   s390-*-*)
11004     conftest_s='
11005         .section ".tdata","awT",@progbits
11006 foo:    .long   25
11007         .text
11008         .long   foo@TLSGD
11009         .long   foo@TLSLDM
11010         .long   foo@DTPOFF
11011         .long   foo@NTPOFF
11012         .long   foo@GOTNTPOFF
11013         .long   foo@INDNTPOFF
11014         l       %r1,foo@GOTNTPOFF(%r12)
11015         l       %r1,0(%r1):tls_load:foo
11016         bas     %r14,0(%r1,%r13):tls_gdcall:foo
11017         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
11018         tls_first_major=2
11019         tls_first_minor=14
11020         tls_as_opt="-m31 --fatal-warnings"
11021         ;;
11022   s390x-*-*)
11023     conftest_s='
11024         .section ".tdata","awT",@progbits
11025 foo:    .long   25
11026         .text
11027         .quad   foo@TLSGD
11028         .quad   foo@TLSLDM
11029         .quad   foo@DTPOFF
11030         .quad   foo@NTPOFF
11031         .quad   foo@GOTNTPOFF
11032         lg      %r1,foo@GOTNTPOFF(%r12)
11033         larl    %r1,foo@INDNTPOFF
11034         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
11035         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11036         tls_first_major=2
11037         tls_first_minor=14
11038         tls_as_opt="-m64 -Aesame --fatal-warnings"
11039         ;;
11040   sh-*-* | sh[34]-*-*)
11041     conftest_s='
11042         .section ".tdata","awT",@progbits
11043 foo:    .long   25
11044         .text
11045         .long   foo@TLSGD
11046         .long   foo@TLSLDM
11047         .long   foo@DTPOFF
11048         .long   foo@GOTTPOFF
11049         .long   foo@TPOFF'
11050         tls_first_major=2
11051         tls_first_minor=13
11052         tls_as_opt=--fatal-warnings
11053         ;;
11054   sparc*-*-*)
11055     case "$target" in
11056       sparc*-sun-solaris2.*)
11057         on_solaris=yes
11058         ;;
11059       *)
11060         on_solaris=no
11061         ;;
11062     esac
11063     if test x$on_solaris = xyes && test x$gas_flag = xno; then
11064       conftest_s='
11065         .section ".tdata",#alloc,#write,#tls
11066 foo:    .long   25
11067         .text
11068         sethi   %tgd_hi22(foo), %o0
11069         add     %o0, %tgd_lo10(foo), %o1
11070         add     %l7, %o1, %o0, %tgd_add(foo)
11071         call    __tls_get_addr, %tgd_call(foo)
11072         sethi   %tldm_hi22(foo), %l1
11073         add     %l1, %tldm_lo10(foo), %l2
11074         add     %l7, %l2, %o0, %tldm_add(foo)
11075         call    __tls_get_addr, %tldm_call(foo)
11076         sethi   %tldo_hix22(foo), %l3
11077         xor     %l3, %tldo_lox10(foo), %l4
11078         add     %o0, %l4, %l5, %tldo_add(foo)
11079         sethi   %tie_hi22(foo), %o3
11080         add     %o3, %tie_lo10(foo), %o3
11081         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11082         add     %g7, %o2, %o4, %tie_add(foo)
11083         sethi   %tle_hix22(foo), %l1
11084         xor     %l1, %tle_lox10(foo), %o5
11085         ld      [%g7 + %o5], %o1'
11086         tls_first_major=0
11087         tls_first_minor=0
11088     else
11089       conftest_s='
11090         .section ".tdata","awT",@progbits
11091 foo:    .long   25
11092         .text
11093         sethi   %tgd_hi22(foo), %o0
11094         add     %o0, %tgd_lo10(foo), %o1
11095         add     %l7, %o1, %o0, %tgd_add(foo)
11096         call    __tls_get_addr, %tgd_call(foo)
11097         sethi   %tldm_hi22(foo), %l1
11098         add     %l1, %tldm_lo10(foo), %l2
11099         add     %l7, %l2, %o0, %tldm_add(foo)
11100         call    __tls_get_addr, %tldm_call(foo)
11101         sethi   %tldo_hix22(foo), %l3
11102         xor     %l3, %tldo_lox10(foo), %l4
11103         add     %o0, %l4, %l5, %tldo_add(foo)
11104         sethi   %tie_hi22(foo), %o3
11105         add     %o3, %tie_lo10(foo), %o3
11106         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11107         add     %g7, %o2, %o4, %tie_add(foo)
11108         sethi   %tle_hix22(foo), %l1
11109         xor     %l1, %tle_lox10(foo), %o5
11110         ld      [%g7 + %o5], %o1'
11111         tls_first_major=2
11112         tls_first_minor=14
11113         tls_as_opt="-32 --fatal-warnings"
11114       fi
11115         ;;
11116 esac
11117 if test -z "$tls_first_major"; then
11118   : # If we don't have a check, assume no support.
11119 else
11120   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11121 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11122 if test "${gcc_cv_as_tls+set}" = set; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   gcc_cv_as_tls=no
11126     if test $in_tree_gas = yes; then
11127     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11128   then gcc_cv_as_tls=yes
11129 fi
11130   elif test x$gcc_cv_as != x; then
11131     echo "$conftest_s" > conftest.s
11132     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134   (eval $ac_try) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }
11138     then
11139         gcc_cv_as_tls=yes
11140     else
11141       echo "configure: failed program was" >&5
11142       cat conftest.s >&5
11143     fi
11144     rm -f conftest.o conftest.s
11145   fi
11146 fi
11147 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11148 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11149 if test $gcc_cv_as_tls = yes; then
11150
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_AS_TLS 1
11153 _ACEOF
11154
11155 fi
11156 fi
11157
11158 # Target-specific assembler checks.
11159
11160 if test x"$demangler_in_ld" = xyes; then
11161   echo "$as_me:$LINENO: checking linker --demangle support" >&5
11162 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11163   gcc_cv_ld_demangle=no
11164   if test $in_tree_ld = yes; then
11165     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
11166       gcc_cv_ld_demangle=yes
11167     fi
11168   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11169     # Check if the GNU linker supports --demangle option
11170     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11171       gcc_cv_ld_demangle=yes
11172     fi
11173   fi
11174   if test x"$gcc_cv_ld_demangle" = xyes; then
11175
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_LD_DEMANGLE 1
11178 _ACEOF
11179
11180   fi
11181   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11182 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11183 fi
11184
11185 case "$target" in
11186   # All TARGET_ABI_OSF targets.
11187   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11188     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11189 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11190 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11191   echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193   gcc_cv_as_alpha_explicit_relocs=no
11194     if test $in_tree_gas = yes; then
11195     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11196   then gcc_cv_as_alpha_explicit_relocs=yes
11197 fi
11198   elif test x$gcc_cv_as != x; then
11199     echo '      .set nomacro
11200         .text
11201         extbl   $3, $2, $3      !lituse_bytoff!1
11202         ldq     $2, a($29)      !literal!1
11203         ldq     $4, b($29)      !literal!2
11204         ldq_u   $3, 0($2)       !lituse_base!1
11205         ldq     $27, f($29)     !literal!5
11206         jsr     $26, ($27), f   !lituse_jsr!5
11207         ldah    $29, 0($26)     !gpdisp!3
11208         lda     $0, c($29)      !gprel
11209         ldah    $1, d($29)      !gprelhigh
11210         lda     $1, d($1)       !gprellow
11211         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11212     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214   (eval $ac_try) 2>&5
11215   ac_status=$?
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); }; }
11218     then
11219         gcc_cv_as_alpha_explicit_relocs=yes
11220     else
11221       echo "configure: failed program was" >&5
11222       cat conftest.s >&5
11223     fi
11224     rm -f conftest.o conftest.s
11225   fi
11226 fi
11227 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11228 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11229 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11230
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_AS_EXPLICIT_RELOCS 1
11233 _ACEOF
11234
11235 fi
11236     ;;
11237
11238   cris-*-*)
11239     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11240 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11241 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   gcc_cv_as_cris_no_mul_bug=no
11245     if test $in_tree_gas = yes; then
11246     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11247   then gcc_cv_as_cris_no_mul_bug=yes
11248 fi
11249   elif test x$gcc_cv_as != x; then
11250     echo '.text' > conftest.s
11251     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253   (eval $ac_try) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); }; }
11257     then
11258         gcc_cv_as_cris_no_mul_bug=yes
11259     else
11260       echo "configure: failed program was" >&5
11261       cat conftest.s >&5
11262     fi
11263     rm -f conftest.o conftest.s
11264   fi
11265 fi
11266 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11267 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11268 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11269
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11272 _ACEOF
11273
11274 fi
11275     ;;
11276
11277   sparc*-*-*)
11278     echo "$as_me:$LINENO: checking assembler for .register" >&5
11279 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11280 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   gcc_cv_as_sparc_register_op=no
11284   if test x$gcc_cv_as != x; then
11285     echo '.register %g2, #scratch' > conftest.s
11286     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }
11292     then
11293         gcc_cv_as_sparc_register_op=yes
11294     else
11295       echo "configure: failed program was" >&5
11296       cat conftest.s >&5
11297     fi
11298     rm -f conftest.o conftest.s
11299   fi
11300 fi
11301 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11302 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11303 if test $gcc_cv_as_sparc_register_op = yes; then
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11307 _ACEOF
11308
11309 fi
11310
11311     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11312 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11313 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   gcc_cv_as_sparc_relax=no
11317   if test x$gcc_cv_as != x; then
11318     echo '.text' > conftest.s
11319     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321   (eval $ac_try) 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); }; }
11325     then
11326         gcc_cv_as_sparc_relax=yes
11327     else
11328       echo "configure: failed program was" >&5
11329       cat conftest.s >&5
11330     fi
11331     rm -f conftest.o conftest.s
11332   fi
11333 fi
11334 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11335 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11336 if test $gcc_cv_as_sparc_relax = yes; then
11337
11338 cat >>confdefs.h <<\_ACEOF
11339 #define HAVE_AS_RELAX_OPTION 1
11340 _ACEOF
11341
11342 fi
11343
11344     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11345 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11346 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   gcc_cv_as_sparc_ua_pcrel=no
11350   if test x$gcc_cv_as != x; then
11351     echo '.text
11352 foo:
11353         nop
11354 .data
11355 .align 4
11356 .byte 0
11357 .uaword %r_disp32(foo)' > conftest.s
11358     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360   (eval $ac_try) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; }
11364     then
11365         if test x$gcc_cv_ld != x \
11366        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11367          gcc_cv_as_sparc_ua_pcrel=yes
11368        fi
11369        rm -f conftest
11370     else
11371       echo "configure: failed program was" >&5
11372       cat conftest.s >&5
11373     fi
11374     rm -f conftest.o conftest.s
11375   fi
11376 fi
11377 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11378 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11379 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11380
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_AS_SPARC_UA_PCREL 1
11383 _ACEOF
11384
11385
11386       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11387 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11388 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   gcc_cv_as_sparc_ua_pcrel_hidden=no
11392   if test x$gcc_cv_as != x; then
11393     echo '.data
11394 .align 4
11395 .byte 0x31
11396 .uaword %r_disp32(foo)
11397 .byte 0x32, 0x33, 0x34
11398 .global foo
11399 .hidden foo
11400 foo:
11401 .skip 4' > conftest.s
11402     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404   (eval $ac_try) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); }; }
11408     then
11409         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11410          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11411          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11412             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11413             if $gcc_cv_objdump -R conftest 2> /dev/null \
11414                | grep 'DISP32' > /dev/null 2>&1; then
11415                 :
11416             else
11417                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11418             fi
11419          fi
11420          rm -f conftest
11421     else
11422       echo "configure: failed program was" >&5
11423       cat conftest.s >&5
11424     fi
11425     rm -f conftest.o conftest.s
11426   fi
11427 fi
11428 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11429 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11430 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11431
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11434 _ACEOF
11435
11436 fi
11437
11438 fi # unaligned pcrel relocs
11439
11440     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11441 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11442 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   gcc_cv_as_sparc_offsetable_lo10=no
11446   if test x$gcc_cv_as != x; then
11447     echo '.text
11448         or %g1, %lo(ab) + 12, %g1
11449         or %g1, %lo(ab + 12), %g1' > conftest.s
11450     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }
11456     then
11457         if test x$gcc_cv_objdump != x \
11458        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11459           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11460          gcc_cv_as_offsetable_lo10=yes
11461        fi
11462     else
11463       echo "configure: failed program was" >&5
11464       cat conftest.s >&5
11465     fi
11466     rm -f conftest.o conftest.s
11467   fi
11468 fi
11469 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11470 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11471 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11472
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_AS_OFFSETABLE_LO10 1
11475 _ACEOF
11476
11477 fi
11478     ;;
11479
11480   i[34567]86-*-* | x86_64-*-*)
11481     case $target_os in
11482       cygwin* | pe | mingw32*)
11483         # Used for DWARF 2 in PE
11484         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11485 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11486 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   gcc_cv_as_ix86_pe_secrel32=no
11490     if test $in_tree_gas = yes; then
11491     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11492   then gcc_cv_as_ix86_pe_secrel32=yes
11493 fi
11494   elif test x$gcc_cv_as != x; then
11495     echo '.text
11496 foo:    nop
11497 .data
11498         .secrel32 foo' > conftest.s
11499     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501   (eval $ac_try) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; }
11505     then
11506         if test x$gcc_cv_ld != x \
11507            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11508              gcc_cv_as_ix86_pe_secrel32=yes
11509            fi
11510            rm -f conftest
11511     else
11512       echo "configure: failed program was" >&5
11513       cat conftest.s >&5
11514     fi
11515     rm -f conftest.o conftest.s
11516   fi
11517 fi
11518 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11519 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11520 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11521
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_GAS_PE_SECREL32_RELOC 1
11524 _ACEOF
11525
11526 fi
11527         ;;
11528     esac
11529
11530     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11531 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11532 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535   gcc_cv_as_ix86_filds_fists=no
11536     if test $in_tree_gas = yes; then
11537     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11538   then gcc_cv_as_ix86_filds_fists=yes
11539 fi
11540   elif test x$gcc_cv_as != x; then
11541     echo 'filds mem; fists mem' > conftest.s
11542     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544   (eval $ac_try) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; }
11548     then
11549         gcc_cv_as_ix86_filds_fists=yes
11550     else
11551       echo "configure: failed program was" >&5
11552       cat conftest.s >&5
11553     fi
11554     rm -f conftest.o conftest.s
11555   fi
11556 fi
11557 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11558 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11559 if test $gcc_cv_as_ix86_filds_fists = yes; then
11560
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_GAS_FILDS_FISTS 1
11563 _ACEOF
11564
11565 fi
11566
11567     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11568 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11569 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11570   echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572   gcc_cv_as_ix86_cmov_sun_syntax=no
11573   if test x$gcc_cv_as != x; then
11574     echo 'cmovl.l %edx, %eax' > conftest.s
11575     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577   (eval $ac_try) 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); }; }
11581     then
11582         gcc_cv_as_ix86_cmov_sun_syntax=yes
11583     else
11584       echo "configure: failed program was" >&5
11585       cat conftest.s >&5
11586     fi
11587     rm -f conftest.o conftest.s
11588   fi
11589 fi
11590 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11591 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11592 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11593
11594 cat >>confdefs.h <<\_ACEOF
11595 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11596 _ACEOF
11597
11598 fi
11599
11600     # This one is used unconditionally by i386.[ch]; it is to be defined
11601     # to 1 if the feature is present, 0 otherwise.
11602     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11603 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11604 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   gcc_cv_as_ix86_gotoff_in_data=no
11608     if test $in_tree_gas = yes; then
11609     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11610   then gcc_cv_as_ix86_gotoff_in_data=yes
11611 fi
11612   elif test x$gcc_cv_as != x; then
11613     echo '      .text
11614 .L0:
11615         nop
11616         .data
11617         .long .L0@GOTOFF' > conftest.s
11618     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620   (eval $ac_try) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; }
11624     then
11625         gcc_cv_as_ix86_gotoff_in_data=yes
11626     else
11627       echo "configure: failed program was" >&5
11628       cat conftest.s >&5
11629     fi
11630     rm -f conftest.o conftest.s
11631   fi
11632 fi
11633 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11634 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11635
11636
11637 cat >>confdefs.h <<_ACEOF
11638 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11639 _ACEOF
11640
11641     ;;
11642
11643   ia64*-*-*)
11644     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11645 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11646 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11647   echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11650     if test $in_tree_gas = yes; then
11651     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11652   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11653 fi
11654   elif test x$gcc_cv_as != x; then
11655     echo '      .text
11656         addl r15 = @ltoffx(x#), gp
11657         ;;
11658         ld8.mov r16 = [r15], x#' > conftest.s
11659     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661   (eval $ac_try) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); }; }
11665     then
11666         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11667     else
11668       echo "configure: failed program was" >&5
11669       cat conftest.s >&5
11670     fi
11671     rm -f conftest.o conftest.s
11672   fi
11673 fi
11674 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11675 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11676 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11677
11678 cat >>confdefs.h <<\_ACEOF
11679 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11680 _ACEOF
11681
11682 fi
11683
11684     ;;
11685
11686   powerpc*-*-*)
11687     case $target in
11688       *-*-aix*) conftest_s='    .csect .text[PR]
11689         mfcr 3,128';;
11690       *-*-darwin*) conftest_s=' .text
11691         mfcr r3,128';;
11692       *)       conftest_s='     .text
11693         mfcr 3,128';;
11694     esac
11695
11696     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11697 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11698 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   gcc_cv_as_powerpc_mfcrf=no
11702     if test $in_tree_gas = yes; then
11703     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11704   then gcc_cv_as_powerpc_mfcrf=yes
11705 fi
11706   elif test x$gcc_cv_as != x; then
11707     echo "$conftest_s" > conftest.s
11708     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }
11714     then
11715         gcc_cv_as_powerpc_mfcrf=yes
11716     else
11717       echo "configure: failed program was" >&5
11718       cat conftest.s >&5
11719     fi
11720     rm -f conftest.o conftest.s
11721   fi
11722 fi
11723 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11724 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11725 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11726
11727 cat >>confdefs.h <<\_ACEOF
11728 #define HAVE_AS_MFCRF 1
11729 _ACEOF
11730
11731 fi
11732     ;;
11733
11734   mips*-*-*)
11735     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11736 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11737 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   gcc_cv_as_mips_explicit_relocs=no
11741     if test $in_tree_gas = yes; then
11742     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11743   then gcc_cv_as_mips_explicit_relocs=yes
11744 fi
11745   elif test x$gcc_cv_as != x; then
11746     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11747     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }
11753     then
11754         gcc_cv_as_mips_explicit_relocs=yes
11755     else
11756       echo "configure: failed program was" >&5
11757       cat conftest.s >&5
11758     fi
11759     rm -f conftest.o conftest.s
11760   fi
11761 fi
11762 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11763 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11764 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11765   if test x$target_cpu_default = x
11766        then target_cpu_default=MASK_EXPLICIT_RELOCS
11767        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11768        fi
11769 fi
11770
11771     if test x$gas_flag = xyes \
11772        || test x"$host" != x"$build" \
11773        || test ! -x "$gcc_cv_as" \
11774        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11775       :
11776     else
11777       echo "*** This configuration requires the GNU assembler" >&2
11778       exit 1
11779     fi
11780     ;;
11781 esac
11782 # ??? Not all targets support dwarf2 debug_line, even within a version
11783 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11784 # info to the output file.  So, as supported targets are added to gas 2.11,
11785 # add some instruction here to (also) show we expect this might work.
11786 # ??? Once 2.11 is released, probably need to add first known working
11787 # version to the per-target configury.
11788 case "$target" in
11789   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11790   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11791   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11792     insn="nop"
11793     ;;
11794   ia64*-*-* | s390*-*-*)
11795     insn="nop 0"
11796     ;;
11797   mmix-*-*)
11798     insn="swym 0"
11799     ;;
11800 esac
11801 if test x"$insn" != x; then
11802  conftest_s="\
11803         .file 1 \"conftest.s\"
11804         .loc 1 3 0
11805         $insn"
11806  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11807 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11808 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   gcc_cv_as_dwarf2_debug_line=no
11812     if test $in_tree_gas = yes; then
11813     if test $in_tree_gas_is_elf = yes \
11814   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11815   then gcc_cv_as_dwarf2_debug_line=yes
11816 fi
11817   elif test x$gcc_cv_as != x; then
11818     echo "$conftest_s" > conftest.s
11819     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821   (eval $ac_try) 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; }
11825     then
11826         # ??? This fails with non-gnu grep.  Maybe use objdump?
11827    if grep debug_line conftest.o > /dev/null 2>&1; then
11828      gcc_cv_as_dwarf2_debug_line=yes
11829    fi
11830     else
11831       echo "configure: failed program was" >&5
11832       cat conftest.s >&5
11833     fi
11834     rm -f conftest.o conftest.s
11835   fi
11836 fi
11837 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11838 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11839
11840
11841 # The .debug_line file table must be in the exact order that
11842 # we specified the files, since these indices are also used
11843 # by DW_AT_decl_file.  Approximate this test by testing if
11844 # the assembler bitches if the same index is assigned twice.
11845  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11846 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11847 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   gcc_cv_as_dwarf2_file_buggy=no
11851   if test x$gcc_cv_as != x; then
11852     echo '      .file 1 "foo.s"
11853         .file 1 "bar.s"' > conftest.s
11854     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856   (eval $ac_try) 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; }
11860     then
11861         gcc_cv_as_dwarf2_file_buggy=yes
11862     else
11863       echo "configure: failed program was" >&5
11864       cat conftest.s >&5
11865     fi
11866     rm -f conftest.o conftest.s
11867   fi
11868 fi
11869 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11870 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11871
11872
11873  if test $gcc_cv_as_dwarf2_debug_line = yes \
11874  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11875
11876 cat >>confdefs.h <<\_ACEOF
11877 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11878 _ACEOF
11879
11880  fi
11881
11882  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11883 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11884 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   gcc_cv_as_gdwarf2_flag=no
11888     if test $in_tree_gas = yes; then
11889     if test $in_tree_gas_is_elf = yes \
11890   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11891   then gcc_cv_as_gdwarf2_flag=yes
11892 fi
11893   elif test x$gcc_cv_as != x; then
11894     echo "$insn" > conftest.s
11895     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }
11901     then
11902         gcc_cv_as_gdwarf2_flag=yes
11903     else
11904       echo "configure: failed program was" >&5
11905       cat conftest.s >&5
11906     fi
11907     rm -f conftest.o conftest.s
11908   fi
11909 fi
11910 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11911 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11912 if test $gcc_cv_as_gdwarf2_flag = yes; then
11913
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11916 _ACEOF
11917
11918 fi
11919
11920  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11921 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11922 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   gcc_cv_as_gstabs_flag=no
11926     if test $in_tree_gas = yes; then
11927     if test $in_tree_gas_is_elf = yes \
11928   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11929   then gcc_cv_as_gstabs_flag=yes
11930 fi
11931   elif test x$gcc_cv_as != x; then
11932     echo "$insn" > conftest.s
11933     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }
11939     then
11940         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11941    # and warns about it, but still exits successfully.  So check for
11942    # this.
11943    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945   (eval $ac_try) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }
11949    then :
11950    else gcc_cv_as_gstabs_flag=yes
11951    fi
11952     else
11953       echo "configure: failed program was" >&5
11954       cat conftest.s >&5
11955     fi
11956     rm -f conftest.o conftest.s
11957   fi
11958 fi
11959 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11960 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11961 if test $gcc_cv_as_gstabs_flag = yes; then
11962
11963 cat >>confdefs.h <<\_ACEOF
11964 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11965 _ACEOF
11966
11967 fi
11968 fi
11969
11970 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11971 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11972 gcc_cv_ld_ro_rw_mix=unknown
11973 if test $in_tree_ld = yes ; then
11974   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 \
11975      && test $in_tree_ld_is_elf = yes; then
11976     gcc_cv_ld_ro_rw_mix=read-write
11977   fi
11978 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11979   echo '.section myfoosect, "a"' > conftest1.s
11980   echo '.section myfoosect, "aw"' > conftest2.s
11981   echo '.byte 1' >> conftest2.s
11982   echo '.section myfoosect, "a"' > conftest3.s
11983   echo '.byte 0' >> conftest3.s
11984   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11985      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11986      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11987      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11988         conftest2.o conftest3.o > /dev/null 2>&1; then
11989     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11990                          | sed -e '/myfoosect/!d' -e N`
11991     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11992       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11993         gcc_cv_ld_ro_rw_mix=read-only
11994       else
11995         gcc_cv_ld_ro_rw_mix=read-write
11996       fi
11997     fi
11998   fi
11999   rm -f conftest.* conftest[123].*
12000 fi
12001 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12002
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12005 _ACEOF
12006
12007 fi
12008 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12009 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12010
12011 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12012 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12013 gcc_cv_ld_eh_frame_hdr=no
12014 if test $in_tree_ld = yes ; then
12015   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 \
12016      && test $in_tree_ld_is_elf = yes; then
12017     gcc_cv_ld_eh_frame_hdr=yes
12018   fi
12019 elif test x$gcc_cv_ld != x; then
12020         # Check if linker supports --eh-frame-hdr option
12021         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12022                 gcc_cv_ld_eh_frame_hdr=yes
12023         fi
12024 fi
12025 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12026
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_LD_EH_FRAME_HDR 1
12029 _ACEOF
12030
12031 fi
12032 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12033 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12034
12035 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12036 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12037 gcc_cv_ld_pie=no
12038 if test $in_tree_ld = yes ; then
12039   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 \
12040      && test $in_tree_ld_is_elf = yes; then
12041     gcc_cv_ld_pie=yes
12042   fi
12043 elif test x$gcc_cv_ld != x; then
12044         # Check if linker supports -pie option
12045         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12046                 gcc_cv_ld_pie=yes
12047         fi
12048 fi
12049 if test x"$gcc_cv_ld_pie" = xyes; then
12050
12051 cat >>confdefs.h <<\_ACEOF
12052 #define HAVE_LD_PIE 1
12053 _ACEOF
12054
12055 fi
12056 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12057 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12058
12059 # --------
12060 # UNSORTED
12061 # --------
12062
12063 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12064 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12065 if test "${gcc_cv_ld_as_needed+set}" = set; then
12066   echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068   gcc_cv_ld_as_needed=no
12069 if test $in_tree_ld = yes ; then
12070   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
12071      && test $in_tree_ld_is_elf = yes; then
12072     gcc_cv_ld_as_needed=yes
12073   fi
12074 elif test x$gcc_cv_ld != x; then
12075         # Check if linker supports --as-needed and --no-as-needed options
12076         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12077                 gcc_cv_ld_as_needed=yes
12078         fi
12079 fi
12080
12081 fi
12082 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12083 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12084 if test x"$gcc_cv_ld_as_needed" = xyes; then
12085
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_LD_AS_NEEDED 1
12088 _ACEOF
12089
12090 fi
12091
12092 case "$target" in
12093   powerpc64*-*-linux*)
12094     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12095 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12096 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   gcc_cv_ld_no_dot_syms=no
12100     if test $in_tree_ld = yes ; then
12101       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12102         gcc_cv_ld_no_dot_syms=yes
12103       fi
12104     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12105       cat > conftest1.s <<EOF
12106         .text
12107         bl .foo
12108 EOF
12109       cat > conftest2.s <<EOF
12110         .section ".opd","aw"
12111         .align 3
12112         .globl foo
12113         .type foo,@function
12114 foo:
12115         .quad .LEfoo,.TOC.@tocbase,0
12116         .text
12117 .LEfoo:
12118         blr
12119         .size foo,.-.LEfoo
12120 EOF
12121       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12122          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12123          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12124         gcc_cv_ld_no_dot_syms=yes
12125       fi
12126       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12127     fi
12128
12129 fi
12130 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12131 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12132     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12133
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_LD_NO_DOT_SYMS 1
12136 _ACEOF
12137
12138     fi
12139     ;;
12140 esac
12141
12142 if test x$with_sysroot = x && test x$host = x$target \
12143    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12144
12145 cat >>confdefs.h <<_ACEOF
12146 #define PREFIX_INCLUDE_DIR "$prefix/include"
12147 _ACEOF
12148
12149 fi
12150
12151 # Find out what GC implementation we want, or may, use.
12152
12153 # Check whether --with-gc or --without-gc was given.
12154 if test "${with_gc+set}" = set; then
12155   withval="$with_gc"
12156   case "$withval" in
12157   page | zone)
12158     GGC=ggc-$withval
12159     ;;
12160   *)
12161     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12162 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12163    { (exit 1); exit 1; }; }
12164     ;;
12165 esac
12166 else
12167   GGC=ggc-page
12168 fi;
12169
12170 echo "Using $GGC for garbage collection."
12171
12172 # Use the system's zlib library.
12173 zlibdir=-L../zlib
12174 zlibinc="-I\$(srcdir)/../zlib"
12175
12176 # Check whether --with-system-zlib or --without-system-zlib was given.
12177 if test "${with_system_zlib+set}" = set; then
12178   withval="$with_system_zlib"
12179   zlibdir=
12180 zlibinc=
12181
12182 fi;
12183
12184
12185
12186
12187 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12188 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12189     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12190 if test "${enable_maintainer_mode+set}" = set; then
12191   enableval="$enable_maintainer_mode"
12192   maintainer_mode=$enableval
12193 else
12194   maintainer_mode=no
12195 fi;
12196
12197 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12198 echo "${ECHO_T}$maintainer_mode" >&6
12199
12200 if test "$maintainer_mode" = "yes"; then
12201   MAINT=''
12202 else
12203   MAINT='#'
12204 fi
12205
12206 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12207 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12208
12209 # Check whether --with-libbanshee or --without-libbanshee was given.
12210 if test "${with_libbanshee+set}" = set; then
12211   withval="$with_libbanshee"
12212   libbanshee="$with_libbanshee"
12213 else
12214   libbanshee=no
12215 fi;
12216
12217 if test x"$libbanshee" = xyes; then
12218         BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12219         BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12220         ANDER="tree-alias-ander.o"
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_BANSHEE 1
12224 _ACEOF
12225
12226 else
12227         BANSHEELIB=""
12228         BANSHEEINC=""
12229         ANDER=""
12230 fi
12231 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12232 echo "${ECHO_T}$with_libbanshee" >&6
12233
12234
12235
12236
12237
12238 # --------------
12239 # Language hooks
12240 # --------------
12241
12242 # Make empty files to contain the specs and options for each language.
12243 # Then add #include lines to for a compiler that has specs and/or options.
12244
12245 lang_opt_files=
12246 lang_specs_files=
12247 lang_tree_files=
12248 for subdir in . $subdirs
12249 do
12250         if test -f $srcdir/$subdir/lang.opt; then
12251             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12252         fi
12253         if test -f $srcdir/$subdir/lang-specs.h; then
12254             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12255         fi
12256         if test -f $srcdir/$subdir/$subdir-tree.def; then
12257             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12258         fi
12259 done
12260
12261 # These (without "all_") are set in each config-lang.in.
12262 # `language' must be a single word so is spelled singularly.
12263 all_languages=
12264 all_boot_languages=
12265 all_compilers=
12266 all_stagestuff=
12267 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
12268 # List of language makefile fragments.
12269 all_lang_makefrags=
12270 # List of language subdirectory makefiles.  Deprecated.
12271 all_lang_makefiles=
12272 # Files for gengtype
12273 all_gtfiles="$target_gtfiles"
12274 # Files for gengtype with language
12275 all_gtfiles_files_langs=
12276 all_gtfiles_files_files=
12277
12278 # Add the language fragments.
12279 # Languages are added via two mechanisms.  Some information must be
12280 # recorded in makefile variables, these are defined in config-lang.in.
12281 # We accumulate them and plug them into the main Makefile.
12282 # The other mechanism is a set of hooks for each of the main targets
12283 # like `clean', `install', etc.
12284
12285 language_hooks="Make-hooks"
12286
12287 for s in $subdirs
12288 do
12289                 language=
12290                 boot_language=
12291                 compilers=
12292                 stagestuff=
12293                 outputs=
12294                 gtfiles=
12295                 . ${srcdir}/$s/config-lang.in
12296                 if test "x$language" = x
12297                 then
12298                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12299                         exit 1
12300                 fi
12301                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12302                 if test -f ${srcdir}/$s/Makefile.in
12303                 then all_lang_makefiles="$s/Makefile"
12304                 fi
12305                 all_languages="$all_languages $language"
12306                 if test "x$boot_language" = xyes
12307                 then
12308                         all_boot_languages="$all_boot_languages $language"
12309                 fi
12310                 all_compilers="$all_compilers $compilers"
12311                 all_stagestuff="$all_stagestuff $stagestuff"
12312                 all_outputs="$all_outputs $outputs"
12313                 all_gtfiles="$all_gtfiles $gtfiles"
12314                 for f in $gtfiles
12315                 do
12316                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12317                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12318                 done
12319 done
12320
12321 # Pick up gtfiles for c
12322 gtfiles=
12323 s="c"
12324 . ${srcdir}/c-config-lang.in
12325 all_gtfiles="$all_gtfiles $gtfiles"
12326 for f in $gtfiles
12327 do
12328         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12329         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12330 done
12331
12332 check_languages=
12333 for language in $all_languages
12334 do
12335                 check_languages="$check_languages check-$language"
12336 done
12337
12338 # We link each language in with a set of hooks, reached indirectly via
12339 # lang.${target}.
12340
12341 rm -f Make-hooks
12342 touch Make-hooks
12343 target_list="all.build all.cross start.encap rest.encap tags \
12344         install-normal install-common install-man \
12345         uninstall info man srcextra srcman srcinfo \
12346         mostlyclean clean distclean maintainer-clean \
12347         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12348 for t in $target_list
12349 do
12350         x=
12351         for lang in $all_languages
12352         do
12353                         x="$x $lang.$t"
12354         done
12355         echo "lang.$t: $x" >> Make-hooks
12356 done
12357
12358 # --------
12359 # UNSORTED
12360 # --------
12361
12362 # Create .gdbinit.
12363
12364 echo "dir ." > .gdbinit
12365 echo "dir ${srcdir}" >> .gdbinit
12366 if test x$gdb_needs_out_file_path = xyes
12367 then
12368         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12369 fi
12370 if test "x$subdirs" != x; then
12371         for s in $subdirs
12372         do
12373                 echo "dir ${srcdir}/$s" >> .gdbinit
12374         done
12375 fi
12376 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12377
12378 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12379 # absolute path for gcc_tooldir based on inserting the number of up-directory
12380 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12381 # $(libsubdir)/@(unlibsubdir) based path.
12382 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12383 # make and thus we'd get different behavior depending on where we built the
12384 # sources.
12385 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12386     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12387 else
12388 # An explanation of the sed strings:
12389 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12390 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12391 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12392 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12393 #
12394 # (*) Note this pattern overwrites the first character of the string
12395 # with a forward slash if one is not already present.  This is not a
12396 # problem because the exact names of the sub-directories concerned is
12397 # unimportant, just the number of them matters.
12398 #
12399 # The practical upshot of these patterns is like this:
12400 #
12401 #  prefix     exec_prefix        result
12402 #  ------     -----------        ------
12403 #   /foo        /foo/bar          ../
12404 #   /foo/       /foo/bar          ../
12405 #   /foo        /foo/bar/         ../
12406 #   /foo/       /foo/bar/         ../
12407 #   /foo        /foo/bar/ugg      ../../
12408 #
12409     dollar='$$'
12410     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12411 fi
12412
12413
12414
12415 # Find a directory in which to install a shared libgcc.
12416
12417 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12418 if test "${enable_version_specific_runtime_libs+set}" = set; then
12419   enableval="$enable_version_specific_runtime_libs"
12420
12421 fi;
12422
12423
12424 # Check whether --with-slibdir or --without-slibdir was given.
12425 if test "${with_slibdir+set}" = set; then
12426   withval="$with_slibdir"
12427   slibdir="$with_slibdir"
12428 else
12429   if test "${enable_version_specific_runtime_libs+set}" = set; then
12430   slibdir='$(libsubdir)'
12431 elif test "$host" != "$target"; then
12432   slibdir='$(build_tooldir)/lib'
12433 else
12434   slibdir='$(libdir)'
12435 fi
12436 fi;
12437
12438
12439 objdir=`${PWDCMD-pwd}`
12440
12441
12442 # Substitute configuration variables
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510 # If it doesn't already exist, create document directory
12511 echo "checking for the document directory." 1>&2
12512 if test -d doc ; then
12513   true
12514 else
12515   mkdir doc
12516 fi
12517
12518 # Echo link setup.
12519 if test x${build} = x${host} ; then
12520   if test x${host} = x${target} ; then
12521     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12522   else
12523     echo "Links are now set up to build a cross-compiler" 1>&2
12524     echo " from ${host} to ${target}." 1>&2
12525   fi
12526 else
12527   if test x${host} = x${target} ; then
12528     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12529     echo " for ${target}." 1>&2
12530   else
12531     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12532     echo " from ${host} to ${target}." 1>&2
12533   fi
12534 fi
12535
12536
12537
12538
12539 # Configure the subdirectories
12540 # AC_CONFIG_SUBDIRS($subdirs)
12541
12542 # Create the Makefile
12543 # and configure language subdirectories
12544           ac_config_files="$ac_config_files $all_outputs"
12545
12546
12547           ac_config_commands="$ac_config_commands default"
12548
12549 cat >confcache <<\_ACEOF
12550 # This file is a shell script that caches the results of configure
12551 # tests run on this system so they can be shared between configure
12552 # scripts and configure runs, see configure's option --config-cache.
12553 # It is not useful on other systems.  If it contains results you don't
12554 # want to keep, you may remove or edit it.
12555 #
12556 # config.status only pays attention to the cache file if you give it
12557 # the --recheck option to rerun configure.
12558 #
12559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12561 # following values.
12562
12563 _ACEOF
12564
12565 # The following way of writing the cache mishandles newlines in values,
12566 # but we know of no workaround that is simple, portable, and efficient.
12567 # So, don't put newlines in cache variables' values.
12568 # Ultrix sh set writes to stderr and can't be redirected directly,
12569 # and sets the high bit in the cache file unless we assign to the vars.
12570 {
12571   (set) 2>&1 |
12572     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12573     *ac_space=\ *)
12574       # `set' does not quote correctly, so add quotes (double-quote
12575       # substitution turns \\\\ into \\, and sed turns \\ into \).
12576       sed -n \
12577         "s/'/'\\\\''/g;
12578           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12579       ;;
12580     *)
12581       # `set' quotes correctly as required by POSIX, so do not add quotes.
12582       sed -n \
12583         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12584       ;;
12585     esac;
12586 } |
12587   sed '
12588      t clear
12589      : clear
12590      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12591      t end
12592      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12593      : end' >>confcache
12594 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12595   if test -w $cache_file; then
12596     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12597     cat confcache >$cache_file
12598   else
12599     echo "not updating unwritable cache $cache_file"
12600   fi
12601 fi
12602 rm -f confcache
12603
12604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12605 # Let make expand exec_prefix.
12606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12607
12608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12610 # trailing colons and then remove the whole line if VPATH becomes empty
12611 # (actually we leave an empty line to preserve line numbers).
12612 if test "x$srcdir" = x.; then
12613   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12614 s/:*\$(srcdir):*/:/;
12615 s/:*\${srcdir}:*/:/;
12616 s/:*@srcdir@:*/:/;
12617 s/^\([^=]*=[     ]*\):*/\1/;
12618 s/:*$//;
12619 s/^[^=]*=[       ]*$//;
12620 }'
12621 fi
12622
12623 DEFS=-DHAVE_CONFIG_H
12624
12625 ac_libobjs=
12626 ac_ltlibobjs=
12627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12628   # 1. Remove the extension, and $U if already installed.
12629   ac_i=`echo "$ac_i" |
12630          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12631   # 2. Add them.
12632   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12633   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12634 done
12635 LIBOBJS=$ac_libobjs
12636
12637 LTLIBOBJS=$ac_ltlibobjs
12638
12639
12640
12641 : ${CONFIG_STATUS=./config.status}
12642 ac_clean_files_save=$ac_clean_files
12643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12646 cat >$CONFIG_STATUS <<_ACEOF
12647 #! $SHELL
12648 # Generated by $as_me.
12649 # Run this file to recreate the current configuration.
12650 # Compiler output produced by configure, useful for debugging
12651 # configure, is in config.log if it exists.
12652
12653 debug=false
12654 ac_cs_recheck=false
12655 ac_cs_silent=false
12656 SHELL=\${CONFIG_SHELL-$SHELL}
12657 _ACEOF
12658
12659 cat >>$CONFIG_STATUS <<\_ACEOF
12660 ## --------------------- ##
12661 ## M4sh Initialization.  ##
12662 ## --------------------- ##
12663
12664 # Be Bourne compatible
12665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12666   emulate sh
12667   NULLCMD=:
12668   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12669   # is contrary to our usage.  Disable this feature.
12670   alias -g '${1+"$@"}'='"$@"'
12671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12672   set -o posix
12673 fi
12674 DUALCASE=1; export DUALCASE # for MKS sh
12675
12676 # Support unset when possible.
12677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12678   as_unset=unset
12679 else
12680   as_unset=false
12681 fi
12682
12683
12684 # Work around bugs in pre-3.0 UWIN ksh.
12685 $as_unset ENV MAIL MAILPATH
12686 PS1='$ '
12687 PS2='> '
12688 PS4='+ '
12689
12690 # NLS nuisances.
12691 for as_var in \
12692   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12693   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12694   LC_TELEPHONE LC_TIME
12695 do
12696   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12697     eval $as_var=C; export $as_var
12698   else
12699     $as_unset $as_var
12700   fi
12701 done
12702
12703 # Required to use basename.
12704 if expr a : '\(a\)' >/dev/null 2>&1; then
12705   as_expr=expr
12706 else
12707   as_expr=false
12708 fi
12709
12710 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12711   as_basename=basename
12712 else
12713   as_basename=false
12714 fi
12715
12716
12717 # Name of the executable.
12718 as_me=`$as_basename "$0" ||
12719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12720          X"$0" : 'X\(//\)$' \| \
12721          X"$0" : 'X\(/\)$' \| \
12722          .     : '\(.\)' 2>/dev/null ||
12723 echo X/"$0" |
12724     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12725           /^X\/\(\/\/\)$/{ s//\1/; q; }
12726           /^X\/\(\/\).*/{ s//\1/; q; }
12727           s/.*/./; q'`
12728
12729
12730 # PATH needs CR, and LINENO needs CR and PATH.
12731 # Avoid depending upon Character Ranges.
12732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12735 as_cr_digits='0123456789'
12736 as_cr_alnum=$as_cr_Letters$as_cr_digits
12737
12738 # The user is always right.
12739 if test "${PATH_SEPARATOR+set}" != set; then
12740   echo "#! /bin/sh" >conf$$.sh
12741   echo  "exit 0"   >>conf$$.sh
12742   chmod +x conf$$.sh
12743   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12744     PATH_SEPARATOR=';'
12745   else
12746     PATH_SEPARATOR=:
12747   fi
12748   rm -f conf$$.sh
12749 fi
12750
12751
12752   as_lineno_1=$LINENO
12753   as_lineno_2=$LINENO
12754   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12755   test "x$as_lineno_1" != "x$as_lineno_2" &&
12756   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12757   # Find who we are.  Look in the path if we contain no path at all
12758   # relative or not.
12759   case $0 in
12760     *[\\/]* ) as_myself=$0 ;;
12761     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12763 do
12764   IFS=$as_save_IFS
12765   test -z "$as_dir" && as_dir=.
12766   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12767 done
12768
12769        ;;
12770   esac
12771   # We did not find ourselves, most probably we were run as `sh COMMAND'
12772   # in which case we are not to be found in the path.
12773   if test "x$as_myself" = x; then
12774     as_myself=$0
12775   fi
12776   if test ! -f "$as_myself"; then
12777     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12778 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12779    { (exit 1); exit 1; }; }
12780   fi
12781   case $CONFIG_SHELL in
12782   '')
12783     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12785 do
12786   IFS=$as_save_IFS
12787   test -z "$as_dir" && as_dir=.
12788   for as_base in sh bash ksh sh5; do
12789          case $as_dir in
12790          /*)
12791            if ("$as_dir/$as_base" -c '
12792   as_lineno_1=$LINENO
12793   as_lineno_2=$LINENO
12794   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12795   test "x$as_lineno_1" != "x$as_lineno_2" &&
12796   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12797              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12798              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12799              CONFIG_SHELL=$as_dir/$as_base
12800              export CONFIG_SHELL
12801              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12802            fi;;
12803          esac
12804        done
12805 done
12806 ;;
12807   esac
12808
12809   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12810   # uniformly replaced by the line number.  The first 'sed' inserts a
12811   # line-number line before each line; the second 'sed' does the real
12812   # work.  The second script uses 'N' to pair each line-number line
12813   # with the numbered line, and appends trailing '-' during
12814   # substitution so that $LINENO is not a special case at line end.
12815   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12816   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12817   sed '=' <$as_myself |
12818     sed '
12819       N
12820       s,$,-,
12821       : loop
12822       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12823       t loop
12824       s,-$,,
12825       s,^['$as_cr_digits']*\n,,
12826     ' >$as_me.lineno &&
12827   chmod +x $as_me.lineno ||
12828     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12829 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12830    { (exit 1); exit 1; }; }
12831
12832   # Don't try to exec as it changes $[0], causing all sort of problems
12833   # (the dirname of $[0] is not the place where we might find the
12834   # original and so on.  Autoconf is especially sensible to this).
12835   . ./$as_me.lineno
12836   # Exit status is that of the last command.
12837   exit
12838 }
12839
12840
12841 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12842   *c*,-n*) ECHO_N= ECHO_C='
12843 ' ECHO_T='      ' ;;
12844   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12845   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12846 esac
12847
12848 if expr a : '\(a\)' >/dev/null 2>&1; then
12849   as_expr=expr
12850 else
12851   as_expr=false
12852 fi
12853
12854 rm -f conf$$ conf$$.exe conf$$.file
12855 echo >conf$$.file
12856 if ln -s conf$$.file conf$$ 2>/dev/null; then
12857   # We could just check for DJGPP; but this test a) works b) is more generic
12858   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12859   if test -f conf$$.exe; then
12860     # Don't use ln at all; we don't have any links
12861     as_ln_s='cp -p'
12862   else
12863     as_ln_s='ln -s'
12864   fi
12865 elif ln conf$$.file conf$$ 2>/dev/null; then
12866   as_ln_s=ln
12867 else
12868   as_ln_s='cp -p'
12869 fi
12870 rm -f conf$$ conf$$.exe conf$$.file
12871
12872 if mkdir -p . 2>/dev/null; then
12873   as_mkdir_p=:
12874 else
12875   test -d ./-p && rmdir ./-p
12876   as_mkdir_p=false
12877 fi
12878
12879 as_executable_p="test -f"
12880
12881 # Sed expression to map a string onto a valid CPP name.
12882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12883
12884 # Sed expression to map a string onto a valid variable name.
12885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12886
12887
12888 # IFS
12889 # We need space, tab and new line, in precisely that order.
12890 as_nl='
12891 '
12892 IFS="   $as_nl"
12893
12894 # CDPATH.
12895 $as_unset CDPATH
12896
12897 exec 6>&1
12898
12899 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12900 # report actual input values of CONFIG_FILES etc. instead of their
12901 # values after options handling.  Logging --version etc. is OK.
12902 exec 5>>config.log
12903 {
12904   echo
12905   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12906 ## Running $as_me. ##
12907 _ASBOX
12908 } >&5
12909 cat >&5 <<_CSEOF
12910
12911 This file was extended by $as_me, which was
12912 generated by GNU Autoconf 2.59.  Invocation command line was
12913
12914   CONFIG_FILES    = $CONFIG_FILES
12915   CONFIG_HEADERS  = $CONFIG_HEADERS
12916   CONFIG_LINKS    = $CONFIG_LINKS
12917   CONFIG_COMMANDS = $CONFIG_COMMANDS
12918   $ $0 $@
12919
12920 _CSEOF
12921 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12922 echo >&5
12923 _ACEOF
12924
12925 # Files that config.status was made for.
12926 if test -n "$ac_config_files"; then
12927   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12928 fi
12929
12930 if test -n "$ac_config_headers"; then
12931   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12932 fi
12933
12934 if test -n "$ac_config_links"; then
12935   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12936 fi
12937
12938 if test -n "$ac_config_commands"; then
12939   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12940 fi
12941
12942 cat >>$CONFIG_STATUS <<\_ACEOF
12943
12944 ac_cs_usage="\
12945 \`$as_me' instantiates files from templates according to the
12946 current configuration.
12947
12948 Usage: $0 [OPTIONS] [FILE]...
12949
12950   -h, --help       print this help, then exit
12951   -V, --version    print version number, then exit
12952   -q, --quiet      do not print progress messages
12953   -d, --debug      don't remove temporary files
12954       --recheck    update $as_me by reconfiguring in the same conditions
12955   --file=FILE[:TEMPLATE]
12956                    instantiate the configuration file FILE
12957   --header=FILE[:TEMPLATE]
12958                    instantiate the configuration header FILE
12959
12960 Configuration files:
12961 $config_files
12962
12963 Configuration headers:
12964 $config_headers
12965
12966 Configuration commands:
12967 $config_commands
12968
12969 Report bugs to <bug-autoconf@gnu.org>."
12970 _ACEOF
12971
12972 cat >>$CONFIG_STATUS <<_ACEOF
12973 ac_cs_version="\\
12974 config.status
12975 configured by $0, generated by GNU Autoconf 2.59,
12976   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12977
12978 Copyright (C) 2003 Free Software Foundation, Inc.
12979 This config.status script is free software; the Free Software Foundation
12980 gives unlimited permission to copy, distribute and modify it."
12981 srcdir=$srcdir
12982 _ACEOF
12983
12984 cat >>$CONFIG_STATUS <<\_ACEOF
12985 # If no file are specified by the user, then we need to provide default
12986 # value.  By we need to know if files were specified by the user.
12987 ac_need_defaults=:
12988 while test $# != 0
12989 do
12990   case $1 in
12991   --*=*)
12992     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12993     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12994     ac_shift=:
12995     ;;
12996   -*)
12997     ac_option=$1
12998     ac_optarg=$2
12999     ac_shift=shift
13000     ;;
13001   *) # This is not an option, so the user has probably given explicit
13002      # arguments.
13003      ac_option=$1
13004      ac_need_defaults=false;;
13005   esac
13006
13007   case $ac_option in
13008   # Handling of the options.
13009 _ACEOF
13010 cat >>$CONFIG_STATUS <<\_ACEOF
13011   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13012     ac_cs_recheck=: ;;
13013   --version | --vers* | -V )
13014     echo "$ac_cs_version"; exit 0 ;;
13015   --he | --h)
13016     # Conflict between --help and --header
13017     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13018 Try \`$0 --help' for more information." >&5
13019 echo "$as_me: error: ambiguous option: $1
13020 Try \`$0 --help' for more information." >&2;}
13021    { (exit 1); exit 1; }; };;
13022   --help | --hel | -h )
13023     echo "$ac_cs_usage"; exit 0 ;;
13024   --debug | --d* | -d )
13025     debug=: ;;
13026   --file | --fil | --fi | --f )
13027     $ac_shift
13028     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13029     ac_need_defaults=false;;
13030   --header | --heade | --head | --hea )
13031     $ac_shift
13032     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13033     ac_need_defaults=false;;
13034   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13035   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13036     ac_cs_silent=: ;;
13037
13038   # This is an error.
13039   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13040 Try \`$0 --help' for more information." >&5
13041 echo "$as_me: error: unrecognized option: $1
13042 Try \`$0 --help' for more information." >&2;}
13043    { (exit 1); exit 1; }; } ;;
13044
13045   *) ac_config_targets="$ac_config_targets $1" ;;
13046
13047   esac
13048   shift
13049 done
13050
13051 ac_configure_extra_args=
13052
13053 if $ac_cs_silent; then
13054   exec 6>/dev/null
13055   ac_configure_extra_args="$ac_configure_extra_args --silent"
13056 fi
13057
13058 _ACEOF
13059 cat >>$CONFIG_STATUS <<_ACEOF
13060 if \$ac_cs_recheck; then
13061   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13062   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13063 fi
13064
13065 _ACEOF
13066
13067 cat >>$CONFIG_STATUS <<_ACEOF
13068 #
13069 # INIT-COMMANDS section.
13070 #
13071
13072 subdirs='$subdirs'
13073 symbolic_link='$symbolic_link'
13074
13075
13076 _ACEOF
13077
13078
13079
13080 cat >>$CONFIG_STATUS <<\_ACEOF
13081 for ac_config_target in $ac_config_targets
13082 do
13083   case "$ac_config_target" in
13084   # Handling of arguments.
13085   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13086   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13087   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13088   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13090    { (exit 1); exit 1; }; };;
13091   esac
13092 done
13093
13094 # If the user did not use the arguments to specify the items to instantiate,
13095 # then the envvar interface is used.  Set only those that are not.
13096 # We use the long form for the default assignment because of an extremely
13097 # bizarre bug on SunOS 4.1.3.
13098 if $ac_need_defaults; then
13099   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13100   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13101   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13102 fi
13103
13104 # Have a temporary directory for convenience.  Make it in the build tree
13105 # simply because there is no reason to put it here, and in addition,
13106 # creating and moving files from /tmp can sometimes cause problems.
13107 # Create a temporary directory, and hook for its removal unless debugging.
13108 $debug ||
13109 {
13110   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13111   trap '{ (exit 1); exit 1; }' 1 2 13 15
13112 }
13113
13114 # Create a (secure) tmp directory for tmp files.
13115
13116 {
13117   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13118   test -n "$tmp" && test -d "$tmp"
13119 }  ||
13120 {
13121   tmp=./confstat$$-$RANDOM
13122   (umask 077 && mkdir $tmp)
13123 } ||
13124 {
13125    echo "$me: cannot create a temporary directory in ." >&2
13126    { (exit 1); exit 1; }
13127 }
13128
13129 _ACEOF
13130
13131 cat >>$CONFIG_STATUS <<_ACEOF
13132
13133 #
13134 # CONFIG_FILES section.
13135 #
13136
13137 # No need to generate the scripts if there are no CONFIG_FILES.
13138 # This happens for instance when ./config.status config.h
13139 if test -n "\$CONFIG_FILES"; then
13140   # Protect against being on the right side of a sed subst in config.status.
13141   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13142    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13143 s,@SHELL@,$SHELL,;t t
13144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13150 s,@exec_prefix@,$exec_prefix,;t t
13151 s,@prefix@,$prefix,;t t
13152 s,@program_transform_name@,$program_transform_name,;t t
13153 s,@bindir@,$bindir,;t t
13154 s,@sbindir@,$sbindir,;t t
13155 s,@libexecdir@,$libexecdir,;t t
13156 s,@datadir@,$datadir,;t t
13157 s,@sysconfdir@,$sysconfdir,;t t
13158 s,@sharedstatedir@,$sharedstatedir,;t t
13159 s,@localstatedir@,$localstatedir,;t t
13160 s,@libdir@,$libdir,;t t
13161 s,@includedir@,$includedir,;t t
13162 s,@oldincludedir@,$oldincludedir,;t t
13163 s,@infodir@,$infodir,;t t
13164 s,@mandir@,$mandir,;t t
13165 s,@build_alias@,$build_alias,;t t
13166 s,@host_alias@,$host_alias,;t t
13167 s,@target_alias@,$target_alias,;t t
13168 s,@DEFS@,$DEFS,;t t
13169 s,@ECHO_C@,$ECHO_C,;t t
13170 s,@ECHO_N@,$ECHO_N,;t t
13171 s,@ECHO_T@,$ECHO_T,;t t
13172 s,@LIBS@,$LIBS,;t t
13173 s,@build@,$build,;t t
13174 s,@build_cpu@,$build_cpu,;t t
13175 s,@build_vendor@,$build_vendor,;t t
13176 s,@build_os@,$build_os,;t t
13177 s,@host@,$host,;t t
13178 s,@host_cpu@,$host_cpu,;t t
13179 s,@host_vendor@,$host_vendor,;t t
13180 s,@host_os@,$host_os,;t t
13181 s,@target@,$target,;t t
13182 s,@target_cpu@,$target_cpu,;t t
13183 s,@target_vendor@,$target_vendor,;t t
13184 s,@target_os@,$target_os,;t t
13185 s,@target_noncanonical@,$target_noncanonical,;t t
13186 s,@build_subdir@,$build_subdir,;t t
13187 s,@host_subdir@,$host_subdir,;t t
13188 s,@target_subdir@,$target_subdir,;t t
13189 s,@GENINSRC@,$GENINSRC,;t t
13190 s,@CC@,$CC,;t t
13191 s,@CFLAGS@,$CFLAGS,;t t
13192 s,@LDFLAGS@,$LDFLAGS,;t t
13193 s,@CPPFLAGS@,$CPPFLAGS,;t t
13194 s,@ac_ct_CC@,$ac_ct_CC,;t t
13195 s,@EXEEXT@,$EXEEXT,;t t
13196 s,@OBJEXT@,$OBJEXT,;t t
13197 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13198 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13199 s,@CPP@,$CPP,;t t
13200 s,@strict1_warn@,$strict1_warn,;t t
13201 s,@warn_cflags@,$warn_cflags,;t t
13202 s,@WERROR@,$WERROR,;t t
13203 s,@nocommon_flag@,$nocommon_flag,;t t
13204 s,@TREEBROWSER@,$TREEBROWSER,;t t
13205 s,@EGREP@,$EGREP,;t t
13206 s,@valgrind_path@,$valgrind_path,;t t
13207 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13208 s,@valgrind_command@,$valgrind_command,;t t
13209 s,@coverage_flags@,$coverage_flags,;t t
13210 s,@enable_multilib@,$enable_multilib,;t t
13211 s,@enable_shared@,$enable_shared,;t t
13212 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13213 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13214 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13215 s,@onestep@,$onestep,;t t
13216 s,@SET_MAKE@,$SET_MAKE,;t t
13217 s,@AWK@,$AWK,;t t
13218 s,@LN_S@,$LN_S,;t t
13219 s,@LN@,$LN,;t t
13220 s,@RANLIB@,$RANLIB,;t t
13221 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13222 s,@ranlib_flags@,$ranlib_flags,;t t
13223 s,@INSTALL@,$INSTALL,;t t
13224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13225 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13226 s,@make_compare_target@,$make_compare_target,;t t
13227 s,@have_mktemp_command@,$have_mktemp_command,;t t
13228 s,@MAKEINFO@,$MAKEINFO,;t t
13229 s,@BUILD_INFO@,$BUILD_INFO,;t t
13230 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13231 s,@FLEX@,$FLEX,;t t
13232 s,@BISON@,$BISON,;t t
13233 s,@NM@,$NM,;t t
13234 s,@AR@,$AR,;t t
13235 s,@stage1_cflags@,$stage1_cflags,;t t
13236 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13237 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13238 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13239 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13240 s,@LIBICONV@,$LIBICONV,;t t
13241 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13242 s,@manext@,$manext,;t t
13243 s,@objext@,$objext,;t t
13244 s,@gthread_flags@,$gthread_flags,;t t
13245 s,@extra_modes_file@,$extra_modes_file,;t t
13246 s,@PACKAGE@,$PACKAGE,;t t
13247 s,@VERSION@,$VERSION,;t t
13248 s,@USE_NLS@,$USE_NLS,;t t
13249 s,@LIBINTL@,$LIBINTL,;t t
13250 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13251 s,@INCINTL@,$INCINTL,;t t
13252 s,@XGETTEXT@,$XGETTEXT,;t t
13253 s,@GMSGFMT@,$GMSGFMT,;t t
13254 s,@POSUB@,$POSUB,;t t
13255 s,@CATALOGS@,$CATALOGS,;t t
13256 s,@CROSS@,$CROSS,;t t
13257 s,@ALL@,$ALL,;t t
13258 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13259 s,@inhibit_libc@,$inhibit_libc,;t t
13260 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13261 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13262 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13263 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13264 s,@collect2@,$collect2,;t t
13265 s,@libgcc_visibility@,$libgcc_visibility,;t t
13266 s,@GGC@,$GGC,;t t
13267 s,@zlibdir@,$zlibdir,;t t
13268 s,@zlibinc@,$zlibinc,;t t
13269 s,@MAINT@,$MAINT,;t t
13270 s,@ANDER@,$ANDER,;t t
13271 s,@BANSHEEINC@,$BANSHEEINC,;t t
13272 s,@BANSHEELIB@,$BANSHEELIB,;t t
13273 s,@gcc_tooldir@,$gcc_tooldir,;t t
13274 s,@dollar@,$dollar,;t t
13275 s,@slibdir@,$slibdir,;t t
13276 s,@objdir@,$objdir,;t t
13277 s,@subdirs@,$subdirs,;t t
13278 s,@srcdir@,$srcdir,;t t
13279 s,@all_boot_languages@,$all_boot_languages,;t t
13280 s,@all_compilers@,$all_compilers,;t t
13281 s,@all_gtfiles@,$all_gtfiles,;t t
13282 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13283 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13284 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13285 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13286 s,@all_languages@,$all_languages,;t t
13287 s,@all_stagestuff@,$all_stagestuff,;t t
13288 s,@build_exeext@,$build_exeext,;t t
13289 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13290 s,@build_xm_file_list@,$build_xm_file_list,;t t
13291 s,@build_xm_include_list@,$build_xm_include_list,;t t
13292 s,@build_xm_defines@,$build_xm_defines,;t t
13293 s,@check_languages@,$check_languages,;t t
13294 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13295 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13296 s,@cpp_install_dir@,$cpp_install_dir,;t t
13297 s,@xmake_file@,$xmake_file,;t t
13298 s,@tmake_file@,$tmake_file,;t t
13299 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13300 s,@extra_headers_list@,$extra_headers_list,;t t
13301 s,@extra_objs@,$extra_objs,;t t
13302 s,@extra_parts@,$extra_parts,;t t
13303 s,@extra_passes@,$extra_passes,;t t
13304 s,@extra_programs@,$extra_programs,;t t
13305 s,@float_h_file@,$float_h_file,;t t
13306 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13307 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13308 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13309 s,@gcc_version@,$gcc_version,;t t
13310 s,@gcc_version_full@,$gcc_version_full,;t t
13311 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13312 s,@host_exeext@,$host_exeext,;t t
13313 s,@host_xm_file_list@,$host_xm_file_list,;t t
13314 s,@host_xm_include_list@,$host_xm_include_list,;t t
13315 s,@host_xm_defines@,$host_xm_defines,;t t
13316 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13317 s,@install@,$install,;t t
13318 s,@lang_opt_files@,$lang_opt_files,;t t
13319 s,@lang_specs_files@,$lang_specs_files,;t t
13320 s,@lang_tree_files@,$lang_tree_files,;t t
13321 s,@local_prefix@,$local_prefix,;t t
13322 s,@md_file@,$md_file,;t t
13323 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13324 s,@out_file@,$out_file,;t t
13325 s,@out_object_file@,$out_object_file,;t t
13326 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13327 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13328 s,@symbolic_link@,$symbolic_link,;t t
13329 s,@thread_file@,$thread_file,;t t
13330 s,@tm_file_list@,$tm_file_list,;t t
13331 s,@tm_include_list@,$tm_include_list,;t t
13332 s,@tm_defines@,$tm_defines,;t t
13333 s,@tm_p_file_list@,$tm_p_file_list,;t t
13334 s,@tm_p_include_list@,$tm_p_include_list,;t t
13335 s,@xm_file_list@,$xm_file_list,;t t
13336 s,@xm_include_list@,$xm_include_list,;t t
13337 s,@xm_defines@,$xm_defines,;t t
13338 s,@c_target_objs@,$c_target_objs,;t t
13339 s,@cxx_target_objs@,$cxx_target_objs,;t t
13340 s,@target_cpu_default@,$target_cpu_default,;t t
13341 s,@GMPLIBS@,$GMPLIBS,;t t
13342 s,@GMPINC@,$GMPINC,;t t
13343 s,@LIBOBJS@,$LIBOBJS,;t t
13344 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13345 /@language_hooks@/r $language_hooks
13346 s,@language_hooks@,,;t t
13347 CEOF
13348
13349 _ACEOF
13350
13351   cat >>$CONFIG_STATUS <<\_ACEOF
13352   # Split the substitutions into bite-sized pieces for seds with
13353   # small command number limits, like on Digital OSF/1 and HP-UX.
13354   ac_max_sed_lines=48
13355   ac_sed_frag=1 # Number of current file.
13356   ac_beg=1 # First line for current file.
13357   ac_end=$ac_max_sed_lines # Line after last line for current file.
13358   ac_more_lines=:
13359   ac_sed_cmds=
13360   while $ac_more_lines; do
13361     if test $ac_beg -gt 1; then
13362       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13363     else
13364       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13365     fi
13366     if test ! -s $tmp/subs.frag; then
13367       ac_more_lines=false
13368     else
13369       # The purpose of the label and of the branching condition is to
13370       # speed up the sed processing (if there are no `@' at all, there
13371       # is no need to browse any of the substitutions).
13372       # These are the two extra sed commands mentioned above.
13373       (echo ':t
13374   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13375       if test -z "$ac_sed_cmds"; then
13376         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13377       else
13378         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13379       fi
13380       ac_sed_frag=`expr $ac_sed_frag + 1`
13381       ac_beg=$ac_end
13382       ac_end=`expr $ac_end + $ac_max_sed_lines`
13383     fi
13384   done
13385   if test -z "$ac_sed_cmds"; then
13386     ac_sed_cmds=cat
13387   fi
13388 fi # test -n "$CONFIG_FILES"
13389
13390 _ACEOF
13391 cat >>$CONFIG_STATUS <<\_ACEOF
13392 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13393   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13394   case $ac_file in
13395   - | *:- | *:-:* ) # input from stdin
13396         cat >$tmp/stdin
13397         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13398         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13399   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13400         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13401   * )   ac_file_in=$ac_file.in ;;
13402   esac
13403
13404   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13405   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13407          X"$ac_file" : 'X\(//\)[^/]' \| \
13408          X"$ac_file" : 'X\(//\)$' \| \
13409          X"$ac_file" : 'X\(/\)' \| \
13410          .     : '\(.\)' 2>/dev/null ||
13411 echo X"$ac_file" |
13412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13414           /^X\(\/\/\)$/{ s//\1/; q; }
13415           /^X\(\/\).*/{ s//\1/; q; }
13416           s/.*/./; q'`
13417   { if $as_mkdir_p; then
13418     mkdir -p "$ac_dir"
13419   else
13420     as_dir="$ac_dir"
13421     as_dirs=
13422     while test ! -d "$as_dir"; do
13423       as_dirs="$as_dir $as_dirs"
13424       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13426          X"$as_dir" : 'X\(//\)[^/]' \| \
13427          X"$as_dir" : 'X\(//\)$' \| \
13428          X"$as_dir" : 'X\(/\)' \| \
13429          .     : '\(.\)' 2>/dev/null ||
13430 echo X"$as_dir" |
13431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13432           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13433           /^X\(\/\/\)$/{ s//\1/; q; }
13434           /^X\(\/\).*/{ s//\1/; q; }
13435           s/.*/./; q'`
13436     done
13437     test ! -n "$as_dirs" || mkdir $as_dirs
13438   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13440    { (exit 1); exit 1; }; }; }
13441
13442   ac_builddir=.
13443
13444 if test "$ac_dir" != .; then
13445   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13446   # A "../" for each directory in $ac_dir_suffix.
13447   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13448 else
13449   ac_dir_suffix= ac_top_builddir=
13450 fi
13451
13452 case $srcdir in
13453   .)  # No --srcdir option.  We are building in place.
13454     ac_srcdir=.
13455     if test -z "$ac_top_builddir"; then
13456        ac_top_srcdir=.
13457     else
13458        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13459     fi ;;
13460   [\\/]* | ?:[\\/]* )  # Absolute path.
13461     ac_srcdir=$srcdir$ac_dir_suffix;
13462     ac_top_srcdir=$srcdir ;;
13463   *) # Relative path.
13464     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13465     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13466 esac
13467
13468 # Do not use `cd foo && pwd` to compute absolute paths, because
13469 # the directories may not exist.
13470 case `pwd` in
13471 .) ac_abs_builddir="$ac_dir";;
13472 *)
13473   case "$ac_dir" in
13474   .) ac_abs_builddir=`pwd`;;
13475   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13476   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13477   esac;;
13478 esac
13479 case $ac_abs_builddir in
13480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13481 *)
13482   case ${ac_top_builddir}. in
13483   .) ac_abs_top_builddir=$ac_abs_builddir;;
13484   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13485   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13486   esac;;
13487 esac
13488 case $ac_abs_builddir in
13489 .) ac_abs_srcdir=$ac_srcdir;;
13490 *)
13491   case $ac_srcdir in
13492   .) ac_abs_srcdir=$ac_abs_builddir;;
13493   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13494   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13495   esac;;
13496 esac
13497 case $ac_abs_builddir in
13498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13499 *)
13500   case $ac_top_srcdir in
13501   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13502   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13503   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13504   esac;;
13505 esac
13506
13507
13508
13509   # Let's still pretend it is `configure' which instantiates (i.e., don't
13510   # use $as_me), people would be surprised to read:
13511   #    /* config.h.  Generated by config.status.  */
13512   if test x"$ac_file" = x-; then
13513     configure_input=
13514   else
13515     configure_input="$ac_file.  "
13516   fi
13517   configure_input=$configure_input"Generated from `echo $ac_file_in |
13518                                      sed 's,.*/,,'` by configure."
13519
13520   # First look for the input files in the build tree, otherwise in the
13521   # src tree.
13522   ac_file_inputs=`IFS=:
13523     for f in $ac_file_in; do
13524       case $f in
13525       -) echo $tmp/stdin ;;
13526       [\\/$]*)
13527          # Absolute (can't be DOS-style, as IFS=:)
13528          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13529 echo "$as_me: error: cannot find input file: $f" >&2;}
13530    { (exit 1); exit 1; }; }
13531          echo "$f";;
13532       *) # Relative
13533          if test -f "$f"; then
13534            # Build tree
13535            echo "$f"
13536          elif test -f "$srcdir/$f"; then
13537            # Source tree
13538            echo "$srcdir/$f"
13539          else
13540            # /dev/null tree
13541            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13542 echo "$as_me: error: cannot find input file: $f" >&2;}
13543    { (exit 1); exit 1; }; }
13544          fi;;
13545       esac
13546     done` || { (exit 1); exit 1; }
13547
13548   if test x"$ac_file" != x-; then
13549     { echo "$as_me:$LINENO: creating $ac_file" >&5
13550 echo "$as_me: creating $ac_file" >&6;}
13551     rm -f "$ac_file"
13552   fi
13553 _ACEOF
13554 cat >>$CONFIG_STATUS <<_ACEOF
13555   sed "$ac_vpsub
13556 $extrasub
13557 _ACEOF
13558 cat >>$CONFIG_STATUS <<\_ACEOF
13559 :t
13560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13561 s,@configure_input@,$configure_input,;t t
13562 s,@srcdir@,$ac_srcdir,;t t
13563 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13564 s,@top_srcdir@,$ac_top_srcdir,;t t
13565 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13566 s,@builddir@,$ac_builddir,;t t
13567 s,@abs_builddir@,$ac_abs_builddir,;t t
13568 s,@top_builddir@,$ac_top_builddir,;t t
13569 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13570 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13571   rm -f $tmp/stdin
13572   if test x"$ac_file" != x-; then
13573     mv $tmp/out $ac_file
13574   else
13575     cat $tmp/out
13576     rm -f $tmp/out
13577   fi
13578
13579 done
13580 _ACEOF
13581 cat >>$CONFIG_STATUS <<\_ACEOF
13582
13583 #
13584 # CONFIG_HEADER section.
13585 #
13586
13587 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13588 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13589 #
13590 # ac_d sets the value in "#define NAME VALUE" lines.
13591 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13592 ac_dB='[         ].*$,\1#\2'
13593 ac_dC=' '
13594 ac_dD=',;t'
13595 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13596 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13597 ac_uB='$,\1#\2define\3'
13598 ac_uC=' '
13599 ac_uD=',;t'
13600
13601 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13602   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13603   case $ac_file in
13604   - | *:- | *:-:* ) # input from stdin
13605         cat >$tmp/stdin
13606         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13607         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13608   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13609         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13610   * )   ac_file_in=$ac_file.in ;;
13611   esac
13612
13613   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13614 echo "$as_me: creating $ac_file" >&6;}
13615
13616   # First look for the input files in the build tree, otherwise in the
13617   # src tree.
13618   ac_file_inputs=`IFS=:
13619     for f in $ac_file_in; do
13620       case $f in
13621       -) echo $tmp/stdin ;;
13622       [\\/$]*)
13623          # Absolute (can't be DOS-style, as IFS=:)
13624          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13625 echo "$as_me: error: cannot find input file: $f" >&2;}
13626    { (exit 1); exit 1; }; }
13627          # Do quote $f, to prevent DOS paths from being IFS'd.
13628          echo "$f";;
13629       *) # Relative
13630          if test -f "$f"; then
13631            # Build tree
13632            echo "$f"
13633          elif test -f "$srcdir/$f"; then
13634            # Source tree
13635            echo "$srcdir/$f"
13636          else
13637            # /dev/null tree
13638            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13639 echo "$as_me: error: cannot find input file: $f" >&2;}
13640    { (exit 1); exit 1; }; }
13641          fi;;
13642       esac
13643     done` || { (exit 1); exit 1; }
13644   # Remove the trailing spaces.
13645   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13646
13647 _ACEOF
13648
13649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13650 # `conftest.undefs', that substitutes the proper values into
13651 # config.h.in to produce config.h.  The first handles `#define'
13652 # templates, and the second `#undef' templates.
13653 # And first: Protect against being on the right side of a sed subst in
13654 # config.status.  Protect against being in an unquoted here document
13655 # in config.status.
13656 rm -f conftest.defines conftest.undefs
13657 # Using a here document instead of a string reduces the quoting nightmare.
13658 # Putting comments in sed scripts is not portable.
13659 #
13660 # `end' is used to avoid that the second main sed command (meant for
13661 # 0-ary CPP macros) applies to n-ary macro definitions.
13662 # See the Autoconf documentation for `clear'.
13663 cat >confdef2sed.sed <<\_ACEOF
13664 s/[\\&,]/\\&/g
13665 s,[\\$`],\\&,g
13666 t clear
13667 : clear
13668 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13669 t end
13670 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13671 : end
13672 _ACEOF
13673 # If some macros were called several times there might be several times
13674 # the same #defines, which is useless.  Nevertheless, we may not want to
13675 # sort them, since we want the *last* AC-DEFINE to be honored.
13676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13678 rm -f confdef2sed.sed
13679
13680 # This sed command replaces #undef with comments.  This is necessary, for
13681 # example, in the case of _POSIX_SOURCE, which is predefined and required
13682 # on some systems where configure will not decide to define it.
13683 cat >>conftest.undefs <<\_ACEOF
13684 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13685 _ACEOF
13686
13687 # Break up conftest.defines because some shells have a limit on the size
13688 # of here documents, and old seds have small limits too (100 cmds).
13689 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13690 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13691 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13692 echo '  :' >>$CONFIG_STATUS
13693 rm -f conftest.tail
13694 while grep . conftest.defines >/dev/null
13695 do
13696   # Write a limited-size here document to $tmp/defines.sed.
13697   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13698   # Speed up: don't consider the non `#define' lines.
13699   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13700   # Work around the forget-to-reset-the-flag bug.
13701   echo 't clr' >>$CONFIG_STATUS
13702   echo ': clr' >>$CONFIG_STATUS
13703   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13704   echo 'CEOF
13705   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13706   rm -f $tmp/in
13707   mv $tmp/out $tmp/in
13708 ' >>$CONFIG_STATUS
13709   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13710   rm -f conftest.defines
13711   mv conftest.tail conftest.defines
13712 done
13713 rm -f conftest.defines
13714 echo '  fi # grep' >>$CONFIG_STATUS
13715 echo >>$CONFIG_STATUS
13716
13717 # Break up conftest.undefs because some shells have a limit on the size
13718 # of here documents, and old seds have small limits too (100 cmds).
13719 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13720 rm -f conftest.tail
13721 while grep . conftest.undefs >/dev/null
13722 do
13723   # Write a limited-size here document to $tmp/undefs.sed.
13724   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13725   # Speed up: don't consider the non `#undef'
13726   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13727   # Work around the forget-to-reset-the-flag bug.
13728   echo 't clr' >>$CONFIG_STATUS
13729   echo ': clr' >>$CONFIG_STATUS
13730   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13731   echo 'CEOF
13732   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13733   rm -f $tmp/in
13734   mv $tmp/out $tmp/in
13735 ' >>$CONFIG_STATUS
13736   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13737   rm -f conftest.undefs
13738   mv conftest.tail conftest.undefs
13739 done
13740 rm -f conftest.undefs
13741
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743   # Let's still pretend it is `configure' which instantiates (i.e., don't
13744   # use $as_me), people would be surprised to read:
13745   #    /* config.h.  Generated by config.status.  */
13746   if test x"$ac_file" = x-; then
13747     echo "/* Generated by configure.  */" >$tmp/config.h
13748   else
13749     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13750   fi
13751   cat $tmp/in >>$tmp/config.h
13752   rm -f $tmp/in
13753   if test x"$ac_file" != x-; then
13754     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13755       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13756 echo "$as_me: $ac_file is unchanged" >&6;}
13757     else
13758       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760          X"$ac_file" : 'X\(//\)[^/]' \| \
13761          X"$ac_file" : 'X\(//\)$' \| \
13762          X"$ac_file" : 'X\(/\)' \| \
13763          .     : '\(.\)' 2>/dev/null ||
13764 echo X"$ac_file" |
13765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13767           /^X\(\/\/\)$/{ s//\1/; q; }
13768           /^X\(\/\).*/{ s//\1/; q; }
13769           s/.*/./; q'`
13770       { if $as_mkdir_p; then
13771     mkdir -p "$ac_dir"
13772   else
13773     as_dir="$ac_dir"
13774     as_dirs=
13775     while test ! -d "$as_dir"; do
13776       as_dirs="$as_dir $as_dirs"
13777       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779          X"$as_dir" : 'X\(//\)[^/]' \| \
13780          X"$as_dir" : 'X\(//\)$' \| \
13781          X"$as_dir" : 'X\(/\)' \| \
13782          .     : '\(.\)' 2>/dev/null ||
13783 echo X"$as_dir" |
13784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13786           /^X\(\/\/\)$/{ s//\1/; q; }
13787           /^X\(\/\).*/{ s//\1/; q; }
13788           s/.*/./; q'`
13789     done
13790     test ! -n "$as_dirs" || mkdir $as_dirs
13791   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13793    { (exit 1); exit 1; }; }; }
13794
13795       rm -f $ac_file
13796       mv $tmp/config.h $ac_file
13797     fi
13798   else
13799     cat $tmp/config.h
13800     rm -f $tmp/config.h
13801   fi
13802 done
13803 _ACEOF
13804 cat >>$CONFIG_STATUS <<\_ACEOF
13805
13806 #
13807 # CONFIG_COMMANDS section.
13808 #
13809 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13810   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13811   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13812   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13813 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13814          X"$ac_dest" : 'X\(//\)[^/]' \| \
13815          X"$ac_dest" : 'X\(//\)$' \| \
13816          X"$ac_dest" : 'X\(/\)' \| \
13817          .     : '\(.\)' 2>/dev/null ||
13818 echo X"$ac_dest" |
13819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13820           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13821           /^X\(\/\/\)$/{ s//\1/; q; }
13822           /^X\(\/\).*/{ s//\1/; q; }
13823           s/.*/./; q'`
13824   { if $as_mkdir_p; then
13825     mkdir -p "$ac_dir"
13826   else
13827     as_dir="$ac_dir"
13828     as_dirs=
13829     while test ! -d "$as_dir"; do
13830       as_dirs="$as_dir $as_dirs"
13831       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833          X"$as_dir" : 'X\(//\)[^/]' \| \
13834          X"$as_dir" : 'X\(//\)$' \| \
13835          X"$as_dir" : 'X\(/\)' \| \
13836          .     : '\(.\)' 2>/dev/null ||
13837 echo X"$as_dir" |
13838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13840           /^X\(\/\/\)$/{ s//\1/; q; }
13841           /^X\(\/\).*/{ s//\1/; q; }
13842           s/.*/./; q'`
13843     done
13844     test ! -n "$as_dirs" || mkdir $as_dirs
13845   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13847    { (exit 1); exit 1; }; }; }
13848
13849   ac_builddir=.
13850
13851 if test "$ac_dir" != .; then
13852   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13853   # A "../" for each directory in $ac_dir_suffix.
13854   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13855 else
13856   ac_dir_suffix= ac_top_builddir=
13857 fi
13858
13859 case $srcdir in
13860   .)  # No --srcdir option.  We are building in place.
13861     ac_srcdir=.
13862     if test -z "$ac_top_builddir"; then
13863        ac_top_srcdir=.
13864     else
13865        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13866     fi ;;
13867   [\\/]* | ?:[\\/]* )  # Absolute path.
13868     ac_srcdir=$srcdir$ac_dir_suffix;
13869     ac_top_srcdir=$srcdir ;;
13870   *) # Relative path.
13871     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13872     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13873 esac
13874
13875 # Do not use `cd foo && pwd` to compute absolute paths, because
13876 # the directories may not exist.
13877 case `pwd` in
13878 .) ac_abs_builddir="$ac_dir";;
13879 *)
13880   case "$ac_dir" in
13881   .) ac_abs_builddir=`pwd`;;
13882   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13883   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13884   esac;;
13885 esac
13886 case $ac_abs_builddir in
13887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13888 *)
13889   case ${ac_top_builddir}. in
13890   .) ac_abs_top_builddir=$ac_abs_builddir;;
13891   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13892   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13893   esac;;
13894 esac
13895 case $ac_abs_builddir in
13896 .) ac_abs_srcdir=$ac_srcdir;;
13897 *)
13898   case $ac_srcdir in
13899   .) ac_abs_srcdir=$ac_abs_builddir;;
13900   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13901   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13902   esac;;
13903 esac
13904 case $ac_abs_builddir in
13905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13906 *)
13907   case $ac_top_srcdir in
13908   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13909   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13910   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13911   esac;;
13912 esac
13913
13914
13915   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13916 echo "$as_me: executing $ac_dest commands" >&6;}
13917   case $ac_dest in
13918     default )
13919 case ${CONFIG_HEADERS} in
13920   *auto-host.h:config.in*)
13921   echo > cstamp-h ;;
13922 esac
13923 # Make sure all the subdirs exist.
13924 for d in $subdirs
13925 do
13926     test -d $d || mkdir $d
13927 done
13928 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13929 # bootstrapping and the installation procedure can still use
13930 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13931 # FLAGS_TO_PASS has been modified to solve the problem there.
13932 # This is virtually a duplicate of what happens in configure.lang; we do
13933 # an extra check to make sure this only happens if ln -s can be used.
13934 if test "$symbolic_link" = "ln -s"; then
13935  for d in ${subdirs} ; do
13936         STARTDIR=`${PWDCMD-pwd}`
13937         cd $d
13938         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13939         do
13940                 rm -f $t
13941                 $symbolic_link ../$t $t 2>/dev/null
13942         done
13943         cd $STARTDIR
13944  done
13945 else true ; fi
13946  ;;
13947   esac
13948 done
13949 _ACEOF
13950
13951 cat >>$CONFIG_STATUS <<\_ACEOF
13952
13953 { (exit 0); exit 0; }
13954 _ACEOF
13955 chmod +x $CONFIG_STATUS
13956 ac_clean_files=$ac_clean_files_save
13957
13958
13959 # configure is writing to config.log, and then calls config.status.
13960 # config.status does its own redirection, appending to config.log.
13961 # Unfortunately, on DOS this fails, as config.log is still kept open
13962 # by configure, so config.status won't be able to write to it; its
13963 # output is simply discarded.  So we exec the FD to /dev/null,
13964 # effectively closing config.log, so it can be properly (re)opened and
13965 # appended to by config.status.  When coming back to configure, we
13966 # need to make the FD available again.
13967 if test "$no_create" != yes; then
13968   ac_cs_success=:
13969   ac_config_status_args=
13970   test "$silent" = yes &&
13971     ac_config_status_args="$ac_config_status_args --quiet"
13972   exec 5>/dev/null
13973   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13974   exec 5>>config.log
13975   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13976   # would make configure fail if this is the last instruction.
13977   $ac_cs_success || { (exit 1); exit 1; }
13978 fi
13979