OSDN Git Service

* configure.ac (ranlib_flags): New variable.
[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 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 stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO 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 target_noncanonical 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: misc,tree,rtl,rtlflag,gc,gcac,fold;
871                           default is misc,tree,gc,rtlflag
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler\'s code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-threads        enable thread usage for target GCC
883   --enable-threads=LIB    use LIB thread package for target GCC
884   --enable-objc-gc        enable the use of Boehm's garbage collector with
885                           the GNU Objective-C runtime
886   --disable-shared        don't provide a shared libgcc
887   --enable-intermodule    build the compiler in one step
888   --enable-languages=LIST specify which front-ends to build
889   --enable-initfini-array       use .init_array/.fini_array sections
890   --enable-sjlj-exceptions
891                           arrange to use setjmp/longjmp exception handling
892   --enable-libunwind-exceptions  force use libunwind for exceptions
893   --disable-win32-registry
894                           disable lookup of installation paths in the
895                           Registry on Windows hosts
896   --enable-win32-registry enable registry lookup (default)
897   --enable-win32-registry=KEY
898                           use KEY instead of GCC version as the last portion
899                           of the registry key
900   --enable-maintainer-mode
901                           enable make rules and dependencies not useful
902                           (and sometimes confusing) to the casual installer
903   --enable-version-specific-runtime-libs
904                           specify that runtime libraries should be
905                           installed in a compiler-specific directory
906
907 Optional Packages:
908   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910   --with-local-prefix=DIR specifies directory to put local include
911   --with-gxx-include-dir=DIR
912                           specifies directory to put g++ header files
913   --with-cpp-install-dir=DIR
914                           install the user visible C preprocessor in DIR
915                           (relative to PREFIX) as well as PREFIX/bin
916   --with-gnu-ld           arrange to work with GNU ld.
917   --with-ld               arrange to use the specified ld (full pathname)
918   --with-gnu-as           arrange to work with GNU as
919   --with-as               arrange to use the specified as (full pathname)
920   --with-stabs            arrange to use stabs instead of host debug format
921   --with-dwarf2           force the default debug format to be DWARF 2
922   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
924   --with-gc={page,zone}   choose the garbage collection mechanism to use
925                           with the compiler
926   --with-system-zlib      use installed libz
927   --with-libbanshee       enable libbanshee
928   --with-slibdir=DIR      shared libraries in DIR LIBDIR
929
930 Some influential environment variables:
931   CC          C compiler command
932   CFLAGS      C compiler flags
933   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
934               nonstandard directory <lib dir>
935   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
936               headers in a nonstandard directory <include dir>
937   CPP         C preprocessor
938   GMPLIBS     How to link GMP
939   GMPINC      How to find GMP include files
940
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
943
944 _ACEOF
945 fi
946
947 if test "$ac_init_help" = "recursive"; then
948   # If there are subdirs, report their specific --help.
949   ac_popdir=`pwd`
950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951     test -d $ac_dir || continue
952     ac_builddir=.
953
954 if test "$ac_dir" != .; then
955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956   # A "../" for each directory in $ac_dir_suffix.
957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959   ac_dir_suffix= ac_top_builddir=
960 fi
961
962 case $srcdir in
963   .)  # No --srcdir option.  We are building in place.
964     ac_srcdir=.
965     if test -z "$ac_top_builddir"; then
966        ac_top_srcdir=.
967     else
968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969     fi ;;
970   [\\/]* | ?:[\\/]* )  # Absolute path.
971     ac_srcdir=$srcdir$ac_dir_suffix;
972     ac_top_srcdir=$srcdir ;;
973   *) # Relative path.
974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
977
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
982 *)
983   case "$ac_dir" in
984   .) ac_abs_builddir=`pwd`;;
985   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986   *) ac_abs_builddir=`pwd`/"$ac_dir";;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 *)
992   case ${ac_top_builddir}. in
993   .) ac_abs_top_builddir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996   esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1000 *)
1001   case $ac_srcdir in
1002   .) ac_abs_srcdir=$ac_abs_builddir;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 *)
1010   case $ac_top_srcdir in
1011   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014   esac;;
1015 esac
1016
1017     cd $ac_dir
1018     # Check for guested configure; otherwise get Cygnus style configure.
1019     if test -f $ac_srcdir/configure.gnu; then
1020       echo
1021       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1022     elif test -f $ac_srcdir/configure; then
1023       echo
1024       $SHELL $ac_srcdir/configure  --help=recursive
1025     elif test -f $ac_srcdir/configure.ac ||
1026            test -f $ac_srcdir/configure.in; then
1027       echo
1028       $ac_configure --help
1029     else
1030       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031     fi
1032     cd $ac_popdir
1033   done
1034 fi
1035
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038   cat <<\_ACEOF
1039
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044   exit 0
1045 fi
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1050
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59.  Invocation command line was
1053
1054   $ $0 $@
1055
1056 _ACEOF
1057 {
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1062
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1071
1072 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1073 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1076 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1077 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1078 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1079
1080 _ASUNAME
1081
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1084 do
1085   IFS=$as_save_IFS
1086   test -z "$as_dir" && as_dir=.
1087   echo "PATH: $as_dir"
1088 done
1089
1090 } >&5
1091
1092 cat >&5 <<_ACEOF
1093
1094
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1098
1099 _ACEOF
1100
1101
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1113 do
1114   for ac_arg
1115   do
1116     case $ac_arg in
1117     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119     | -silent | --silent | --silen | --sile | --sil)
1120       continue ;;
1121     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123     esac
1124     case $ac_pass in
1125     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126     2)
1127       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128       if test $ac_must_keep_next = true; then
1129         ac_must_keep_next=false # Got value, back to normal.
1130       else
1131         case $ac_arg in
1132           *=* | --config-cache | -C | -disable-* | --disable-* \
1133           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135           | -with-* | --with-* | -without-* | --without-* | --x)
1136             case "$ac_configure_args0 " in
1137               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138             esac
1139             ;;
1140           -* ) ac_must_keep_next=true ;;
1141         esac
1142       fi
1143       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144       # Get rid of the leading space.
1145       ac_sep=" "
1146       ;;
1147     esac
1148   done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log.  We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159   # Save into config.log some information that might help in debugging.
1160   {
1161     echo
1162
1163     cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168     echo
1169     # The following way of writing the cache mishandles newlines in values,
1170 {
1171   (set) 2>&1 |
1172     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173     *ac_space=\ *)
1174       sed -n \
1175         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1177       ;;
1178     *)
1179       sed -n \
1180         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181       ;;
1182     esac;
1183 }
1184     echo
1185
1186     cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191     echo
1192     for ac_var in $ac_subst_vars
1193     do
1194       eval ac_val=$`echo $ac_var`
1195       echo "$ac_var='"'"'$ac_val'"'"'"
1196     done | sort
1197     echo
1198
1199     if test -n "$ac_subst_files"; then
1200       cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205       echo
1206       for ac_var in $ac_subst_files
1207       do
1208         eval ac_val=$`echo $ac_var`
1209         echo "$ac_var='"'"'$ac_val'"'"'"
1210       done | sort
1211       echo
1212     fi
1213
1214     if test -s confdefs.h; then
1215       cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220       echo
1221       sed "/^$/d" confdefs.h | sort
1222       echo
1223     fi
1224     test "$ac_signal" != 0 &&
1225       echo "$as_me: caught signal $ac_signal"
1226     echo "$as_me: exit $exit_status"
1227   } >&5
1228   rm -f core *.core &&
1229   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230     exit $exit_status
1231      ' 0
1232 for ac_signal in 1 2 13 15; do
1233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1236
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1241
1242 # Predefined preprocessor variables.
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1247
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1267
1268
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272   if test "x$prefix" != xNONE; then
1273     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274   else
1275     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276   fi
1277 fi
1278 for ac_site_file in $CONFIG_SITE; do
1279   if test -r "$ac_site_file"; then
1280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282     sed 's/^/| /' "$ac_site_file" >&5
1283     . "$ac_site_file"
1284   fi
1285 done
1286
1287 if test -r "$cache_file"; then
1288   # Some versions of bash will fail to source /dev/null (special
1289   # files actually), so we avoid doing that.
1290   if test -f "$cache_file"; then
1291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293     case $cache_file in
1294       [\\/]* | ?:[\\/]* ) . $cache_file;;
1295       *)                      . ./$cache_file;;
1296     esac
1297   fi
1298 else
1299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301   >$cache_file
1302 fi
1303
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310   eval ac_new_set=\$ac_env_${ac_var}_set
1311   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312   eval ac_new_val="\$ac_env_${ac_var}_value"
1313   case $ac_old_set,$ac_new_set in
1314     set,)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,set)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,);;
1323     *)
1324       if test "x$ac_old_val" != "x$ac_new_val"; then
1325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1328 echo "$as_me:   former value:  $ac_old_val" >&2;}
1329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1330 echo "$as_me:   current value: $ac_new_val" >&2;}
1331         ac_cache_corrupted=:
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1381
1382
1383 # Determine the host, build, and target systems
1384 ac_aux_dir=
1385 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1386   if test -f $ac_dir/install-sh; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/install-sh -c"
1389     break
1390   elif test -f $ac_dir/install.sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install.sh -c"
1393     break
1394   elif test -f $ac_dir/shtool; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/shtool install -c"
1397     break
1398   fi
1399 done
1400 if test -z "$ac_aux_dir"; then
1401   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1403    { (exit 1); exit 1; }; }
1404 fi
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1408
1409 # Make sure we can run config.sub.
1410 $ac_config_sub sun4 >/dev/null 2>&1 ||
1411   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1412 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1413    { (exit 1); exit 1; }; }
1414
1415 echo "$as_me:$LINENO: checking build system type" >&5
1416 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1417 if test "${ac_cv_build+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   ac_cv_build_alias=$build_alias
1421 test -z "$ac_cv_build_alias" &&
1422   ac_cv_build_alias=`$ac_config_guess`
1423 test -z "$ac_cv_build_alias" &&
1424   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1426    { (exit 1); exit 1; }; }
1427 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1428   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1430    { (exit 1); exit 1; }; }
1431
1432 fi
1433 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1434 echo "${ECHO_T}$ac_cv_build" >&6
1435 build=$ac_cv_build
1436 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439
1440
1441 echo "$as_me:$LINENO: checking host system type" >&5
1442 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1443 if test "${ac_cv_host+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   ac_cv_host_alias=$host_alias
1447 test -z "$ac_cv_host_alias" &&
1448   ac_cv_host_alias=$ac_cv_build_alias
1449 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1450   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1452    { (exit 1); exit 1; }; }
1453
1454 fi
1455 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1456 echo "${ECHO_T}$ac_cv_host" >&6
1457 host=$ac_cv_host
1458 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1459 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1460 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1461
1462
1463 echo "$as_me:$LINENO: checking target system type" >&5
1464 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1465 if test "${ac_cv_target+set}" = set; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   ac_cv_target_alias=$target_alias
1469 test "x$ac_cv_target_alias" = "x" &&
1470   ac_cv_target_alias=$ac_cv_host_alias
1471 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1472   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1474    { (exit 1); exit 1; }; }
1475
1476 fi
1477 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1478 echo "${ECHO_T}$ac_cv_target" >&6
1479 target=$ac_cv_target
1480 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1483
1484
1485 # The aliases save the names the user supplied, while $host etc.
1486 # will get canonicalized.
1487 test -n "$target_alias" &&
1488   test "$program_prefix$program_suffix$program_transform_name" = \
1489     NONENONEs,x,x, &&
1490   program_prefix=${target_alias}-
1491
1492 # Determine the noncanonical target name, for directory use.
1493  case ${build_alias} in
1494   "") build_noncanonical=${build} ;;
1495   *) build_noncanonical=${build_alias} ;;
1496 esac
1497
1498  case ${host_alias} in
1499   "") host_noncanonical=${build_noncanonical} ;;
1500   *) host_noncanonical=${host_alias} ;;
1501 esac
1502
1503  case ${target_alias} in
1504   "") target_noncanonical=${host_noncanonical} ;;
1505   *) target_noncanonical=${target_alias} ;;
1506 esac
1507
1508
1509 # Determine the target- and build-specific subdirectories
1510   # Prefix 'build-' so this never conflicts with target_subdir.
1511 build_subdir="build-${build_noncanonical}"
1512 # Not really a subdirectory, but here for completeness.
1513 host_subdir=.
1514 # No prefix.
1515 target_subdir=${target_noncanonical}
1516
1517
1518 # Set program_transform_name
1519 test "$program_prefix" != NONE &&
1520   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1521 # Use a double $ so make ignores it.
1522 test "$program_suffix" != NONE &&
1523   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1524 # Double any \ or $.  echo might interpret backslashes.
1525 # By default was `s,x,x', remove it if useless.
1526 cat <<\_ACEOF >conftest.sed
1527 s/[\\$]/&&/g;s/;s,x,x,$//
1528 _ACEOF
1529 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1530 rm conftest.sed
1531
1532
1533 # Check for bogus environment variables.
1534 # Test if LIBRARY_PATH contains the notation for the current directory
1535 # since this would lead to problems installing/building glibc.
1536 # LIBRARY_PATH contains the current directory if one of the following
1537 # is true:
1538 # - one of the terminals (":" and ";") is the first or last sign
1539 # - two terminals occur directly after each other
1540 # - the path contains an element with a dot in it
1541 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1542 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1543 case ${LIBRARY_PATH} in
1544   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1545     library_path_setting="contains current directory"
1546     ;;
1547   *)
1548     library_path_setting="ok"
1549     ;;
1550 esac
1551 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1552 echo "${ECHO_T}$library_path_setting" >&6
1553 if test "$library_path_setting" != "ok"; then
1554 { { echo "$as_me:$LINENO: error:
1555 *** LIBRARY_PATH shouldn't contain the current directory when
1556 *** building gcc. Please change the environment variable
1557 *** and run configure again." >&5
1558 echo "$as_me: error:
1559 *** LIBRARY_PATH shouldn't contain the current directory when
1560 *** building gcc. Please change the environment variable
1561 *** and run configure again." >&2;}
1562    { (exit 1); exit 1; }; }
1563 fi
1564
1565 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1566 # since this would lead to problems installing/building glibc.
1567 # GCC_EXEC_PREFIX contains the current directory if one of the following
1568 # is true:
1569 # - one of the terminals (":" and ";") is the first or last sign
1570 # - two terminals occur directly after each other
1571 # - the path contains an element with a dot in it
1572 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1573 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1574 case ${GCC_EXEC_PREFIX} in
1575   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1576     gcc_exec_prefix_setting="contains current directory"
1577     ;;
1578   *)
1579     gcc_exec_prefix_setting="ok"
1580     ;;
1581 esac
1582 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1583 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1584 if test "$gcc_exec_prefix_setting" != "ok"; then
1585 { { echo "$as_me:$LINENO: error:
1586 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1587 *** building gcc. Please change the environment variable
1588 *** and run configure again." >&5
1589 echo "$as_me: error:
1590 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1591 *** building gcc. Please change the environment variable
1592 *** and run configure again." >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 # -----------
1597 # Directories
1598 # -----------
1599
1600 # Specify the local prefix
1601 local_prefix=
1602
1603 # Check whether --with-local-prefix or --without-local-prefix was given.
1604 if test "${with_local_prefix+set}" = set; then
1605   withval="$with_local_prefix"
1606   case "${withval}" in
1607 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1608 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1609    { (exit 1); exit 1; }; } ;;
1610 no)     ;;
1611 *)      local_prefix=$with_local_prefix ;;
1612 esac
1613 fi;
1614
1615 # Default local prefix if it is empty
1616 if test x$local_prefix = x; then
1617         local_prefix=/usr/local
1618 fi
1619
1620 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1621 # passed in by the toplevel make and thus we'd get different behavior
1622 # depending on where we built the sources.
1623 gcc_gxx_include_dir=
1624 # Specify the g++ header file directory
1625
1626 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1627 if test "${with_gxx_include_dir+set}" = set; then
1628   withval="$with_gxx_include_dir"
1629   case "${withval}" in
1630 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1631 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1632    { (exit 1); exit 1; }; } ;;
1633 no)     ;;
1634 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1635 esac
1636 fi;
1637
1638 if test x${gcc_gxx_include_dir} = x; then
1639   if test x${enable_version_specific_runtime_libs} = xyes; then
1640     gcc_gxx_include_dir='${libsubdir}/include/c++'
1641   else
1642     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1643     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1644   fi
1645 fi
1646
1647
1648 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1649 if test "${with_cpp_install_dir+set}" = set; then
1650   withval="$with_cpp_install_dir"
1651   if test x$withval = xyes; then
1652   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1653 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1654    { (exit 1); exit 1; }; }
1655 elif test x$withval != xno; then
1656   cpp_install_dir=$withval
1657 fi
1658 fi;
1659
1660 # We would like to our source tree to be readonly.  However when releases or
1661 # pre-releases are generated, the flex/bison generated files as well as the
1662 # various formats of manuals need to be included along with the rest of the
1663 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1664 # just that.
1665
1666 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1667 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1668     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1669 if test "${enable_generated_files_in_srcdir+set}" = set; then
1670   enableval="$enable_generated_files_in_srcdir"
1671   generated_files_in_srcdir=$enableval
1672 else
1673   generated_files_in_srcdir=no
1674 fi;
1675
1676 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1677 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1678
1679 if test "$generated_files_in_srcdir" = "yes"; then
1680   GENINSRC=''
1681 else
1682   GENINSRC='#'
1683 fi
1684
1685
1686 # -------------------
1687 # Find default linker
1688 # -------------------
1689
1690 # With GNU ld
1691
1692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1693 if test "${with_gnu_ld+set}" = set; then
1694   withval="$with_gnu_ld"
1695   gnu_ld_flag="$with_gnu_ld"
1696 else
1697   gnu_ld_flag=no
1698 fi;
1699
1700 # With pre-defined ld
1701
1702 # Check whether --with-ld or --without-ld was given.
1703 if test "${with_ld+set}" = set; then
1704   withval="$with_ld"
1705   DEFAULT_LINKER="$with_ld"
1706 fi;
1707 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1708   if test ! -x "$DEFAULT_LINKER"; then
1709     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1710 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1711    { (exit 1); exit 1; }; }
1712   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1713     gnu_ld_flag=yes
1714   fi
1715
1716 cat >>confdefs.h <<_ACEOF
1717 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1718 _ACEOF
1719
1720 fi
1721
1722 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1723 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1724 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1725   if test x"$gnu_ld_flag" = x"no"; then
1726     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1727 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1728   else
1729     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1731   fi
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 # ----------------------
1738 # Find default assembler
1739 # ----------------------
1740
1741 # With GNU as
1742
1743 # Check whether --with-gnu-as or --without-gnu-as was given.
1744 if test "${with_gnu_as+set}" = set; then
1745   withval="$with_gnu_as"
1746   gas_flag="$with_gnu_as"
1747 else
1748   gas_flag=no
1749 fi;
1750
1751
1752 # Check whether --with-as or --without-as was given.
1753 if test "${with_as+set}" = set; then
1754   withval="$with_as"
1755   DEFAULT_ASSEMBLER="$with_as"
1756 fi;
1757 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1758   if test ! -x "$DEFAULT_ASSEMBLER"; then
1759     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1761    { (exit 1); exit 1; }; }
1762   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763     gas_flag=yes
1764   fi
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1768 _ACEOF
1769
1770 fi
1771
1772 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1773 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1774 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1775   if test x"$gas_flag" = x"no"; then
1776     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1777 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1778   else
1779     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1780 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1781   fi
1782 else
1783   echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 # ---------------
1788 # Find C compiler
1789 # ---------------
1790
1791 # If a non-executable a.out is present (e.g. created by GNU as above even if
1792 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1793 # file, even when creating an executable, so an execution test fails.
1794 # Remove possible default executable files to avoid this.
1795 #
1796 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1797 # Autoconf includes it.
1798 rm -f a.out a.exe b.out
1799
1800 # Find the native compiler
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 if test -n "$ac_tool_prefix"; then
1807   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$CC"; then
1815   ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835   echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842 fi
1843 if test -z "$ac_cv_prog_CC"; then
1844   ac_ct_CC=$CC
1845   # Extract the first word of "gcc", so it can be a program name with args.
1846 set dummy gcc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$ac_ct_CC"; then
1853   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862     ac_cv_prog_ac_ct_CC="gcc"
1863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864     break 2
1865   fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1875 else
1876   echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880   CC=$ac_ct_CC
1881 else
1882   CC="$ac_cv_prog_CC"
1883 fi
1884
1885 if test -z "$CC"; then
1886   if test -n "$ac_tool_prefix"; then
1887   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   if test -n "$CC"; then
1895   ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902   for ac_exec_ext in '' $ac_executable_extensions; do
1903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904     ac_cv_prog_CC="${ac_tool_prefix}cc"
1905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906     break 2
1907   fi
1908 done
1909 done
1910
1911 fi
1912 fi
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915   echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922 fi
1923 if test -z "$ac_cv_prog_CC"; then
1924   ac_ct_CC=$CC
1925   # Extract the first word of "cc", so it can be a program name with args.
1926 set dummy cc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$ac_ct_CC"; then
1933   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_ac_ct_CC="cc"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960   CC=$ac_ct_CC
1961 else
1962   CC="$ac_cv_prog_CC"
1963 fi
1964
1965 fi
1966 if test -z "$CC"; then
1967   # Extract the first word of "cc", so it can be a program name with args.
1968 set dummy cc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977   ac_prog_rejected=no
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981   IFS=$as_save_IFS
1982   test -z "$as_dir" && as_dir=.
1983   for ac_exec_ext in '' $ac_executable_extensions; do
1984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986        ac_prog_rejected=yes
1987        continue
1988      fi
1989     ac_cv_prog_CC="cc"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 if test $ac_prog_rejected = yes; then
1997   # We found a bogon in the path, so make sure we never use it.
1998   set dummy $ac_cv_prog_CC
1999   shift
2000   if test $# != 0; then
2001     # We chose a different compiler from the bogus one.
2002     # However, it has the same basename, so the bogon will be chosen
2003     # first if we set CC to just the basename; use the full file name.
2004     shift
2005     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2006   fi
2007 fi
2008 fi
2009 fi
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012   echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015   echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019 fi
2020 if test -z "$CC"; then
2021   if test -n "$ac_tool_prefix"; then
2022   for ac_prog in cl
2023   do
2024     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   if test -n "$CC"; then
2032   ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   for ac_exec_ext in '' $ac_executable_extensions; do
2040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043     break 2
2044   fi
2045 done
2046 done
2047
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052   echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055   echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2057 fi
2058
2059     test -n "$CC" && break
2060   done
2061 fi
2062 if test -z "$CC"; then
2063   ac_ct_CC=$CC
2064   for ac_prog in cl
2065 do
2066   # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$ac_ct_CC"; then
2074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_ac_ct_CC="$ac_prog"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090 fi
2091 fi
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2099 fi
2100
2101   test -n "$ac_ct_CC" && break
2102 done
2103
2104   CC=$ac_ct_CC
2105 fi
2106
2107 fi
2108
2109
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114    { (exit 1); exit 1; }; }
2115
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO:" \
2118      "checking for C compiler version" >&5
2119 ac_compiler=`set X $ac_compile; echo $2`
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121   (eval $ac_compiler --version </dev/null >&5) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126   (eval $ac_compiler -v </dev/null >&5) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131   (eval $ac_compiler -V </dev/null >&5) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }
2135
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h.  */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h.  */
2142
2143 int
2144 main ()
2145 {
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2155 # of exeext.
2156 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2160   (eval $ac_link_default) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; then
2164   # Find the output, starting from the most likely.  This scheme is
2165 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2166 # resort.
2167
2168 # Be careful to initialize this variable, since it used to be cached.
2169 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170 ac_cv_exeext=
2171 # b.out is created by i960 compilers.
2172 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173 do
2174   test -f "$ac_file" || continue
2175   case $ac_file in
2176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2177         ;;
2178     conftest.$ac_ext )
2179         # This is the source file.
2180         ;;
2181     [ab].out )
2182         # We found the default executable, but exeext='' is most
2183         # certainly right.
2184         break;;
2185     *.* )
2186         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187         # FIXME: I believe we export ac_cv_exeext for Libtool,
2188         # but it would be cool to find out if it's true.  Does anybody
2189         # maintain Libtool? --akim.
2190         export ac_cv_exeext
2191         break;;
2192     * )
2193         break;;
2194   esac
2195 done
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204    { (exit 77); exit 77; }; }
2205 fi
2206
2207 ac_exeext=$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6
2210
2211 # Check the compiler produces executables we can run.  If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218   if { ac_try='./$ac_file'
2219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220   (eval $ac_try) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; }; then
2224     cross_compiling=no
2225   else
2226     if test "$cross_compiling" = maybe; then
2227         cross_compiling=yes
2228     else
2229         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&2;}
2235    { (exit 1); exit 1; }; }
2236     fi
2237   fi
2238 fi
2239 echo "$as_me:$LINENO: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6
2241
2242 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243 ac_clean_files=$ac_clean_files_save
2244 # Check the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2248 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249 echo "${ECHO_T}$cross_compiling" >&6
2250
2251 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2254   (eval $ac_link) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; then
2258   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2259 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2260 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 # `rm'.
2262 for ac_file in conftest.exe conftest conftest.*; do
2263   test -f "$ac_file" || continue
2264   case $ac_file in
2265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2266     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267           export ac_cv_exeext
2268           break;;
2269     * ) break;;
2270   esac
2271 done
2272 else
2273   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278 fi
2279
2280 rm -f conftest$ac_cv_exeext
2281 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6
2283
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2289 if test "${ac_cv_objext+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; then
2313   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314   case $ac_file in
2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317        break;;
2318   esac
2319 done
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2330
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332 fi
2333 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6
2335 OBJEXT=$ac_cv_objext
2336 ac_objext=$OBJEXT
2337 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348
2349 int
2350 main ()
2351 {
2352 #ifndef __GNUC__
2353        choke me
2354 #endif
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>conftest.er1
2363   ac_status=$?
2364   grep -v '^ *+' conftest.er1 >conftest.err
2365   rm -f conftest.er1
2366   cat conftest.err >&5
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); } &&
2369          { ac_try='test -z "$ac_c_werror_flag"
2370                          || test ! -s conftest.err'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; } &&
2376          { ac_try='test -s conftest.$ac_objext'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382   ac_compiler_gnu=yes
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 ac_compiler_gnu=no
2388 fi
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2391
2392 fi
2393 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2394 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2395 GCC=`test $ac_compiler_gnu = yes && echo yes`
2396 ac_test_CFLAGS=${CFLAGS+set}
2397 ac_save_CFLAGS=$CFLAGS
2398 CFLAGS="-g"
2399 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2400 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2401 if test "${ac_cv_prog_cc_g+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410
2411 int
2412 main ()
2413 {
2414
2415   ;
2416   return 0;
2417 }
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421   (eval $ac_compile) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag"
2429                          || test ! -s conftest.err'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   ac_cv_prog_cc_g=yes
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 ac_cv_prog_cc_g=no
2447 fi
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 fi
2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2452 if test "$ac_test_CFLAGS" = set; then
2453   CFLAGS=$ac_save_CFLAGS
2454 elif test $ac_cv_prog_cc_g = yes; then
2455   if test "$GCC" = yes; then
2456     CFLAGS="-g -O2"
2457   else
2458     CFLAGS="-g"
2459   fi
2460 else
2461   if test "$GCC" = yes; then
2462     CFLAGS="-O2"
2463   else
2464     CFLAGS=
2465   fi
2466 fi
2467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470   echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472   ac_cv_prog_cc_stdc=no
2473 ac_save_CC=$CC
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480 #include <stdarg.h>
2481 #include <stdio.h>
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2488      char **p;
2489      int i;
2490 {
2491   return p[i];
2492 }
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2494 {
2495   char *s;
2496   va_list v;
2497   va_start (v,p);
2498   s = g (p, va_arg (v,int));
2499   va_end (v);
2500   return s;
2501 }
2502
2503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2504    function prototypes and stuff, but not '\xHH' hex character constants.
2505    These don't provoke an error unfortunately, instead are silently treated
2506    as 'x'.  The following induces an error, until -std1 is added to get
2507    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2508    array size at least.  It's necessary to write '\x00'==0 to get something
2509    that's true only with -std1.  */
2510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2511
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2516 int argc;
2517 char **argv;
2518 int
2519 main ()
2520 {
2521 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 # Don't try gcc -ansi; that turns off useful extensions and
2527 # breaks some systems' header files.
2528 # AIX                   -qlanglvl=ansi
2529 # Ultrix and OSF/1      -std1
2530 # HP-UX 10.20 and later -Ae
2531 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2532 # SVR4                  -Xc -D__EXTENSIONS__
2533 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534 do
2535   CC="$ac_save_CC $ac_arg"
2536   rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538   (eval $ac_compile) 2>conftest.er1
2539   ac_status=$?
2540   grep -v '^ *+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -z "$ac_c_werror_flag"
2546                          || test ! -s conftest.err'
2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548   (eval $ac_try) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; } &&
2552          { ac_try='test -s conftest.$ac_objext'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558   ac_cv_prog_cc_stdc=$ac_arg
2559 break
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 fi
2565 rm -f conftest.err conftest.$ac_objext
2566 done
2567 rm -f conftest.$ac_ext conftest.$ac_objext
2568 CC=$ac_save_CC
2569
2570 fi
2571
2572 case "x$ac_cv_prog_cc_stdc" in
2573   x|xno)
2574     echo "$as_me:$LINENO: result: none needed" >&5
2575 echo "${ECHO_T}none needed" >&6 ;;
2576   *)
2577     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2579     CC="$CC $ac_cv_prog_cc_stdc" ;;
2580 esac
2581
2582 # Some people use a C++ compiler to compile C.  Since we use `exit',
2583 # in C++ we need to declare it.  In case someone uses the same compiler
2584 # for both compiling C and C++ we need to have the C++ compiler decide
2585 # the declaration of exit, since it's the most demanding environment.
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #ifndef __cplusplus
2588   choke me
2589 #endif
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } &&
2600          { ac_try='test -z "$ac_c_werror_flag"
2601                          || test ! -s conftest.err'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; } &&
2607          { ac_try='test -s conftest.$ac_objext'
2608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609   (eval $ac_try) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; }; then
2613   for ac_declaration in \
2614    '' \
2615    'extern "C" void std::exit (int) throw (); using std::exit;' \
2616    'extern "C" void std::exit (int); using std::exit;' \
2617    'extern "C" void exit (int) throw ();' \
2618    'extern "C" void exit (int);' \
2619    'void exit (int);'
2620 do
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627 $ac_declaration
2628 #include <stdlib.h>
2629 int
2630 main ()
2631 {
2632 exit (42);
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>conftest.er1
2640   ac_status=$?
2641   grep -v '^ *+' conftest.er1 >conftest.err
2642   rm -f conftest.er1
2643   cat conftest.err >&5
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); } &&
2646          { ac_try='test -z "$ac_c_werror_flag"
2647                          || test ! -s conftest.err'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   :
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 continue
2665 fi
2666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667   cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 $ac_declaration
2674 int
2675 main ()
2676 {
2677 exit (42);
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 rm -f conftest.$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684   (eval $ac_compile) 2>conftest.er1
2685   ac_status=$?
2686   grep -v '^ *+' conftest.er1 >conftest.err
2687   rm -f conftest.er1
2688   cat conftest.err >&5
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); } &&
2691          { ac_try='test -z "$ac_c_werror_flag"
2692                          || test ! -s conftest.err'
2693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; } &&
2698          { ac_try='test -s conftest.$ac_objext'
2699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700   (eval $ac_try) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; }; then
2704   break
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 fi
2710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 done
2712 rm -f conftest*
2713 if test -n "$ac_declaration"; then
2714   echo '#ifdef __cplusplus' >>confdefs.h
2715   echo $ac_declaration      >>confdefs.h
2716   echo '#endif'             >>confdefs.h
2717 fi
2718
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 fi
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731 if test "x$CC" != xcc; then
2732   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2733 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2734 else
2735   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2736 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2737 fi
2738 set dummy $CC; ac_cc=`echo $2 |
2739                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2740 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743   cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 # Make sure it works both with $CC and with simple cc.
2759 # We do the test twice because some compilers refuse to overwrite an
2760 # existing .o file with -o, though they will create one.
2761 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } &&
2767    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); };
2772 then
2773   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2774   if test "x$CC" != xcc; then
2775     # Test first that cc exists at all.
2776     if { ac_try='cc -c conftest.$ac_ext >&5'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; }; then
2782       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          test -f conftest.$ac_objext && { (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); };
2793       then
2794         # cc works too.
2795         :
2796       else
2797         # cc exists but doesn't like -o.
2798         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2799       fi
2800     fi
2801   fi
2802 else
2803   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2804 fi
2805 rm -f conftest*
2806
2807 fi
2808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2809   echo "$as_me:$LINENO: result: yes" >&5
2810 echo "${ECHO_T}yes" >&6
2811 else
2812   echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2814
2815 cat >>confdefs.h <<\_ACEOF
2816 #define NO_MINUS_C_MINUS_O 1
2817 _ACEOF
2818
2819 fi
2820
2821 # autoconf is lame and doesn't give us any substitution variable for this.
2822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2823   NO_MINUS_C_MINUS_O=yes
2824 else
2825   OUTPUT_OPTION='-o $@'
2826 fi
2827
2828
2829
2830 # -------------------------
2831 # Check C compiler features
2832 # -------------------------
2833
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2843   CPP=
2844 fi
2845 if test -z "$CPP"; then
2846   if test "${ac_cv_prog_CPP+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849       # Double quotes because CPP needs to be expanded
2850     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2851     do
2852       ac_preproc_ok=false
2853 for ac_c_preproc_warn_flag in '' yes
2854 do
2855   # Use a header file that comes with gcc, so configuring glibc
2856   # with a fresh cross-compiler works.
2857   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858   # <limits.h> exists even on freestanding compilers.
2859   # On the NeXT, cc -E runs the code through the compiler's parser,
2860   # not just through cpp. "Syntax error" is here to catch this case.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 #ifdef __STDC__
2868 # include <limits.h>
2869 #else
2870 # include <assert.h>
2871 #endif
2872                      Syntax error
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } >/dev/null; then
2882   if test -s conftest.err; then
2883     ac_cpp_err=$ac_c_preproc_warn_flag
2884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2885   else
2886     ac_cpp_err=
2887   fi
2888 else
2889   ac_cpp_err=yes
2890 fi
2891 if test -z "$ac_cpp_err"; then
2892   :
2893 else
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897   # Broken: fails on valid input.
2898 continue
2899 fi
2900 rm -f conftest.err conftest.$ac_ext
2901
2902   # OK, works on sane cases.  Now check whether non-existent headers
2903   # can be detected and how.
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #include <ac_nonexistent.h>
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914   ac_status=$?
2915   grep -v '^ *+' conftest.er1 >conftest.err
2916   rm -f conftest.er1
2917   cat conftest.err >&5
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); } >/dev/null; then
2920   if test -s conftest.err; then
2921     ac_cpp_err=$ac_c_preproc_warn_flag
2922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923   else
2924     ac_cpp_err=
2925   fi
2926 else
2927   ac_cpp_err=yes
2928 fi
2929 if test -z "$ac_cpp_err"; then
2930   # Broken: success on invalid input.
2931 continue
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936   # Passes both tests.
2937 ac_preproc_ok=:
2938 break
2939 fi
2940 rm -f conftest.err conftest.$ac_ext
2941
2942 done
2943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944 rm -f conftest.err conftest.$ac_ext
2945 if $ac_preproc_ok; then
2946   break
2947 fi
2948
2949     done
2950     ac_cv_prog_CPP=$CPP
2951
2952 fi
2953   CPP=$ac_cv_prog_CPP
2954 else
2955   ac_cv_prog_CPP=$CPP
2956 fi
2957 echo "$as_me:$LINENO: result: $CPP" >&5
2958 echo "${ECHO_T}$CPP" >&6
2959 ac_preproc_ok=false
2960 for ac_c_preproc_warn_flag in '' yes
2961 do
2962   # Use a header file that comes with gcc, so configuring glibc
2963   # with a fresh cross-compiler works.
2964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965   # <limits.h> exists even on freestanding compilers.
2966   # On the NeXT, cc -E runs the code through the compiler's parser,
2967   # not just through cpp. "Syntax error" is here to catch this case.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979                      Syntax error
2980 _ACEOF
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983   ac_status=$?
2984   grep -v '^ *+' conftest.er1 >conftest.err
2985   rm -f conftest.er1
2986   cat conftest.err >&5
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } >/dev/null; then
2989   if test -s conftest.err; then
2990     ac_cpp_err=$ac_c_preproc_warn_flag
2991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2992   else
2993     ac_cpp_err=
2994   fi
2995 else
2996   ac_cpp_err=yes
2997 fi
2998 if test -z "$ac_cpp_err"; then
2999   :
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004   # Broken: fails on valid input.
3005 continue
3006 fi
3007 rm -f conftest.err conftest.$ac_ext
3008
3009   # OK, works on sane cases.  Now check whether non-existent headers
3010   # can be detected and how.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } >/dev/null; then
3027   if test -s conftest.err; then
3028     ac_cpp_err=$ac_c_preproc_warn_flag
3029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030   else
3031     ac_cpp_err=
3032   fi
3033 else
3034   ac_cpp_err=yes
3035 fi
3036 if test -z "$ac_cpp_err"; then
3037   # Broken: success on invalid input.
3038 continue
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043   # Passes both tests.
3044 ac_preproc_ok=:
3045 break
3046 fi
3047 rm -f conftest.err conftest.$ac_ext
3048
3049 done
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3053   :
3054 else
3055   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3058 See \`config.log' for more details." >&2;}
3059    { (exit 1); exit 1; }; }
3060 fi
3061
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067
3068
3069 echo "$as_me:$LINENO: checking for inline" >&5
3070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3071 if test "${ac_cv_c_inline+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   ac_cv_c_inline=no
3075 for ac_kw in inline __inline__ __inline; do
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 #ifndef __cplusplus
3083 typedef int foo_t;
3084 static $ac_kw foo_t static_foo () {return 0; }
3085 $ac_kw foo_t foo () {return 0; }
3086 #endif
3087
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091   (eval $ac_compile) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -z "$ac_c_werror_flag"
3099                          || test ! -s conftest.err'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107   (eval $ac_try) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; }; then
3111   ac_cv_c_inline=$ac_kw; break
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 fi
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 done
3119
3120 fi
3121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3122 echo "${ECHO_T}$ac_cv_c_inline" >&6
3123
3124
3125 case $ac_cv_c_inline in
3126   inline | yes) ;;
3127   *)
3128     case $ac_cv_c_inline in
3129       no) ac_val=;;
3130       *) ac_val=$ac_cv_c_inline;;
3131     esac
3132     cat >>confdefs.h <<_ACEOF
3133 #ifndef __cplusplus
3134 #define inline $ac_val
3135 #endif
3136 _ACEOF
3137     ;;
3138 esac
3139
3140
3141 echo "$as_me:$LINENO: checking for long long int" >&5
3142 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3143 if test "${ac_cv_c_long_long+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156 long long int i;
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163   (eval $ac_compile) 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } &&
3170          { ac_try='test -z "$ac_c_werror_flag"
3171                          || test ! -s conftest.err'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   ac_cv_c_long_long=yes
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_cv_c_long_long=no
3189 fi
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3193 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3194   if test $ac_cv_c_long_long = yes; then
3195
3196 cat >>confdefs.h <<\_ACEOF
3197 #define HAVE_LONG_LONG 1
3198 _ACEOF
3199
3200   fi
3201 echo "$as_me:$LINENO: checking for __int64" >&5
3202 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3203 if test "${ac_cv_c___int64+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216 __int64 i;
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223   (eval $ac_compile) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag"
3231                          || test ! -s conftest.err'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; } &&
3237          { ac_try='test -s conftest.$ac_objext'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; }; then
3243   ac_cv_c___int64=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_cv_c___int64=no
3249 fi
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3253 echo "${ECHO_T}$ac_cv_c___int64" >&6
3254   if test $ac_cv_c___int64 = yes; then
3255
3256 cat >>confdefs.h <<\_ACEOF
3257 #define HAVE___INT64 1
3258 _ACEOF
3259
3260   fi
3261
3262
3263 # sizeof(char) is 1 by definition.
3264 echo "$as_me:$LINENO: checking size of void *" >&5
3265 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3266 if test "${ac_cv_sizeof_void_p+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3270   cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3278
3279
3280 int
3281 main ()
3282 {
3283 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290   (eval $ac_compile) 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } &&
3297          { ac_try='test -z "$ac_c_werror_flag"
3298                          || test ! -s conftest.err'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; } &&
3304          { ac_try='test -s conftest.$ac_objext'
3305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306   (eval $ac_try) 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; }; then
3310   ac_cv_sizeof_void_p=$ac_size
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 fi
3316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3318 done
3319
3320 fi
3321
3322 if test x$ac_cv_sizeof_void_p = x ; then
3323   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3324 echo "$as_me: error: cannot determine a size for void *" >&2;}
3325    { (exit 1); exit 1; }; }
3326 fi
3327 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3328 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3329
3330 cat >>confdefs.h <<_ACEOF
3331 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3332 _ACEOF
3333
3334
3335 echo "$as_me:$LINENO: checking size of short" >&5
3336 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3337 if test "${ac_cv_sizeof_short+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #include "confdefs.h"
3348 #include <sys/types.h>
3349
3350
3351 int
3352 main ()
3353 {
3354 switch (0) case 0: case (sizeof (short) == $ac_size):;
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361   (eval $ac_compile) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -z "$ac_c_werror_flag"
3369                          || test ! -s conftest.err'
3370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371   (eval $ac_try) 2>&5
3372   ac_status=$?
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); }; } &&
3375          { ac_try='test -s conftest.$ac_objext'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; }; then
3381   ac_cv_sizeof_short=$ac_size
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 fi
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388   if test x$ac_cv_sizeof_short != x ; then break; fi
3389 done
3390
3391 fi
3392
3393 if test x$ac_cv_sizeof_short = x ; then
3394   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3395 echo "$as_me: error: cannot determine a size for short" >&2;}
3396    { (exit 1); exit 1; }; }
3397 fi
3398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3399 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3400
3401 cat >>confdefs.h <<_ACEOF
3402 #define SIZEOF_SHORT $ac_cv_sizeof_short
3403 _ACEOF
3404
3405
3406 echo "$as_me:$LINENO: checking size of int" >&5
3407 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3408 if test "${ac_cv_sizeof_int+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3420
3421
3422 int
3423 main ()
3424 {
3425 switch (0) case 0: case (sizeof (int) == $ac_size):;
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432   (eval $ac_compile) 2>conftest.er1
3433   ac_status=$?
3434   grep -v '^ *+' conftest.er1 >conftest.err
3435   rm -f conftest.er1
3436   cat conftest.err >&5
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); } &&
3439          { ac_try='test -z "$ac_c_werror_flag"
3440                          || test ! -s conftest.err'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; } &&
3446          { ac_try='test -s conftest.$ac_objext'
3447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448   (eval $ac_try) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; }; then
3452   ac_cv_sizeof_int=$ac_size
3453 else
3454   echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 fi
3458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459   if test x$ac_cv_sizeof_int != x ; then break; fi
3460 done
3461
3462 fi
3463
3464 if test x$ac_cv_sizeof_int = x ; then
3465   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3466 echo "$as_me: error: cannot determine a size for int" >&2;}
3467    { (exit 1); exit 1; }; }
3468 fi
3469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3470 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3471
3472 cat >>confdefs.h <<_ACEOF
3473 #define SIZEOF_INT $ac_cv_sizeof_int
3474 _ACEOF
3475
3476
3477 echo "$as_me:$LINENO: checking size of long" >&5
3478 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3479 if test "${ac_cv_sizeof_long+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3483   cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h.  */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h.  */
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3491
3492
3493 int
3494 main ()
3495 {
3496 switch (0) case 0: case (sizeof (long) == $ac_size):;
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503   (eval $ac_compile) 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } &&
3510          { ac_try='test -z "$ac_c_werror_flag"
3511                          || test ! -s conftest.err'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; } &&
3517          { ac_try='test -s conftest.$ac_objext'
3518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; }; then
3523   ac_cv_sizeof_long=$ac_size
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 fi
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530   if test x$ac_cv_sizeof_long != x ; then break; fi
3531 done
3532
3533 fi
3534
3535 if test x$ac_cv_sizeof_long = x ; then
3536   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3537 echo "$as_me: error: cannot determine a size for long" >&2;}
3538    { (exit 1); exit 1; }; }
3539 fi
3540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3541 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3542
3543 cat >>confdefs.h <<_ACEOF
3544 #define SIZEOF_LONG $ac_cv_sizeof_long
3545 _ACEOF
3546
3547
3548 if test $ac_cv_c_long_long = yes; then
3549   echo "$as_me:$LINENO: checking size of long long" >&5
3550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3551 if test "${ac_cv_sizeof_long_long+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3555   cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 #include "confdefs.h"
3562 #include <sys/types.h>
3563
3564
3565 int
3566 main ()
3567 {
3568 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575   (eval $ac_compile) 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } &&
3582          { ac_try='test -z "$ac_c_werror_flag"
3583                          || test ! -s conftest.err'
3584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585   (eval $ac_try) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; } &&
3589          { ac_try='test -s conftest.$ac_objext'
3590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591   (eval $ac_try) 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; }; then
3595   ac_cv_sizeof_long_long=$ac_size
3596 else
3597   echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 fi
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3603 done
3604
3605 fi
3606
3607 if test x$ac_cv_sizeof_long_long = x ; then
3608   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3609 echo "$as_me: error: cannot determine a size for long long" >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3613 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3614
3615 cat >>confdefs.h <<_ACEOF
3616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3617 _ACEOF
3618
3619
3620 fi
3621 if test $ac_cv_c___int64 = yes; then
3622   echo "$as_me:$LINENO: checking size of __int64" >&5
3623 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3624 if test "${ac_cv_sizeof___int64+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3628   cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3636
3637
3638 int
3639 main ()
3640 {
3641 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648   (eval $ac_compile) 2>conftest.er1
3649   ac_status=$?
3650   grep -v '^ *+' conftest.er1 >conftest.err
3651   rm -f conftest.er1
3652   cat conftest.err >&5
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655          { ac_try='test -z "$ac_c_werror_flag"
3656                          || test ! -s conftest.err'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; } &&
3662          { ac_try='test -s conftest.$ac_objext'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; }; then
3668   ac_cv_sizeof___int64=$ac_size
3669 else
3670   echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 fi
3674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3676 done
3677
3678 fi
3679
3680 if test x$ac_cv_sizeof___int64 = x ; then
3681   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3682 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3683    { (exit 1); exit 1; }; }
3684 fi
3685 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3686 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3687
3688 cat >>confdefs.h <<_ACEOF
3689 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3690 _ACEOF
3691
3692
3693 fi
3694
3695 # ---------------------
3696 # Warnings and checking
3697 # ---------------------
3698
3699 # Check $CC warning features (if it's GCC).
3700 # We want to use -pedantic, but we don't want warnings about
3701 # * 'long long'
3702 # * variadic macros
3703 # So, we only use -pedantic if we can disable those warnings.
3704
3705 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3706 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3707 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   save_CFLAGS="$CFLAGS"
3711   CFLAGS="-Wno-long-long"
3712   cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h.  */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h.  */
3718
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722   (eval $ac_compile) 2>conftest.er1
3723   ac_status=$?
3724   grep -v '^ *+' conftest.er1 >conftest.err
3725   rm -f conftest.er1
3726   cat conftest.err >&5
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); } &&
3729          { ac_try='test -z "$ac_c_werror_flag"
3730                          || test ! -s conftest.err'
3731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732   (eval $ac_try) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; } &&
3736          { ac_try='test -s conftest.$ac_objext'
3737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738   (eval $ac_try) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; }; then
3742   ac_cv_prog_cc_w_no_long_long=yes
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 ac_cv_prog_cc_w_no_long_long=no
3748 fi
3749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750   CFLAGS="$save_CFLAGS"
3751
3752 fi
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3755
3756 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3757 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3758 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   save_CFLAGS="$CFLAGS"
3762   CFLAGS="-Wno-variadic-macros"
3763   cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769
3770 _ACEOF
3771 rm -f conftest.$ac_objext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773   (eval $ac_compile) 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } &&
3780          { ac_try='test -z "$ac_c_werror_flag"
3781                          || 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"
3840                          || test ! -s conftest.err'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; } &&
3846          { ac_try='test -s conftest.$ac_objext'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; }; then
3852   ac_cv_prog_cc_w_old_style_definition=yes
3853 else
3854   echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 ac_cv_prog_cc_w_old_style_definition=no
3858 fi
3859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860   CFLAGS="$save_CFLAGS"
3861
3862 fi
3863 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3864 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3865 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3866   strict1_warn="${strict1_warn} -Wold-style-definition"
3867 fi
3868
3869 # Enable -Werror, period.
3870 # Check whether --enable-werror_always or --disable-werror_always was given.
3871 if test "${enable_werror_always+set}" = set; then
3872   enableval="$enable_werror_always"
3873
3874 else
3875   enable_werror_always=no
3876 fi;
3877 if test x${enable_werror_always} = xyes ; then
3878   strict1_warn="${strict1_warn} -Werror"
3879   WERROR=-Werror
3880 fi
3881
3882 # If the native compiler is GCC, we can enable warnings even in stage1.
3883 # That's useful for people building cross-compilers, or just running a
3884 # quick `make'.
3885 warn_cflags=
3886 if test "x$GCC" = "xyes"; then
3887   warn_cflags='$(GCC_WARN_CFLAGS)'
3888 fi
3889
3890
3891 # Enable -Werror in bootstrap stage2 and later.
3892 # Change the default to "no" on release branches.
3893 # Check whether --enable-werror or --disable-werror was given.
3894 if test "${enable_werror+set}" = set; then
3895   enableval="$enable_werror"
3896
3897 else
3898   enable_werror=yes
3899 fi;
3900 if test x$enable_werror = xyes ; then
3901   WERROR=-Werror
3902 fi
3903
3904
3905 # Enable expensive internal checks
3906 # Check whether --enable-checking or --disable-checking was given.
3907 if test "${enable_checking+set}" = set; then
3908   enableval="$enable_checking"
3909   ac_checking=
3910 ac_tree_checking=
3911 ac_rtl_checking=
3912 ac_rtlflag_checking=
3913 ac_gc_checking=
3914 ac_gc_always_collect=
3915 ac_fold_checking=
3916 case "${enableval}" in
3917 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3918         ac_rtlflag_checking=1 ;;
3919 no)     ;;
3920 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3921         set fnord $enableval; shift
3922         IFS="$ac_save_IFS"
3923         for check
3924         do
3925                 case $check in
3926                 misc)   ac_checking=1 ;;
3927                 tree)   ac_tree_checking=1 ;;
3928                 rtlflag)        ac_rtlflag_checking=1 ;;
3929                 rtl)    ac_rtl_checking=1 ;;
3930                 gc)     ac_gc_checking=1 ;;
3931                 gcac)   ac_gc_always_collect=1 ;;
3932                 fold)   ac_fold_checking=1 ;;
3933                 valgrind)       ac_checking_valgrind=1 ;;
3934                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3935 echo "$as_me: error: unknown check category $check" >&2;}
3936    { (exit 1); exit 1; }; } ;;
3937                 esac
3938         done
3939         ;;
3940 esac
3941
3942 else
3943   # Enable some checks by default for development versions of GCC
3944 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3945 fi;
3946 nocommon_flag=""
3947 if test x$ac_checking != x ; then
3948
3949 cat >>confdefs.h <<\_ACEOF
3950 #define ENABLE_CHECKING 1
3951 _ACEOF
3952
3953   nocommon_flag=-fno-common
3954 fi
3955
3956 if test x$ac_tree_checking != x ; then
3957
3958 cat >>confdefs.h <<\_ACEOF
3959 #define ENABLE_TREE_CHECKING 1
3960 _ACEOF
3961
3962   TREEBROWSER=tree-browser.o
3963 fi
3964
3965 if test x$ac_rtl_checking != x ; then
3966
3967 cat >>confdefs.h <<\_ACEOF
3968 #define ENABLE_RTL_CHECKING 1
3969 _ACEOF
3970
3971 fi
3972 if test x$ac_rtlflag_checking != x ; then
3973
3974 cat >>confdefs.h <<\_ACEOF
3975 #define ENABLE_RTL_FLAG_CHECKING 1
3976 _ACEOF
3977
3978 fi
3979 if test x$ac_gc_checking != x ; then
3980
3981 cat >>confdefs.h <<\_ACEOF
3982 #define ENABLE_GC_CHECKING 1
3983 _ACEOF
3984
3985 fi
3986 if test x$ac_gc_always_collect != x ; then
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define ENABLE_GC_ALWAYS_COLLECT 1
3990 _ACEOF
3991
3992 fi
3993 if test x$ac_fold_checking != x ; then
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define ENABLE_FOLD_CHECKING 1
3997 _ACEOF
3998
3999 fi
4000 valgrind_path_defines=
4001 valgrind_command=
4002
4003
4004 echo "$as_me:$LINENO: checking for egrep" >&5
4005 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4006 if test "${ac_cv_prog_egrep+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4010     then ac_cv_prog_egrep='grep -E'
4011     else ac_cv_prog_egrep='egrep'
4012     fi
4013 fi
4014 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4015 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4016  EGREP=$ac_cv_prog_egrep
4017
4018
4019 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4021 if test "${ac_cv_header_stdc+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030 #include <stdlib.h>
4031 #include <stdarg.h>
4032 #include <string.h>
4033 #include <float.h>
4034
4035 int
4036 main ()
4037 {
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_c_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_cv_header_stdc=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_cv_header_stdc=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073
4074 if test $ac_cv_header_stdc = yes; then
4075   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4076   cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h.  */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h.  */
4082 #include <string.h>
4083
4084 _ACEOF
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086   $EGREP "memchr" >/dev/null 2>&1; then
4087   :
4088 else
4089   ac_cv_header_stdc=no
4090 fi
4091 rm -f conftest*
4092
4093 fi
4094
4095 if test $ac_cv_header_stdc = yes; then
4096   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4104
4105 _ACEOF
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4118   if test "$cross_compiling" = yes; then
4119   :
4120 else
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <ctype.h>
4128 #if ((' ' & 0x0FF) == 0x020)
4129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 #else
4132 # define ISLOWER(c) \
4133                    (('a' <= (c) && (c) <= 'i') \
4134                      || ('j' <= (c) && (c) <= 'r') \
4135                      || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137 #endif
4138
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140 int
4141 main ()
4142 {
4143   int i;
4144   for (i = 0; i < 256; i++)
4145     if (XOR (islower (i), ISLOWER (i))
4146         || toupper (i) != TOUPPER (i))
4147       exit(2);
4148   exit (0);
4149 }
4150 _ACEOF
4151 rm -f conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153   (eval $ac_link) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; }; then
4162   :
4163 else
4164   echo "$as_me: program exited with status $ac_status" >&5
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 ( exit $ac_status )
4169 ac_cv_header_stdc=no
4170 fi
4171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 fi
4174 fi
4175 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4176 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4177 if test $ac_cv_header_stdc = yes; then
4178
4179 cat >>confdefs.h <<\_ACEOF
4180 #define STDC_HEADERS 1
4181 _ACEOF
4182
4183 fi
4184
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4196                   inttypes.h stdint.h unistd.h
4197 do
4198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199 echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_includes_default
4211
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216   (eval $ac_compile) 2>conftest.er1
4217   ac_status=$?
4218   grep -v '^ *+' conftest.er1 >conftest.err
4219   rm -f conftest.er1
4220   cat conftest.err >&5
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); } &&
4223          { ac_try='test -z "$ac_c_werror_flag"
4224                          || test ! -s conftest.err'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; } &&
4230          { ac_try='test -s conftest.$ac_objext'
4231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232   (eval $ac_try) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   eval "$as_ac_Header=yes"
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 eval "$as_ac_Header=no"
4242 fi
4243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248   cat >>confdefs.h <<_ACEOF
4249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 _ACEOF
4251
4252 fi
4253
4254 done
4255
4256
4257 if test "${ac_cv_header_valgrind_h+set}" = set; then
4258   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4259 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4260 if test "${ac_cv_header_valgrind_h+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4264 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4265 else
4266   # Is the header compilable?
4267 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4268 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 $ac_includes_default
4276 #include <valgrind.h>
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280   (eval $ac_compile) 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -z "$ac_c_werror_flag"
4288                          || test ! -s conftest.err'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; } &&
4294          { ac_try='test -s conftest.$ac_objext'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   ac_header_compiler=yes
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_header_compiler=no
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4309 echo "${ECHO_T}$ac_header_compiler" >&6
4310
4311 # Is the header present?
4312 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4313 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 #include <valgrind.h>
4321 _ACEOF
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } >/dev/null; then
4330   if test -s conftest.err; then
4331     ac_cpp_err=$ac_c_preproc_warn_flag
4332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4333   else
4334     ac_cpp_err=
4335   fi
4336 else
4337   ac_cpp_err=yes
4338 fi
4339 if test -z "$ac_cpp_err"; then
4340   ac_header_preproc=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345   ac_header_preproc=no
4346 fi
4347 rm -f conftest.err conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4349 echo "${ECHO_T}$ac_header_preproc" >&6
4350
4351 # So?  What about this header?
4352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4353   yes:no: )
4354     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4355 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4356     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4357 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4358     ac_header_preproc=yes
4359     ;;
4360   no:yes:* )
4361     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4362 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4363     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4364 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4365     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4366 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4367     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4368 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4369     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4371     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4372 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4373     (
4374       cat <<\_ASBOX
4375 ## ------------------------------------------ ##
4376 ## Report this to the AC_PACKAGE_NAME lists.  ##
4377 ## ------------------------------------------ ##
4378 _ASBOX
4379     ) |
4380       sed "s/^/$as_me: WARNING:     /" >&2
4381     ;;
4382 esac
4383 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4384 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4385 if test "${ac_cv_header_valgrind_h+set}" = set; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388   ac_cv_header_valgrind_h=$ac_header_preproc
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4391 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4392
4393 fi
4394 if test $ac_cv_header_valgrind_h = yes; then
4395   have_valgrind_h=yes
4396 else
4397   have_valgrind_h=no
4398 fi
4399
4400
4401
4402 if test x$ac_checking_valgrind != x ; then
4403   # It is certainly possible that there's valgrind but no valgrind.h.
4404   # GCC relies on making annotations so we must have both.
4405   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4406 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4407   cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <valgrind/memcheck.h>
4414 #ifndef VALGRIND_DISCARD
4415 #error VALGRIND_DISCARD not defined
4416 #endif
4417 _ACEOF
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null; then
4426   if test -s conftest.err; then
4427     ac_cpp_err=$ac_c_preproc_warn_flag
4428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4429   else
4430     ac_cpp_err=
4431   fi
4432 else
4433   ac_cpp_err=yes
4434 fi
4435 if test -z "$ac_cpp_err"; then
4436   gcc_cv_header_valgrind_memcheck_h=yes
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441   gcc_cv_header_valgrind_memcheck_h=no
4442 fi
4443 rm -f conftest.err conftest.$ac_ext
4444   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4445 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4446   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4447 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <memcheck.h>
4455 #ifndef VALGRIND_DISCARD
4456 #error VALGRIND_DISCARD not defined
4457 #endif
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } >/dev/null; then
4467   if test -s conftest.err; then
4468     ac_cpp_err=$ac_c_preproc_warn_flag
4469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470   else
4471     ac_cpp_err=
4472   fi
4473 else
4474   ac_cpp_err=yes
4475 fi
4476 if test -z "$ac_cpp_err"; then
4477   gcc_cv_header_memcheck_h=yes
4478 else
4479   echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482   gcc_cv_header_memcheck_h=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4486 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4487
4488 # Prepare PATH_SEPARATOR.
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491   echo "#! /bin/sh" >conf$$.sh
4492   echo  "exit 0"   >>conf$$.sh
4493   chmod +x conf$$.sh
4494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4495     PATH_SEPARATOR=';'
4496   else
4497     PATH_SEPARATOR=:
4498   fi
4499   rm -f conf$$.sh
4500 fi
4501
4502 # Find out how to test for executable files. Don't use a zero-byte file,
4503 # as systems may use methods other than mode bits to determine executability.
4504 cat >conf$$.file <<_ASEOF
4505 #! /bin/sh
4506 exit 0
4507 _ASEOF
4508 chmod +x conf$$.file
4509 if test -x conf$$.file >/dev/null 2>&1; then
4510   ac_executable_p="test -x"
4511 else
4512   ac_executable_p="test -f"
4513 fi
4514 rm -f conf$$.file
4515
4516 # Extract the first word of "valgrind", so it can be a program name with args.
4517 set dummy valgrind; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_path_valgrind_path+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   case "$valgrind_path" in
4524   [\\/]* | ?:[\\/]*)
4525     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4526     ;;
4527   *)
4528     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4529     for ac_dir in $PATH; do
4530       IFS="$ac_save_IFS"
4531       test -z "$ac_dir" && ac_dir=.
4532       for ac_exec_ext in '' $ac_executable_extensions; do
4533         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4534           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4535             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4536             break 2
4537           fi
4538         fi
4539       done
4540     done
4541     IFS="$ac_save_IFS"
4542     ;;
4543 esac
4544 fi
4545 valgrind_path="$ac_cv_path_valgrind_path"
4546 if test -n "$valgrind_path"; then
4547   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4548 echo "${ECHO_T}$valgrind_path" >&6
4549 else
4550   echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4552 fi
4553
4554   if test "x$valgrind_path" = "x" \
4555     || (test $have_valgrind_h = no \
4556         && test $gcc_cv_header_memcheck_h = no \
4557         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4558         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4559 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4560    { (exit 1); exit 1; }; }
4561   fi
4562   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4563   valgrind_command="$valgrind_path -q"
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define ENABLE_VALGRIND_CHECKING 1
4567 _ACEOF
4568
4569   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4570
4571 cat >>confdefs.h <<\_ACEOF
4572 #define HAVE_VALGRIND_MEMCHECK_H 1
4573 _ACEOF
4574
4575   fi
4576   if test $gcc_cv_header_memcheck_h = yes; then
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_MEMCHECK_H 1
4580 _ACEOF
4581
4582   fi
4583 fi
4584
4585
4586
4587 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4588 if test "${enable_mapped_location+set}" = set; then
4589   enableval="$enable_mapped_location"
4590
4591 else
4592   enable_mapped_location=no
4593 fi;
4594
4595 if test "$enable_mapped_location" = yes ; then
4596
4597 cat >>confdefs.h <<\_ACEOF
4598 #define USE_MAPPED_LOCATION 1
4599 _ACEOF
4600
4601 fi
4602
4603 # Enable code coverage collection
4604 # Check whether --enable-coverage or --disable-coverage was given.
4605 if test "${enable_coverage+set}" = set; then
4606   enableval="$enable_coverage"
4607   case "${enableval}" in
4608   yes|noopt)
4609     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4610     ;;
4611   opt)
4612     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4613     ;;
4614   no)
4615     # a.k.a. --disable-coverage
4616     coverage_flags=""
4617     ;;
4618   *)
4619     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4620 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4621    { (exit 1); exit 1; }; }
4622     ;;
4623 esac
4624 else
4625   coverage_flags=""
4626 fi;
4627
4628
4629 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4630 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4631   enableval="$enable_gather_detailed_mem_stats"
4632
4633 else
4634   enable_gather_detailed_mem_stats=no
4635 fi;
4636 if test x$enable_gather_detailed_mem_stats = xyes ; then
4637
4638 cat >>confdefs.h <<\_ACEOF
4639 #define GATHER_STATISTICS 1
4640 _ACEOF
4641
4642 fi
4643
4644 # -------------------------------
4645 # Miscenalleous configure options
4646 # -------------------------------
4647
4648 # With stabs
4649
4650 # Check whether --with-stabs or --without-stabs was given.
4651 if test "${with_stabs+set}" = set; then
4652   withval="$with_stabs"
4653   stabs="$with_stabs"
4654 else
4655   stabs=no
4656 fi;
4657
4658 # Determine whether or not multilibs are enabled.
4659 # Check whether --enable-multilib or --disable-multilib was given.
4660 if test "${enable_multilib+set}" = set; then
4661   enableval="$enable_multilib"
4662
4663 else
4664   enable_multilib=yes
4665 fi;
4666
4667
4668 # Enable __cxa_atexit for C++.
4669 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4670 if test "${enable___cxa_atexit+set}" = set; then
4671   enableval="$enable___cxa_atexit"
4672
4673 fi;
4674
4675 # Enable threads
4676 # Pass with no value to take the default
4677 # Pass with a value to specify a thread package
4678 # Check whether --enable-threads or --disable-threads was given.
4679 if test "${enable_threads+set}" = set; then
4680   enableval="$enable_threads"
4681
4682 else
4683   enable_threads=''
4684 fi;
4685
4686 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4687 if test "${enable_objc_gc+set}" = set; then
4688   enableval="$enable_objc_gc"
4689   if test x$enable_objc_gc = xno; then
4690         objc_boehm_gc=''
4691 else
4692         objc_boehm_gc=1
4693 fi
4694 else
4695   objc_boehm_gc=''
4696 fi;
4697
4698
4699 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4700 if test "${with_dwarf2+set}" = set; then
4701   withval="$with_dwarf2"
4702   dwarf2="$with_dwarf2"
4703 else
4704   dwarf2=no
4705 fi;
4706
4707 # Check whether --enable-shared or --disable-shared was given.
4708 if test "${enable_shared+set}" = set; then
4709   enableval="$enable_shared"
4710
4711   case $enable_shared in
4712   yes | no) ;;
4713   *)
4714     enable_shared=no
4715     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4716     for pkg in $enableval; do
4717       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4718         enable_shared=yes
4719       fi
4720     done
4721     IFS="$ac_save_ifs"
4722     ;;
4723   esac
4724
4725 else
4726   enable_shared=yes
4727 fi;
4728
4729
4730
4731 # Check whether --with-sysroot or --without-sysroot was given.
4732 if test "${with_sysroot+set}" = set; then
4733   withval="$with_sysroot"
4734
4735  case ${with_sysroot} in
4736  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4737  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4738  esac
4739
4740  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4741  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4742
4743  if test "x$exec_prefix" = xNONE; then
4744   if test "x$prefix" = xNONE; then
4745    test_prefix=/usr/local
4746   else
4747    test_prefix=$prefix
4748   fi
4749  else
4750   test_prefix=$exec_prefix
4751  fi
4752  case ${TARGET_SYSTEM_ROOT} in
4753  "${test_prefix}"|"${test_prefix}/"*|\
4754  '${exec_prefix}'|'${exec_prefix}/'*)
4755    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4756    TARGET_SYSTEM_ROOT_DEFINE="$t"
4757    ;;
4758  esac
4759
4760 else
4761
4762  TARGET_SYSTEM_ROOT=
4763  TARGET_SYSTEM_ROOT_DEFINE=
4764  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4765
4766 fi;
4767
4768
4769
4770
4771 # Build with intermodule optimisations
4772 # Check whether --enable-intermodule or --disable-intermodule was given.
4773 if test "${enable_intermodule+set}" = set; then
4774   enableval="$enable_intermodule"
4775   case ${enable_intermodule} in
4776   yes) onestep="-onestep";;
4777   *) onestep="";;
4778 esac
4779 else
4780   onestep=""
4781 fi;
4782
4783
4784 # Sanity check enable_languages in case someone does not run the toplevel
4785 # configure # script.
4786 # Check whether --enable-languages or --disable-languages was given.
4787 if test "${enable_languages+set}" = set; then
4788   enableval="$enable_languages"
4789   case ,${enable_languages}, in
4790        ,,|,yes,)
4791                 # go safe -- we cannot be much sure without the toplevel
4792                 # configure's
4793                 # analysis of which target libs are present and usable
4794                 enable_languages=c
4795                 ;;
4796          *,all,*)
4797                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4798 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4799    { (exit 1); exit 1; }; }
4800                 ;;
4801         *,c,*)
4802                 ;;
4803         *)
4804                 enable_languages=c,${enable_languages}
4805                 ;;
4806 esac
4807 else
4808   enable_languages=c
4809 fi;
4810
4811 subdirs=
4812 for lang in ${srcdir}/*/config-lang.in
4813 do
4814         case $lang in
4815         # The odd quoting in the next line works around
4816         # an apparent bug in bash 1.12 on linux.
4817         ${srcdir}/[*]/config-lang.in) ;;
4818         *)
4819           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4820           if test "x$lang_alias" = x
4821           then
4822                 echo "$lang doesn't set \$language." 1>&2
4823                 exit 1
4824           fi
4825           case ",$enable_languages," in
4826           *,$lang_alias,*)
4827             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4828           esac
4829           ;;
4830         esac
4831 done
4832
4833
4834 # -------------------------
4835 # Checks for other programs
4836 # -------------------------
4837
4838 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4840 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4841 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   cat >conftest.make <<\_ACEOF
4845 all:
4846         @echo 'ac_maketemp="$(MAKE)"'
4847 _ACEOF
4848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4849 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4850 if test -n "$ac_maketemp"; then
4851   eval ac_cv_prog_make_${ac_make}_set=yes
4852 else
4853   eval ac_cv_prog_make_${ac_make}_set=no
4854 fi
4855 rm -f conftest.make
4856 fi
4857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4858   echo "$as_me:$LINENO: result: yes" >&5
4859 echo "${ECHO_T}yes" >&6
4860   SET_MAKE=
4861 else
4862   echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6
4864   SET_MAKE="MAKE=${MAKE-make}"
4865 fi
4866
4867
4868 # Find some useful tools
4869 for ac_prog in gawk mawk nawk awk
4870 do
4871   # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_prog_AWK+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   if test -n "$AWK"; then
4879   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886   for ac_exec_ext in '' $ac_executable_extensions; do
4887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888     ac_cv_prog_AWK="$ac_prog"
4889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890     break 2
4891   fi
4892 done
4893 done
4894
4895 fi
4896 fi
4897 AWK=$ac_cv_prog_AWK
4898 if test -n "$AWK"; then
4899   echo "$as_me:$LINENO: result: $AWK" >&5
4900 echo "${ECHO_T}$AWK" >&6
4901 else
4902   echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4904 fi
4905
4906   test -n "$AWK" && break
4907 done
4908
4909 # We need awk to create options.c and options.h.
4910 # Bail out if it's missing.
4911 case ${AWK} in
4912   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4913 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4914    { (exit 1); exit 1; }; } ;;
4915 esac
4916
4917 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4919 if test "${gcc_cv_prog_LN_S+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   rm -f conftestdata_t
4923 echo >conftestdata_f
4924 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4925 then
4926   gcc_cv_prog_LN_S="ln -s"
4927 else
4928   if ln conftestdata_f conftestdata_t 2>/dev/null
4929   then
4930     gcc_cv_prog_LN_S=ln
4931   else
4932     gcc_cv_prog_LN_S=cp
4933   fi
4934 fi
4935 rm -f conftestdata_f conftestdata_t
4936
4937 fi
4938 LN_S="$gcc_cv_prog_LN_S"
4939 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4940   echo "$as_me:$LINENO: result: yes" >&5
4941 echo "${ECHO_T}yes" >&6
4942 else
4943   if test "$gcc_cv_prog_LN_S" = "ln"; then
4944     echo "$as_me:$LINENO: result: no, using ln" >&5
4945 echo "${ECHO_T}no, using ln" >&6
4946   else
4947     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4948 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4949   fi
4950 fi
4951
4952 echo "$as_me:$LINENO: checking whether ln works" >&5
4953 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4954 if test "${acx_cv_prog_LN+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   rm -f conftestdata_t
4958 echo >conftestdata_f
4959 if ln conftestdata_f conftestdata_t 2>/dev/null
4960 then
4961   acx_cv_prog_LN=ln
4962 else
4963   acx_cv_prog_LN=no
4964 fi
4965 rm -f conftestdata_f conftestdata_t
4966
4967 fi
4968 if test $acx_cv_prog_LN = no; then
4969   LN="$LN_S"
4970   echo "$as_me:$LINENO: result: no, using $LN" >&5
4971 echo "${ECHO_T}no, using $LN" >&6
4972 else
4973   LN="$acx_cv_prog_LN"
4974   echo "$as_me:$LINENO: result: yes" >&5
4975 echo "${ECHO_T}yes" >&6
4976 fi
4977
4978 if test -n "$ac_tool_prefix"; then
4979   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4981 echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_RANLIB+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   if test -n "$RANLIB"; then
4987   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002
5003 fi
5004 fi
5005 RANLIB=$ac_cv_prog_RANLIB
5006 if test -n "$RANLIB"; then
5007   echo "$as_me:$LINENO: result: $RANLIB" >&5
5008 echo "${ECHO_T}$RANLIB" >&6
5009 else
5010   echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012 fi
5013
5014 fi
5015 if test -z "$ac_cv_prog_RANLIB"; then
5016   ac_ct_RANLIB=$RANLIB
5017   # Extract the first word of "ranlib", so it can be a program name with args.
5018 set dummy ranlib; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   if test -n "$ac_ct_RANLIB"; then
5025   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032   for ac_exec_ext in '' $ac_executable_extensions; do
5033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034     ac_cv_prog_ac_ct_RANLIB="ranlib"
5035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039 done
5040
5041   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5042 fi
5043 fi
5044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5045 if test -n "$ac_ct_RANLIB"; then
5046   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5048 else
5049   echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5051 fi
5052
5053   RANLIB=$ac_ct_RANLIB
5054 else
5055   RANLIB="$ac_cv_prog_RANLIB"
5056 fi
5057
5058 case "${host}" in
5059 *-*-darwin*)
5060   # By default, the Darwin ranlib will not treat common symbols as
5061   # definitions when  building the archive table of contents.  Other
5062   # ranlibs do that; pass an option to the Darwin ranlib that makes
5063   # it behave similarly.
5064   ranlib_flags="-c"
5065   ;;
5066 *)
5067   ranlib_flags=""
5068 esac
5069
5070
5071 # Find a good install program.  We prefer a C program (faster),
5072 # so one script is as good as another.  But avoid the broken or
5073 # incompatible versions:
5074 # SysV /etc/install, /usr/sbin/install
5075 # SunOS /usr/etc/install
5076 # IRIX /sbin/install
5077 # AIX /bin/install
5078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5080 # ./install, which can be erroneously created by make from ./install.sh.
5081 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5082 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5083 if test -z "$INSTALL"; then
5084 if test "${ac_cv_path_install+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5088   for ac_dir in $PATH; do
5089     # Account for people who put trailing slashes in PATH elements.
5090     case "$ac_dir/" in
5091     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5092     *)
5093       # OSF1 and SCO ODT 3.0 have their own names for install.
5094       for ac_prog in ginstall scoinst install; do
5095         if test -f $ac_dir/$ac_prog; then
5096           if test $ac_prog = install &&
5097             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5098             # AIX install.  It has an incompatible calling convention.
5099             # OSF/1 installbsd also uses dspmsg, but is usable.
5100             :
5101           else
5102             ac_cv_path_install="$ac_dir/$ac_prog -c"
5103             break 2
5104           fi
5105         fi
5106       done
5107       ;;
5108     esac
5109   done
5110   IFS="$ac_save_IFS"
5111
5112 fi
5113   if test "${ac_cv_path_install+set}" = set; then
5114     INSTALL="$ac_cv_path_install"
5115   else
5116     # As a last resort, use the slow shell script.  We don't cache a
5117     # path for INSTALL within a source directory, because that will
5118     # break other packages using the cache if that directory is
5119     # removed, or if the path is relative.
5120     INSTALL="$ac_install_sh"
5121   fi
5122 fi
5123 echo "$as_me:$LINENO: result: $INSTALL" >&5
5124 echo "${ECHO_T}$INSTALL" >&6
5125
5126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5127 # It thinks the first close brace ends the variable substitution.
5128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5129
5130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5131
5132
5133 # See if cmp has --ignore-initial.
5134 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5135 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5136 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139    echo abfoo >t1
5140   echo cdfoo >t2
5141   gcc_cv_prog_cmp_skip=slowcompare
5142   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5143     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5144       :
5145     else
5146       gcc_cv_prog_cmp_skip=gnucompare
5147     fi
5148   fi
5149   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5150     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5151       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5152         :
5153       else
5154         gcc_cv_prog_cmp_skip=fastcompare
5155       fi
5156     fi
5157   fi
5158   rm t1 t2
5159
5160 fi
5161 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5162 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5163 make_compare_target=$gcc_cv_prog_cmp_skip
5164
5165
5166
5167 # See if we have the mktemp command.
5168 # Extract the first word of "mktemp", so it can be a program name with args.
5169 set dummy mktemp; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -n "$have_mktemp_command"; then
5176   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_prog_have_mktemp_command="yes"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191
5192   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5193 fi
5194 fi
5195 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5196 if test -n "$have_mktemp_command"; then
5197   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5198 echo "${ECHO_T}$have_mktemp_command" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204
5205 # Do we have a single-tree copy of texinfo?
5206 if test -f $srcdir/../texinfo/Makefile.in; then
5207   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5208   gcc_cv_prog_makeinfo_modern=yes
5209   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5210 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5211 else
5212   # See if makeinfo has been installed and is modern enough
5213   # that we can use it.
5214   # Extract the first word of "makeinfo", so it can be a program name with args.
5215 set dummy makeinfo; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test -n "$MAKEINFO"; then
5222   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_prog_MAKEINFO="makeinfo"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237
5238 fi
5239 fi
5240 MAKEINFO=$ac_cv_prog_MAKEINFO
5241 if test -n "$MAKEINFO"; then
5242   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5243 echo "${ECHO_T}$MAKEINFO" >&6
5244 else
5245   echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247 fi
5248
5249 if test -n "$MAKEINFO"; then
5250   # Found it, now check the version.
5251   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5252 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5253 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256     ac_prog_version=`$MAKEINFO --version 2>&1 |
5257                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5258   echo "configure:5258: version of makeinfo is $ac_prog_version" >&5
5259   case $ac_prog_version in
5260     '')     gcc_cv_prog_makeinfo_modern=no;;
5261     4.[2-9]*)
5262             gcc_cv_prog_makeinfo_modern=yes;;
5263     *)      gcc_cv_prog_makeinfo_modern=no;;
5264   esac
5265
5266 fi
5267 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5268 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5269 else
5270   gcc_cv_prog_makeinfo_modern=no
5271 fi
5272
5273 fi
5274
5275 if test $gcc_cv_prog_makeinfo_modern = no; then
5276   { echo "$as_me:$LINENO: WARNING:
5277 *** Makeinfo is missing or too old.
5278 *** Info documentation will not be built." >&5
5279 echo "$as_me: WARNING:
5280 *** Makeinfo is missing or too old.
5281 *** Info documentation will not be built." >&2;}
5282   BUILD_INFO=
5283 else
5284   BUILD_INFO=info
5285 fi
5286
5287 # Is pod2man recent enough to regenerate manpages?
5288 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5289 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5290 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5291   echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6
5293   GENERATED_MANPAGES=generated-manpages
5294 else
5295   echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5297   GENERATED_MANPAGES=
5298 fi
5299
5300 # How about lex?
5301 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5302   FLEX='$(objdir)/../flex/flex'
5303 else
5304   # Extract the first word of "flex", so it can be a program name with args.
5305 set dummy flex; ac_word=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_prog_FLEX+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   if test -n "$FLEX"; then
5312   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319   for ac_exec_ext in '' $ac_executable_extensions; do
5320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321     ac_cv_prog_FLEX="flex"
5322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326 done
5327
5328   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5329 fi
5330 fi
5331 FLEX=$ac_cv_prog_FLEX
5332 if test -n "$FLEX"; then
5333   echo "$as_me:$LINENO: result: $FLEX" >&5
5334 echo "${ECHO_T}$FLEX" >&6
5335 else
5336   echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5338 fi
5339
5340 fi
5341
5342 # Bison?
5343 # The -L switch is so bison can find its skeleton file.
5344 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5345   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5346 else
5347   # Extract the first word of "bison", so it can be a program name with args.
5348 set dummy bison; ac_word=$2
5349 echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351 if test "${ac_cv_prog_BISON+set}" = set; then
5352   echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354   if test -n "$BISON"; then
5355   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362   for ac_exec_ext in '' $ac_executable_extensions; do
5363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364     ac_cv_prog_BISON="bison"
5365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369 done
5370
5371   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5372 fi
5373 fi
5374 BISON=$ac_cv_prog_BISON
5375 if test -n "$BISON"; then
5376   echo "$as_me:$LINENO: result: $BISON" >&5
5377 echo "${ECHO_T}$BISON" >&6
5378 else
5379   echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6
5381 fi
5382
5383 fi
5384
5385 # --------------------
5386 # Checks for C headers
5387 # --------------------
5388
5389 echo "$as_me:$LINENO: checking for GNU C library" >&5
5390 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5391 if test "${gcc_cv_glibc+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400 #include <features.h>
5401 int
5402 main ()
5403 {
5404
5405 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5406 #error Not a GNU C library system
5407 #endif
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414   (eval $ac_compile) 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } &&
5421          { ac_try='test -z "$ac_c_werror_flag"
5422                          || test ! -s conftest.err'
5423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424   (eval $ac_try) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); }; } &&
5428          { ac_try='test -s conftest.$ac_objext'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; }; then
5434   gcc_cv_glibc=yes
5435 else
5436   echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 gcc_cv_glibc=no
5440 fi
5441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442 fi
5443
5444 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5445 echo "${ECHO_T}$gcc_cv_glibc" >&6
5446 if test $gcc_cv_glibc = yes; then
5447
5448 cat >>confdefs.h <<\_ACEOF
5449 #define _GNU_SOURCE 1
5450 _ACEOF
5451
5452 fi
5453
5454 # Need to reject headers which give warnings, so that the -Werror bootstrap
5455 # works later. *sigh*  This needs to come before all header checks.
5456
5457 ac_c_preproc_warn_flag=yes
5458
5459 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5461 if test "${ac_cv_header_stdc+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h.  */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h.  */
5470 #include <stdlib.h>
5471 #include <stdarg.h>
5472 #include <string.h>
5473 #include <float.h>
5474
5475 int
5476 main ()
5477 {
5478
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485   (eval $ac_compile) 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -z "$ac_c_werror_flag"
5493                          || test ! -s conftest.err'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; } &&
5499          { ac_try='test -s conftest.$ac_objext'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   ac_cv_header_stdc=yes
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_cv_header_stdc=no
5511 fi
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513
5514 if test $ac_cv_header_stdc = yes; then
5515   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516   cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 #include <string.h>
5523
5524 _ACEOF
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526   $EGREP "memchr" >/dev/null 2>&1; then
5527   :
5528 else
5529   ac_cv_header_stdc=no
5530 fi
5531 rm -f conftest*
5532
5533 fi
5534
5535 if test $ac_cv_header_stdc = yes; then
5536   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5537   cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h.  */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h.  */
5543 #include <stdlib.h>
5544
5545 _ACEOF
5546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5547   $EGREP "free" >/dev/null 2>&1; then
5548   :
5549 else
5550   ac_cv_header_stdc=no
5551 fi
5552 rm -f conftest*
5553
5554 fi
5555
5556 if test $ac_cv_header_stdc = yes; then
5557   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5558   if test "$cross_compiling" = yes; then
5559   :
5560 else
5561   cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 #include <ctype.h>
5568 #if ((' ' & 0x0FF) == 0x020)
5569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5571 #else
5572 # define ISLOWER(c) \
5573                    (('a' <= (c) && (c) <= 'i') \
5574                      || ('j' <= (c) && (c) <= 'r') \
5575                      || ('s' <= (c) && (c) <= 'z'))
5576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5577 #endif
5578
5579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5580 int
5581 main ()
5582 {
5583   int i;
5584   for (i = 0; i < 256; i++)
5585     if (XOR (islower (i), ISLOWER (i))
5586         || toupper (i) != TOUPPER (i))
5587       exit(2);
5588   exit (0);
5589 }
5590 _ACEOF
5591 rm -f conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593   (eval $ac_link) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598   (eval $ac_try) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }; }; then
5602   :
5603 else
5604   echo "$as_me: program exited with status $ac_status" >&5
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ( exit $ac_status )
5609 ac_cv_header_stdc=no
5610 fi
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 fi
5614 fi
5615 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5616 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5617 if test $ac_cv_header_stdc = yes; then
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define STDC_HEADERS 1
5621 _ACEOF
5622
5623 fi
5624
5625 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5626 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5627 if test "${ac_cv_header_time+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h.  */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h.  */
5636 #include <sys/types.h>
5637 #include <sys/time.h>
5638 #include <time.h>
5639
5640 int
5641 main ()
5642 {
5643 if ((struct tm *) 0)
5644 return 0;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; } &&
5665          { ac_try='test -s conftest.$ac_objext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_header_time=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_header_time=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5681 echo "${ECHO_T}$ac_cv_header_time" >&6
5682 if test $ac_cv_header_time = yes; then
5683
5684 cat >>confdefs.h <<\_ACEOF
5685 #define TIME_WITH_SYS_TIME 1
5686 _ACEOF
5687
5688 fi
5689
5690 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5691 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5692 if test "${gcc_cv_header_string+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 #include <string.h>
5702 #include <strings.h>
5703 int
5704 main ()
5705 {
5706
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -z "$ac_c_werror_flag"
5721                          || test ! -s conftest.err'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; } &&
5727          { ac_try='test -s conftest.$ac_objext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   gcc_cv_header_string=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 gcc_cv_header_string=no
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5743 echo "${ECHO_T}$gcc_cv_header_string" >&6
5744 if test $gcc_cv_header_string = yes; then
5745
5746 cat >>confdefs.h <<\_ACEOF
5747 #define STRING_WITH_STRINGS 1
5748 _ACEOF
5749
5750 fi
5751
5752 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5753 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5754 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 #include <sys/types.h>
5764 #include <sys/wait.h>
5765 #ifndef WEXITSTATUS
5766 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5767 #endif
5768 #ifndef WIFEXITED
5769 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5770 #endif
5771
5772 int
5773 main ()
5774 {
5775   int s;
5776   wait (&s);
5777   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784   (eval $ac_compile) 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } &&
5791          { ac_try='test -z "$ac_c_werror_flag"
5792                          || test ! -s conftest.err'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; } &&
5798          { ac_try='test -s conftest.$ac_objext'
5799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800   (eval $ac_try) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); }; }; then
5804   ac_cv_header_sys_wait_h=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_cv_header_sys_wait_h=no
5810 fi
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5814 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5815 if test $ac_cv_header_sys_wait_h = yes; then
5816
5817 cat >>confdefs.h <<\_ACEOF
5818 #define HAVE_SYS_WAIT_H 1
5819 _ACEOF
5820
5821 fi
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5845                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5846                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5847                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5848 do
5849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5850 echo "$as_me:$LINENO: checking for $ac_header" >&5
5851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 #include <$ac_header>
5862 _ACEOF
5863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } >/dev/null; then
5871   if test -s conftest.err; then
5872     ac_cpp_err=$ac_c_preproc_warn_flag
5873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5874   else
5875     ac_cpp_err=
5876   fi
5877 else
5878   ac_cpp_err=yes
5879 fi
5880 if test -z "$ac_cpp_err"; then
5881   eval "$as_ac_Header=yes"
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886   eval "$as_ac_Header=no"
5887 fi
5888 rm -f conftest.err conftest.$ac_ext
5889 fi
5890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893   cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 fi
5898 done
5899
5900
5901 # Check for thread headers.
5902 echo "$as_me:$LINENO: checking for thread.h" >&5
5903 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5904 if test "${ac_cv_header_thread_h+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h.  */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h.  */
5913 #include <thread.h>
5914 _ACEOF
5915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5917   ac_status=$?
5918   grep -v '^ *+' conftest.er1 >conftest.err
5919   rm -f conftest.er1
5920   cat conftest.err >&5
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } >/dev/null; then
5923   if test -s conftest.err; then
5924     ac_cpp_err=$ac_c_preproc_warn_flag
5925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5926   else
5927     ac_cpp_err=
5928   fi
5929 else
5930   ac_cpp_err=yes
5931 fi
5932 if test -z "$ac_cpp_err"; then
5933   ac_cv_header_thread_h=yes
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938   ac_cv_header_thread_h=no
5939 fi
5940 rm -f conftest.err conftest.$ac_ext
5941 fi
5942 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5943 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5944 if test $ac_cv_header_thread_h = yes; then
5945   have_thread_h=yes
5946 else
5947   have_thread_h=
5948 fi
5949
5950 echo "$as_me:$LINENO: checking for pthread.h" >&5
5951 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5952 if test "${ac_cv_header_pthread_h+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961 #include <pthread.h>
5962 _ACEOF
5963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5965   ac_status=$?
5966   grep -v '^ *+' conftest.er1 >conftest.err
5967   rm -f conftest.er1
5968   cat conftest.err >&5
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); } >/dev/null; then
5971   if test -s conftest.err; then
5972     ac_cpp_err=$ac_c_preproc_warn_flag
5973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5974   else
5975     ac_cpp_err=
5976   fi
5977 else
5978   ac_cpp_err=yes
5979 fi
5980 if test -z "$ac_cpp_err"; then
5981   ac_cv_header_pthread_h=yes
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986   ac_cv_header_pthread_h=no
5987 fi
5988 rm -f conftest.err conftest.$ac_ext
5989 fi
5990 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5991 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5992 if test $ac_cv_header_pthread_h = yes; then
5993   have_pthread_h=yes
5994 else
5995   have_pthread_h=
5996 fi
5997
5998
5999 # These tests can't be done till we know if we have limits.h.
6000 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6001 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6002 if test "${gcc_cv_decl_char_bit+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011 #ifdef HAVE_LIMITS_H
6012 #include <limits.h>
6013 #endif
6014 #ifdef CHAR_BIT
6015 found
6016 #endif
6017 _ACEOF
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019   $EGREP "found" >/dev/null 2>&1; then
6020   gcc_cv_decl_char_bit=yes
6021 else
6022   gcc_cv_decl_char_bit=no
6023 fi
6024 rm -f conftest*
6025
6026
6027 fi
6028 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6029 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6030 if test $gcc_cv_decl_char_bit = no; then
6031   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6032 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6033 if test "${gcc_cv_c_nbby+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   i=8
6037  gcc_cv_c_nbby=
6038  while test $i -lt 65; do
6039    cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045
6046 int
6047 main ()
6048 {
6049 switch(0) {
6050   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6051   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6052   ; }
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059   (eval $ac_compile) 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -z "$ac_c_werror_flag"
6067                          || test ! -s conftest.err'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; } &&
6073          { ac_try='test -s conftest.$ac_objext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   gcc_cv_c_nbby=$i; break
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086    i=`expr $i + 1`
6087  done
6088  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6089
6090 fi
6091 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6092 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6093 if test $gcc_cv_c_nbby = failed; then
6094   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6095 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6096    { (exit 1); exit 1; }; }
6097 else
6098
6099 cat >>confdefs.h <<_ACEOF
6100 #define CHAR_BIT $gcc_cv_c_nbby
6101 _ACEOF
6102
6103 fi
6104 fi
6105 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6106 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6107 if test "${ac_cv_c_bigendian+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   ac_cv_c_bigendian=unknown
6111 # See if sys/param.h defines the BYTE_ORDER macro.
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 #include <sys/types.h>
6119 #include <sys/param.h>
6120 int
6121 main ()
6122 {
6123
6124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6125  bogus endian macros
6126 #endif
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133   (eval $ac_compile) 2>conftest.er1
6134   ac_status=$?
6135   grep -v '^ *+' conftest.er1 >conftest.err
6136   rm -f conftest.er1
6137   cat conftest.err >&5
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); } &&
6140          { ac_try='test -z "$ac_c_werror_flag"
6141                          || test ! -s conftest.err'
6142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143   (eval $ac_try) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); }; } &&
6147          { ac_try='test -s conftest.$ac_objext'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   # It does; now see whether it defined to BIG_ENDIAN or not.
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 #include <sys/types.h>
6161 #include <sys/param.h>
6162 int
6163 main ()
6164 {
6165
6166 #if BYTE_ORDER != BIG_ENDIAN
6167  not big endian
6168 #endif
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175   (eval $ac_compile) 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } &&
6182          { ac_try='test -z "$ac_c_werror_flag"
6183                          || test ! -s conftest.err'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; } &&
6189          { ac_try='test -s conftest.$ac_objext'
6190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191   (eval $ac_try) 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; }; then
6195   ac_cv_c_bigendian=yes
6196 else
6197   echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200 ac_cv_c_bigendian=no
6201 fi
6202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 fi
6208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209 if test $ac_cv_c_bigendian = unknown; then
6210 if test "$cross_compiling" = yes; then
6211    echo $ac_n "cross-compiling... " 2>&6
6212 else
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 main () {
6220   /* Are we little or big endian?  From Harbison&Steele.  */
6221   union
6222   {
6223     long l;
6224     char c[sizeof (long)];
6225   } u;
6226   u.l = 1;
6227   exit (u.c[sizeof (long) - 1] == 1);
6228 }
6229 _ACEOF
6230 rm -f conftest$ac_exeext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232   (eval $ac_link) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_c_bigendian=no
6242 else
6243   echo "$as_me: program exited with status $ac_status" >&5
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ( exit $ac_status )
6248 ac_cv_c_bigendian=yes
6249 fi
6250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6251 fi
6252 fi
6253 fi
6254 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6255 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6256 if test $ac_cv_c_bigendian = unknown; then
6257 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6258 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6259
6260 cat >conftest.c <<EOF
6261 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6262 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6263 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6264 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6265 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6266 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6267 int main() { _ascii (); _ebcdic (); return 0; }
6268 EOF
6269  if test -f conftest.c ; then
6270      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6271         if test `grep -l BIGenDianSyS conftest.o` ; then
6272            echo $ac_n ' big endian probe OK, ' 1>&6
6273            ac_cv_c_bigendian=yes
6274         fi
6275         if test `grep -l LiTTleEnDian conftest.o` ; then
6276            echo $ac_n ' little endian probe OK, ' 1>&6
6277            if test $ac_cv_c_bigendian = yes ; then
6278             ac_cv_c_bigendian=unknown;
6279            else
6280             ac_cv_c_bigendian=no
6281            fi
6282         fi
6283         echo $ac_n 'guessing bigendian ...  ' >&6
6284      fi
6285   fi
6286 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6287 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6288 fi
6289 if test $ac_cv_c_bigendian = yes; then
6290
6291 cat >>confdefs.h <<\_ACEOF
6292 #define WORDS_BIGENDIAN 1
6293 _ACEOF
6294
6295
6296 cat >>confdefs.h <<\_ACEOF
6297 #define HOST_WORDS_BIG_ENDIAN 1
6298 _ACEOF
6299
6300   BYTEORDER=4321
6301 else
6302   BYTEORDER=1234
6303 fi
6304
6305 cat >>confdefs.h <<_ACEOF
6306 #define BYTEORDER $BYTEORDER
6307 _ACEOF
6308
6309 if test $ac_cv_c_bigendian = unknown; then
6310   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6311 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6312    { (exit 1); exit 1; }; }
6313 fi
6314
6315
6316 # --------
6317 # UNSORTED
6318 # --------
6319
6320 # Stage specific cflags for build.
6321 stage1_cflags=
6322 case $build in
6323 vax-*-*)
6324   if test x$GCC = xyes
6325   then
6326     stage1_cflags="-Wa,-J"
6327   else
6328     stage1_cflags="-J"
6329   fi
6330   ;;
6331 powerpc-*-darwin*)
6332   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6333   # sources; use -no-cpp-precomp to get to GNU cpp.
6334   # Apple's GCC has bugs in designated initializer handling, so disable
6335   # that too.
6336   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6337   ;;
6338 esac
6339
6340
6341 # These libraries may be used by collect2.
6342 # We may need a special search path to get them linked.
6343 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6344 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6345 if test "${gcc_cv_collect2_libs+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   save_LIBS="$LIBS"
6349 for libs in '' -lld -lmld \
6350                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6351                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6352 do
6353         LIBS="$libs"
6354         cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h.  */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h.  */
6360
6361 /* Override any gcc2 internal prototype to avoid an error.  */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366    builtin and then its argument prototype would still apply.  */
6367 char ldopen ();
6368 int
6369 main ()
6370 {
6371 ldopen ();
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378   (eval $ac_link) 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -z "$ac_c_werror_flag"
6386                          || test ! -s conftest.err'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; } &&
6392          { ac_try='test -s conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   gcc_cv_collect2_libs="$libs"; break
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 fi
6404 rm -f conftest.err conftest.$ac_objext \
6405       conftest$ac_exeext conftest.$ac_ext
6406 done
6407 LIBS="$save_LIBS"
6408 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6409 fi
6410 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6411 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6412 case $gcc_cv_collect2_libs in
6413         "none required")        ;;
6414         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6415 esac
6416
6417
6418 # When building Ada code on Alpha, we need exc_resume which is usually in
6419 # -lexc.  So test for it.
6420 save_LIBS="$LIBS"
6421 LIBS=
6422 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6423 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6424 if test "${ac_cv_search_exc_resume+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   ac_func_search_save_LIBS=$LIBS
6428 ac_cv_search_exc_resume=no
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435
6436 /* Override any gcc2 internal prototype to avoid an error.  */
6437 #ifdef __cplusplus
6438 extern "C"
6439 #endif
6440 /* We use char because int might match the return type of a gcc2
6441    builtin and then its argument prototype would still apply.  */
6442 char exc_resume ();
6443 int
6444 main ()
6445 {
6446 exc_resume ();
6447   ;
6448   return 0;
6449 }
6450 _ACEOF
6451 rm -f conftest.$ac_objext conftest$ac_exeext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453   (eval $ac_link) 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } &&
6460          { ac_try='test -z "$ac_c_werror_flag"
6461                          || test ! -s conftest.err'
6462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463   (eval $ac_try) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); }; } &&
6467          { ac_try='test -s conftest$ac_exeext'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; }; then
6473   ac_cv_search_exc_resume="none required"
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 fi
6479 rm -f conftest.err conftest.$ac_objext \
6480       conftest$ac_exeext conftest.$ac_ext
6481 if test "$ac_cv_search_exc_resume" = no; then
6482   for ac_lib in exc; do
6483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6484     cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490
6491 /* Override any gcc2 internal prototype to avoid an error.  */
6492 #ifdef __cplusplus
6493 extern "C"
6494 #endif
6495 /* We use char because int might match the return type of a gcc2
6496    builtin and then its argument prototype would still apply.  */
6497 char exc_resume ();
6498 int
6499 main ()
6500 {
6501 exc_resume ();
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508   (eval $ac_link) 2>conftest.er1
6509   ac_status=$?
6510   grep -v '^ *+' conftest.er1 >conftest.err
6511   rm -f conftest.er1
6512   cat conftest.err >&5
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } &&
6515          { ac_try='test -z "$ac_c_werror_flag"
6516                          || test ! -s conftest.err'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; } &&
6522          { ac_try='test -s conftest$ac_exeext'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; }; then
6528   ac_cv_search_exc_resume="-l$ac_lib"
6529 break
6530 else
6531   echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6533
6534 fi
6535 rm -f conftest.err conftest.$ac_objext \
6536       conftest$ac_exeext conftest.$ac_ext
6537   done
6538 fi
6539 LIBS=$ac_func_search_save_LIBS
6540 fi
6541 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6542 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6543 if test "$ac_cv_search_exc_resume" != no; then
6544   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6545
6546 fi
6547
6548 GNAT_LIBEXC="$LIBS"
6549 LIBS="$save_LIBS"
6550
6551
6552 # Some systems put ldexp and frexp in libm instead of libc; assume
6553 # they're both in the same place.  jcf-dump needs them.
6554 save_LIBS="$LIBS"
6555 LIBS=
6556 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6557 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6558 if test "${ac_cv_search_ldexp+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   ac_func_search_save_LIBS=$LIBS
6562 ac_cv_search_ldexp=no
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569
6570 /* Override any gcc2 internal prototype to avoid an error.  */
6571 #ifdef __cplusplus
6572 extern "C"
6573 #endif
6574 /* We use char because int might match the return type of a gcc2
6575    builtin and then its argument prototype would still apply.  */
6576 char ldexp ();
6577 int
6578 main ()
6579 {
6580 ldexp ();
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587   (eval $ac_link) 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
6591   cat conftest.err >&5
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } &&
6594          { ac_try='test -z "$ac_c_werror_flag"
6595                          || test ! -s conftest.err'
6596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597   (eval $ac_try) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }; } &&
6601          { ac_try='test -s conftest$ac_exeext'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607   ac_cv_search_ldexp="none required"
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 fi
6613 rm -f conftest.err conftest.$ac_objext \
6614       conftest$ac_exeext conftest.$ac_ext
6615 if test "$ac_cv_search_ldexp" = no; then
6616   for ac_lib in m; do
6617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6618     cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624
6625 /* Override any gcc2 internal prototype to avoid an error.  */
6626 #ifdef __cplusplus
6627 extern "C"
6628 #endif
6629 /* We use char because int might match the return type of a gcc2
6630    builtin and then its argument prototype would still apply.  */
6631 char ldexp ();
6632 int
6633 main ()
6634 {
6635 ldexp ();
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642   (eval $ac_link) 2>conftest.er1
6643   ac_status=$?
6644   grep -v '^ *+' conftest.er1 >conftest.err
6645   rm -f conftest.er1
6646   cat conftest.err >&5
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } &&
6649          { ac_try='test -z "$ac_c_werror_flag"
6650                          || test ! -s conftest.err'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; } &&
6656          { ac_try='test -s conftest$ac_exeext'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   ac_cv_search_ldexp="-l$ac_lib"
6663 break
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 fi
6669 rm -f conftest.err conftest.$ac_objext \
6670       conftest$ac_exeext conftest.$ac_ext
6671   done
6672 fi
6673 LIBS=$ac_func_search_save_LIBS
6674 fi
6675 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6676 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6677 if test "$ac_cv_search_ldexp" != no; then
6678   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6679
6680 fi
6681
6682 LDEXP_LIB="$LIBS"
6683 LIBS="$save_LIBS"
6684
6685
6686 # Use <inttypes.h> only if it exists,
6687 # doesn't clash with <sys/types.h>, and declares intmax_t.
6688 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6689 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6690 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h.  */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h.  */
6699 #include <sys/types.h>
6700 #include <inttypes.h>
6701 int
6702 main ()
6703 {
6704 intmax_t i = -1;
6705   ;
6706   return 0;
6707 }
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711   (eval $ac_compile) 2>conftest.er1
6712   ac_status=$?
6713   grep -v '^ *+' conftest.er1 >conftest.err
6714   rm -f conftest.er1
6715   cat conftest.err >&5
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -z "$ac_c_werror_flag"
6719                          || test ! -s conftest.err'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; } &&
6725          { ac_try='test -s conftest.$ac_objext'
6726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727   (eval $ac_try) 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); }; }; then
6731   gcc_cv_header_inttypes_h=yes
6732 else
6733   echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 gcc_cv_header_inttypes_h=no
6737 fi
6738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740
6741 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6742 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6743 if test $gcc_cv_header_inttypes_h = yes; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_INTTYPES_H 1
6747 _ACEOF
6748
6749 fi
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6778         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6779         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6780         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6781         setlocale
6782 do
6783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784 echo "$as_me:$LINENO: checking for $ac_func" >&5
6785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6786 if eval "test \"\${$as_ac_var+set}\" = set"; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6797 #define $ac_func innocuous_$ac_func
6798
6799 /* System header to define __stub macros and hopefully few prototypes,
6800     which can conflict with char $ac_func (); below.
6801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6802     <limits.h> exists even on freestanding compilers.  */
6803
6804 #ifdef __STDC__
6805 # include <limits.h>
6806 #else
6807 # include <assert.h>
6808 #endif
6809
6810 #undef $ac_func
6811
6812 /* Override any gcc2 internal prototype to avoid an error.  */
6813 #ifdef __cplusplus
6814 extern "C"
6815 {
6816 #endif
6817 /* We use char because int might match the return type of a gcc2
6818    builtin and then its argument prototype would still apply.  */
6819 char $ac_func ();
6820 /* The GNU C library defines this for functions which it implements
6821     to always fail with ENOSYS.  Some functions are actually named
6822     something starting with __ and the normal name is an alias.  */
6823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6824 choke me
6825 #else
6826 char (*f) () = $ac_func;
6827 #endif
6828 #ifdef __cplusplus
6829 }
6830 #endif
6831
6832 int
6833 main ()
6834 {
6835 return f != $ac_func;
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842   (eval $ac_link) 2>conftest.er1
6843   ac_status=$?
6844   grep -v '^ *+' conftest.er1 >conftest.err
6845   rm -f conftest.er1
6846   cat conftest.err >&5
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -z "$ac_c_werror_flag"
6850                          || test ! -s conftest.err'
6851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852   (eval $ac_try) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }; } &&
6856          { ac_try='test -s conftest$ac_exeext'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; }; then
6862   eval "$as_ac_var=yes"
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 eval "$as_ac_var=no"
6868 fi
6869 rm -f conftest.err conftest.$ac_objext \
6870       conftest$ac_exeext conftest.$ac_ext
6871 fi
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6874 if test `eval echo '${'$as_ac_var'}'` = yes; then
6875   cat >>confdefs.h <<_ACEOF
6876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6877 _ACEOF
6878
6879 fi
6880 done
6881
6882
6883 if test x$ac_cv_func_mbstowcs = xyes; then
6884   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6885 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6886 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889       if test "$cross_compiling" = yes; then
6890   gcc_cv_func_mbstowcs_works=yes
6891 else
6892   cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 #include <stdlib.h>
6899 int main()
6900 {
6901   mbstowcs(0, "", 0);
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907   (eval $ac_link) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; }; then
6916   gcc_cv_func_mbstowcs_works=yes
6917 else
6918   echo "$as_me: program exited with status $ac_status" >&5
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 ( exit $ac_status )
6923 gcc_cv_func_mbstowcs_works=no
6924 fi
6925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6926 fi
6927 fi
6928 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6929 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6930   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6931
6932 cat >>confdefs.h <<\_ACEOF
6933 #define HAVE_WORKING_MBSTOWCS 1
6934 _ACEOF
6935
6936   fi
6937 fi
6938
6939 echo "$as_me:$LINENO: checking for ssize_t" >&5
6940 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6941 if test "${ac_cv_type_ssize_t+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950 $ac_includes_default
6951 int
6952 main ()
6953 {
6954 if ((ssize_t *) 0)
6955   return 0;
6956 if (sizeof (ssize_t))
6957   return 0;
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964   (eval $ac_compile) 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -z "$ac_c_werror_flag"
6972                          || test ! -s conftest.err'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; } &&
6978          { ac_try='test -s conftest.$ac_objext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   ac_cv_type_ssize_t=yes
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 ac_cv_type_ssize_t=no
6990 fi
6991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6992 fi
6993 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6994 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6995 if test $ac_cv_type_ssize_t = yes; then
6996   :
6997 else
6998
6999 cat >>confdefs.h <<_ACEOF
7000 #define ssize_t int
7001 _ACEOF
7002
7003 fi
7004
7005
7006 # Try to determine the array type of the second argument of getgroups
7007 # for the target system (int or gid_t).
7008 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7009 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7010 if test "${ac_cv_type_uid_t+set}" = set; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013   cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h.  */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h.  */
7019 #include <sys/types.h>
7020
7021 _ACEOF
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023   $EGREP "uid_t" >/dev/null 2>&1; then
7024   ac_cv_type_uid_t=yes
7025 else
7026   ac_cv_type_uid_t=no
7027 fi
7028 rm -f conftest*
7029
7030 fi
7031 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7032 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7033 if test $ac_cv_type_uid_t = no; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define uid_t int
7037 _ACEOF
7038
7039
7040 cat >>confdefs.h <<\_ACEOF
7041 #define gid_t int
7042 _ACEOF
7043
7044 fi
7045
7046 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7047 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7048 if test "${ac_cv_type_getgroups+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   if test "$cross_compiling" = yes; then
7052   ac_cv_type_getgroups=cross
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 /* Thanks to Mike Rendell for this test.  */
7061 #include <sys/types.h>
7062 #define NGID 256
7063 #undef MAX
7064 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7065
7066 int
7067 main ()
7068 {
7069   gid_t gidset[NGID];
7070   int i, n;
7071   union { gid_t gval; long lval; }  val;
7072
7073   val.lval = -1;
7074   for (i = 0; i < NGID; i++)
7075     gidset[i] = val.gval;
7076   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7077                  gidset);
7078   /* Exit non-zero if getgroups seems to require an array of ints.  This
7079      happens when gid_t is short but getgroups modifies an array of ints.  */
7080   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7081 }
7082 _ACEOF
7083 rm -f conftest$ac_exeext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7085   (eval $ac_link) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090   (eval $ac_try) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); }; }; then
7094   ac_cv_type_getgroups=gid_t
7095 else
7096   echo "$as_me: program exited with status $ac_status" >&5
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ( exit $ac_status )
7101 ac_cv_type_getgroups=int
7102 fi
7103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7104 fi
7105 if test $ac_cv_type_getgroups = cross; then
7106         cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 #include <unistd.h>
7113
7114 _ACEOF
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7117   ac_cv_type_getgroups=gid_t
7118 else
7119   ac_cv_type_getgroups=int
7120 fi
7121 rm -f conftest*
7122
7123 fi
7124 fi
7125 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7126 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7127
7128 cat >>confdefs.h <<_ACEOF
7129 #define GETGROUPS_T $ac_cv_type_getgroups
7130 _ACEOF
7131
7132
7133 if test "${target}" = "${build}"; then
7134   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7135 else
7136   case "${target}" in
7137         # This condition may need some tweaking.  It should include all
7138         # targets where the array type of the second argument of getgroups
7139         # is int and the type of gid_t is not equivalent to int.
7140         *-*-sunos* | *-*-ultrix*)
7141                 TARGET_GETGROUPS_T=int
7142                 ;;
7143         *)
7144                 TARGET_GETGROUPS_T=gid_t
7145                 ;;
7146   esac
7147 fi
7148
7149
7150 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7151 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7152 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   if test "$cross_compiling" = yes; then
7156   gcc_cv_func_printf_ptr=no
7157 else
7158   cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164 #include <stdio.h>
7165
7166 int main()
7167 {
7168   char buf[64];
7169   char *p = buf, *q = NULL;
7170   sprintf(buf, "%p", p);
7171   sscanf(buf, "%p", &q);
7172   return (p != q);
7173 }
7174 _ACEOF
7175 rm -f conftest$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177   (eval $ac_link) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182   (eval $ac_try) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; }; then
7186   gcc_cv_func_printf_ptr=yes
7187 else
7188   echo "$as_me: program exited with status $ac_status" >&5
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ( exit $ac_status )
7193 gcc_cv_func_printf_ptr=no
7194 fi
7195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 rm -f core core.* *.core
7198 fi
7199 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7200 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7201 if test $gcc_cv_func_printf_ptr = yes ; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_PRINTF_PTR 1
7205 _ACEOF
7206
7207 fi
7208
7209 if test $ac_cv_header_sys_mman_h != yes \
7210  || test $ac_cv_func_mmap != yes; then
7211    gcc_cv_func_mmap_file=no
7212    gcc_cv_func_mmap_dev_zero=no
7213    gcc_cv_func_mmap_anon=no
7214 else
7215    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7216 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7217 if test "${gcc_cv_func_mmap_file+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   # Add a system to this blacklist if
7221    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7222    # memory area containing the same data that you'd get if you applied
7223    # read() to the same fd.  The only system known to have a problem here
7224    # is VMS, where text files have record structure.
7225    case "$host_os" in
7226      vms* | ultrix*)
7227         gcc_cv_func_mmap_file=no ;;
7228      *)
7229         gcc_cv_func_mmap_file=yes;;
7230    esac
7231 fi
7232 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7233 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7234    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7235 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7236 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   # Add a system to this blacklist if it has mmap() but /dev/zero
7240    # does not exist, or if mmapping /dev/zero does not give anonymous
7241    # zeroed pages with both the following properties:
7242    # 1. If you map N consecutive pages in with one call, and then
7243    #    unmap any subset of those pages, the pages that were not
7244    #    explicitly unmapped remain accessible.
7245    # 2. If you map two adjacent blocks of memory and then unmap them
7246    #    both at once, they must both go away.
7247    # Systems known to be in this category are Windows (all variants),
7248    # VMS, and Darwin.
7249    case "$host_os" in
7250      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7251         gcc_cv_func_mmap_dev_zero=no ;;
7252      *)
7253         gcc_cv_func_mmap_dev_zero=yes;;
7254    esac
7255 fi
7256 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7257 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7258
7259    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7260    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7261 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7262 if test "${gcc_cv_decl_map_anon+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 #include <sys/types.h>
7272 #include <sys/mman.h>
7273 #include <unistd.h>
7274
7275 #ifndef MAP_ANONYMOUS
7276 #define MAP_ANONYMOUS MAP_ANON
7277 #endif
7278
7279 int
7280 main ()
7281 {
7282 int n = MAP_ANONYMOUS;
7283   ;
7284   return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289   (eval $ac_compile) 2>conftest.er1
7290   ac_status=$?
7291   grep -v '^ *+' conftest.er1 >conftest.err
7292   rm -f conftest.er1
7293   cat conftest.err >&5
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } &&
7296          { ac_try='test -z "$ac_c_werror_flag"
7297                          || test ! -s conftest.err'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; } &&
7303          { ac_try='test -s conftest.$ac_objext'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; }; then
7309   gcc_cv_decl_map_anon=yes
7310 else
7311   echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 gcc_cv_decl_map_anon=no
7315 fi
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7319 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7320
7321    if test $gcc_cv_decl_map_anon = no; then
7322      gcc_cv_func_mmap_anon=no
7323    else
7324      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7325 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7326 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7330    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7331    # doesn't give anonymous zeroed pages with the same properties listed
7332    # above for use of /dev/zero.
7333    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7334    case "$host_os" in
7335      vms* | cygwin* | pe | mingw* | sco* | udk* )
7336         gcc_cv_func_mmap_anon=no ;;
7337      *)
7338         gcc_cv_func_mmap_anon=yes;;
7339    esac
7340 fi
7341 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7342 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7343    fi
7344 fi
7345
7346 if test $gcc_cv_func_mmap_file = yes; then
7347
7348 cat >>confdefs.h <<\_ACEOF
7349 #define HAVE_MMAP_FILE 1
7350 _ACEOF
7351
7352 fi
7353 if test $gcc_cv_func_mmap_dev_zero = yes; then
7354
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_MMAP_DEV_ZERO 1
7357 _ACEOF
7358
7359 fi
7360 if test $gcc_cv_func_mmap_anon = yes; then
7361
7362 cat >>confdefs.h <<\_ACEOF
7363 #define HAVE_MMAP_ANON 1
7364 _ACEOF
7365
7366 fi
7367
7368
7369 case "${host}" in
7370 *-*-*vms*)
7371   # Under VMS, vfork works very differently than on Unix. The standard test
7372   # won't work, and it isn't easily adaptable. It makes more sense to
7373   # just force it.
7374   ac_cv_func_vfork_works=yes
7375   ;;
7376 esac
7377 echo "$as_me:$LINENO: checking for pid_t" >&5
7378 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7379 if test "${ac_cv_type_pid_t+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 $ac_includes_default
7389 int
7390 main ()
7391 {
7392 if ((pid_t *) 0)
7393   return 0;
7394 if (sizeof (pid_t))
7395   return 0;
7396   ;
7397   return 0;
7398 }
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402   (eval $ac_compile) 2>conftest.er1
7403   ac_status=$?
7404   grep -v '^ *+' conftest.er1 >conftest.err
7405   rm -f conftest.er1
7406   cat conftest.err >&5
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); } &&
7409          { ac_try='test -z "$ac_c_werror_flag"
7410                          || test ! -s conftest.err'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; } &&
7416          { ac_try='test -s conftest.$ac_objext'
7417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418   (eval $ac_try) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422   ac_cv_type_pid_t=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427 ac_cv_type_pid_t=no
7428 fi
7429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7430 fi
7431 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7432 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7433 if test $ac_cv_type_pid_t = yes; then
7434   :
7435 else
7436
7437 cat >>confdefs.h <<_ACEOF
7438 #define pid_t int
7439 _ACEOF
7440
7441 fi
7442
7443
7444
7445 for ac_header in unistd.h vfork.h
7446 do
7447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 #include <$ac_header>
7460 _ACEOF
7461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } >/dev/null; then
7469   if test -s conftest.err; then
7470     ac_cpp_err=$ac_c_preproc_warn_flag
7471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7472   else
7473     ac_cpp_err=
7474   fi
7475 else
7476   ac_cpp_err=yes
7477 fi
7478 if test -z "$ac_cpp_err"; then
7479   eval "$as_ac_Header=yes"
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484   eval "$as_ac_Header=no"
7485 fi
7486 rm -f conftest.err conftest.$ac_ext
7487 fi
7488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491   cat >>confdefs.h <<_ACEOF
7492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7493 _ACEOF
7494
7495 fi
7496 done
7497
7498
7499
7500 for ac_func in fork vfork
7501 do
7502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7503 echo "$as_me:$LINENO: checking for $ac_func" >&5
7504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7505 if eval "test \"\${$as_ac_var+set}\" = set"; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7516 #define $ac_func innocuous_$ac_func
7517
7518 /* System header to define __stub macros and hopefully few prototypes,
7519     which can conflict with char $ac_func (); below.
7520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7521     <limits.h> exists even on freestanding compilers.  */
7522
7523 #ifdef __STDC__
7524 # include <limits.h>
7525 #else
7526 # include <assert.h>
7527 #endif
7528
7529 #undef $ac_func
7530
7531 /* Override any gcc2 internal prototype to avoid an error.  */
7532 #ifdef __cplusplus
7533 extern "C"
7534 {
7535 #endif
7536 /* We use char because int might match the return type of a gcc2
7537    builtin and then its argument prototype would still apply.  */
7538 char $ac_func ();
7539 /* The GNU C library defines this for functions which it implements
7540     to always fail with ENOSYS.  Some functions are actually named
7541     something starting with __ and the normal name is an alias.  */
7542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7543 choke me
7544 #else
7545 char (*f) () = $ac_func;
7546 #endif
7547 #ifdef __cplusplus
7548 }
7549 #endif
7550
7551 int
7552 main ()
7553 {
7554 return f != $ac_func;
7555   ;
7556   return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext conftest$ac_exeext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561   (eval $ac_link) 2>conftest.er1
7562   ac_status=$?
7563   grep -v '^ *+' conftest.er1 >conftest.err
7564   rm -f conftest.er1
7565   cat conftest.err >&5
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); } &&
7568          { ac_try='test -z "$ac_c_werror_flag"
7569                          || test ! -s conftest.err'
7570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571   (eval $ac_try) 2>&5
7572   ac_status=$?
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); }; } &&
7575          { ac_try='test -s conftest$ac_exeext'
7576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577   (eval $ac_try) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); }; }; then
7581   eval "$as_ac_var=yes"
7582 else
7583   echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 eval "$as_ac_var=no"
7587 fi
7588 rm -f conftest.err conftest.$ac_objext \
7589       conftest$ac_exeext conftest.$ac_ext
7590 fi
7591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7593 if test `eval echo '${'$as_ac_var'}'` = yes; then
7594   cat >>confdefs.h <<_ACEOF
7595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7596 _ACEOF
7597
7598 fi
7599 done
7600
7601 if test "x$ac_cv_func_fork" = xyes; then
7602   echo "$as_me:$LINENO: checking for working fork" >&5
7603 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7604 if test "${ac_cv_func_fork_works+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   if test "$cross_compiling" = yes; then
7608   ac_cv_func_fork_works=cross
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* By Ruediger Kuhlmann. */
7612       #include <sys/types.h>
7613       #if HAVE_UNISTD_H
7614       # include <unistd.h>
7615       #endif
7616       /* Some systems only have a dummy stub for fork() */
7617       int main ()
7618       {
7619         if (fork() < 0)
7620           exit (1);
7621         exit (0);
7622       }
7623 _ACEOF
7624 rm -f conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631   (eval $ac_try) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   ac_cv_func_fork_works=yes
7636 else
7637   echo "$as_me: program exited with status $ac_status" >&5
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641 ( exit $ac_status )
7642 ac_cv_func_fork_works=no
7643 fi
7644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 fi
7647 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7648 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7649
7650 else
7651   ac_cv_func_fork_works=$ac_cv_func_fork
7652 fi
7653 if test "x$ac_cv_func_fork_works" = xcross; then
7654   case $host in
7655     *-*-amigaos* | *-*-msdosdjgpp*)
7656       # Override, as these systems have only a dummy fork() stub
7657       ac_cv_func_fork_works=no
7658       ;;
7659     *)
7660       ac_cv_func_fork_works=yes
7661       ;;
7662   esac
7663   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7664 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7665 fi
7666 ac_cv_func_vfork_works=$ac_cv_func_vfork
7667 if test "x$ac_cv_func_vfork" = xyes; then
7668   echo "$as_me:$LINENO: checking for working vfork" >&5
7669 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7670 if test "${ac_cv_func_vfork_works+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   if test "$cross_compiling" = yes; then
7674   ac_cv_func_vfork_works=cross
7675 else
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682 /* Thanks to Paul Eggert for this test.  */
7683 #include <stdio.h>
7684 #include <stdlib.h>
7685 #include <sys/types.h>
7686 #include <sys/stat.h>
7687 #include <sys/wait.h>
7688 #if HAVE_UNISTD_H
7689 # include <unistd.h>
7690 #endif
7691 #if HAVE_VFORK_H
7692 # include <vfork.h>
7693 #endif
7694 /* On some sparc systems, changes by the child to local and incoming
7695    argument registers are propagated back to the parent.  The compiler
7696    is told about this with #include <vfork.h>, but some compilers
7697    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7698    static variable whose address is put into a register that is
7699    clobbered by the vfork.  */
7700 static void
7701 #ifdef __cplusplus
7702 sparc_address_test (int arg)
7703 # else
7704 sparc_address_test (arg) int arg;
7705 #endif
7706 {
7707   static pid_t child;
7708   if (!child) {
7709     child = vfork ();
7710     if (child < 0) {
7711       perror ("vfork");
7712       _exit(2);
7713     }
7714     if (!child) {
7715       arg = getpid();
7716       write(-1, "", 0);
7717       _exit (arg);
7718     }
7719   }
7720 }
7721
7722 int
7723 main ()
7724 {
7725   pid_t parent = getpid ();
7726   pid_t child;
7727
7728   sparc_address_test (0);
7729
7730   child = vfork ();
7731
7732   if (child == 0) {
7733     /* Here is another test for sparc vfork register problems.  This
7734        test uses lots of local variables, at least as many local
7735        variables as main has allocated so far including compiler
7736        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7737        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7738        reuse the register of parent for one of the local variables,
7739        since it will think that parent can't possibly be used any more
7740        in this routine.  Assigning to the local variable will thus
7741        munge parent in the parent process.  */
7742     pid_t
7743       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7744       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7745     /* Convince the compiler that p..p7 are live; otherwise, it might
7746        use the same hardware register for all 8 local variables.  */
7747     if (p != p1 || p != p2 || p != p3 || p != p4
7748         || p != p5 || p != p6 || p != p7)
7749       _exit(1);
7750
7751     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7752        from child file descriptors.  If the child closes a descriptor
7753        before it execs or exits, this munges the parent's descriptor
7754        as well.  Test for this by closing stdout in the child.  */
7755     _exit(close(fileno(stdout)) != 0);
7756   } else {
7757     int status;
7758     struct stat st;
7759
7760     while (wait(&status) != child)
7761       ;
7762     exit(
7763          /* Was there some problem with vforking?  */
7764          child < 0
7765
7766          /* Did the child fail?  (This shouldn't happen.)  */
7767          || status
7768
7769          /* Did the vfork/compiler bug occur?  */
7770          || parent != getpid()
7771
7772          /* Did the file descriptor bug occur?  */
7773          || fstat(fileno(stdout), &st) != 0
7774          );
7775   }
7776 }
7777 _ACEOF
7778 rm -f conftest$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780   (eval $ac_link) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   ac_cv_func_vfork_works=yes
7790 else
7791   echo "$as_me: program exited with status $ac_status" >&5
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ( exit $ac_status )
7796 ac_cv_func_vfork_works=no
7797 fi
7798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7799 fi
7800 fi
7801 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7802 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7803
7804 fi;
7805 if test "x$ac_cv_func_fork_works" = xcross; then
7806   ac_cv_func_vfork_works=$ac_cv_func_vfork
7807   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7808 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7809 fi
7810
7811 if test "x$ac_cv_func_vfork_works" = xyes; then
7812
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_WORKING_VFORK 1
7815 _ACEOF
7816
7817 else
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define vfork fork
7821 _ACEOF
7822
7823 fi
7824 if test "x$ac_cv_func_fork_works" = xyes; then
7825
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_WORKING_FORK 1
7828 _ACEOF
7829
7830 fi
7831
7832
7833
7834
7835   am_cv_lib_iconv_ldpath=
7836
7837 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7838 if test "${with_libiconv_prefix+set}" = set; then
7839   withval="$with_libiconv_prefix"
7840
7841     for dir in `echo "$withval" | tr : ' '`; do
7842       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7843       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7844     done
7845
7846 fi;
7847
7848
7849 for ac_header in iconv.h
7850 do
7851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852 echo "$as_me:$LINENO: checking for $ac_header" >&5
7853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863 #include <$ac_header>
7864 _ACEOF
7865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } >/dev/null; then
7873   if test -s conftest.err; then
7874     ac_cpp_err=$ac_c_preproc_warn_flag
7875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7876   else
7877     ac_cpp_err=
7878   fi
7879 else
7880   ac_cpp_err=yes
7881 fi
7882 if test -z "$ac_cpp_err"; then
7883   eval "$as_ac_Header=yes"
7884 else
7885   echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888   eval "$as_ac_Header=no"
7889 fi
7890 rm -f conftest.err conftest.$ac_ext
7891 fi
7892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7895   cat >>confdefs.h <<_ACEOF
7896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7897 _ACEOF
7898
7899 fi
7900 done
7901
7902
7903   echo "$as_me:$LINENO: checking for iconv" >&5
7904 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7905 if test "${am_cv_func_iconv+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908
7909     am_cv_func_iconv="no, consider installing GNU libiconv"
7910     am_cv_lib_iconv=no
7911     cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917 #include <stdlib.h>
7918 #include <iconv.h>
7919 int
7920 main ()
7921 {
7922 iconv_t cd = iconv_open("","");
7923        iconv(cd,NULL,NULL,NULL,NULL);
7924        iconv_close(cd);
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931   (eval $ac_link) 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -z "$ac_c_werror_flag"
7939                          || test ! -s conftest.err'
7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941   (eval $ac_try) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; } &&
7945          { ac_try='test -s conftest$ac_exeext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   am_cv_func_iconv=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 fi
7957 rm -f conftest.err conftest.$ac_objext \
7958       conftest$ac_exeext conftest.$ac_ext
7959     if test "$am_cv_func_iconv" != yes; then
7960       am_save_LIBS="$LIBS"
7961       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7962       cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #include <stdlib.h>
7969 #include <iconv.h>
7970 int
7971 main ()
7972 {
7973 iconv_t cd = iconv_open("","");
7974          iconv(cd,NULL,NULL,NULL,NULL);
7975          iconv_close(cd);
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982   (eval $ac_link) 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } &&
7989          { ac_try='test -z "$ac_c_werror_flag"
7990                          || test ! -s conftest.err'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; } &&
7996          { ac_try='test -s conftest$ac_exeext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   am_cv_lib_iconv=yes
8003         am_cv_func_iconv=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 fi
8009 rm -f conftest.err conftest.$ac_objext \
8010       conftest$ac_exeext conftest.$ac_ext
8011       LIBS="$am_save_LIBS"
8012     fi
8013
8014 fi
8015 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8016 echo "${ECHO_T}$am_cv_func_iconv" >&6
8017   if test "$am_cv_func_iconv" = yes; then
8018
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_ICONV 1
8021 _ACEOF
8022
8023     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8024 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8025     if test "${am_cv_proto_iconv+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028
8029       cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035
8036 #include <stdlib.h>
8037 #include <iconv.h>
8038 extern
8039 #ifdef __cplusplus
8040 "C"
8041 #endif
8042 #if defined(__STDC__) || defined(__cplusplus)
8043 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8044 #else
8045 size_t iconv();
8046 #endif
8047
8048 int
8049 main ()
8050 {
8051
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058   (eval $ac_compile) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest.$ac_objext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   am_cv_proto_iconv_arg1=""
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 am_cv_proto_iconv_arg1="const"
8084 fi
8085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8086       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);"
8087 fi
8088
8089     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8090     echo "$as_me:$LINENO: result: ${ac_t:-
8091          }$am_cv_proto_iconv" >&5
8092 echo "${ECHO_T}${ac_t:-
8093          }$am_cv_proto_iconv" >&6
8094
8095 cat >>confdefs.h <<_ACEOF
8096 #define ICONV_CONST $am_cv_proto_iconv_arg1
8097 _ACEOF
8098
8099   fi
8100   LIBICONV=
8101   if test "$am_cv_lib_iconv" = yes; then
8102     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8103   fi
8104
8105
8106 # Until we have in-tree GNU iconv:
8107 LIBICONV_DEP=
8108
8109
8110
8111   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8112 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8113 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <locale.h>
8123 int
8124 main ()
8125 {
8126 return LC_MESSAGES
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133   (eval $ac_link) 2>conftest.er1
8134   ac_status=$?
8135   grep -v '^ *+' conftest.er1 >conftest.err
8136   rm -f conftest.er1
8137   cat conftest.err >&5
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -z "$ac_c_werror_flag"
8141                          || test ! -s conftest.err'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; } &&
8147          { ac_try='test -s conftest$ac_exeext'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; }; then
8153   am_cv_val_LC_MESSAGES=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 am_cv_val_LC_MESSAGES=no
8159 fi
8160 rm -f conftest.err conftest.$ac_objext \
8161       conftest$ac_exeext conftest.$ac_ext
8162 fi
8163 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8164 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8165   if test $am_cv_val_LC_MESSAGES = yes; then
8166
8167 cat >>confdefs.h <<\_ACEOF
8168 #define HAVE_LC_MESSAGES 1
8169 _ACEOF
8170
8171   fi
8172
8173
8174 # We will need to find libiberty.h and ansidecl.h
8175 saved_CFLAGS="$CFLAGS"
8176 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8201         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8202         fprintf_unlocked strstr errno snprintf vasprintf \
8203         malloc realloc calloc free basename getopt clock
8204 do
8205   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8206 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8207 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8208 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 #undef $ac_tr_decl
8218 #define $ac_tr_decl 1
8219
8220 #include "ansidecl.h"
8221 #include "system.h"
8222
8223 int
8224 main ()
8225 {
8226 #ifndef $ac_func
8227 char *(*pfn) = (char *(*)) $ac_func ;
8228 #endif
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235   (eval $ac_compile) 2>conftest.er1
8236   ac_status=$?
8237   grep -v '^ *+' conftest.er1 >conftest.err
8238   rm -f conftest.er1
8239   cat conftest.err >&5
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -z "$ac_c_werror_flag"
8243                          || test ! -s conftest.err'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; } &&
8249          { ac_try='test -s conftest.$ac_objext'
8250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251   (eval $ac_try) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; }; then
8255   eval "gcc_cv_have_decl_$ac_func=yes"
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 eval "gcc_cv_have_decl_$ac_func=no"
8261 fi
8262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8263 fi
8264
8265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8266   echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8268 #define $ac_tr_decl 1
8269 _ACEOF
8270
8271 else
8272   echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8274 #define $ac_tr_decl 0
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281
8282
8283
8284
8285 for ac_func in getrlimit setrlimit getrusage
8286 do
8287   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8288 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8289 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8290 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299 #undef $ac_tr_decl
8300 #define $ac_tr_decl 1
8301
8302 #include "ansidecl.h"
8303 #include "system.h"
8304 #ifdef HAVE_SYS_RESOURCE_H
8305 #include <sys/resource.h>
8306 #endif
8307
8308
8309 int
8310 main ()
8311 {
8312 #ifndef $ac_func
8313 char *(*pfn) = (char *(*)) $ac_func ;
8314 #endif
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321   (eval $ac_compile) 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag"
8329                          || test ! -s conftest.err'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; } &&
8335          { ac_try='test -s conftest.$ac_objext'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   eval "gcc_cv_have_decl_$ac_func=yes"
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 eval "gcc_cv_have_decl_$ac_func=no"
8347 fi
8348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 fi
8350
8351 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8352   echo "$as_me:$LINENO: result: yes" >&5
8353 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8354 #define $ac_tr_decl 1
8355 _ACEOF
8356
8357 else
8358   echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8360 #define $ac_tr_decl 0
8361 _ACEOF
8362
8363 fi
8364
8365 done
8366
8367
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374
8375 #include "ansidecl.h"
8376 #include "system.h"
8377 #ifdef HAVE_SYS_RESOURCE_H
8378 #include <sys/resource.h>
8379 #endif
8380
8381 int
8382 main ()
8383 {
8384 rlim_t l = 0;
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391   (eval $ac_compile) 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag"
8399                          || test ! -s conftest.err'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; } &&
8405          { ac_try='test -s conftest.$ac_objext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   :
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416
8417 cat >>confdefs.h <<\_ACEOF
8418 #define rlim_t long
8419 _ACEOF
8420
8421 fi
8422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423
8424
8425 for ac_func in ldgetname
8426 do
8427   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8428 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8429 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8430 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439 #undef $ac_tr_decl
8440 #define $ac_tr_decl 1
8441
8442 #include "ansidecl.h"
8443 #include "system.h"
8444 #ifdef HAVE_LDFCN_H
8445 #include <ldfcn.h>
8446 #endif
8447
8448
8449 int
8450 main ()
8451 {
8452 #ifndef $ac_func
8453 char *(*pfn) = (char *(*)) $ac_func ;
8454 #endif
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461   (eval $ac_compile) 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -z "$ac_c_werror_flag"
8469                          || test ! -s conftest.err'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest.$ac_objext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   eval "gcc_cv_have_decl_$ac_func=yes"
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 eval "gcc_cv_have_decl_$ac_func=no"
8487 fi
8488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8489 fi
8490
8491 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8492   echo "$as_me:$LINENO: result: yes" >&5
8493 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8494 #define $ac_tr_decl 1
8495 _ACEOF
8496
8497 else
8498   echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8500 #define $ac_tr_decl 0
8501 _ACEOF
8502
8503 fi
8504
8505 done
8506
8507
8508
8509 for ac_func in times
8510 do
8511   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8512 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8513 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8514 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 #undef $ac_tr_decl
8524 #define $ac_tr_decl 1
8525
8526 #include "ansidecl.h"
8527 #include "system.h"
8528 #ifdef HAVE_SYS_TIMES_H
8529 #include <sys/times.h>
8530 #endif
8531
8532
8533 int
8534 main ()
8535 {
8536 #ifndef $ac_func
8537 char *(*pfn) = (char *(*)) $ac_func ;
8538 #endif
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545   (eval $ac_compile) 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } &&
8552          { ac_try='test -z "$ac_c_werror_flag"
8553                          || test ! -s conftest.err'
8554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555   (eval $ac_try) 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; } &&
8559          { ac_try='test -s conftest.$ac_objext'
8560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561   (eval $ac_try) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; }; then
8565   eval "gcc_cv_have_decl_$ac_func=yes"
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 eval "gcc_cv_have_decl_$ac_func=no"
8571 fi
8572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573 fi
8574
8575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8576   echo "$as_me:$LINENO: result: yes" >&5
8577 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8578 #define $ac_tr_decl 1
8579 _ACEOF
8580
8581 else
8582   echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8584 #define $ac_tr_decl 0
8585 _ACEOF
8586
8587 fi
8588
8589 done
8590
8591
8592 # More time-related stuff.
8593 echo "$as_me:$LINENO: checking for struct tms" >&5
8594 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8595 if test "${ac_cv_struct_tms+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 #include "ansidecl.h"
8607 #include "system.h"
8608 #ifdef HAVE_SYS_TIMES_H
8609 #include <sys/times.h>
8610 #endif
8611
8612 int
8613 main ()
8614 {
8615 struct tms tms;
8616   ;
8617   return 0;
8618 }
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622   (eval $ac_compile) 2>conftest.er1
8623   ac_status=$?
8624   grep -v '^ *+' conftest.er1 >conftest.err
8625   rm -f conftest.er1
8626   cat conftest.err >&5
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); } &&
8629          { ac_try='test -z "$ac_c_werror_flag"
8630                          || test ! -s conftest.err'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; } &&
8636          { ac_try='test -s conftest.$ac_objext'
8637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638   (eval $ac_try) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   ac_cv_struct_tms=yes
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 ac_cv_struct_tms=no
8648 fi
8649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8652 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8653 if test $ac_cv_struct_tms = yes; then
8654
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_STRUCT_TMS 1
8657 _ACEOF
8658
8659 fi
8660
8661 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8662 # revisit after autoconf 2.50.
8663 echo "$as_me:$LINENO: checking for clock_t" >&5
8664 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8665 if test "${gcc_cv_type_clock_t+set}" = set; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675
8676 #include "ansidecl.h"
8677 #include "system.h"
8678
8679 int
8680 main ()
8681 {
8682 clock_t x;
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689   (eval $ac_compile) 2>conftest.er1
8690   ac_status=$?
8691   grep -v '^ *+' conftest.er1 >conftest.err
8692   rm -f conftest.er1
8693   cat conftest.err >&5
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } &&
8696          { ac_try='test -z "$ac_c_werror_flag"
8697                          || test ! -s conftest.err'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   gcc_cv_type_clock_t=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 gcc_cv_type_clock_t=no
8715 fi
8716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8719 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8720 if test $gcc_cv_type_clock_t = yes; then
8721
8722 cat >>confdefs.h <<\_ACEOF
8723 #define HAVE_CLOCK_T 1
8724 _ACEOF
8725
8726 fi
8727
8728 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8729 CFLAGS="$saved_CFLAGS"
8730
8731 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8732 if test "${enable_initfini_array+set}" = set; then
8733   enableval="$enable_initfini_array"
8734
8735 else
8736
8737 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8738 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8739 if test "${gcc_cv_initfini_array+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742     if test "$cross_compiling" = yes; then
8743   gcc_cv_initfini_array=no
8744 else
8745   cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751
8752 static int x = -1;
8753 int main (void) { return x; }
8754 int foo (void) { x = 0; }
8755 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8756 _ACEOF
8757 rm -f conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759   (eval $ac_link) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; }; then
8768   gcc_cv_initfini_array=yes
8769 else
8770   echo "$as_me: program exited with status $ac_status" >&5
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 ( exit $ac_status )
8775 gcc_cv_initfini_array=no
8776 fi
8777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8778 fi
8779 fi
8780 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8781 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8782   enable_initfini_array=$gcc_cv_initfini_array
8783
8784 fi;
8785 if test $enable_initfini_array = yes; then
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_INITFINI_ARRAY 1
8789 _ACEOF
8790
8791 fi
8792
8793 # mkdir takes a single argument on some systems.
8794 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8795 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8796 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805
8806 #include <sys/types.h>
8807 #ifdef HAVE_SYS_STAT_H
8808 # include <sys/stat.h>
8809 #endif
8810 #ifdef HAVE_UNISTD_H
8811 # include <unistd.h>
8812 #endif
8813 #ifdef HAVE_DIRECT_H
8814 # include <direct.h>
8815 #endif
8816 int
8817 main ()
8818 {
8819 mkdir ("foo", 0);
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8826   (eval $ac_compile) 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } &&
8833          { ac_try='test -z "$ac_c_werror_flag"
8834                          || test ! -s conftest.err'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; } &&
8840          { ac_try='test -s conftest.$ac_objext'
8841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842   (eval $ac_try) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; }; then
8846   gcc_cv_mkdir_takes_one_arg=no
8847 else
8848   echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 gcc_cv_mkdir_takes_one_arg=yes
8852 fi
8853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8856 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8857 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define MKDIR_TAKES_ONE_ARG 1
8861 _ACEOF
8862
8863 fi
8864
8865
8866 # File extensions
8867 manext='.1'
8868 objext='.o'
8869
8870
8871
8872 # With Setjmp/Longjmp based exception handling.
8873 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8874 if test "${enable_sjlj_exceptions+set}" = set; then
8875   enableval="$enable_sjlj_exceptions"
8876   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8877
8878 cat >>confdefs.h <<_ACEOF
8879 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8880 _ACEOF
8881
8882 fi;
8883
8884 if test x$host = x$target; then
8885    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8886 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8887 if test "${ac_cv_lib_unwind_main+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   ac_check_lib_save_LIBS=$LIBS
8891 LIBS="-lunwind  $LIBS"
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899
8900 int
8901 main ()
8902 {
8903 main ();
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910   (eval $ac_link) 2>conftest.er1
8911   ac_status=$?
8912   grep -v '^ *+' conftest.er1 >conftest.err
8913   rm -f conftest.er1
8914   cat conftest.err >&5
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -z "$ac_c_werror_flag"
8918                          || 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_exeext'
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   ac_cv_lib_unwind_main=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_cv_lib_unwind_main=no
8936 fi
8937 rm -f conftest.err conftest.$ac_objext \
8938       conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8940 fi
8941 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8942 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8943 if test $ac_cv_lib_unwind_main = yes; then
8944   use_libunwind_default=yes
8945 else
8946   use_libunwind_default=no
8947 fi
8948
8949 else
8950    use_libunwind_default=no
8951 fi
8952 # Use libunwind based exception handling.
8953 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8954 if test "${enable_libunwind_exceptions+set}" = set; then
8955   enableval="$enable_libunwind_exceptions"
8956   use_libunwind_exceptions=$enableval
8957 else
8958   use_libunwind_exceptions=$use_libunwind_default
8959 fi;
8960 if test x"$use_libunwind_exceptions" = xyes; then
8961
8962 cat >>confdefs.h <<\_ACEOF
8963 #define USE_LIBUNWIND_EXCEPTIONS 1
8964 _ACEOF
8965
8966 fi
8967
8968 # --------------------------------------------------------
8969 # Build, host, and target specific configuration fragments
8970 # --------------------------------------------------------
8971
8972 # Collect build-machine-specific information.
8973 . ${srcdir}/config.build
8974
8975 # Collect host-machine-specific information.
8976 . ${srcdir}/config.host
8977
8978 target_gtfiles=
8979
8980 # Collect target-machine-specific information.
8981 . ${srcdir}/config.gcc
8982
8983 extra_objs="${host_extra_objs} ${extra_objs}"
8984 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8985
8986 # Default the target-machine variables that were not explicitly set.
8987 if test x"$tm_file" = x
8988 then tm_file=$cpu_type/$cpu_type.h; fi
8989
8990 if test x"$extra_headers" = x
8991 then extra_headers=; fi
8992
8993 if test x$md_file = x
8994 then md_file=$cpu_type/$cpu_type.md; fi
8995
8996 if test x$out_file = x
8997 then out_file=$cpu_type/$cpu_type.c; fi
8998
8999 if test x"$tmake_file" = x
9000 then tmake_file=$cpu_type/t-$cpu_type
9001 fi
9002
9003 if test x"$dwarf2" = xyes
9004 then tm_file="$tm_file tm-dwarf2.h"
9005 fi
9006
9007 # Say what files are being used for the output code and MD file.
9008 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9009 echo "Using \`$srcdir/config/$md_file' as machine description file."
9010
9011 # If any of the xm_file variables contain nonexistent files, warn
9012 # about them and drop them.
9013
9014 bx=
9015 for x in $build_xm_file; do
9016   if    test -f $srcdir/config/$x
9017   then      bx="$bx $x"
9018   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9019 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9020   fi
9021 done
9022 build_xm_file="$bx"
9023
9024 hx=
9025 for x in $host_xm_file; do
9026   if    test -f $srcdir/config/$x
9027   then      hx="$hx $x"
9028   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9029 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9030   fi
9031 done
9032 host_xm_file="$hx"
9033
9034 tx=
9035 for x in $xm_file; do
9036   if    test -f $srcdir/config/$x
9037   then      tx="$tx $x"
9038   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9039 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9040   fi
9041 done
9042 xm_file="$tx"
9043
9044 count=a
9045 for f in $tm_file; do
9046         count=${count}x
9047 done
9048 if test $count = ax; then
9049         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9050 else
9051         echo "Using the following target machine macro files:"
9052         for f in $tm_file; do
9053                 echo "  $srcdir/config/$f"
9054         done
9055 fi
9056
9057 if test x$need_64bit_hwint = xyes; then
9058
9059 cat >>confdefs.h <<\_ACEOF
9060 #define NEED_64BIT_HOST_WIDE_INT 1
9061 _ACEOF
9062
9063 fi
9064
9065 count=a
9066 for f in $host_xm_file; do
9067         count=${count}x
9068 done
9069 if test $count = a; then
9070         :
9071 elif test $count = ax; then
9072         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9073 else
9074         echo "Using the following host machine macro files:"
9075         for f in $host_xm_file; do
9076                 echo "  $srcdir/config/$f"
9077         done
9078 fi
9079 echo "Using ${out_host_hook_obj} for host machine hooks."
9080
9081 if test "$host_xm_file" != "$build_xm_file"; then
9082         count=a
9083         for f in $build_xm_file; do
9084                 count=${count}x
9085         done
9086         if test $count = a; then
9087                 :
9088         elif test $count = ax; then
9089                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9090         else
9091                 echo "Using the following build machine macro files:"
9092                 for f in $build_xm_file; do
9093                         echo "  $srcdir/config/$f"
9094                 done
9095         fi
9096 fi
9097
9098 # ---------
9099 # Threading
9100 # ---------
9101
9102 # Check if a valid thread package
9103 case ${enable_threads} in
9104   "" | no)
9105     # No threads
9106     target_thread_file='single'
9107     ;;
9108   yes)
9109     # default
9110     target_thread_file='single'
9111     ;;
9112   aix | dce | gnat | irix | posix | rtems | \
9113   single | solaris | vxworks | win32 )
9114     target_thread_file=${enable_threads}
9115     ;;
9116   *)
9117     echo "${enable_threads} is an unknown thread package" 1>&2
9118     exit 1
9119     ;;
9120 esac
9121
9122 if test x${thread_file} = x; then
9123   # No thread file set by target-specific clauses in config.gcc,
9124   # so use file chosen by default logic above
9125   thread_file=${target_thread_file}
9126 fi
9127
9128 # Make gthr-default.h if we have a thread file.
9129 gthread_flags=
9130 if test $thread_file != single; then
9131   rm -f gthr-default.h
9132   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9133   gthread_flags=-DHAVE_GTHR_DEFAULT
9134 fi
9135
9136
9137 # --------
9138 # UNSORTED
9139 # --------
9140
9141 if test x$enable___cxa_atexit = xyes || \
9142    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9143    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9144 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9145 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9146   echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148   cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h.  */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h.  */
9154 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9156 #define __cxa_atexit innocuous___cxa_atexit
9157
9158 /* System header to define __stub macros and hopefully few prototypes,
9159     which can conflict with char __cxa_atexit (); below.
9160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9161     <limits.h> exists even on freestanding compilers.  */
9162
9163 #ifdef __STDC__
9164 # include <limits.h>
9165 #else
9166 # include <assert.h>
9167 #endif
9168
9169 #undef __cxa_atexit
9170
9171 /* Override any gcc2 internal prototype to avoid an error.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 {
9175 #endif
9176 /* We use char because int might match the return type of a gcc2
9177    builtin and then its argument prototype would still apply.  */
9178 char __cxa_atexit ();
9179 /* The GNU C library defines this for functions which it implements
9180     to always fail with ENOSYS.  Some functions are actually named
9181     something starting with __ and the normal name is an alias.  */
9182 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9183 choke me
9184 #else
9185 char (*f) () = __cxa_atexit;
9186 #endif
9187 #ifdef __cplusplus
9188 }
9189 #endif
9190
9191 int
9192 main ()
9193 {
9194 return f != __cxa_atexit;
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201   (eval $ac_link) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -z "$ac_c_werror_flag"
9209                          || test ! -s conftest.err'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; } &&
9215          { ac_try='test -s conftest$ac_exeext'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; }; then
9221   ac_cv_func___cxa_atexit=yes
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 ac_cv_func___cxa_atexit=no
9227 fi
9228 rm -f conftest.err conftest.$ac_objext \
9229       conftest$ac_exeext conftest.$ac_ext
9230 fi
9231 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9232 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9233 if test $ac_cv_func___cxa_atexit = yes; then
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define DEFAULT_USE_CXA_ATEXIT 1
9237 _ACEOF
9238
9239 else
9240   echo "__cxa_atexit can't be enabled on this target"
9241 fi
9242
9243 fi
9244
9245 # Look for a file containing extra machine modes.
9246 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9247   extra_modes_file='$(srcdir)'/config/${extra_modes}
9248
9249
9250 cat >>confdefs.h <<_ACEOF
9251 #define EXTRA_MODES_FILE "config/$extra_modes"
9252 _ACEOF
9253
9254 fi
9255
9256 # auto-host.h is the file containing items generated by autoconf and is
9257 # the first file included by config.h.
9258 # If host=build, it is correct to have bconfig include auto-host.h
9259 # as well.  If host!=build, we are in error and need to do more
9260 # work to find out the build config parameters.
9261 if test x$host = x$build
9262 then
9263         build_auto=auto-host.h
9264         FORBUILD=..
9265 else
9266         # We create a subdir, then run autoconf in the subdir.
9267         # To prevent recursion we set host and build for the new
9268         # invocation of configure to the build for this invocation
9269         # of configure.
9270         tempdir=build.$$
9271         rm -rf $tempdir
9272         mkdir $tempdir
9273         cd $tempdir
9274         case ${srcdir} in
9275         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9276         *) realsrcdir=../${srcdir};;
9277         esac
9278         saved_CFLAGS="${CFLAGS}"
9279         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9280         ${realsrcdir}/configure \
9281                 --enable-languages=${enable_languages-all} \
9282                 --target=$target_alias --host=$build_alias --build=$build_alias
9283         CFLAGS="${saved_CFLAGS}"
9284
9285         # We just finished tests for the build machine, so rename
9286         # the file auto-build.h in the gcc directory.
9287         mv auto-host.h ../auto-build.h
9288         cd ..
9289         rm -rf $tempdir
9290         build_auto=auto-build.h
9291         FORBUILD=../${build_subdir}
9292 fi
9293
9294
9295 tm_file="${tm_file} defaults.h"
9296 tm_p_file="${tm_p_file} tm-preds.h"
9297 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9298 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9299 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9300 # put this back in temporarily.
9301 xm_file="ansidecl.h ${xm_file}"
9302
9303 # --------
9304 # UNSORTED
9305 # --------
9306
9307 # Get the version trigger filename from the toplevel
9308 if test "${with_gcc_version_trigger+set}" = set; then
9309         gcc_version_trigger=$with_gcc_version_trigger
9310 else
9311         gcc_version_trigger=${srcdir}/version.c
9312 fi
9313 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9314 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9315
9316 # Compile in configure arguments.
9317 if test -f configargs.h ; then
9318         # Being re-configured.
9319         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9320         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9321 else
9322         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9323 fi
9324
9325 # Double all backslashes and backslash all quotes to turn
9326 # gcc_config_arguments into a C string.
9327 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9328 $gcc_config_arguments
9329 EOF
9330 gcc_config_arguments_str=`cat conftest.out`
9331 rm -f conftest.out
9332
9333 cat > configargs.h <<EOF
9334 /* Generated automatically. */
9335 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9336 static const char thread_model[] = "$thread_file";
9337
9338 static const struct {
9339   const char *name, *value;
9340 } configure_default_options[] = $configure_default_options;
9341 EOF
9342
9343 # Internationalization
9344 PACKAGE=gcc
9345 VERSION="$gcc_version"
9346
9347
9348
9349 # If we haven't got the data from the intl directory,
9350 # assume NLS is disabled.
9351 USE_NLS=no
9352 LIBINTL=
9353 LIBINTL_DEP=
9354 INCINTL=
9355 XGETTEXT=
9356 GMSGFMT=
9357 POSUB=
9358 if test -f ../intl/config.intl; then
9359   . ../intl/config.intl
9360 fi
9361 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9362 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9363 if test x"$USE_NLS" != xyes; then
9364   echo "$as_me:$LINENO: result: no" >&5
9365 echo "${ECHO_T}no" >&6
9366 else
9367   echo "$as_me:$LINENO: result: yes" >&5
9368 echo "${ECHO_T}yes" >&6
9369
9370 cat >>confdefs.h <<\_ACEOF
9371 #define ENABLE_NLS 1
9372 _ACEOF
9373
9374
9375   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9376 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9377   # Look for .po and .gmo files in the source directory.
9378   CATALOGS=
9379   XLINGUAS=
9380   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9381     # If there aren't any .gmo files the shell will give us the
9382     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9383     # weeded out.
9384     case "$cat" in *\**)
9385       continue;;
9386     esac
9387     # The quadruple backslash is collapsed to a double backslash
9388     # by the backticks, then collapsed again by the double quotes,
9389     # leaving us with one backslash in the sed expression (right
9390     # before the dot that mustn't act as a wildcard).
9391     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9392     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9393     # The user is allowed to set LINGUAS to a list of languages to
9394     # install catalogs for.  If it's empty that means "all of them."
9395     if test "x$LINGUAS" = x; then
9396       CATALOGS="$CATALOGS $cat"
9397       XLINGUAS="$XLINGUAS $lang"
9398     else
9399       case "$LINGUAS" in *$lang*)
9400         CATALOGS="$CATALOGS $cat"
9401         XLINGUAS="$XLINGUAS $lang"
9402         ;;
9403       esac
9404     fi
9405   done
9406   LINGUAS="$XLINGUAS"
9407   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9408 echo "${ECHO_T}$LINGUAS" >&6
9409 fi
9410
9411 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9412 # -liconv on the link line twice.
9413 case "$LIBINTL" in *$LIBICONV*)
9414         LIBICONV= ;;
9415 esac
9416
9417 # Windows32 Registry support for specifying GCC installation paths.
9418 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9419 if test "${enable_win32_registry+set}" = set; then
9420   enableval="$enable_win32_registry"
9421
9422 fi;
9423 case $host_os in
9424         win32 | pe | cygwin* | mingw32* | uwin*)
9425 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9426 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9427 if test "x$enable_win32_registry" != xno; then
9428
9429 cat >>confdefs.h <<\_ACEOF
9430 #define ENABLE_WIN32_REGISTRY 1
9431 _ACEOF
9432
9433   echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6
9435   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9436 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9437 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440   ac_func_search_save_LIBS=$LIBS
9441 ac_cv_search_RegOpenKeyExA=no
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448
9449 /* Override any gcc2 internal prototype to avoid an error.  */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454    builtin and then its argument prototype would still apply.  */
9455 char RegOpenKeyExA ();
9456 int
9457 main ()
9458 {
9459 RegOpenKeyExA ();
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } &&
9473          { ac_try='test -z "$ac_c_werror_flag"
9474                          || test ! -s conftest.err'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; } &&
9480          { ac_try='test -s conftest$ac_exeext'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; }; then
9486   ac_cv_search_RegOpenKeyExA="none required"
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 fi
9492 rm -f conftest.err conftest.$ac_objext \
9493       conftest$ac_exeext conftest.$ac_ext
9494 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9495   for ac_lib in advapi32; do
9496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9497     cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h.  */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h.  */
9503
9504 /* Override any gcc2 internal prototype to avoid an error.  */
9505 #ifdef __cplusplus
9506 extern "C"
9507 #endif
9508 /* We use char because int might match the return type of a gcc2
9509    builtin and then its argument prototype would still apply.  */
9510 char RegOpenKeyExA ();
9511 int
9512 main ()
9513 {
9514 RegOpenKeyExA ();
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521   (eval $ac_link) 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } &&
9528          { ac_try='test -z "$ac_c_werror_flag"
9529                          || test ! -s conftest.err'
9530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531   (eval $ac_try) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; } &&
9535          { ac_try='test -s conftest$ac_exeext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9542 break
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 fi
9548 rm -f conftest.err conftest.$ac_objext \
9549       conftest$ac_exeext conftest.$ac_ext
9550   done
9551 fi
9552 LIBS=$ac_func_search_save_LIBS
9553 fi
9554 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9555 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9556 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9557   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9558
9559 fi
9560
9561 else
9562   echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6
9564 fi
9565
9566 # Check if user specified a different registry key.
9567 case "x${enable_win32_registry}" in
9568 x | xyes)
9569   # default.
9570   gcc_cv_win32_registry_key="$VERSION"
9571   ;;
9572 xno)
9573   # no registry lookup.
9574   gcc_cv_win32_registry_key=''
9575   ;;
9576 *)
9577   # user-specified key.
9578   gcc_cv_win32_registry_key="$enable_win32_registry"
9579   ;;
9580 esac
9581
9582 if test "x$enable_win32_registry" != xno; then
9583   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9584 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9585
9586 cat >>confdefs.h <<_ACEOF
9587 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9588 _ACEOF
9589
9590   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9591 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9592 fi
9593 ;;
9594 esac
9595
9596 # Get an absolute path to the GCC top-level source directory
9597 holddir=`${PWDCMD-pwd}`
9598 cd $srcdir
9599 topdir=`${PWDCMD-pwd}`
9600 cd $holddir
9601
9602 # Conditionalize the makefile for this host machine.
9603 xmake_file=
9604 for f in ${host_xmake_file}
9605 do
9606         if test -f ${srcdir}/config/$f
9607         then
9608                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9609         fi
9610 done
9611
9612 # Conditionalize the makefile for this target machine.
9613 tmake_file_=
9614 for f in ${tmake_file}
9615 do
9616         if test -f ${srcdir}/config/$f
9617         then
9618                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9619         fi
9620 done
9621 tmake_file="${tmake_file_}"
9622
9623 symbolic_link='ln -s'
9624
9625 # If the host doesn't support symlinks, modify CC in
9626 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9627 # Otherwise, we can use "CC=$(CC)".
9628 rm -f symtest.tem
9629 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9630 then
9631         cc_set_by_configure="\$(CC)"
9632         quoted_cc_set_by_configure="\$(CC)"
9633         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9634         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9635 else
9636         rm -f symtest.tem
9637         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9638         then
9639                 symbolic_link="cp -p"
9640         else
9641                 symbolic_link="cp"
9642         fi
9643         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9644         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9645         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9646         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9647 fi
9648 rm -f symtest.tem
9649
9650 out_object_file=`basename $out_file .c`.o
9651
9652 tm_file_list=
9653 tm_include_list=
9654 for f in $tm_file; do
9655   case $f in
9656     defaults.h )
9657        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9658        tm_include_list="${tm_include_list} $f"
9659        ;;
9660     * )
9661        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9662        tm_include_list="${tm_include_list} config/$f"
9663        ;;
9664   esac
9665 done
9666
9667 tm_p_file_list=
9668 tm_p_include_list=
9669 for f in $tm_p_file; do
9670   case $f in
9671     tm-preds.h )
9672        tm_p_file_list="${tm_p_file_list} $f"
9673        tm_p_include_list="${tm_p_include_list} $f"
9674        ;;
9675     * )
9676        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9677        tm_p_include_list="${tm_p_include_list} config/$f"
9678   esac
9679 done
9680
9681 xm_file_list=
9682 xm_include_list=
9683 for f in $xm_file; do
9684   case $f in
9685     ansidecl.h )
9686        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9687        xm_include_list="${xm_include_list} $f"
9688        ;;
9689     auto-host.h )
9690        xm_file_list="${xm_file_list} $f"
9691        xm_include_list="${xm_include_list} $f"
9692        ;;
9693     * )
9694        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9695        xm_include_list="${xm_include_list} config/$f"
9696        ;;
9697   esac
9698 done
9699
9700 host_xm_file_list=
9701 host_xm_include_list=
9702 for f in $host_xm_file; do
9703   case $f in
9704     ansidecl.h )
9705        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9706        host_xm_include_list="${host_xm_include_list} $f"
9707        ;;
9708     auto-host.h )
9709        host_xm_file_list="${host_xm_file_list} $f"
9710        host_xm_include_list="${host_xm_include_list} $f"
9711        ;;
9712     * )
9713        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9714        host_xm_include_list="${host_xm_include_list} config/$f"
9715        ;;
9716   esac
9717 done
9718
9719 build_xm_file_list=
9720 for f in $build_xm_file; do
9721   case $f in
9722     ansidecl.h )
9723        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9724        build_xm_include_list="${build_xm_include_list} $f"
9725        ;;
9726     auto-build.h | auto-host.h )
9727        build_xm_file_list="${build_xm_file_list} $f"
9728        build_xm_include_list="${build_xm_include_list} $f"
9729        ;;
9730     * )
9731        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9732        build_xm_include_list="${build_xm_include_list} config/$f"
9733        ;;
9734   esac
9735 done
9736
9737 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9738 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9739 CROSS=
9740 ALL=all.internal
9741 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9742 if test x$host != x$target
9743 then
9744         CROSS="-DCROSS_COMPILE"
9745         ALL=all.cross
9746         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9747         case "$host","$target" in
9748         # Darwin crosses can use the host system's libraries and headers,
9749         # because of the fat library support.  Of course, it must be the
9750         # same version of Darwin on both sides.  Allow the user to
9751         # just say --target=foo-darwin without a version number to mean
9752         # "the version on this system".
9753             *-*-darwin*,*-*-darwin*)
9754                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9755                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9756                 if test $hostos = $targetos -o $targetos = darwin ; then
9757                     CROSS=
9758                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9759                     with_headers=yes
9760                 fi
9761                 ;;
9762
9763             i?86-*-*,x86_64-*-* \
9764             | powerpc*-*-*,powerpc64*-*-*)
9765                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9766         esac
9767 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9768         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9769         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9770 fi
9771
9772 # If this is a cross-compiler that does not
9773 # have its own set of headers then define
9774 # inhibit_libc
9775
9776 # If this is using newlib, without having the headers available now,
9777 # then define inhibit_libc in LIBGCC2_CFLAGS.
9778 # This prevents libgcc2 from containing any code which requires libc
9779 # support.
9780 inhibit_libc=
9781 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9782        test x$with_newlib = xyes ; } &&
9783      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9784        inhibit_libc=-Dinhibit_libc
9785 fi
9786
9787
9788 # When building gcc with a cross-compiler, we need to adjust things so
9789 # that the generator programs are still built with the native compiler.
9790 # Also, we cannot run fixincludes or fix-header.
9791
9792 # These are the normal (build=host) settings:
9793 BUILD_PREFIX=
9794 BUILD_PREFIX_1=ignore-
9795 CC_FOR_BUILD='$(CC)'
9796 BUILD_CFLAGS='$(ALL_CFLAGS)'
9797
9798 STMP_FIXINC=stmp-fixinc
9799
9800 # Possibly disable fixproto, on a per-target basis.
9801 case ${use_fixproto} in
9802   no)
9803     STMP_FIXPROTO=
9804     ;;
9805   yes)
9806     STMP_FIXPROTO=stmp-fixproto
9807     ;;
9808 esac
9809
9810
9811 # And these apply if build != host, or we are generating coverage data
9812 if test x$build != x$host || test "x$coverage_flags" != x
9813 then
9814     BUILD_PREFIX=build-
9815     BUILD_PREFIX_1=build-
9816     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9817
9818     if test "x$TARGET_SYSTEM_ROOT" = x; then
9819         STMP_FIXINC=
9820         STMP_FIXPROTO=
9821     fi
9822 fi
9823
9824 # Expand extra_headers to include complete path.
9825 # This substitutes for lots of t-* files.
9826 extra_headers_list=
9827 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9828 for file in ${extra_headers} ; do
9829   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9830 done
9831
9832 # Define collect2 in Makefile.
9833 case $host_can_use_collect2 in
9834   no) collect2= ;;
9835   *) collect2='collect2$(exeext)' ;;
9836 esac
9837
9838
9839 # Add a definition of USE_COLLECT2 if system wants one.
9840 case $use_collect2 in
9841   no) use_collect2= ;;
9842   "") ;;
9843   *)
9844     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9845     xm_defines="${xm_defines} USE_COLLECT2"
9846     case $host_can_use_collect2 in
9847       no)
9848         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9849 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9850    { (exit 1); exit 1; }; }
9851         ;;
9852     esac
9853     ;;
9854 esac
9855
9856 # ---------------------------
9857 # Assembler & linker features
9858 # ---------------------------
9859
9860 # Identify the assembler which will work hand-in-glove with the newly
9861 # built GCC, so that we can examine its features.  This is the assembler
9862 # which will be driven by the driver program.
9863 #
9864 # If build != host, and we aren't building gas in-tree, we identify a
9865 # build->target assembler and hope that it will have the same features
9866 # as the host->target assembler we'll be using.
9867 echo "$as_me:$LINENO: checking what assembler to use" >&5
9868 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9869 in_tree_gas=no
9870 gcc_cv_as=
9871 gcc_cv_gas_major_version=
9872 gcc_cv_gas_minor_version=
9873 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9874 if test -x "$DEFAULT_ASSEMBLER"; then
9875         gcc_cv_as="$DEFAULT_ASSEMBLER"
9876 elif test -x as$host_exeext; then
9877         # Build using assembler in the current directory.
9878         gcc_cv_as=./as$host_exeext
9879 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9880      && test -f ../gas/Makefile \
9881      && test x$build = x$host; then
9882   # Single tree build which includes gas.  We want to prefer it
9883   # over whatever linker top-level may have detected, since
9884   # we'll use what we're building after installation anyway.
9885   in_tree_gas=yes
9886   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9887 for f in $gcc_cv_as_bfd_srcdir/configure \
9888          $gcc_cv_as_gas_srcdir/configure \
9889          $gcc_cv_as_gas_srcdir/configure.in \
9890          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9891   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9892   if test x$gcc_cv_gas_version != x; then
9893     break
9894   fi
9895 done
9896 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9897 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9898 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9899 case $gcc_cv_gas_patch_version in
9900   "") gcc_cv_gas_patch_version="0" ;;
9901 esac
9902 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9903                             + $gcc_cv_gas_minor_version \) \* 1000 \
9904                             + $gcc_cv_gas_patch_version`
9905
9906   rm -f as$host_exeext
9907   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9908   in_tree_gas_is_elf=no
9909   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9910      || (grep 'obj_format = multi' ../gas/Makefile \
9911          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9912   then
9913     in_tree_gas_is_elf=yes
9914   fi
9915 elif test -x "$AS_FOR_TARGET"; then
9916         gcc_cv_as="$AS_FOR_TARGET"
9917 elif test -x "$AS" && test x$host = x$target; then
9918         gcc_cv_as="$AS"
9919 fi
9920
9921 if test "x$gcc_cv_as" = x; then
9922         # Search the same directories that the installed compiler will
9923         # search.  Else we may find the wrong assembler and lose.  If we
9924         # do not find a suitable assembler binary, then try the user's
9925         # path.
9926         #
9927         # Also note we have to check MD_EXEC_PREFIX before checking the
9928         # user's path.  Unfortunately, there is no good way to get at the
9929         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9930         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9931         # to be fixed as part of the make/configure rewrite too.
9932
9933         if test "x$exec_prefix" = xNONE; then
9934                 if test "x$prefix" = xNONE; then
9935                         test_prefix=/usr/local
9936                 else
9937                         test_prefix=$prefix
9938                 fi
9939         else
9940                 test_prefix=$exec_prefix
9941         fi
9942
9943         # If the loop below does not find an assembler, then use whatever
9944         # one we can find in the users's path.
9945         # user's path.
9946         if test "x$program_prefix" != xNONE; then
9947                 gcc_cv_as=${program_prefix}as$host_exeext
9948         else
9949                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9950         fi
9951
9952         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9953                    $test_prefix/libexec/gcc/$target_noncanonical \
9954                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9955                    /usr/lib/gcc/$target_noncanonical \
9956                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9957                    $test_prefix/$target_noncanonical/bin"
9958
9959         if test x$host = x$target; then
9960             test_dirs="$test_dirs \
9961                    /usr/libexec \
9962                    /usr/ccs/gcc \
9963                    /usr/ccs/bin \
9964                    /udk/usr/ccs/bin \
9965                    /bsd43/usr/lib/cmplrs/cc \
9966                    /usr/cross64/usr/bin \
9967                    /usr/lib/cmplrs/cc \
9968                    /sysv/usr/lib/cmplrs/cc \
9969                    /svr4/usr/lib/cmplrs/cc \
9970                    /usr/bin"
9971         fi
9972
9973         for dir in $test_dirs; do
9974                 if test -x $dir/as$host_exeext; then
9975                         gcc_cv_as=$dir/as$host_exeext
9976                         break;
9977                 fi
9978         done
9979 fi
9980 case $in_tree_gas in
9981   yes)
9982     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9983 echo "${ECHO_T}\"newly built gas\"" >&6
9984     ;;
9985   no)
9986     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9987 echo "${ECHO_T}$gcc_cv_as" >&6
9988     ;;
9989 esac
9990
9991 # Identify the linker which will work hand-in-glove with the newly
9992 # built GCC, so that we can examine its features.  This is the linker
9993 # which will be driven by the driver program.
9994 #
9995 # If build != host, and we aren't building gas in-tree, we identify a
9996 # build->target linker and hope that it will have the same features
9997 # as the host->target linker we'll be using.
9998 echo "$as_me:$LINENO: checking what linker to use" >&5
9999 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10000 in_tree_ld=no
10001 gcc_cv_ld=
10002 gcc_cv_gld_major_version=
10003 gcc_cv_gld_minor_version=
10004 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10005 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10006 if test -x "$DEFAULT_LINKER"; then
10007         gcc_cv_ld="$DEFAULT_LINKER"
10008 elif test -x collect-ld$host_exeext; then
10009         # Build using linker in the current directory.
10010         gcc_cv_ld=./collect-ld$host_exeext
10011 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10012      && test -f ../ld/Makefile \
10013      && test x$build = x$host; then
10014         # Single tree build which includes ld.  We want to prefer it
10015         # over whatever linker top-level may have detected, since
10016         # we'll use what we're building after installation anyway.
10017         in_tree_ld=yes
10018         in_tree_ld_is_elf=no
10019         if (grep 'EMUL = .*elf' ../ld/Makefile \
10020             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10021           in_tree_ld_is_elf=yes
10022         fi
10023         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
10024         do
10025                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10026                 if test x$gcc_cv_gld_version != x; then
10027                         break
10028                 fi
10029         done
10030         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10031         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10032         rm -f collect-ld$host_exeext
10033         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10034                 2>/dev/null
10035 elif test -x "$LD_FOR_TARGET"; then
10036         gcc_cv_ld="$LD_FOR_TARGET"
10037 elif test -x "$LD" && test x$host = x$target; then
10038         gcc_cv_ld="$LD"
10039 fi
10040
10041 if test "x$gcc_cv_ld" = x; then
10042         # Search the same directories that the installed compiler will
10043         # search.  Else we may find the wrong linker and lose.  If we
10044         # do not find a suitable linker binary, then try the user's
10045         # path.
10046         #
10047         # Also note we have to check MD_EXEC_PREFIX before checking the
10048         # user's path.  Unfortunately, there is no good way to get at the
10049         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10050         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10051         # to be fixed as part of the make/configure rewrite too.
10052
10053         if test "x$exec_prefix" = xNONE; then
10054                 if test "x$prefix" = xNONE; then
10055                         test_prefix=/usr/local
10056                 else
10057                         test_prefix=$prefix
10058                 fi
10059         else
10060                 test_prefix=$exec_prefix
10061         fi
10062
10063         # If the loop below does not find an linker, then use whatever
10064         # one we can find in the users's path.
10065         # user's path.
10066         if test "x$program_prefix" != xNONE; then
10067                 gcc_cv_ld=${program_prefix}ld$host_exeext
10068         else
10069                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10070         fi
10071
10072         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10073                    $test_prefix/libexec/gcc/$target_noncanonical \
10074                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10075                    /usr/lib/gcc/$target_noncanonical \
10076                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10077                    $test_prefix/$target_noncanonical/bin"
10078
10079         if test x$host = x$target; then
10080             test_dirs="$test_dirs \
10081                    /usr/libexec \
10082                    /usr/ccs/gcc \
10083                    /usr/ccs/bin \
10084                    /udk/usr/ccs/bin \
10085                    /bsd43/usr/lib/cmplrs/cc \
10086                    /usr/cross64/usr/bin \
10087                    /usr/lib/cmplrs/cc \
10088                    /sysv/usr/lib/cmplrs/cc \
10089                    /svr4/usr/lib/cmplrs/cc \
10090                    /usr/bin"
10091         fi
10092
10093         for dir in $test_dirs; do
10094                 if test -x $dir/ld$host_exeext; then
10095                         gcc_cv_ld=$dir/ld$host_exeext
10096                         break;
10097                 fi
10098         done
10099 fi
10100 case $in_tree_ld in
10101   yes)
10102     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10103 echo "${ECHO_T}\"newly built ld\"" >&6
10104     ;;
10105   no)
10106     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10107 echo "${ECHO_T}$gcc_cv_ld" >&6
10108     ;;
10109 esac
10110
10111 # Figure out what nm we will be using.
10112 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10113 echo "$as_me:$LINENO: checking what nm to use" >&5
10114 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10115 in_tree_nm=no
10116 if test -x nm$host_exeext; then
10117         gcc_cv_nm=./nm$host_exeext
10118 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10119      && test -f ../binutils/Makefile; then
10120         # Single tree build which includes binutils.
10121         in_tree_nm=yes
10122         gcc_cv_nm=./nm$host_exeext
10123         rm -f nm$host_exeext
10124         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10125 elif test "x$program_prefix" != xNONE; then
10126         gcc_cv_nm=${program_prefix}nm$host_exeext
10127 else
10128         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10129 fi
10130 case $in_tree_nm in
10131   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10132 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10133   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10134 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10135 esac
10136
10137 # Figure out what objdump we will be using.
10138 echo "$as_me:$LINENO: checking what objdump to use" >&5
10139 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10140 in_tree_objdump=no
10141 if test -x objdump$host_exeext; then
10142         gcc_cv_objdump=./objdump$host_exeext
10143 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10144      && test -f ../binutils/Makefile; then
10145         # Single tree build which includes binutils.
10146         in_tree_objdump=yes
10147         gcc_cv_objdump=./objdump$host_exeext
10148         rm -f objdump$host_exeext
10149         $symbolic_link ../binutils/objdump$host_exeext \
10150                 objdump$host_exeext 2>/dev/null
10151 elif test "x$program_prefix" != xNONE; then
10152         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10153 else
10154         gcc_cv_objdump=`echo objdump | \
10155                 sed "${program_transform_name}"`$host_exeext
10156 fi
10157 case $in_tree_objdump in
10158   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10159 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10160   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10161 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10162 esac
10163
10164 # Figure out what assembler alignment features are present.
10165 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10166 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10167 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   gcc_cv_as_balign_and_p2align=no
10171     if test $in_tree_gas = yes; then
10172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10173   then gcc_cv_as_balign_and_p2align=yes
10174 fi
10175   elif test x$gcc_cv_as != x; then
10176     echo '.balign 4
10177 .p2align 2' > conftest.s
10178     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }
10184     then
10185         gcc_cv_as_balign_and_p2align=yes
10186     else
10187       echo "configure: failed program was" >&5
10188       cat conftest.s >&5
10189     fi
10190     rm -f conftest.o conftest.s
10191   fi
10192 fi
10193 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10194 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10195 if test $gcc_cv_as_balign_and_p2align = yes; then
10196
10197 cat >>confdefs.h <<\_ACEOF
10198 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10199 _ACEOF
10200
10201 fi
10202
10203 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10204 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10205 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   gcc_cv_as_max_skip_p2align=no
10209     if test $in_tree_gas = yes; then
10210     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10211   then gcc_cv_as_max_skip_p2align=yes
10212 fi
10213   elif test x$gcc_cv_as != x; then
10214     echo '.p2align 4,,7' > conftest.s
10215     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }
10221     then
10222         gcc_cv_as_max_skip_p2align=yes
10223     else
10224       echo "configure: failed program was" >&5
10225       cat conftest.s >&5
10226     fi
10227     rm -f conftest.o conftest.s
10228   fi
10229 fi
10230 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10231 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10232 if test $gcc_cv_as_max_skip_p2align = yes; then
10233
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10236 _ACEOF
10237
10238 fi
10239
10240 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10241 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10242 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   gcc_cv_as_subsection_m1=no
10246     if test $in_tree_gas = yes; then
10247     if test $in_tree_gas_is_elf = yes \
10248   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10249   then gcc_cv_as_subsection_m1=yes
10250 fi
10251   elif test x$gcc_cv_as != x; then
10252     echo 'conftest_label1: .word 0
10253 .subsection -1
10254 conftest_label2: .word 0
10255 .previous' > conftest.s
10256     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }
10262     then
10263         if test x$gcc_cv_nm != x; then
10264     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10265     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10266     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10267     then :
10268     else gcc_cv_as_subsection_m1=yes
10269     fi
10270     rm -f conftest.nm1 conftest.nm2
10271   fi
10272     else
10273       echo "configure: failed program was" >&5
10274       cat conftest.s >&5
10275     fi
10276     rm -f conftest.o conftest.s
10277   fi
10278 fi
10279 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10280 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10281 if test $gcc_cv_as_subsection_m1 = yes; then
10282
10283 cat >>confdefs.h <<\_ACEOF
10284 #define HAVE_GAS_SUBSECTION_ORDERING 1
10285 _ACEOF
10286
10287 fi
10288
10289 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10290 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10291 if test "${gcc_cv_as_weak+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   gcc_cv_as_weak=no
10295     if test $in_tree_gas = yes; then
10296     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10297   then gcc_cv_as_weak=yes
10298 fi
10299   elif test x$gcc_cv_as != x; then
10300     echo '      .weak foobar' > conftest.s
10301     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }
10307     then
10308         gcc_cv_as_weak=yes
10309     else
10310       echo "configure: failed program was" >&5
10311       cat conftest.s >&5
10312     fi
10313     rm -f conftest.o conftest.s
10314   fi
10315 fi
10316 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10317 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10318 if test $gcc_cv_as_weak = yes; then
10319
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_GAS_WEAK 1
10322 _ACEOF
10323
10324 fi
10325
10326 # .hidden needs to be supported in both the assembler and the linker,
10327 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10328 # This is irritatingly difficult to feature test for; we have to check the
10329 # date string after the version number.  If we've got an in-tree
10330 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10331 # to be safe.
10332 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10333 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10334 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10335 if test "${gcc_cv_as_hidden+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   gcc_cv_as_hidden=no
10339     if test $in_tree_gas = yes; then
10340     if test $in_tree_gas_is_elf = yes \
10341   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10342   then gcc_cv_as_hidden=yes
10343 fi
10344   elif test x$gcc_cv_as != x; then
10345     echo '      .hidden foobar
10346 foobar:' > conftest.s
10347     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349   (eval $ac_try) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; }
10353     then
10354         gcc_cv_as_hidden=yes
10355     else
10356       echo "configure: failed program was" >&5
10357       cat conftest.s >&5
10358     fi
10359     rm -f conftest.o conftest.s
10360   fi
10361 fi
10362 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10363 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10364
10365
10366 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10367 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10368 if test "${gcc_cv_ld_hidden+set}" = set; then
10369   echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371   if test $in_tree_ld = yes ; then
10372   gcc_cv_ld_hidden=no
10373   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 \
10374      && test $in_tree_ld_is_elf = yes; then
10375      gcc_cv_ld_hidden=yes
10376   fi
10377 else
10378   gcc_cv_ld_hidden=yes
10379   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10380   if echo "$ld_ver" | grep GNU > /dev/null; then
10381     ld_vers=`echo $ld_ver | sed -n \
10382         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10383         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10384         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10385         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10386         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10387         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10388     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'`
10389     if test 0"$ld_date" -lt 20020404; then
10390       if test -n "$ld_date"; then
10391         # If there was date string, but was earlier than 2002-04-04, fail
10392         gcc_cv_ld_hidden=no
10393       elif test -z "$ld_vers"; then
10394         # If there was no date string nor ld version number, something is wrong
10395         gcc_cv_ld_hidden=no
10396       else
10397         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10398         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10399         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10400         test -z "$ld_vers_patch" && ld_vers_patch=0
10401         if test "$ld_vers_major" -lt 2; then
10402           gcc_cv_ld_hidden=no
10403         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10404           gcc_cv_ld_hidden="no"
10405         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10406           gcc_cv_ld_hidden=no
10407         fi
10408       fi
10409     fi
10410   else
10411     case "${target}" in
10412       hppa64*-*-hpux* | ia64*-*-hpux*)
10413         gcc_cv_ld_hidden=yes
10414         ;;
10415       *)
10416         gcc_cv_ld_hidden=no
10417         ;;
10418     esac
10419   fi
10420 fi
10421 fi
10422 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10423 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10424 libgcc_visibility=no
10425
10426 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10427   libgcc_visibility=yes
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_GAS_HIDDEN 1
10431 _ACEOF
10432
10433 fi
10434
10435 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10436 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10437 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10438 if test "${gcc_cv_as_leb128+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   gcc_cv_as_leb128=no
10442     if test $in_tree_gas = yes; then
10443     if test $in_tree_gas_is_elf = yes \
10444   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10445   then gcc_cv_as_leb128=yes
10446 fi
10447   elif test x$gcc_cv_as != x; then
10448     echo '      .data
10449         .uleb128 L2 - L1
10450 L1:
10451         .uleb128 1280
10452         .sleb128 -1010
10453 L2:' > conftest.s
10454     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456   (eval $ac_try) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; }
10460     then
10461         # GAS versions before 2.11 do not support uleb128,
10462   # despite appearing to.
10463   # ??? There exists an elf-specific test that will crash
10464   # the assembler.  Perhaps it's better to figure out whether
10465   # arbitrary sections are supported and try the test.
10466   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10467   if echo "$as_ver" | grep GNU > /dev/null; then
10468     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10469     as_major=`echo $as_ver | sed 's/\..*//'`
10470     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10471     if test $as_major -eq 2 && test $as_minor -lt 11
10472     then :
10473     else gcc_cv_as_leb128=yes
10474     fi
10475   fi
10476     else
10477       echo "configure: failed program was" >&5
10478       cat conftest.s >&5
10479     fi
10480     rm -f conftest.o conftest.s
10481   fi
10482 fi
10483 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10484 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10485 if test $gcc_cv_as_leb128 = yes; then
10486
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_AS_LEB128 1
10489 _ACEOF
10490
10491 fi
10492
10493 # GAS versions up to and including 2.11.0 may mis-optimize
10494 # .eh_frame data.
10495 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10496 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10497 if test "${gcc_cv_as_eh_frame+set}" = set; then
10498   echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500   gcc_cv_as_eh_frame=no
10501     if test $in_tree_gas = yes; then
10502     if test $in_tree_gas_is_elf = yes \
10503   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10504   then gcc_cv_as_eh_frame=yes
10505 fi
10506   elif test x$gcc_cv_as != x; then
10507     echo '      .text
10508 .LFB1:
10509         .4byte  0
10510 .L1:
10511         .4byte  0
10512 .LFE1:
10513         .section        .eh_frame,"aw",@progbits
10514 __FRAME_BEGIN__:
10515         .4byte  .LECIE1-.LSCIE1
10516 .LSCIE1:
10517         .4byte  0x0
10518         .byte   0x1
10519         .ascii "z\0"
10520         .byte   0x1
10521         .byte   0x78
10522         .byte   0x1a
10523         .byte   0x0
10524         .byte   0x4
10525         .4byte  1
10526         .p2align 1
10527 .LECIE1:
10528 .LSFDE1:
10529         .4byte  .LEFDE1-.LASFDE1
10530 .LASFDE1:
10531         .4byte  .LASFDE1-__FRAME_BEGIN__
10532         .4byte  .LFB1
10533         .4byte  .LFE1-.LFB1
10534         .byte   0x4
10535         .4byte  .LFE1-.LFB1
10536         .byte   0x4
10537         .4byte  .L1-.LFB1
10538 .LEFDE1:' > conftest.s
10539     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541   (eval $ac_try) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; }
10545     then
10546           cat > conftest.lit <<EOF
10547  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10548  0010 01000000 12000000 18000000 00000000  ................
10549  0020 08000000 04080000 0044               .........D      
10550 EOF
10551 cat > conftest.big <<EOF
10552  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10553  0010 00000001 00000012 00000018 00000000  ................
10554  0020 00000008 04000000 0844               .........D      
10555 EOF
10556   # If the assembler didn't choke, and we can objdump,
10557   # and we got the correct data, then succeed.
10558   if test x$gcc_cv_objdump != x \
10559   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10560      | tail -3 > conftest.got \
10561   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10562     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10563   then
10564     gcc_cv_as_eh_frame=yes
10565   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567   (eval $ac_try) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; }; then
10571     gcc_cv_as_eh_frame=buggy
10572   else
10573     # Uh oh, what do we do now?
10574     gcc_cv_as_eh_frame=no
10575   fi
10576     else
10577       echo "configure: failed program was" >&5
10578       cat conftest.s >&5
10579     fi
10580     rm -f conftest.o conftest.s
10581   fi
10582 fi
10583 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10584 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10585
10586
10587 if test $gcc_cv_as_eh_frame = buggy; then
10588
10589 cat >>confdefs.h <<\_ACEOF
10590 #define USE_AS_TRADITIONAL_FORMAT 1
10591 _ACEOF
10592
10593 fi
10594
10595 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10596 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10597 if test "${gcc_cv_as_shf_merge+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   gcc_cv_as_shf_merge=no
10601     if test $in_tree_gas = yes; then
10602     if test $in_tree_gas_is_elf = yes \
10603   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10604   then gcc_cv_as_shf_merge=yes
10605 fi
10606   elif test x$gcc_cv_as != x; then
10607     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10608     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }
10614     then
10615         gcc_cv_as_shf_merge=yes
10616     else
10617       echo "configure: failed program was" >&5
10618       cat conftest.s >&5
10619     fi
10620     rm -f conftest.o conftest.s
10621   fi
10622 fi
10623 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10624 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10625
10626
10627 cat >>confdefs.h <<_ACEOF
10628 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10629 _ACEOF
10630
10631
10632 # Thread-local storage - the check is heavily parametrized.
10633 conftest_s=
10634 tls_first_major=
10635 tls_first_minor=
10636 tls_as_opt=
10637 case "$target" in
10638   alpha*-*-*)
10639     conftest_s='
10640         .section ".tdata","awT",@progbits
10641 foo:    .long   25
10642         .text
10643         ldq     $27,__tls_get_addr($29)         !literal!1
10644         lda     $16,foo($29)                    !tlsgd!1
10645         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10646         ldq     $27,__tls_get_addr($29)         !literal!2
10647         lda     $16,foo($29)                    !tlsldm!2
10648         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10649         ldq     $1,foo($29)                     !gotdtprel
10650         ldah    $2,foo($29)                     !dtprelhi
10651         lda     $3,foo($2)                      !dtprello
10652         lda     $4,foo($29)                     !dtprel
10653         ldq     $1,foo($29)                     !gottprel
10654         ldah    $2,foo($29)                     !tprelhi
10655         lda     $3,foo($2)                      !tprello
10656         lda     $4,foo($29)                     !tprel'
10657         tls_first_major=2
10658         tls_first_minor=13
10659         tls_as_opt=--fatal-warnings
10660         ;;
10661   i[34567]86-*-*)
10662     conftest_s='
10663         .section ".tdata","awT",@progbits
10664 foo:    .long   25
10665         .text
10666         movl    %gs:0, %eax
10667         leal    foo@TLSGD(,%ebx,1), %eax
10668         leal    foo@TLSLDM(%ebx), %eax
10669         leal    foo@DTPOFF(%eax), %edx
10670         movl    foo@GOTTPOFF(%ebx), %eax
10671         subl    foo@GOTTPOFF(%ebx), %eax
10672         addl    foo@GOTNTPOFF(%ebx), %eax
10673         movl    foo@INDNTPOFF, %eax
10674         movl    $foo@TPOFF, %eax
10675         subl    $foo@TPOFF, %eax
10676         leal    foo@NTPOFF(%ecx), %eax'
10677         tls_first_major=2
10678         tls_first_minor=14
10679         tls_as_opt=--fatal-warnings
10680         ;;
10681   x86_64-*-*)
10682     conftest_s='
10683         .section ".tdata","awT",@progbits
10684 foo:    .long   25
10685         .text
10686         movq    %fs:0, %rax
10687         leaq    foo@TLSGD(%rip), %rdi
10688         leaq    foo@TLSLD(%rip), %rdi
10689         leaq    foo@DTPOFF(%rax), %rdx
10690         movq    foo@GOTTPOFF(%rip), %rax
10691         movq    $foo@TPOFF, %rax'
10692         tls_first_major=2
10693         tls_first_minor=14
10694         tls_as_opt=--fatal-warnings
10695         ;;
10696   ia64-*-*)
10697     conftest_s='
10698         .section ".tdata","awT",@progbits
10699 foo:    data8   25
10700         .text
10701         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10702         addl    r17 = @ltoff(@dtprel(foo#)), gp
10703         addl    r18 = @ltoff(@tprel(foo#)), gp
10704         addl    r19 = @dtprel(foo#), gp
10705         adds    r21 = @dtprel(foo#), r13
10706         movl    r23 = @dtprel(foo#)
10707         addl    r20 = @tprel(foo#), gp
10708         adds    r22 = @tprel(foo#), r13
10709         movl    r24 = @tprel(foo#)'
10710         tls_first_major=2
10711         tls_first_minor=13
10712         tls_as_opt=--fatal-warnings
10713         ;;
10714   powerpc-*-*)
10715     conftest_s='
10716         .section ".tdata","awT",@progbits
10717         .align 2
10718 ld0:    .space 4
10719 ld1:    .space 4
10720 x1:     .space 4
10721 x2:     .space 4
10722 x3:     .space 4
10723         .text
10724         addi 3,31,ld0@got@tlsgd
10725         bl __tls_get_addr
10726         addi 3,31,x1@got@tlsld
10727         bl __tls_get_addr
10728         addi 9,3,x1@dtprel
10729         addis 9,3,x2@dtprel@ha
10730         addi 9,9,x2@dtprel@l
10731         lwz 9,x3@got@tprel(31)
10732         add 9,9,x@tls
10733         addi 9,2,x1@tprel
10734         addis 9,2,x2@tprel@ha
10735         addi 9,9,x2@tprel@l'
10736         tls_first_major=2
10737         tls_first_minor=14
10738         tls_as_opt="-a32 --fatal-warnings"
10739         ;;
10740   powerpc64-*-*)
10741     conftest_s='
10742         .section ".tdata","awT",@progbits
10743         .align 3
10744 ld0:    .space 8
10745 ld1:    .space 8
10746 x1:     .space 8
10747 x2:     .space 8
10748 x3:     .space 8
10749         .text
10750         addi 3,2,ld0@got@tlsgd
10751         bl .__tls_get_addr
10752         nop
10753         addi 3,2,ld1@toc
10754         bl .__tls_get_addr
10755         nop
10756         addi 3,2,x1@got@tlsld
10757         bl .__tls_get_addr
10758         nop
10759         addi 9,3,x1@dtprel
10760         bl .__tls_get_addr
10761         nop
10762         addis 9,3,x2@dtprel@ha
10763         addi 9,9,x2@dtprel@l
10764         bl .__tls_get_addr
10765         nop
10766         ld 9,x3@got@dtprel(2)
10767         add 9,9,3
10768         bl .__tls_get_addr
10769         nop'
10770         tls_first_major=2
10771         tls_first_minor=14
10772         tls_as_opt="-a64 --fatal-warnings"
10773         ;;
10774   s390-*-*)
10775     conftest_s='
10776         .section ".tdata","awT",@progbits
10777 foo:    .long   25
10778         .text
10779         .long   foo@TLSGD
10780         .long   foo@TLSLDM
10781         .long   foo@DTPOFF
10782         .long   foo@NTPOFF
10783         .long   foo@GOTNTPOFF
10784         .long   foo@INDNTPOFF
10785         l       %r1,foo@GOTNTPOFF(%r12)
10786         l       %r1,0(%r1):tls_load:foo
10787         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10788         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10789         tls_first_major=2
10790         tls_first_minor=14
10791         tls_as_opt="-m31 --fatal-warnings"
10792         ;;
10793   s390x-*-*)
10794     conftest_s='
10795         .section ".tdata","awT",@progbits
10796 foo:    .long   25
10797         .text
10798         .quad   foo@TLSGD
10799         .quad   foo@TLSLDM
10800         .quad   foo@DTPOFF
10801         .quad   foo@NTPOFF
10802         .quad   foo@GOTNTPOFF
10803         lg      %r1,foo@GOTNTPOFF(%r12)
10804         larl    %r1,foo@INDNTPOFF
10805         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10806         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10807         tls_first_major=2
10808         tls_first_minor=14
10809         tls_as_opt="-m64 -Aesame --fatal-warnings"
10810         ;;
10811   sh-*-* | sh[34]-*-*)
10812     conftest_s='
10813         .section ".tdata","awT",@progbits
10814 foo:    .long   25
10815         .text
10816         .long   foo@TLSGD
10817         .long   foo@TLSLDM
10818         .long   foo@DTPOFF
10819         .long   foo@GOTTPOFF
10820         .long   foo@TPOFF'
10821         tls_first_major=2
10822         tls_first_minor=13
10823         tls_as_opt=--fatal-warnings
10824         ;;
10825   sparc*-*-*)
10826     case "$target" in
10827       sparc*-sun-solaris2.*)
10828         on_solaris=yes
10829         ;;
10830       *)
10831         on_solaris=no
10832         ;;
10833     esac
10834     if test x$on_solaris = xyes && test x$gas_flag = xno; then
10835       conftest_s='
10836         .section ".tdata",#alloc,#write,#tls
10837 foo:    .long   25
10838         .text
10839         sethi   %tgd_hi22(foo), %o0
10840         add     %o0, %tgd_lo10(foo), %o1
10841         add     %l7, %o1, %o0, %tgd_add(foo)
10842         call    __tls_get_addr, %tgd_call(foo)
10843         sethi   %tldm_hi22(foo), %l1
10844         add     %l1, %tldm_lo10(foo), %l2
10845         add     %l7, %l2, %o0, %tldm_add(foo)
10846         call    __tls_get_addr, %tldm_call(foo)
10847         sethi   %tldo_hix22(foo), %l3
10848         xor     %l3, %tldo_lox10(foo), %l4
10849         add     %o0, %l4, %l5, %tldo_add(foo)
10850         sethi   %tie_hi22(foo), %o3
10851         add     %o3, %tie_lo10(foo), %o3
10852         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10853         add     %g7, %o2, %o4, %tie_add(foo)
10854         sethi   %tle_hix22(foo), %l1
10855         xor     %l1, %tle_lox10(foo), %o5
10856         ld      [%g7 + %o5], %o1'
10857         tls_first_major=0
10858         tls_first_minor=0
10859     else
10860       conftest_s='
10861         .section ".tdata","awT",@progbits
10862 foo:    .long   25
10863         .text
10864         sethi   %tgd_hi22(foo), %o0
10865         add     %o0, %tgd_lo10(foo), %o1
10866         add     %l7, %o1, %o0, %tgd_add(foo)
10867         call    __tls_get_addr, %tgd_call(foo)
10868         sethi   %tldm_hi22(foo), %l1
10869         add     %l1, %tldm_lo10(foo), %l2
10870         add     %l7, %l2, %o0, %tldm_add(foo)
10871         call    __tls_get_addr, %tldm_call(foo)
10872         sethi   %tldo_hix22(foo), %l3
10873         xor     %l3, %tldo_lox10(foo), %l4
10874         add     %o0, %l4, %l5, %tldo_add(foo)
10875         sethi   %tie_hi22(foo), %o3
10876         add     %o3, %tie_lo10(foo), %o3
10877         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10878         add     %g7, %o2, %o4, %tie_add(foo)
10879         sethi   %tle_hix22(foo), %l1
10880         xor     %l1, %tle_lox10(foo), %o5
10881         ld      [%g7 + %o5], %o1'
10882         tls_first_major=2
10883         tls_first_minor=14
10884         tls_as_opt="-32 --fatal-warnings"
10885       fi
10886         ;;
10887 esac
10888 if test -z "$tls_first_major"; then
10889   : # If we don't have a check, assume no support.
10890 else
10891   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10892 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10893 if test "${gcc_cv_as_tls+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   gcc_cv_as_tls=no
10897     if test $in_tree_gas = yes; then
10898     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10899   then gcc_cv_as_tls=yes
10900 fi
10901   elif test x$gcc_cv_as != x; then
10902     echo "$conftest_s" > conftest.s
10903     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }
10909     then
10910         gcc_cv_as_tls=yes
10911     else
10912       echo "configure: failed program was" >&5
10913       cat conftest.s >&5
10914     fi
10915     rm -f conftest.o conftest.s
10916   fi
10917 fi
10918 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10919 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10920 if test $gcc_cv_as_tls = yes; then
10921
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_AS_TLS 1
10924 _ACEOF
10925
10926 fi
10927 fi
10928
10929 # Target-specific assembler checks.
10930
10931 case "$target" in
10932   # All TARGET_ABI_OSF targets.
10933   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10934     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10935 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10936 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10937   echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939   gcc_cv_as_alpha_explicit_relocs=no
10940     if test $in_tree_gas = yes; then
10941     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10942   then gcc_cv_as_alpha_explicit_relocs=yes
10943 fi
10944   elif test x$gcc_cv_as != x; then
10945     echo '      .set nomacro
10946         .text
10947         extbl   $3, $2, $3      !lituse_bytoff!1
10948         ldq     $2, a($29)      !literal!1
10949         ldq     $4, b($29)      !literal!2
10950         ldq_u   $3, 0($2)       !lituse_base!1
10951         ldq     $27, f($29)     !literal!5
10952         jsr     $26, ($27), f   !lituse_jsr!5
10953         ldah    $29, 0($26)     !gpdisp!3
10954         lda     $0, c($29)      !gprel
10955         ldah    $1, d($29)      !gprelhigh
10956         lda     $1, d($1)       !gprellow
10957         lda     $29, 0($29)     !gpdisp!3' > conftest.s
10958     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }
10964     then
10965         gcc_cv_as_alpha_explicit_relocs=yes
10966     else
10967       echo "configure: failed program was" >&5
10968       cat conftest.s >&5
10969     fi
10970     rm -f conftest.o conftest.s
10971   fi
10972 fi
10973 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10974 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10975 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10976
10977 cat >>confdefs.h <<\_ACEOF
10978 #define HAVE_AS_EXPLICIT_RELOCS 1
10979 _ACEOF
10980
10981 fi
10982     ;;
10983
10984   cris-*-*)
10985     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
10986 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
10987 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990   gcc_cv_as_cris_no_mul_bug=no
10991     if test $in_tree_gas = yes; then
10992     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10993   then gcc_cv_as_cris_no_mul_bug=yes
10994 fi
10995   elif test x$gcc_cv_as != x; then
10996     echo '.text' > conftest.s
10997     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }
11003     then
11004         gcc_cv_as_cris_no_mul_bug=yes
11005     else
11006       echo "configure: failed program was" >&5
11007       cat conftest.s >&5
11008     fi
11009     rm -f conftest.o conftest.s
11010   fi
11011 fi
11012 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11013 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11014 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11015
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11018 _ACEOF
11019
11020 fi
11021     ;;
11022
11023   sparc*-*-*)
11024     echo "$as_me:$LINENO: checking assembler for .register" >&5
11025 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11026 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   gcc_cv_as_sparc_register_op=no
11030   if test x$gcc_cv_as != x; then
11031     echo '.register %g2, #scratch' > conftest.s
11032     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }
11038     then
11039         gcc_cv_as_sparc_register_op=yes
11040     else
11041       echo "configure: failed program was" >&5
11042       cat conftest.s >&5
11043     fi
11044     rm -f conftest.o conftest.s
11045   fi
11046 fi
11047 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11048 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11049 if test $gcc_cv_as_sparc_register_op = yes; then
11050
11051 cat >>confdefs.h <<\_ACEOF
11052 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11053 _ACEOF
11054
11055 fi
11056
11057     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11058 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11059 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   gcc_cv_as_sparc_relax=no
11063   if test x$gcc_cv_as != x; then
11064     echo '.text' > conftest.s
11065     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }
11071     then
11072         gcc_cv_as_sparc_relax=yes
11073     else
11074       echo "configure: failed program was" >&5
11075       cat conftest.s >&5
11076     fi
11077     rm -f conftest.o conftest.s
11078   fi
11079 fi
11080 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11081 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11082 if test $gcc_cv_as_sparc_relax = yes; then
11083
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_AS_RELAX_OPTION 1
11086 _ACEOF
11087
11088 fi
11089
11090     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11091 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11092 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   gcc_cv_as_sparc_ua_pcrel=no
11096   if test x$gcc_cv_as != x; then
11097     echo '.text
11098 foo:
11099         nop
11100 .data
11101 .align 4
11102 .byte 0
11103 .uaword %r_disp32(foo)' > conftest.s
11104     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }
11110     then
11111         if test x$gcc_cv_ld != x \
11112        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11113          gcc_cv_as_sparc_ua_pcrel=yes
11114        fi
11115        rm -f conftest
11116     else
11117       echo "configure: failed program was" >&5
11118       cat conftest.s >&5
11119     fi
11120     rm -f conftest.o conftest.s
11121   fi
11122 fi
11123 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11124 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11125 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11126
11127 cat >>confdefs.h <<\_ACEOF
11128 #define HAVE_AS_SPARC_UA_PCREL 1
11129 _ACEOF
11130
11131
11132       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11133 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11134 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11135   echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137   gcc_cv_as_sparc_ua_pcrel_hidden=no
11138   if test x$gcc_cv_as != x; then
11139     echo '.data
11140 .align 4
11141 .byte 0x31
11142 .uaword %r_disp32(foo)
11143 .byte 0x32, 0x33, 0x34
11144 .global foo
11145 .hidden foo
11146 foo:
11147 .skip 4' > conftest.s
11148     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }
11154     then
11155         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11156          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11157          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11158             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11159             if $gcc_cv_objdump -R conftest 2> /dev/null \
11160                | grep 'DISP32' > /dev/null 2>&1; then
11161                 :
11162             else
11163                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11164             fi
11165          fi
11166          rm -f conftest
11167     else
11168       echo "configure: failed program was" >&5
11169       cat conftest.s >&5
11170     fi
11171     rm -f conftest.o conftest.s
11172   fi
11173 fi
11174 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11175 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11176 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11180 _ACEOF
11181
11182 fi
11183
11184 fi # unaligned pcrel relocs
11185
11186     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11187 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11188 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   gcc_cv_as_sparc_offsetable_lo10=no
11192   if test x$gcc_cv_as != x; then
11193     echo '.text
11194         or %g1, %lo(ab) + 12, %g1
11195         or %g1, %lo(ab + 12), %g1' > conftest.s
11196     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }
11202     then
11203         if test x$gcc_cv_objdump != x \
11204        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11205           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11206          gcc_cv_as_offsetable_lo10=yes
11207        fi
11208     else
11209       echo "configure: failed program was" >&5
11210       cat conftest.s >&5
11211     fi
11212     rm -f conftest.o conftest.s
11213   fi
11214 fi
11215 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11216 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11217 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11218
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_AS_OFFSETABLE_LO10 1
11221 _ACEOF
11222
11223 fi
11224     ;;
11225
11226   i[34567]86-*-* | x86_64-*-*)
11227     case $target_os in
11228       cygwin* | pe | mingw32*)
11229         # Used for DWARF 2 in PE
11230         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11231 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11232 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   gcc_cv_as_ix86_pe_secrel32=no
11236     if test $in_tree_gas = yes; then
11237     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11238   then gcc_cv_as_ix86_pe_secrel32=yes
11239 fi
11240   elif test x$gcc_cv_as != x; then
11241     echo '.text
11242 foo:    nop
11243 .data
11244         .secrel32 foo' > conftest.s
11245     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247   (eval $ac_try) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; }
11251     then
11252         if test x$gcc_cv_ld != x \
11253            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11254              gcc_cv_as_ix86_pe_secrel32=yes
11255            fi
11256            rm -f conftest
11257     else
11258       echo "configure: failed program was" >&5
11259       cat conftest.s >&5
11260     fi
11261     rm -f conftest.o conftest.s
11262   fi
11263 fi
11264 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11265 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11266 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11267
11268 cat >>confdefs.h <<\_ACEOF
11269 #define HAVE_GAS_PE_SECREL32_RELOC 1
11270 _ACEOF
11271
11272 fi
11273         ;;
11274     esac
11275
11276     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11277 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11278 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   gcc_cv_as_ix86_filds_fists=no
11282     if test $in_tree_gas = yes; then
11283     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11284   then gcc_cv_as_ix86_filds_fists=yes
11285 fi
11286   elif test x$gcc_cv_as != x; then
11287     echo 'filds mem; fists mem' > conftest.s
11288     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290   (eval $ac_try) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }
11294     then
11295         gcc_cv_as_ix86_filds_fists=yes
11296     else
11297       echo "configure: failed program was" >&5
11298       cat conftest.s >&5
11299     fi
11300     rm -f conftest.o conftest.s
11301   fi
11302 fi
11303 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11304 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11305 if test $gcc_cv_as_ix86_filds_fists = yes; then
11306
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_GAS_FILDS_FISTS 1
11309 _ACEOF
11310
11311 fi
11312
11313     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11314 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11315 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   gcc_cv_as_ix86_cmov_sun_syntax=no
11319   if test x$gcc_cv_as != x; then
11320     echo 'cmovl.l %edx, %eax' > conftest.s
11321     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }
11327     then
11328         gcc_cv_as_ix86_cmov_sun_syntax=yes
11329     else
11330       echo "configure: failed program was" >&5
11331       cat conftest.s >&5
11332     fi
11333     rm -f conftest.o conftest.s
11334   fi
11335 fi
11336 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11337 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11338 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11339
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11342 _ACEOF
11343
11344 fi
11345
11346     # This one is used unconditionally by i386.[ch]; it is to be defined
11347     # to 1 if the feature is present, 0 otherwise.
11348     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11349 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11350 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11351   echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353   gcc_cv_as_ix86_gotoff_in_data=no
11354     if test $in_tree_gas = yes; then
11355     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11356   then gcc_cv_as_ix86_gotoff_in_data=yes
11357 fi
11358   elif test x$gcc_cv_as != x; then
11359     echo '      .text
11360 .L0:
11361         nop
11362         .data
11363         .long .L0@GOTOFF' > conftest.s
11364     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366   (eval $ac_try) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }
11370     then
11371         gcc_cv_as_ix86_gotoff_in_data=yes
11372     else
11373       echo "configure: failed program was" >&5
11374       cat conftest.s >&5
11375     fi
11376     rm -f conftest.o conftest.s
11377   fi
11378 fi
11379 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11380 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11381
11382
11383 cat >>confdefs.h <<_ACEOF
11384 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11385 _ACEOF
11386
11387     ;;
11388
11389   ia64*-*-*)
11390     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11391 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11392 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11396     if test $in_tree_gas = yes; then
11397     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11398   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11399 fi
11400   elif test x$gcc_cv_as != x; then
11401     echo '      .text
11402         addl r15 = @ltoffx(x#), gp
11403         ;;
11404         ld8.mov r16 = [r15], x#' > conftest.s
11405     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407   (eval $ac_try) 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; }
11411     then
11412         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11413     else
11414       echo "configure: failed program was" >&5
11415       cat conftest.s >&5
11416     fi
11417     rm -f conftest.o conftest.s
11418   fi
11419 fi
11420 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11421 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11422 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11423
11424 cat >>confdefs.h <<\_ACEOF
11425 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11426 _ACEOF
11427
11428 fi
11429
11430     ;;
11431
11432   powerpc*-*-*)
11433     case $target in
11434       *-*-aix*) conftest_s='    .csect .text[PR]
11435         mfcr 3,128';;
11436       *-*-darwin*) conftest_s=' .text
11437         mfcr r3,128';;
11438       *)       conftest_s='     .text
11439         mfcr 3,128';;
11440     esac
11441
11442     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11443 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11444 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   gcc_cv_as_powerpc_mfcrf=no
11448     if test $in_tree_gas = yes; then
11449     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11450   then gcc_cv_as_powerpc_mfcrf=yes
11451 fi
11452   elif test x$gcc_cv_as != x; then
11453     echo "$conftest_s" > conftest.s
11454     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456   (eval $ac_try) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; }
11460     then
11461         gcc_cv_as_powerpc_mfcrf=yes
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_powerpc_mfcrf" >&5
11470 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11471 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11472
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_AS_MFCRF 1
11475 _ACEOF
11476
11477 fi
11478     ;;
11479
11480   mips*-*-*)
11481     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11482 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11483 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   gcc_cv_as_mips_explicit_relocs=no
11487     if test $in_tree_gas = yes; then
11488     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11489   then gcc_cv_as_mips_explicit_relocs=yes
11490 fi
11491   elif test x$gcc_cv_as != x; then
11492     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11493     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495   (eval $ac_try) 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; }
11499     then
11500         gcc_cv_as_mips_explicit_relocs=yes
11501     else
11502       echo "configure: failed program was" >&5
11503       cat conftest.s >&5
11504     fi
11505     rm -f conftest.o conftest.s
11506   fi
11507 fi
11508 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11509 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11510 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11511   if test x$target_cpu_default = x
11512        then target_cpu_default=MASK_EXPLICIT_RELOCS
11513        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11514        fi
11515 fi
11516
11517     ;;
11518 esac
11519 # ??? Not all targets support dwarf2 debug_line, even within a version
11520 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11521 # info to the output file.  So, as supported targets are added to gas 2.11,
11522 # add some instruction here to (also) show we expect this might work.
11523 # ??? Once 2.11 is released, probably need to add first known working
11524 # version to the per-target configury.
11525 case "$target" in
11526   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11527   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11528   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11529     insn="nop"
11530     ;;
11531   ia64*-*-* | s390*-*-*)
11532     insn="nop 0"
11533     ;;
11534   mmix-*-*)
11535     insn="swym 0"
11536     ;;
11537 esac
11538 if test x"$insn" != x; then
11539  conftest_s="\
11540         .file 1 \"conftest.s\"
11541         .loc 1 3 0
11542         $insn"
11543  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11544 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11545 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   gcc_cv_as_dwarf2_debug_line=no
11549     if test $in_tree_gas = yes; then
11550     if test $in_tree_gas_is_elf = yes \
11551   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11552   then gcc_cv_as_dwarf2_debug_line=yes
11553 fi
11554   elif test x$gcc_cv_as != x; then
11555     echo "$conftest_s" > conftest.s
11556     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558   (eval $ac_try) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; }
11562     then
11563         # ??? This fails with non-gnu grep.  Maybe use objdump?
11564    if grep debug_line conftest.o > /dev/null 2>&1; then
11565      gcc_cv_as_dwarf2_debug_line=yes
11566    fi
11567     else
11568       echo "configure: failed program was" >&5
11569       cat conftest.s >&5
11570     fi
11571     rm -f conftest.o conftest.s
11572   fi
11573 fi
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11575 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11576
11577
11578 # The .debug_line file table must be in the exact order that
11579 # we specified the files, since these indices are also used
11580 # by DW_AT_decl_file.  Approximate this test by testing if
11581 # the assembler bitches if the same index is assigned twice.
11582  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11583 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11584 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   gcc_cv_as_dwarf2_file_buggy=no
11588   if test x$gcc_cv_as != x; then
11589     echo '      .file 1 "foo.s"
11590         .file 1 "bar.s"' > conftest.s
11591     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593   (eval $ac_try) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); }; }
11597     then
11598         gcc_cv_as_dwarf2_file_buggy=yes
11599     else
11600       echo "configure: failed program was" >&5
11601       cat conftest.s >&5
11602     fi
11603     rm -f conftest.o conftest.s
11604   fi
11605 fi
11606 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11607 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11608
11609
11610  if test $gcc_cv_as_dwarf2_debug_line = yes \
11611  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11612
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11615 _ACEOF
11616
11617  fi
11618
11619  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11620 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11621 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   gcc_cv_as_gdwarf2_flag=no
11625     if test $in_tree_gas = yes; then
11626     if test $in_tree_gas_is_elf = yes \
11627   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11628   then gcc_cv_as_gdwarf2_flag=yes
11629 fi
11630   elif test x$gcc_cv_as != x; then
11631     echo "$insn" > conftest.s
11632     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; }
11638     then
11639         gcc_cv_as_gdwarf2_flag=yes
11640     else
11641       echo "configure: failed program was" >&5
11642       cat conftest.s >&5
11643     fi
11644     rm -f conftest.o conftest.s
11645   fi
11646 fi
11647 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11648 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11649 if test $gcc_cv_as_gdwarf2_flag = yes; then
11650
11651 cat >>confdefs.h <<\_ACEOF
11652 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11653 _ACEOF
11654
11655 fi
11656
11657  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11658 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11659 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662   gcc_cv_as_gstabs_flag=no
11663     if test $in_tree_gas = yes; then
11664     if test $in_tree_gas_is_elf = yes \
11665   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11666   then gcc_cv_as_gstabs_flag=yes
11667 fi
11668   elif test x$gcc_cv_as != x; then
11669     echo "$insn" > conftest.s
11670     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672   (eval $ac_try) 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; }
11676     then
11677         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11678    # and warns about it, but still exits successfully.  So check for
11679    # this.
11680    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }
11686    then :
11687    else gcc_cv_as_gstabs_flag=yes
11688    fi
11689     else
11690       echo "configure: failed program was" >&5
11691       cat conftest.s >&5
11692     fi
11693     rm -f conftest.o conftest.s
11694   fi
11695 fi
11696 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11697 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11698 if test $gcc_cv_as_gstabs_flag = yes; then
11699
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11702 _ACEOF
11703
11704 fi
11705 fi
11706
11707 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11708 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11709 gcc_cv_ld_ro_rw_mix=unknown
11710 if test $in_tree_ld = yes ; then
11711   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 \
11712      && test $in_tree_ld_is_elf = yes; then
11713     gcc_cv_ld_ro_rw_mix=read-write
11714   fi
11715 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11716   echo '.section myfoosect, "a"' > conftest1.s
11717   echo '.section myfoosect, "aw"' > conftest2.s
11718   echo '.byte 1' >> conftest2.s
11719   echo '.section myfoosect, "a"' > conftest3.s
11720   echo '.byte 0' >> conftest3.s
11721   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11722      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11723      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11724      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11725         conftest2.o conftest3.o > /dev/null 2>&1; then
11726     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11727                          | sed -e '/myfoosect/!d' -e N`
11728     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11729       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11730         gcc_cv_ld_ro_rw_mix=read-only
11731       else
11732         gcc_cv_ld_ro_rw_mix=read-write
11733       fi
11734     fi
11735   fi
11736   rm -f conftest.* conftest[123].*
11737 fi
11738 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11739
11740 cat >>confdefs.h <<\_ACEOF
11741 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11742 _ACEOF
11743
11744 fi
11745 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11746 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11747
11748 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11749 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11750 gcc_cv_ld_eh_frame_hdr=no
11751 if test $in_tree_ld = yes ; then
11752   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 \
11753      && test $in_tree_ld_is_elf = yes; then
11754     gcc_cv_ld_eh_frame_hdr=yes
11755   fi
11756 elif test x$gcc_cv_ld != x; then
11757         # Check if linker supports --eh-frame-hdr option
11758         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11759                 gcc_cv_ld_eh_frame_hdr=yes
11760         fi
11761 fi
11762 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11763
11764 cat >>confdefs.h <<\_ACEOF
11765 #define HAVE_LD_EH_FRAME_HDR 1
11766 _ACEOF
11767
11768 fi
11769 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11770 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11771
11772 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11773 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11774 gcc_cv_ld_pie=no
11775 if test $in_tree_ld = yes ; then
11776   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 \
11777      && test $in_tree_ld_is_elf = yes; then
11778     gcc_cv_ld_pie=yes
11779   fi
11780 elif test x$gcc_cv_ld != x; then
11781         # Check if linker supports -pie option
11782         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11783                 gcc_cv_ld_pie=yes
11784         fi
11785 fi
11786 if test x"$gcc_cv_ld_pie" = xyes; then
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define HAVE_LD_PIE 1
11790 _ACEOF
11791
11792 fi
11793 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11794 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11795
11796 # --------
11797 # UNSORTED
11798 # --------
11799
11800 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11801 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11802 if test "${gcc_cv_ld_as_needed+set}" = set; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   gcc_cv_ld_as_needed=no
11806 if test $in_tree_ld = yes ; then
11807   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 \
11808      && test $in_tree_ld_is_elf = yes; then
11809     gcc_cv_ld_as_needed=yes
11810   fi
11811 elif test x$gcc_cv_ld != x; then
11812         # Check if linker supports --as-needed and --no-as-needed options
11813         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11814                 gcc_cv_ld_as_needed=yes
11815         fi
11816 fi
11817
11818 fi
11819 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11820 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11821 if test x"$gcc_cv_ld_as_needed" = xyes; then
11822
11823 cat >>confdefs.h <<\_ACEOF
11824 #define HAVE_LD_AS_NEEDED 1
11825 _ACEOF
11826
11827 fi
11828
11829 if test x$with_sysroot = x && test x$host = x$target \
11830    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11831
11832 cat >>confdefs.h <<_ACEOF
11833 #define PREFIX_INCLUDE_DIR "$prefix/include"
11834 _ACEOF
11835
11836 fi
11837
11838 # Find out what GC implementation we want, or may, use.
11839
11840 # Check whether --with-gc or --without-gc was given.
11841 if test "${with_gc+set}" = set; then
11842   withval="$with_gc"
11843   case "$withval" in
11844   page | zone)
11845     GGC=ggc-$withval
11846     ;;
11847   *)
11848     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11849 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11850    { (exit 1); exit 1; }; }
11851     ;;
11852 esac
11853 else
11854   GGC=ggc-page
11855 fi;
11856
11857 echo "Using $GGC for garbage collection."
11858
11859 # Use the system's zlib library.
11860 zlibdir=-L../zlib
11861 zlibinc="-I\$(srcdir)/../zlib"
11862
11863 # Check whether --with-system-zlib or --without-system-zlib was given.
11864 if test "${with_system_zlib+set}" = set; then
11865   withval="$with_system_zlib"
11866   zlibdir=
11867 zlibinc=
11868
11869 fi;
11870
11871
11872
11873
11874 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11875 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11876     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11877 if test "${enable_maintainer_mode+set}" = set; then
11878   enableval="$enable_maintainer_mode"
11879   maintainer_mode=$enableval
11880 else
11881   maintainer_mode=no
11882 fi;
11883
11884 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11885 echo "${ECHO_T}$maintainer_mode" >&6
11886
11887 if test "$maintainer_mode" = "yes"; then
11888   MAINT=''
11889 else
11890   MAINT='#'
11891 fi
11892
11893 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11894 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11895
11896 # Check whether --with-libbanshee or --without-libbanshee was given.
11897 if test "${with_libbanshee+set}" = set; then
11898   withval="$with_libbanshee"
11899   libbanshee="$with_libbanshee"
11900 else
11901   libbanshee=no
11902 fi;
11903
11904 if test x"$libbanshee" = xyes; then
11905         BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11906         BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11907         ANDER="tree-alias-ander.o"
11908
11909 cat >>confdefs.h <<\_ACEOF
11910 #define HAVE_BANSHEE 1
11911 _ACEOF
11912
11913 else
11914         BANSHEELIB=""
11915         BANSHEEINC=""
11916         ANDER=""
11917 fi
11918 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11919 echo "${ECHO_T}$with_libbanshee" >&6
11920
11921
11922
11923
11924
11925 # --------------
11926 # Language hooks
11927 # --------------
11928
11929 # Make empty files to contain the specs and options for each language.
11930 # Then add #include lines to for a compiler that has specs and/or options.
11931
11932 lang_opt_files=
11933 lang_specs_files=
11934 lang_tree_files=
11935 for subdir in . $subdirs
11936 do
11937         if test -f $srcdir/$subdir/lang.opt; then
11938             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11939         fi
11940         if test -f $srcdir/$subdir/lang-specs.h; then
11941             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11942         fi
11943         if test -f $srcdir/$subdir/$subdir-tree.def; then
11944             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11945         fi
11946 done
11947
11948 # These (without "all_") are set in each config-lang.in.
11949 # `language' must be a single word so is spelled singularly.
11950 all_languages=
11951 all_boot_languages=
11952 all_compilers=
11953 all_stagestuff=
11954 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11955 # List of language makefile fragments.
11956 all_lang_makefrags=
11957 # List of language subdirectory makefiles.  Deprecated.
11958 all_lang_makefiles=
11959 # Files for gengtype
11960 all_gtfiles="$target_gtfiles"
11961 # Files for gengtype with language
11962 all_gtfiles_files_langs=
11963 all_gtfiles_files_files=
11964
11965 # Add the language fragments.
11966 # Languages are added via two mechanisms.  Some information must be
11967 # recorded in makefile variables, these are defined in config-lang.in.
11968 # We accumulate them and plug them into the main Makefile.
11969 # The other mechanism is a set of hooks for each of the main targets
11970 # like `clean', `install', etc.
11971
11972 language_hooks="Make-hooks"
11973
11974 for s in $subdirs
11975 do
11976                 language=
11977                 boot_language=
11978                 compilers=
11979                 stagestuff=
11980                 outputs=
11981                 gtfiles=
11982                 . ${srcdir}/$s/config-lang.in
11983                 if test "x$language" = x
11984                 then
11985                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11986                         exit 1
11987                 fi
11988                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11989                 if test -f ${srcdir}/$s/Makefile.in
11990                 then all_lang_makefiles="$s/Makefile"
11991                 fi
11992                 all_languages="$all_languages $language"
11993                 if test "x$boot_language" = xyes
11994                 then
11995                         all_boot_languages="$all_boot_languages $language"
11996                 fi
11997                 all_compilers="$all_compilers $compilers"
11998                 all_stagestuff="$all_stagestuff $stagestuff"
11999                 all_outputs="$all_outputs $outputs"
12000                 all_gtfiles="$all_gtfiles $gtfiles"
12001                 for f in $gtfiles
12002                 do
12003                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12004                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12005                 done
12006 done
12007
12008 # Pick up gtfiles for c
12009 gtfiles=
12010 s="c"
12011 . ${srcdir}/c-config-lang.in
12012 all_gtfiles="$all_gtfiles $gtfiles"
12013 for f in $gtfiles
12014 do
12015         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12016         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12017 done
12018
12019 check_languages=
12020 for language in $all_languages
12021 do
12022                 check_languages="$check_languages check-$language"
12023 done
12024
12025 # We link each language in with a set of hooks, reached indirectly via
12026 # lang.${target}.
12027
12028 rm -f Make-hooks
12029 touch Make-hooks
12030 target_list="all.build all.cross start.encap rest.encap tags \
12031         install-normal install-common install-man \
12032         uninstall info man srcextra srcman srcinfo \
12033         mostlyclean clean distclean maintainer-clean \
12034         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12035 for t in $target_list
12036 do
12037         x=
12038         for lang in $all_languages
12039         do
12040                         x="$x $lang.$t"
12041         done
12042         echo "lang.$t: $x" >> Make-hooks
12043 done
12044
12045 # --------
12046 # UNSORTED
12047 # --------
12048
12049 # Create .gdbinit.
12050
12051 echo "dir ." > .gdbinit
12052 echo "dir ${srcdir}" >> .gdbinit
12053 if test x$gdb_needs_out_file_path = xyes
12054 then
12055         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12056 fi
12057 if test "x$subdirs" != x; then
12058         for s in $subdirs
12059         do
12060                 echo "dir ${srcdir}/$s" >> .gdbinit
12061         done
12062 fi
12063 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12064
12065 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12066 # absolute path for gcc_tooldir based on inserting the number of up-directory
12067 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12068 # $(libsubdir)/@(unlibsubdir) based path.
12069 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12070 # make and thus we'd get different behavior depending on where we built the
12071 # sources.
12072 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12073     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12074 else
12075 # An explanation of the sed strings:
12076 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12077 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12078 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12079 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12080 #
12081 # (*) Note this pattern overwrites the first character of the string
12082 # with a forward slash if one is not already present.  This is not a
12083 # problem because the exact names of the sub-directories concerned is
12084 # unimportant, just the number of them matters.
12085 #
12086 # The practical upshot of these patterns is like this:
12087 #
12088 #  prefix     exec_prefix        result
12089 #  ------     -----------        ------
12090 #   /foo        /foo/bar          ../
12091 #   /foo/       /foo/bar          ../
12092 #   /foo        /foo/bar/         ../
12093 #   /foo/       /foo/bar/         ../
12094 #   /foo        /foo/bar/ugg      ../../
12095 #
12096     dollar='$$'
12097     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12098 fi
12099
12100
12101
12102 # Find a directory in which to install a shared libgcc.
12103
12104 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12105 if test "${enable_version_specific_runtime_libs+set}" = set; then
12106   enableval="$enable_version_specific_runtime_libs"
12107
12108 fi;
12109
12110
12111 # Check whether --with-slibdir or --without-slibdir was given.
12112 if test "${with_slibdir+set}" = set; then
12113   withval="$with_slibdir"
12114   slibdir="$with_slibdir"
12115 else
12116   if test "${enable_version_specific_runtime_libs+set}" = set; then
12117   slibdir='$(libsubdir)'
12118 elif test "$host" != "$target"; then
12119   slibdir='$(build_tooldir)/lib'
12120 else
12121   slibdir='$(libdir)'
12122 fi
12123 fi;
12124
12125
12126 objdir=`${PWDCMD-pwd}`
12127
12128
12129 # Substitute configuration variables
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198 # If it doesn't already exist, create document directory
12199 echo "checking for the document directory." 1>&2
12200 if test -d doc ; then
12201   true
12202 else
12203   mkdir doc
12204 fi
12205
12206 # Echo link setup.
12207 if test x${build} = x${host} ; then
12208   if test x${host} = x${target} ; then
12209     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12210   else
12211     echo "Links are now set up to build a cross-compiler" 1>&2
12212     echo " from ${host} to ${target}." 1>&2
12213   fi
12214 else
12215   if test x${host} = x${target} ; then
12216     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12217     echo " for ${target}." 1>&2
12218   else
12219     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12220     echo " from ${host} to ${target}." 1>&2
12221   fi
12222 fi
12223
12224
12225
12226
12227 # Configure the subdirectories
12228 # AC_CONFIG_SUBDIRS($subdirs)
12229
12230 # Create the Makefile
12231 # and configure language subdirectories
12232           ac_config_files="$ac_config_files $all_outputs"
12233
12234
12235           ac_config_commands="$ac_config_commands default"
12236
12237 cat >confcache <<\_ACEOF
12238 # This file is a shell script that caches the results of configure
12239 # tests run on this system so they can be shared between configure
12240 # scripts and configure runs, see configure's option --config-cache.
12241 # It is not useful on other systems.  If it contains results you don't
12242 # want to keep, you may remove or edit it.
12243 #
12244 # config.status only pays attention to the cache file if you give it
12245 # the --recheck option to rerun configure.
12246 #
12247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12249 # following values.
12250
12251 _ACEOF
12252
12253 # The following way of writing the cache mishandles newlines in values,
12254 # but we know of no workaround that is simple, portable, and efficient.
12255 # So, don't put newlines in cache variables' values.
12256 # Ultrix sh set writes to stderr and can't be redirected directly,
12257 # and sets the high bit in the cache file unless we assign to the vars.
12258 {
12259   (set) 2>&1 |
12260     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12261     *ac_space=\ *)
12262       # `set' does not quote correctly, so add quotes (double-quote
12263       # substitution turns \\\\ into \\, and sed turns \\ into \).
12264       sed -n \
12265         "s/'/'\\\\''/g;
12266           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12267       ;;
12268     *)
12269       # `set' quotes correctly as required by POSIX, so do not add quotes.
12270       sed -n \
12271         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12272       ;;
12273     esac;
12274 } |
12275   sed '
12276      t clear
12277      : clear
12278      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12279      t end
12280      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12281      : end' >>confcache
12282 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12283   if test -w $cache_file; then
12284     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12285     cat confcache >$cache_file
12286   else
12287     echo "not updating unwritable cache $cache_file"
12288   fi
12289 fi
12290 rm -f confcache
12291
12292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12293 # Let make expand exec_prefix.
12294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12295
12296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12298 # trailing colons and then remove the whole line if VPATH becomes empty
12299 # (actually we leave an empty line to preserve line numbers).
12300 if test "x$srcdir" = x.; then
12301   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12302 s/:*\$(srcdir):*/:/;
12303 s/:*\${srcdir}:*/:/;
12304 s/:*@srcdir@:*/:/;
12305 s/^\([^=]*=[     ]*\):*/\1/;
12306 s/:*$//;
12307 s/^[^=]*=[       ]*$//;
12308 }'
12309 fi
12310
12311 DEFS=-DHAVE_CONFIG_H
12312
12313 ac_libobjs=
12314 ac_ltlibobjs=
12315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12316   # 1. Remove the extension, and $U if already installed.
12317   ac_i=`echo "$ac_i" |
12318          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12319   # 2. Add them.
12320   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12321   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12322 done
12323 LIBOBJS=$ac_libobjs
12324
12325 LTLIBOBJS=$ac_ltlibobjs
12326
12327
12328
12329 : ${CONFIG_STATUS=./config.status}
12330 ac_clean_files_save=$ac_clean_files
12331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12334 cat >$CONFIG_STATUS <<_ACEOF
12335 #! $SHELL
12336 # Generated by $as_me.
12337 # Run this file to recreate the current configuration.
12338 # Compiler output produced by configure, useful for debugging
12339 # configure, is in config.log if it exists.
12340
12341 debug=false
12342 ac_cs_recheck=false
12343 ac_cs_silent=false
12344 SHELL=\${CONFIG_SHELL-$SHELL}
12345 _ACEOF
12346
12347 cat >>$CONFIG_STATUS <<\_ACEOF
12348 ## --------------------- ##
12349 ## M4sh Initialization.  ##
12350 ## --------------------- ##
12351
12352 # Be Bourne compatible
12353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12354   emulate sh
12355   NULLCMD=:
12356   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12357   # is contrary to our usage.  Disable this feature.
12358   alias -g '${1+"$@"}'='"$@"'
12359 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12360   set -o posix
12361 fi
12362 DUALCASE=1; export DUALCASE # for MKS sh
12363
12364 # Support unset when possible.
12365 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12366   as_unset=unset
12367 else
12368   as_unset=false
12369 fi
12370
12371
12372 # Work around bugs in pre-3.0 UWIN ksh.
12373 $as_unset ENV MAIL MAILPATH
12374 PS1='$ '
12375 PS2='> '
12376 PS4='+ '
12377
12378 # NLS nuisances.
12379 for as_var in \
12380   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12381   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12382   LC_TELEPHONE LC_TIME
12383 do
12384   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12385     eval $as_var=C; export $as_var
12386   else
12387     $as_unset $as_var
12388   fi
12389 done
12390
12391 # Required to use basename.
12392 if expr a : '\(a\)' >/dev/null 2>&1; then
12393   as_expr=expr
12394 else
12395   as_expr=false
12396 fi
12397
12398 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12399   as_basename=basename
12400 else
12401   as_basename=false
12402 fi
12403
12404
12405 # Name of the executable.
12406 as_me=`$as_basename "$0" ||
12407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12408          X"$0" : 'X\(//\)$' \| \
12409          X"$0" : 'X\(/\)$' \| \
12410          .     : '\(.\)' 2>/dev/null ||
12411 echo X/"$0" |
12412     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12413           /^X\/\(\/\/\)$/{ s//\1/; q; }
12414           /^X\/\(\/\).*/{ s//\1/; q; }
12415           s/.*/./; q'`
12416
12417
12418 # PATH needs CR, and LINENO needs CR and PATH.
12419 # Avoid depending upon Character Ranges.
12420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12423 as_cr_digits='0123456789'
12424 as_cr_alnum=$as_cr_Letters$as_cr_digits
12425
12426 # The user is always right.
12427 if test "${PATH_SEPARATOR+set}" != set; then
12428   echo "#! /bin/sh" >conf$$.sh
12429   echo  "exit 0"   >>conf$$.sh
12430   chmod +x conf$$.sh
12431   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12432     PATH_SEPARATOR=';'
12433   else
12434     PATH_SEPARATOR=:
12435   fi
12436   rm -f conf$$.sh
12437 fi
12438
12439
12440   as_lineno_1=$LINENO
12441   as_lineno_2=$LINENO
12442   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12443   test "x$as_lineno_1" != "x$as_lineno_2" &&
12444   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12445   # Find who we are.  Look in the path if we contain no path at all
12446   # relative or not.
12447   case $0 in
12448     *[\\/]* ) as_myself=$0 ;;
12449     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12455 done
12456
12457        ;;
12458   esac
12459   # We did not find ourselves, most probably we were run as `sh COMMAND'
12460   # in which case we are not to be found in the path.
12461   if test "x$as_myself" = x; then
12462     as_myself=$0
12463   fi
12464   if test ! -f "$as_myself"; then
12465     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12466 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12467    { (exit 1); exit 1; }; }
12468   fi
12469   case $CONFIG_SHELL in
12470   '')
12471     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12473 do
12474   IFS=$as_save_IFS
12475   test -z "$as_dir" && as_dir=.
12476   for as_base in sh bash ksh sh5; do
12477          case $as_dir in
12478          /*)
12479            if ("$as_dir/$as_base" -c '
12480   as_lineno_1=$LINENO
12481   as_lineno_2=$LINENO
12482   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12483   test "x$as_lineno_1" != "x$as_lineno_2" &&
12484   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12485              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12486              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12487              CONFIG_SHELL=$as_dir/$as_base
12488              export CONFIG_SHELL
12489              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12490            fi;;
12491          esac
12492        done
12493 done
12494 ;;
12495   esac
12496
12497   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12498   # uniformly replaced by the line number.  The first 'sed' inserts a
12499   # line-number line before each line; the second 'sed' does the real
12500   # work.  The second script uses 'N' to pair each line-number line
12501   # with the numbered line, and appends trailing '-' during
12502   # substitution so that $LINENO is not a special case at line end.
12503   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12504   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12505   sed '=' <$as_myself |
12506     sed '
12507       N
12508       s,$,-,
12509       : loop
12510       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12511       t loop
12512       s,-$,,
12513       s,^['$as_cr_digits']*\n,,
12514     ' >$as_me.lineno &&
12515   chmod +x $as_me.lineno ||
12516     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12517 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12518    { (exit 1); exit 1; }; }
12519
12520   # Don't try to exec as it changes $[0], causing all sort of problems
12521   # (the dirname of $[0] is not the place where we might find the
12522   # original and so on.  Autoconf is especially sensible to this).
12523   . ./$as_me.lineno
12524   # Exit status is that of the last command.
12525   exit
12526 }
12527
12528
12529 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12530   *c*,-n*) ECHO_N= ECHO_C='
12531 ' ECHO_T='      ' ;;
12532   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12533   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12534 esac
12535
12536 if expr a : '\(a\)' >/dev/null 2>&1; then
12537   as_expr=expr
12538 else
12539   as_expr=false
12540 fi
12541
12542 rm -f conf$$ conf$$.exe conf$$.file
12543 echo >conf$$.file
12544 if ln -s conf$$.file conf$$ 2>/dev/null; then
12545   # We could just check for DJGPP; but this test a) works b) is more generic
12546   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12547   if test -f conf$$.exe; then
12548     # Don't use ln at all; we don't have any links
12549     as_ln_s='cp -p'
12550   else
12551     as_ln_s='ln -s'
12552   fi
12553 elif ln conf$$.file conf$$ 2>/dev/null; then
12554   as_ln_s=ln
12555 else
12556   as_ln_s='cp -p'
12557 fi
12558 rm -f conf$$ conf$$.exe conf$$.file
12559
12560 if mkdir -p . 2>/dev/null; then
12561   as_mkdir_p=:
12562 else
12563   test -d ./-p && rmdir ./-p
12564   as_mkdir_p=false
12565 fi
12566
12567 as_executable_p="test -f"
12568
12569 # Sed expression to map a string onto a valid CPP name.
12570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12571
12572 # Sed expression to map a string onto a valid variable name.
12573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12574
12575
12576 # IFS
12577 # We need space, tab and new line, in precisely that order.
12578 as_nl='
12579 '
12580 IFS="   $as_nl"
12581
12582 # CDPATH.
12583 $as_unset CDPATH
12584
12585 exec 6>&1
12586
12587 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12588 # report actual input values of CONFIG_FILES etc. instead of their
12589 # values after options handling.  Logging --version etc. is OK.
12590 exec 5>>config.log
12591 {
12592   echo
12593   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12594 ## Running $as_me. ##
12595 _ASBOX
12596 } >&5
12597 cat >&5 <<_CSEOF
12598
12599 This file was extended by $as_me, which was
12600 generated by GNU Autoconf 2.59.  Invocation command line was
12601
12602   CONFIG_FILES    = $CONFIG_FILES
12603   CONFIG_HEADERS  = $CONFIG_HEADERS
12604   CONFIG_LINKS    = $CONFIG_LINKS
12605   CONFIG_COMMANDS = $CONFIG_COMMANDS
12606   $ $0 $@
12607
12608 _CSEOF
12609 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12610 echo >&5
12611 _ACEOF
12612
12613 # Files that config.status was made for.
12614 if test -n "$ac_config_files"; then
12615   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12616 fi
12617
12618 if test -n "$ac_config_headers"; then
12619   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12620 fi
12621
12622 if test -n "$ac_config_links"; then
12623   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12624 fi
12625
12626 if test -n "$ac_config_commands"; then
12627   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12628 fi
12629
12630 cat >>$CONFIG_STATUS <<\_ACEOF
12631
12632 ac_cs_usage="\
12633 \`$as_me' instantiates files from templates according to the
12634 current configuration.
12635
12636 Usage: $0 [OPTIONS] [FILE]...
12637
12638   -h, --help       print this help, then exit
12639   -V, --version    print version number, then exit
12640   -q, --quiet      do not print progress messages
12641   -d, --debug      don't remove temporary files
12642       --recheck    update $as_me by reconfiguring in the same conditions
12643   --file=FILE[:TEMPLATE]
12644                    instantiate the configuration file FILE
12645   --header=FILE[:TEMPLATE]
12646                    instantiate the configuration header FILE
12647
12648 Configuration files:
12649 $config_files
12650
12651 Configuration headers:
12652 $config_headers
12653
12654 Configuration commands:
12655 $config_commands
12656
12657 Report bugs to <bug-autoconf@gnu.org>."
12658 _ACEOF
12659
12660 cat >>$CONFIG_STATUS <<_ACEOF
12661 ac_cs_version="\\
12662 config.status
12663 configured by $0, generated by GNU Autoconf 2.59,
12664   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12665
12666 Copyright (C) 2003 Free Software Foundation, Inc.
12667 This config.status script is free software; the Free Software Foundation
12668 gives unlimited permission to copy, distribute and modify it."
12669 srcdir=$srcdir
12670 _ACEOF
12671
12672 cat >>$CONFIG_STATUS <<\_ACEOF
12673 # If no file are specified by the user, then we need to provide default
12674 # value.  By we need to know if files were specified by the user.
12675 ac_need_defaults=:
12676 while test $# != 0
12677 do
12678   case $1 in
12679   --*=*)
12680     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12681     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12682     ac_shift=:
12683     ;;
12684   -*)
12685     ac_option=$1
12686     ac_optarg=$2
12687     ac_shift=shift
12688     ;;
12689   *) # This is not an option, so the user has probably given explicit
12690      # arguments.
12691      ac_option=$1
12692      ac_need_defaults=false;;
12693   esac
12694
12695   case $ac_option in
12696   # Handling of the options.
12697 _ACEOF
12698 cat >>$CONFIG_STATUS <<\_ACEOF
12699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12700     ac_cs_recheck=: ;;
12701   --version | --vers* | -V )
12702     echo "$ac_cs_version"; exit 0 ;;
12703   --he | --h)
12704     # Conflict between --help and --header
12705     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12706 Try \`$0 --help' for more information." >&5
12707 echo "$as_me: error: ambiguous option: $1
12708 Try \`$0 --help' for more information." >&2;}
12709    { (exit 1); exit 1; }; };;
12710   --help | --hel | -h )
12711     echo "$ac_cs_usage"; exit 0 ;;
12712   --debug | --d* | -d )
12713     debug=: ;;
12714   --file | --fil | --fi | --f )
12715     $ac_shift
12716     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12717     ac_need_defaults=false;;
12718   --header | --heade | --head | --hea )
12719     $ac_shift
12720     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12721     ac_need_defaults=false;;
12722   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12723   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12724     ac_cs_silent=: ;;
12725
12726   # This is an error.
12727   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12728 Try \`$0 --help' for more information." >&5
12729 echo "$as_me: error: unrecognized option: $1
12730 Try \`$0 --help' for more information." >&2;}
12731    { (exit 1); exit 1; }; } ;;
12732
12733   *) ac_config_targets="$ac_config_targets $1" ;;
12734
12735   esac
12736   shift
12737 done
12738
12739 ac_configure_extra_args=
12740
12741 if $ac_cs_silent; then
12742   exec 6>/dev/null
12743   ac_configure_extra_args="$ac_configure_extra_args --silent"
12744 fi
12745
12746 _ACEOF
12747 cat >>$CONFIG_STATUS <<_ACEOF
12748 if \$ac_cs_recheck; then
12749   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12750   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12751 fi
12752
12753 _ACEOF
12754
12755 cat >>$CONFIG_STATUS <<_ACEOF
12756 #
12757 # INIT-COMMANDS section.
12758 #
12759
12760 subdirs='$subdirs'
12761 symbolic_link='$symbolic_link'
12762
12763
12764 _ACEOF
12765
12766
12767
12768 cat >>$CONFIG_STATUS <<\_ACEOF
12769 for ac_config_target in $ac_config_targets
12770 do
12771   case "$ac_config_target" in
12772   # Handling of arguments.
12773   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12774   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12775   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12776   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12778    { (exit 1); exit 1; }; };;
12779   esac
12780 done
12781
12782 # If the user did not use the arguments to specify the items to instantiate,
12783 # then the envvar interface is used.  Set only those that are not.
12784 # We use the long form for the default assignment because of an extremely
12785 # bizarre bug on SunOS 4.1.3.
12786 if $ac_need_defaults; then
12787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12789   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12790 fi
12791
12792 # Have a temporary directory for convenience.  Make it in the build tree
12793 # simply because there is no reason to put it here, and in addition,
12794 # creating and moving files from /tmp can sometimes cause problems.
12795 # Create a temporary directory, and hook for its removal unless debugging.
12796 $debug ||
12797 {
12798   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12799   trap '{ (exit 1); exit 1; }' 1 2 13 15
12800 }
12801
12802 # Create a (secure) tmp directory for tmp files.
12803
12804 {
12805   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12806   test -n "$tmp" && test -d "$tmp"
12807 }  ||
12808 {
12809   tmp=./confstat$$-$RANDOM
12810   (umask 077 && mkdir $tmp)
12811 } ||
12812 {
12813    echo "$me: cannot create a temporary directory in ." >&2
12814    { (exit 1); exit 1; }
12815 }
12816
12817 _ACEOF
12818
12819 cat >>$CONFIG_STATUS <<_ACEOF
12820
12821 #
12822 # CONFIG_FILES section.
12823 #
12824
12825 # No need to generate the scripts if there are no CONFIG_FILES.
12826 # This happens for instance when ./config.status config.h
12827 if test -n "\$CONFIG_FILES"; then
12828   # Protect against being on the right side of a sed subst in config.status.
12829   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12830    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12831 s,@SHELL@,$SHELL,;t t
12832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12833 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12834 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12835 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12836 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12837 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12838 s,@exec_prefix@,$exec_prefix,;t t
12839 s,@prefix@,$prefix,;t t
12840 s,@program_transform_name@,$program_transform_name,;t t
12841 s,@bindir@,$bindir,;t t
12842 s,@sbindir@,$sbindir,;t t
12843 s,@libexecdir@,$libexecdir,;t t
12844 s,@datadir@,$datadir,;t t
12845 s,@sysconfdir@,$sysconfdir,;t t
12846 s,@sharedstatedir@,$sharedstatedir,;t t
12847 s,@localstatedir@,$localstatedir,;t t
12848 s,@libdir@,$libdir,;t t
12849 s,@includedir@,$includedir,;t t
12850 s,@oldincludedir@,$oldincludedir,;t t
12851 s,@infodir@,$infodir,;t t
12852 s,@mandir@,$mandir,;t t
12853 s,@build_alias@,$build_alias,;t t
12854 s,@host_alias@,$host_alias,;t t
12855 s,@target_alias@,$target_alias,;t t
12856 s,@DEFS@,$DEFS,;t t
12857 s,@ECHO_C@,$ECHO_C,;t t
12858 s,@ECHO_N@,$ECHO_N,;t t
12859 s,@ECHO_T@,$ECHO_T,;t t
12860 s,@LIBS@,$LIBS,;t t
12861 s,@build@,$build,;t t
12862 s,@build_cpu@,$build_cpu,;t t
12863 s,@build_vendor@,$build_vendor,;t t
12864 s,@build_os@,$build_os,;t t
12865 s,@host@,$host,;t t
12866 s,@host_cpu@,$host_cpu,;t t
12867 s,@host_vendor@,$host_vendor,;t t
12868 s,@host_os@,$host_os,;t t
12869 s,@target@,$target,;t t
12870 s,@target_cpu@,$target_cpu,;t t
12871 s,@target_vendor@,$target_vendor,;t t
12872 s,@target_os@,$target_os,;t t
12873 s,@build_subdir@,$build_subdir,;t t
12874 s,@host_subdir@,$host_subdir,;t t
12875 s,@target_subdir@,$target_subdir,;t t
12876 s,@GENINSRC@,$GENINSRC,;t t
12877 s,@CC@,$CC,;t t
12878 s,@CFLAGS@,$CFLAGS,;t t
12879 s,@LDFLAGS@,$LDFLAGS,;t t
12880 s,@CPPFLAGS@,$CPPFLAGS,;t t
12881 s,@ac_ct_CC@,$ac_ct_CC,;t t
12882 s,@EXEEXT@,$EXEEXT,;t t
12883 s,@OBJEXT@,$OBJEXT,;t t
12884 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12885 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12886 s,@CPP@,$CPP,;t t
12887 s,@strict1_warn@,$strict1_warn,;t t
12888 s,@warn_cflags@,$warn_cflags,;t t
12889 s,@WERROR@,$WERROR,;t t
12890 s,@nocommon_flag@,$nocommon_flag,;t t
12891 s,@TREEBROWSER@,$TREEBROWSER,;t t
12892 s,@EGREP@,$EGREP,;t t
12893 s,@valgrind_path@,$valgrind_path,;t t
12894 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12895 s,@valgrind_command@,$valgrind_command,;t t
12896 s,@coverage_flags@,$coverage_flags,;t t
12897 s,@enable_multilib@,$enable_multilib,;t t
12898 s,@enable_shared@,$enable_shared,;t t
12899 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12900 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12901 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12902 s,@onestep@,$onestep,;t t
12903 s,@SET_MAKE@,$SET_MAKE,;t t
12904 s,@AWK@,$AWK,;t t
12905 s,@LN_S@,$LN_S,;t t
12906 s,@LN@,$LN,;t t
12907 s,@RANLIB@,$RANLIB,;t t
12908 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12909 s,@ranlib_flags@,$ranlib_flags,;t t
12910 s,@INSTALL@,$INSTALL,;t t
12911 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12912 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12913 s,@make_compare_target@,$make_compare_target,;t t
12914 s,@have_mktemp_command@,$have_mktemp_command,;t t
12915 s,@MAKEINFO@,$MAKEINFO,;t t
12916 s,@BUILD_INFO@,$BUILD_INFO,;t t
12917 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12918 s,@FLEX@,$FLEX,;t t
12919 s,@BISON@,$BISON,;t t
12920 s,@stage1_cflags@,$stage1_cflags,;t t
12921 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12922 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12923 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12924 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12925 s,@LIBICONV@,$LIBICONV,;t t
12926 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12927 s,@manext@,$manext,;t t
12928 s,@objext@,$objext,;t t
12929 s,@gthread_flags@,$gthread_flags,;t t
12930 s,@extra_modes_file@,$extra_modes_file,;t t
12931 s,@FORBUILD@,$FORBUILD,;t t
12932 s,@PACKAGE@,$PACKAGE,;t t
12933 s,@VERSION@,$VERSION,;t t
12934 s,@USE_NLS@,$USE_NLS,;t t
12935 s,@LIBINTL@,$LIBINTL,;t t
12936 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12937 s,@INCINTL@,$INCINTL,;t t
12938 s,@XGETTEXT@,$XGETTEXT,;t t
12939 s,@GMSGFMT@,$GMSGFMT,;t t
12940 s,@POSUB@,$POSUB,;t t
12941 s,@CATALOGS@,$CATALOGS,;t t
12942 s,@CROSS@,$CROSS,;t t
12943 s,@ALL@,$ALL,;t t
12944 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12945 s,@inhibit_libc@,$inhibit_libc,;t t
12946 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12947 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12948 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12949 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12950 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12951 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12952 s,@collect2@,$collect2,;t t
12953 s,@libgcc_visibility@,$libgcc_visibility,;t t
12954 s,@GGC@,$GGC,;t t
12955 s,@zlibdir@,$zlibdir,;t t
12956 s,@zlibinc@,$zlibinc,;t t
12957 s,@MAINT@,$MAINT,;t t
12958 s,@ANDER@,$ANDER,;t t
12959 s,@BANSHEEINC@,$BANSHEEINC,;t t
12960 s,@BANSHEELIB@,$BANSHEELIB,;t t
12961 s,@gcc_tooldir@,$gcc_tooldir,;t t
12962 s,@dollar@,$dollar,;t t
12963 s,@slibdir@,$slibdir,;t t
12964 s,@objdir@,$objdir,;t t
12965 s,@subdirs@,$subdirs,;t t
12966 s,@srcdir@,$srcdir,;t t
12967 s,@all_boot_languages@,$all_boot_languages,;t t
12968 s,@all_compilers@,$all_compilers,;t t
12969 s,@all_gtfiles@,$all_gtfiles,;t t
12970 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12971 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12972 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12973 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12974 s,@all_languages@,$all_languages,;t t
12975 s,@all_stagestuff@,$all_stagestuff,;t t
12976 s,@build_exeext@,$build_exeext,;t t
12977 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12978 s,@build_xm_file_list@,$build_xm_file_list,;t t
12979 s,@build_xm_include_list@,$build_xm_include_list,;t t
12980 s,@build_xm_defines@,$build_xm_defines,;t t
12981 s,@check_languages@,$check_languages,;t t
12982 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12983 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12984 s,@cpp_install_dir@,$cpp_install_dir,;t t
12985 s,@xmake_file@,$xmake_file,;t t
12986 s,@tmake_file@,$tmake_file,;t t
12987 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12988 s,@extra_headers_list@,$extra_headers_list,;t t
12989 s,@extra_objs@,$extra_objs,;t t
12990 s,@extra_parts@,$extra_parts,;t t
12991 s,@extra_passes@,$extra_passes,;t t
12992 s,@extra_programs@,$extra_programs,;t t
12993 s,@float_h_file@,$float_h_file,;t t
12994 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12995 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12996 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12997 s,@gcc_version@,$gcc_version,;t t
12998 s,@gcc_version_full@,$gcc_version_full,;t t
12999 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13000 s,@host_exeext@,$host_exeext,;t t
13001 s,@host_xm_file_list@,$host_xm_file_list,;t t
13002 s,@host_xm_include_list@,$host_xm_include_list,;t t
13003 s,@host_xm_defines@,$host_xm_defines,;t t
13004 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13005 s,@install@,$install,;t t
13006 s,@lang_opt_files@,$lang_opt_files,;t t
13007 s,@lang_specs_files@,$lang_specs_files,;t t
13008 s,@lang_tree_files@,$lang_tree_files,;t t
13009 s,@local_prefix@,$local_prefix,;t t
13010 s,@md_file@,$md_file,;t t
13011 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13012 s,@out_file@,$out_file,;t t
13013 s,@out_object_file@,$out_object_file,;t t
13014 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13015 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13016 s,@symbolic_link@,$symbolic_link,;t t
13017 s,@thread_file@,$thread_file,;t t
13018 s,@tm_file_list@,$tm_file_list,;t t
13019 s,@tm_include_list@,$tm_include_list,;t t
13020 s,@tm_defines@,$tm_defines,;t t
13021 s,@tm_p_file_list@,$tm_p_file_list,;t t
13022 s,@tm_p_include_list@,$tm_p_include_list,;t t
13023 s,@xm_file_list@,$xm_file_list,;t t
13024 s,@xm_include_list@,$xm_include_list,;t t
13025 s,@xm_defines@,$xm_defines,;t t
13026 s,@target_noncanonical@,$target_noncanonical,;t t
13027 s,@c_target_objs@,$c_target_objs,;t t
13028 s,@cxx_target_objs@,$cxx_target_objs,;t t
13029 s,@target_cpu_default@,$target_cpu_default,;t t
13030 s,@GMPLIBS@,$GMPLIBS,;t t
13031 s,@GMPINC@,$GMPINC,;t t
13032 s,@LIBOBJS@,$LIBOBJS,;t t
13033 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13034 /@language_hooks@/r $language_hooks
13035 s,@language_hooks@,,;t t
13036 CEOF
13037
13038 _ACEOF
13039
13040   cat >>$CONFIG_STATUS <<\_ACEOF
13041   # Split the substitutions into bite-sized pieces for seds with
13042   # small command number limits, like on Digital OSF/1 and HP-UX.
13043   ac_max_sed_lines=48
13044   ac_sed_frag=1 # Number of current file.
13045   ac_beg=1 # First line for current file.
13046   ac_end=$ac_max_sed_lines # Line after last line for current file.
13047   ac_more_lines=:
13048   ac_sed_cmds=
13049   while $ac_more_lines; do
13050     if test $ac_beg -gt 1; then
13051       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13052     else
13053       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13054     fi
13055     if test ! -s $tmp/subs.frag; then
13056       ac_more_lines=false
13057     else
13058       # The purpose of the label and of the branching condition is to
13059       # speed up the sed processing (if there are no `@' at all, there
13060       # is no need to browse any of the substitutions).
13061       # These are the two extra sed commands mentioned above.
13062       (echo ':t
13063   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13064       if test -z "$ac_sed_cmds"; then
13065         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13066       else
13067         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13068       fi
13069       ac_sed_frag=`expr $ac_sed_frag + 1`
13070       ac_beg=$ac_end
13071       ac_end=`expr $ac_end + $ac_max_sed_lines`
13072     fi
13073   done
13074   if test -z "$ac_sed_cmds"; then
13075     ac_sed_cmds=cat
13076   fi
13077 fi # test -n "$CONFIG_FILES"
13078
13079 _ACEOF
13080 cat >>$CONFIG_STATUS <<\_ACEOF
13081 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13082   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13083   case $ac_file in
13084   - | *:- | *:-:* ) # input from stdin
13085         cat >$tmp/stdin
13086         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13087         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13088   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13089         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13090   * )   ac_file_in=$ac_file.in ;;
13091   esac
13092
13093   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13094   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096          X"$ac_file" : 'X\(//\)[^/]' \| \
13097          X"$ac_file" : 'X\(//\)$' \| \
13098          X"$ac_file" : 'X\(/\)' \| \
13099          .     : '\(.\)' 2>/dev/null ||
13100 echo X"$ac_file" |
13101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13103           /^X\(\/\/\)$/{ s//\1/; q; }
13104           /^X\(\/\).*/{ s//\1/; q; }
13105           s/.*/./; q'`
13106   { if $as_mkdir_p; then
13107     mkdir -p "$ac_dir"
13108   else
13109     as_dir="$ac_dir"
13110     as_dirs=
13111     while test ! -d "$as_dir"; do
13112       as_dirs="$as_dir $as_dirs"
13113       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13115          X"$as_dir" : 'X\(//\)[^/]' \| \
13116          X"$as_dir" : 'X\(//\)$' \| \
13117          X"$as_dir" : 'X\(/\)' \| \
13118          .     : '\(.\)' 2>/dev/null ||
13119 echo X"$as_dir" |
13120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13122           /^X\(\/\/\)$/{ s//\1/; q; }
13123           /^X\(\/\).*/{ s//\1/; q; }
13124           s/.*/./; q'`
13125     done
13126     test ! -n "$as_dirs" || mkdir $as_dirs
13127   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13129    { (exit 1); exit 1; }; }; }
13130
13131   ac_builddir=.
13132
13133 if test "$ac_dir" != .; then
13134   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13135   # A "../" for each directory in $ac_dir_suffix.
13136   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13137 else
13138   ac_dir_suffix= ac_top_builddir=
13139 fi
13140
13141 case $srcdir in
13142   .)  # No --srcdir option.  We are building in place.
13143     ac_srcdir=.
13144     if test -z "$ac_top_builddir"; then
13145        ac_top_srcdir=.
13146     else
13147        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13148     fi ;;
13149   [\\/]* | ?:[\\/]* )  # Absolute path.
13150     ac_srcdir=$srcdir$ac_dir_suffix;
13151     ac_top_srcdir=$srcdir ;;
13152   *) # Relative path.
13153     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13154     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13155 esac
13156
13157 # Do not use `cd foo && pwd` to compute absolute paths, because
13158 # the directories may not exist.
13159 case `pwd` in
13160 .) ac_abs_builddir="$ac_dir";;
13161 *)
13162   case "$ac_dir" in
13163   .) ac_abs_builddir=`pwd`;;
13164   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13165   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13166   esac;;
13167 esac
13168 case $ac_abs_builddir in
13169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13170 *)
13171   case ${ac_top_builddir}. in
13172   .) ac_abs_top_builddir=$ac_abs_builddir;;
13173   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13174   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13175   esac;;
13176 esac
13177 case $ac_abs_builddir in
13178 .) ac_abs_srcdir=$ac_srcdir;;
13179 *)
13180   case $ac_srcdir in
13181   .) ac_abs_srcdir=$ac_abs_builddir;;
13182   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13183   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13184   esac;;
13185 esac
13186 case $ac_abs_builddir in
13187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13188 *)
13189   case $ac_top_srcdir in
13190   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13191   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13192   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13193   esac;;
13194 esac
13195
13196
13197
13198   if test x"$ac_file" != x-; then
13199     { echo "$as_me:$LINENO: creating $ac_file" >&5
13200 echo "$as_me: creating $ac_file" >&6;}
13201     rm -f "$ac_file"
13202   fi
13203   # Let's still pretend it is `configure' which instantiates (i.e., don't
13204   # use $as_me), people would be surprised to read:
13205   #    /* config.h.  Generated by config.status.  */
13206   if test x"$ac_file" = x-; then
13207     configure_input=
13208   else
13209     configure_input="$ac_file.  "
13210   fi
13211   configure_input=$configure_input"Generated from `echo $ac_file_in |
13212                                      sed 's,.*/,,'` by configure."
13213
13214   # First look for the input files in the build tree, otherwise in the
13215   # src tree.
13216   ac_file_inputs=`IFS=:
13217     for f in $ac_file_in; do
13218       case $f in
13219       -) echo $tmp/stdin ;;
13220       [\\/$]*)
13221          # Absolute (can't be DOS-style, as IFS=:)
13222          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13223 echo "$as_me: error: cannot find input file: $f" >&2;}
13224    { (exit 1); exit 1; }; }
13225          echo "$f";;
13226       *) # Relative
13227          if test -f "$f"; then
13228            # Build tree
13229            echo "$f"
13230          elif test -f "$srcdir/$f"; then
13231            # Source tree
13232            echo "$srcdir/$f"
13233          else
13234            # /dev/null tree
13235            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13236 echo "$as_me: error: cannot find input file: $f" >&2;}
13237    { (exit 1); exit 1; }; }
13238          fi;;
13239       esac
13240     done` || { (exit 1); exit 1; }
13241 _ACEOF
13242 cat >>$CONFIG_STATUS <<_ACEOF
13243   sed "$ac_vpsub
13244 $extrasub
13245 _ACEOF
13246 cat >>$CONFIG_STATUS <<\_ACEOF
13247 :t
13248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13249 s,@configure_input@,$configure_input,;t t
13250 s,@srcdir@,$ac_srcdir,;t t
13251 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13252 s,@top_srcdir@,$ac_top_srcdir,;t t
13253 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13254 s,@builddir@,$ac_builddir,;t t
13255 s,@abs_builddir@,$ac_abs_builddir,;t t
13256 s,@top_builddir@,$ac_top_builddir,;t t
13257 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13258 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13259   rm -f $tmp/stdin
13260   if test x"$ac_file" != x-; then
13261     mv $tmp/out $ac_file
13262   else
13263     cat $tmp/out
13264     rm -f $tmp/out
13265   fi
13266
13267 done
13268 _ACEOF
13269 cat >>$CONFIG_STATUS <<\_ACEOF
13270
13271 #
13272 # CONFIG_HEADER section.
13273 #
13274
13275 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13276 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13277 #
13278 # ac_d sets the value in "#define NAME VALUE" lines.
13279 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13280 ac_dB='[         ].*$,\1#\2'
13281 ac_dC=' '
13282 ac_dD=',;t'
13283 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13284 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13285 ac_uB='$,\1#\2define\3'
13286 ac_uC=' '
13287 ac_uD=',;t'
13288
13289 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13290   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13291   case $ac_file in
13292   - | *:- | *:-:* ) # input from stdin
13293         cat >$tmp/stdin
13294         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13295         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13296   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13297         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13298   * )   ac_file_in=$ac_file.in ;;
13299   esac
13300
13301   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13302 echo "$as_me: creating $ac_file" >&6;}
13303
13304   # First look for the input files in the build tree, otherwise in the
13305   # src tree.
13306   ac_file_inputs=`IFS=:
13307     for f in $ac_file_in; do
13308       case $f in
13309       -) echo $tmp/stdin ;;
13310       [\\/$]*)
13311          # Absolute (can't be DOS-style, as IFS=:)
13312          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13313 echo "$as_me: error: cannot find input file: $f" >&2;}
13314    { (exit 1); exit 1; }; }
13315          # Do quote $f, to prevent DOS paths from being IFS'd.
13316          echo "$f";;
13317       *) # Relative
13318          if test -f "$f"; then
13319            # Build tree
13320            echo "$f"
13321          elif test -f "$srcdir/$f"; then
13322            # Source tree
13323            echo "$srcdir/$f"
13324          else
13325            # /dev/null tree
13326            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13327 echo "$as_me: error: cannot find input file: $f" >&2;}
13328    { (exit 1); exit 1; }; }
13329          fi;;
13330       esac
13331     done` || { (exit 1); exit 1; }
13332   # Remove the trailing spaces.
13333   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13334
13335 _ACEOF
13336
13337 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13338 # `conftest.undefs', that substitutes the proper values into
13339 # config.h.in to produce config.h.  The first handles `#define'
13340 # templates, and the second `#undef' templates.
13341 # And first: Protect against being on the right side of a sed subst in
13342 # config.status.  Protect against being in an unquoted here document
13343 # in config.status.
13344 rm -f conftest.defines conftest.undefs
13345 # Using a here document instead of a string reduces the quoting nightmare.
13346 # Putting comments in sed scripts is not portable.
13347 #
13348 # `end' is used to avoid that the second main sed command (meant for
13349 # 0-ary CPP macros) applies to n-ary macro definitions.
13350 # See the Autoconf documentation for `clear'.
13351 cat >confdef2sed.sed <<\_ACEOF
13352 s/[\\&,]/\\&/g
13353 s,[\\$`],\\&,g
13354 t clear
13355 : clear
13356 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13357 t end
13358 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13359 : end
13360 _ACEOF
13361 # If some macros were called several times there might be several times
13362 # the same #defines, which is useless.  Nevertheless, we may not want to
13363 # sort them, since we want the *last* AC-DEFINE to be honored.
13364 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13365 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13366 rm -f confdef2sed.sed
13367
13368 # This sed command replaces #undef with comments.  This is necessary, for
13369 # example, in the case of _POSIX_SOURCE, which is predefined and required
13370 # on some systems where configure will not decide to define it.
13371 cat >>conftest.undefs <<\_ACEOF
13372 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13373 _ACEOF
13374
13375 # Break up conftest.defines because some shells have a limit on the size
13376 # of here documents, and old seds have small limits too (100 cmds).
13377 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13378 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13379 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13380 echo '  :' >>$CONFIG_STATUS
13381 rm -f conftest.tail
13382 while grep . conftest.defines >/dev/null
13383 do
13384   # Write a limited-size here document to $tmp/defines.sed.
13385   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13386   # Speed up: don't consider the non `#define' lines.
13387   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13388   # Work around the forget-to-reset-the-flag bug.
13389   echo 't clr' >>$CONFIG_STATUS
13390   echo ': clr' >>$CONFIG_STATUS
13391   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13392   echo 'CEOF
13393   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13394   rm -f $tmp/in
13395   mv $tmp/out $tmp/in
13396 ' >>$CONFIG_STATUS
13397   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13398   rm -f conftest.defines
13399   mv conftest.tail conftest.defines
13400 done
13401 rm -f conftest.defines
13402 echo '  fi # grep' >>$CONFIG_STATUS
13403 echo >>$CONFIG_STATUS
13404
13405 # Break up conftest.undefs because some shells have a limit on the size
13406 # of here documents, and old seds have small limits too (100 cmds).
13407 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13408 rm -f conftest.tail
13409 while grep . conftest.undefs >/dev/null
13410 do
13411   # Write a limited-size here document to $tmp/undefs.sed.
13412   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13413   # Speed up: don't consider the non `#undef'
13414   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13415   # Work around the forget-to-reset-the-flag bug.
13416   echo 't clr' >>$CONFIG_STATUS
13417   echo ': clr' >>$CONFIG_STATUS
13418   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13419   echo 'CEOF
13420   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13421   rm -f $tmp/in
13422   mv $tmp/out $tmp/in
13423 ' >>$CONFIG_STATUS
13424   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13425   rm -f conftest.undefs
13426   mv conftest.tail conftest.undefs
13427 done
13428 rm -f conftest.undefs
13429
13430 cat >>$CONFIG_STATUS <<\_ACEOF
13431   # Let's still pretend it is `configure' which instantiates (i.e., don't
13432   # use $as_me), people would be surprised to read:
13433   #    /* config.h.  Generated by config.status.  */
13434   if test x"$ac_file" = x-; then
13435     echo "/* Generated by configure.  */" >$tmp/config.h
13436   else
13437     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13438   fi
13439   cat $tmp/in >>$tmp/config.h
13440   rm -f $tmp/in
13441   if test x"$ac_file" != x-; then
13442     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13443       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13444 echo "$as_me: $ac_file is unchanged" >&6;}
13445     else
13446       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13447 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13448          X"$ac_file" : 'X\(//\)[^/]' \| \
13449          X"$ac_file" : 'X\(//\)$' \| \
13450          X"$ac_file" : 'X\(/\)' \| \
13451          .     : '\(.\)' 2>/dev/null ||
13452 echo X"$ac_file" |
13453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13455           /^X\(\/\/\)$/{ s//\1/; q; }
13456           /^X\(\/\).*/{ s//\1/; q; }
13457           s/.*/./; q'`
13458       { if $as_mkdir_p; then
13459     mkdir -p "$ac_dir"
13460   else
13461     as_dir="$ac_dir"
13462     as_dirs=
13463     while test ! -d "$as_dir"; do
13464       as_dirs="$as_dir $as_dirs"
13465       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13467          X"$as_dir" : 'X\(//\)[^/]' \| \
13468          X"$as_dir" : 'X\(//\)$' \| \
13469          X"$as_dir" : 'X\(/\)' \| \
13470          .     : '\(.\)' 2>/dev/null ||
13471 echo X"$as_dir" |
13472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13474           /^X\(\/\/\)$/{ s//\1/; q; }
13475           /^X\(\/\).*/{ s//\1/; q; }
13476           s/.*/./; q'`
13477     done
13478     test ! -n "$as_dirs" || mkdir $as_dirs
13479   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13480 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13481    { (exit 1); exit 1; }; }; }
13482
13483       rm -f $ac_file
13484       mv $tmp/config.h $ac_file
13485     fi
13486   else
13487     cat $tmp/config.h
13488     rm -f $tmp/config.h
13489   fi
13490 done
13491 _ACEOF
13492 cat >>$CONFIG_STATUS <<\_ACEOF
13493
13494 #
13495 # CONFIG_COMMANDS section.
13496 #
13497 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13498   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13499   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13500   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13501 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13502          X"$ac_dest" : 'X\(//\)[^/]' \| \
13503          X"$ac_dest" : 'X\(//\)$' \| \
13504          X"$ac_dest" : 'X\(/\)' \| \
13505          .     : '\(.\)' 2>/dev/null ||
13506 echo X"$ac_dest" |
13507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13509           /^X\(\/\/\)$/{ s//\1/; q; }
13510           /^X\(\/\).*/{ s//\1/; q; }
13511           s/.*/./; q'`
13512   { if $as_mkdir_p; then
13513     mkdir -p "$ac_dir"
13514   else
13515     as_dir="$ac_dir"
13516     as_dirs=
13517     while test ! -d "$as_dir"; do
13518       as_dirs="$as_dir $as_dirs"
13519       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13521          X"$as_dir" : 'X\(//\)[^/]' \| \
13522          X"$as_dir" : 'X\(//\)$' \| \
13523          X"$as_dir" : 'X\(/\)' \| \
13524          .     : '\(.\)' 2>/dev/null ||
13525 echo X"$as_dir" |
13526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13528           /^X\(\/\/\)$/{ s//\1/; q; }
13529           /^X\(\/\).*/{ s//\1/; q; }
13530           s/.*/./; q'`
13531     done
13532     test ! -n "$as_dirs" || mkdir $as_dirs
13533   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13535    { (exit 1); exit 1; }; }; }
13536
13537   ac_builddir=.
13538
13539 if test "$ac_dir" != .; then
13540   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13541   # A "../" for each directory in $ac_dir_suffix.
13542   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13543 else
13544   ac_dir_suffix= ac_top_builddir=
13545 fi
13546
13547 case $srcdir in
13548   .)  # No --srcdir option.  We are building in place.
13549     ac_srcdir=.
13550     if test -z "$ac_top_builddir"; then
13551        ac_top_srcdir=.
13552     else
13553        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13554     fi ;;
13555   [\\/]* | ?:[\\/]* )  # Absolute path.
13556     ac_srcdir=$srcdir$ac_dir_suffix;
13557     ac_top_srcdir=$srcdir ;;
13558   *) # Relative path.
13559     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13560     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13561 esac
13562
13563 # Do not use `cd foo && pwd` to compute absolute paths, because
13564 # the directories may not exist.
13565 case `pwd` in
13566 .) ac_abs_builddir="$ac_dir";;
13567 *)
13568   case "$ac_dir" in
13569   .) ac_abs_builddir=`pwd`;;
13570   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13571   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13572   esac;;
13573 esac
13574 case $ac_abs_builddir in
13575 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13576 *)
13577   case ${ac_top_builddir}. in
13578   .) ac_abs_top_builddir=$ac_abs_builddir;;
13579   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13580   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13581   esac;;
13582 esac
13583 case $ac_abs_builddir in
13584 .) ac_abs_srcdir=$ac_srcdir;;
13585 *)
13586   case $ac_srcdir in
13587   .) ac_abs_srcdir=$ac_abs_builddir;;
13588   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13589   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13590   esac;;
13591 esac
13592 case $ac_abs_builddir in
13593 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13594 *)
13595   case $ac_top_srcdir in
13596   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13597   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13598   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13599   esac;;
13600 esac
13601
13602
13603   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13604 echo "$as_me: executing $ac_dest commands" >&6;}
13605   case $ac_dest in
13606     default )
13607 case ${CONFIG_HEADERS} in
13608   *auto-host.h:config.in*)
13609   echo > cstamp-h ;;
13610 esac
13611 # Make sure all the subdirs exist.
13612 for d in $subdirs
13613 do
13614     test -d $d || mkdir $d
13615 done
13616 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13617 # bootstrapping and the installation procedure can still use
13618 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13619 # FLAGS_TO_PASS has been modified to solve the problem there.
13620 # This is virtually a duplicate of what happens in configure.lang; we do
13621 # an extra check to make sure this only happens if ln -s can be used.
13622 if test "$symbolic_link" = "ln -s"; then
13623  for d in ${subdirs} fixinc ; do
13624         STARTDIR=`${PWDCMD-pwd}`
13625         cd $d
13626         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13627         do
13628                 rm -f $t
13629                 $symbolic_link ../$t $t 2>/dev/null
13630         done
13631         cd $STARTDIR
13632  done
13633 else true ; fi
13634  ;;
13635   esac
13636 done
13637 _ACEOF
13638
13639 cat >>$CONFIG_STATUS <<\_ACEOF
13640
13641 { (exit 0); exit 0; }
13642 _ACEOF
13643 chmod +x $CONFIG_STATUS
13644 ac_clean_files=$ac_clean_files_save
13645
13646
13647 # configure is writing to config.log, and then calls config.status.
13648 # config.status does its own redirection, appending to config.log.
13649 # Unfortunately, on DOS this fails, as config.log is still kept open
13650 # by configure, so config.status won't be able to write to it; its
13651 # output is simply discarded.  So we exec the FD to /dev/null,
13652 # effectively closing config.log, so it can be properly (re)opened and
13653 # appended to by config.status.  When coming back to configure, we
13654 # need to make the FD available again.
13655 if test "$no_create" != yes; then
13656   ac_cs_success=:
13657   ac_config_status_args=
13658   test "$silent" = yes &&
13659     ac_config_status_args="$ac_config_status_args --quiet"
13660   exec 5>/dev/null
13661   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13662   exec 5>>config.log
13663   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13664   # would make configure fail if this is the last instruction.
13665   $ac_cs_success || { (exit 1); exit 1; }
13666 fi
13667