OSDN Git Service

* toplev.c (warn_deprecated_use): Correct logic for saying "type"
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: assert,fold,gc,gcac,misc,
871                           rtlflag,rtl,tree,valgrind,release,yes,all;
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   --disable-win32-registry
893                           disable lookup of installation paths in the
894                           Registry on Windows hosts
895   --enable-win32-registry enable registry lookup (default)
896   --enable-win32-registry=KEY
897                           use KEY instead of GCC version as the last portion
898                           of the registry key
899   --enable-maintainer-mode
900                           enable make rules and dependencies not useful
901                           (and sometimes confusing) to the casual installer
902   --enable-version-specific-runtime-libs
903                           specify that runtime libraries should be
904                           installed in a compiler-specific directory
905
906 Optional Packages:
907   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
908   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
909   --with-local-prefix=DIR specifies directory to put local include
910   --with-gxx-include-dir=DIR
911                           specifies directory to put g++ header files
912   --with-cpp-install-dir=DIR
913                           install the user visible C preprocessor in DIR
914                           (relative to PREFIX) as well as PREFIX/bin
915   --with-gnu-ld           arrange to work with GNU ld.
916   --with-ld               arrange to use the specified ld (full pathname)
917   --with-demangler-in-ld  try to use demangler in GNU ld.
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-system-libunwind use installed libunwind
925   --with-gc={page,zone}   choose the garbage collection mechanism to use
926                           with the compiler
927   --with-system-zlib      use installed libz
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 #Set to 1 on a release branch
1384 is_release=
1385
1386 # Determine the host, build, and target systems
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389   if test -f $ac_dir/install-sh; then
1390     ac_aux_dir=$ac_dir
1391     ac_install_sh="$ac_aux_dir/install-sh -c"
1392     break
1393   elif test -f $ac_dir/install.sh; then
1394     ac_aux_dir=$ac_dir
1395     ac_install_sh="$ac_aux_dir/install.sh -c"
1396     break
1397   elif test -f $ac_dir/shtool; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/shtool install -c"
1400     break
1401   fi
1402 done
1403 if test -z "$ac_aux_dir"; then
1404   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406    { (exit 1); exit 1; }; }
1407 fi
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1411
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425   ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429    { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 fi
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1438 build=$ac_cv_build
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442
1443
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451   ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455    { (exit 1); exit 1; }; }
1456
1457 fi
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1460 host=$ac_cv_host
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464
1465
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473   ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477    { (exit 1); exit 1; }; }
1478
1479 fi
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
1487
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491   test "$program_prefix$program_suffix$program_transform_name" = \
1492     NONENONEs,x,x, &&
1493   program_prefix=${target_alias}-
1494
1495 # Determine the noncanonical target name, for directory use.
1496  case ${build_alias} in
1497   "") build_noncanonical=${build} ;;
1498   *) build_noncanonical=${build_alias} ;;
1499 esac
1500
1501  case ${host_alias} in
1502   "") host_noncanonical=${build_noncanonical} ;;
1503   *) host_noncanonical=${host_alias} ;;
1504 esac
1505
1506  case ${target_alias} in
1507   "") target_noncanonical=${host_noncanonical} ;;
1508   *) target_noncanonical=${target_alias} ;;
1509 esac
1510
1511
1512
1513
1514 # Determine the target- and build-specific subdirectories
1515   # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # Not really a subdirectory, but here for completeness.
1518 host_subdir=.
1519 # No prefix.
1520 target_subdir=${target_noncanonical}
1521
1522
1523 # Set program_transform_name
1524 test "$program_prefix" != NONE &&
1525   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1526 # Use a double $ so make ignores it.
1527 test "$program_suffix" != NONE &&
1528   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1529 # Double any \ or $.  echo might interpret backslashes.
1530 # By default was `s,x,x', remove it if useless.
1531 cat <<\_ACEOF >conftest.sed
1532 s/[\\$]/&&/g;s/;s,x,x,$//
1533 _ACEOF
1534 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1535 rm conftest.sed
1536
1537
1538 # Check for bogus environment variables.
1539 # Test if LIBRARY_PATH contains the notation for the current directory
1540 # since this would lead to problems installing/building glibc.
1541 # LIBRARY_PATH contains the current directory if one of the following
1542 # is true:
1543 # - one of the terminals (":" and ";") is the first or last sign
1544 # - two terminals occur directly after each other
1545 # - the path contains an element with a dot in it
1546 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1547 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1548 case ${LIBRARY_PATH} in
1549   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1550     library_path_setting="contains current directory"
1551     ;;
1552   *)
1553     library_path_setting="ok"
1554     ;;
1555 esac
1556 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1557 echo "${ECHO_T}$library_path_setting" >&6
1558 if test "$library_path_setting" != "ok"; then
1559 { { echo "$as_me:$LINENO: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&5
1563 echo "$as_me: error:
1564 *** LIBRARY_PATH shouldn't contain the current directory when
1565 *** building gcc. Please change the environment variable
1566 *** and run configure again." >&2;}
1567    { (exit 1); exit 1; }; }
1568 fi
1569
1570 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1571 # since this would lead to problems installing/building glibc.
1572 # GCC_EXEC_PREFIX contains the current directory if one of the following
1573 # is true:
1574 # - one of the terminals (":" and ";") is the first or last sign
1575 # - two terminals occur directly after each other
1576 # - the path contains an element with a dot in it
1577 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1578 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1579 case ${GCC_EXEC_PREFIX} in
1580   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1581     gcc_exec_prefix_setting="contains current directory"
1582     ;;
1583   *)
1584     gcc_exec_prefix_setting="ok"
1585     ;;
1586 esac
1587 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1588 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1589 if test "$gcc_exec_prefix_setting" != "ok"; then
1590 { { echo "$as_me:$LINENO: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&5
1594 echo "$as_me: error:
1595 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1596 *** building gcc. Please change the environment variable
1597 *** and run configure again." >&2;}
1598    { (exit 1); exit 1; }; }
1599 fi
1600
1601 # -----------
1602 # Directories
1603 # -----------
1604
1605 # Specify the local prefix
1606 local_prefix=
1607
1608 # Check whether --with-local-prefix or --without-local-prefix was given.
1609 if test "${with_local_prefix+set}" = set; then
1610   withval="$with_local_prefix"
1611   case "${withval}" in
1612 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1613 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1614    { (exit 1); exit 1; }; } ;;
1615 no)     ;;
1616 *)      local_prefix=$with_local_prefix ;;
1617 esac
1618 fi;
1619
1620 # Default local prefix if it is empty
1621 if test x$local_prefix = x; then
1622         local_prefix=/usr/local
1623 fi
1624
1625 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1626 # passed in by the toplevel make and thus we'd get different behavior
1627 # depending on where we built the sources.
1628 gcc_gxx_include_dir=
1629 # Specify the g++ header file directory
1630
1631 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1632 if test "${with_gxx_include_dir+set}" = set; then
1633   withval="$with_gxx_include_dir"
1634   case "${withval}" in
1635 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1636 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1637    { (exit 1); exit 1; }; } ;;
1638 no)     ;;
1639 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1640 esac
1641 fi;
1642
1643 if test x${gcc_gxx_include_dir} = x; then
1644   if test x${enable_version_specific_runtime_libs} = xyes; then
1645     gcc_gxx_include_dir='${libsubdir}/include/c++'
1646   else
1647     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1648     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1649   fi
1650 fi
1651
1652
1653 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1654 if test "${with_cpp_install_dir+set}" = set; then
1655   withval="$with_cpp_install_dir"
1656   if test x$withval = xyes; then
1657   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1658 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1659    { (exit 1); exit 1; }; }
1660 elif test x$withval != xno; then
1661   cpp_install_dir=$withval
1662 fi
1663 fi;
1664
1665 # We would like to our source tree to be readonly.  However when releases or
1666 # pre-releases are generated, the flex/bison generated files as well as the
1667 # various formats of manuals need to be included along with the rest of the
1668 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1669 # just that.
1670
1671 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1672 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1673     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1674 if test "${enable_generated_files_in_srcdir+set}" = set; then
1675   enableval="$enable_generated_files_in_srcdir"
1676   generated_files_in_srcdir=$enableval
1677 else
1678   generated_files_in_srcdir=no
1679 fi;
1680
1681 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1682 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1683
1684 if test "$generated_files_in_srcdir" = "yes"; then
1685   GENINSRC=''
1686 else
1687   GENINSRC='#'
1688 fi
1689
1690
1691 # -------------------
1692 # Find default linker
1693 # -------------------
1694
1695 # With GNU ld
1696
1697 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1698 if test "${with_gnu_ld+set}" = set; then
1699   withval="$with_gnu_ld"
1700   gnu_ld_flag="$with_gnu_ld"
1701 else
1702   gnu_ld_flag=no
1703 fi;
1704
1705 # With pre-defined ld
1706
1707 # Check whether --with-ld or --without-ld was given.
1708 if test "${with_ld+set}" = set; then
1709   withval="$with_ld"
1710   DEFAULT_LINKER="$with_ld"
1711 fi;
1712 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1713   if test ! -x "$DEFAULT_LINKER"; then
1714     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1715 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1716    { (exit 1); exit 1; }; }
1717   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1718     gnu_ld_flag=yes
1719   fi
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 _ACEOF
1724
1725 fi
1726
1727 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1728 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1729 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1730   if test x"$gnu_ld_flag" = x"no"; then
1731     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1732 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1733   else
1734     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1736   fi
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 # With demangler in GNU ld
1743
1744 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1745 if test "${with_demangler_in_ld+set}" = set; then
1746   withval="$with_demangler_in_ld"
1747   demangler_in_ld="$with_demangler_in_ld"
1748 else
1749   demangler_in_ld=no
1750 fi;
1751
1752 # ----------------------
1753 # Find default assembler
1754 # ----------------------
1755
1756 # With GNU as
1757
1758 # Check whether --with-gnu-as or --without-gnu-as was given.
1759 if test "${with_gnu_as+set}" = set; then
1760   withval="$with_gnu_as"
1761   gas_flag="$with_gnu_as"
1762 else
1763   gas_flag=no
1764 fi;
1765
1766
1767 # Check whether --with-as or --without-as was given.
1768 if test "${with_as+set}" = set; then
1769   withval="$with_as"
1770   DEFAULT_ASSEMBLER="$with_as"
1771 fi;
1772 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1773   if test ! -x "$DEFAULT_ASSEMBLER"; then
1774     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1775 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1776    { (exit 1); exit 1; }; }
1777   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1778     gas_flag=yes
1779   fi
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 _ACEOF
1784
1785 fi
1786
1787 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1788 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1789 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1790   if test x"$gas_flag" = x"no"; then
1791     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1792 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1793   else
1794     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1796   fi
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 fi
1801
1802 # ---------------
1803 # Find C compiler
1804 # ---------------
1805
1806 # If a non-executable a.out is present (e.g. created by GNU as above even if
1807 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1808 # file, even when creating an executable, so an execution test fails.
1809 # Remove possible default executable files to avoid this.
1810 #
1811 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1812 # Autoconf includes it.
1813 rm -f a.out a.exe b.out
1814
1815 # Find the native compiler
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   if test -n "$CC"; then
1830   ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837   for ac_exec_ext in '' $ac_executable_extensions; do
1838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841     break 2
1842   fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850   echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853   echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 fi
1858 if test -z "$ac_cv_prog_CC"; then
1859   ac_ct_CC=$CC
1860   # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865   echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867   if test -n "$ac_ct_CC"; then
1868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873   IFS=$as_save_IFS
1874   test -z "$as_dir" && as_dir=.
1875   for ac_exec_ext in '' $ac_executable_extensions; do
1876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877     ac_cv_prog_ac_ct_CC="gcc"
1878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879     break 2
1880   fi
1881 done
1882 done
1883
1884 fi
1885 fi
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891   echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1893 fi
1894
1895   CC=$ac_ct_CC
1896 else
1897   CC="$ac_cv_prog_CC"
1898 fi
1899
1900 if test -z "$CC"; then
1901   if test -n "$ac_tool_prefix"; then
1902   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$CC"; then
1910   ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_CC="${ac_tool_prefix}cc"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930   echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933   echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 fi
1938 if test -z "$ac_cv_prog_CC"; then
1939   ac_ct_CC=$CC
1940   # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945   echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947   if test -n "$ac_ct_CC"; then
1948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953   IFS=$as_save_IFS
1954   test -z "$as_dir" && as_dir=.
1955   for ac_exec_ext in '' $ac_executable_extensions; do
1956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957     ac_cv_prog_ac_ct_CC="cc"
1958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959     break 2
1960   fi
1961 done
1962 done
1963
1964 fi
1965 fi
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1970 else
1971   echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1973 fi
1974
1975   CC=$ac_ct_CC
1976 else
1977   CC="$ac_cv_prog_CC"
1978 fi
1979
1980 fi
1981 if test -z "$CC"; then
1982   # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992   ac_prog_rejected=no
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001        ac_prog_rejected=yes
2002        continue
2003      fi
2004     ac_cv_prog_CC="cc"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010
2011 if test $ac_prog_rejected = yes; then
2012   # We found a bogon in the path, so make sure we never use it.
2013   set dummy $ac_cv_prog_CC
2014   shift
2015   if test $# != 0; then
2016     # We chose a different compiler from the bogus one.
2017     # However, it has the same basename, so the bogon will be chosen
2018     # first if we set CC to just the basename; use the full file name.
2019     shift
2020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2021   fi
2022 fi
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034 fi
2035 if test -z "$CC"; then
2036   if test -n "$ac_tool_prefix"; then
2037   for ac_prog in cl
2038   do
2039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$CC"; then
2047   ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063 fi
2064 fi
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067   echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074     test -n "$CC" && break
2075   done
2076 fi
2077 if test -z "$CC"; then
2078   ac_ct_CC=$CC
2079   for ac_prog in cl
2080 do
2081   # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$ac_ct_CC"; then
2089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_ac_ct_CC="$ac_prog"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116   test -n "$ac_ct_CC" && break
2117 done
2118
2119   CC=$ac_ct_CC
2120 fi
2121
2122 fi
2123
2124
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133      "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136   (eval $ac_compiler --version </dev/null >&5) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141   (eval $ac_compiler -v </dev/null >&5) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146   (eval $ac_compiler -V </dev/null >&5) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }
2150
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h.  */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h.  */
2157
2158 int
2159 main ()
2160 {
2161
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2170 # of exeext.
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175   (eval $ac_link_default) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; then
2179   # Find the output, starting from the most likely.  This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # resort.
2182
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2185 ac_cv_exeext=
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2188 do
2189   test -f "$ac_file" || continue
2190   case $ac_file in
2191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192         ;;
2193     conftest.$ac_ext )
2194         # This is the source file.
2195         ;;
2196     [ab].out )
2197         # We found the default executable, but exeext='' is most
2198         # certainly right.
2199         break;;
2200     *.* )
2201         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202         # FIXME: I believe we export ac_cv_exeext for Libtool,
2203         # but it would be cool to find out if it's true.  Does anybody
2204         # maintain Libtool? --akim.
2205         export ac_cv_exeext
2206         break;;
2207     * )
2208         break;;
2209   esac
2210 done
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219    { (exit 77); exit 77; }; }
2220 fi
2221
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2225
2226 # Check the compiler produces executables we can run.  If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233   if { ac_try='./$ac_file'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239     cross_compiling=no
2240   else
2241     if test "$cross_compiling" = maybe; then
2242         cross_compiling=yes
2243     else
2244         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251     fi
2252   fi
2253 fi
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2256
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run.  If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2265
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269   (eval $ac_link) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; then
2273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 # `rm'.
2277 for ac_file in conftest.exe conftest conftest.*; do
2278   test -f "$ac_file" || continue
2279   case $ac_file in
2280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282           export ac_cv_exeext
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; then
2328   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332        break;;
2333   esac
2334 done
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 fi
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367 #ifndef __GNUC__
2368        choke me
2369 #endif
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377   (eval $ac_compile) 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -z "$ac_c_werror_flag"
2385                          || test ! -s conftest.err'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
2403 fi
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425
2426 int
2427 main ()
2428 {
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_cv_prog_cc_g=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_cv_prog_cc_g=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468   CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470   if test "$GCC" = yes; then
2471     CFLAGS="-g -O2"
2472   else
2473     CFLAGS="-g"
2474   fi
2475 else
2476   if test "$GCC" = yes; then
2477     CFLAGS="-O2"
2478   else
2479     CFLAGS=
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   ac_cv_prog_cc_stdc=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495 #include <stdarg.h>
2496 #include <stdio.h>
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2503      char **p;
2504      int i;
2505 {
2506   return p[i];
2507 }
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2509 {
2510   char *s;
2511   va_list v;
2512   va_start (v,p);
2513   s = g (p, va_arg (v,int));
2514   va_end (v);
2515   return s;
2516 }
2517
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2519    function prototypes and stuff, but not '\xHH' hex character constants.
2520    These don't provoke an error unfortunately, instead are silently treated
2521    as 'x'.  The following induces an error, until -std1 is added to get
2522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2523    array size at least.  It's necessary to write '\x00'==0 to get something
2524    that's true only with -std1.  */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2533 int
2534 main ()
2535 {
2536 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX                   -qlanglvl=ansi
2544 # Ultrix and OSF/1      -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2547 # SVR4                  -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550   CC="$ac_save_CC $ac_arg"
2551   rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag"
2561                          || test ! -s conftest.err'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   ac_cv_prog_cc_stdc=$ac_arg
2574 break
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 fi
2580 rm -f conftest.err conftest.$ac_objext
2581 done
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2583 CC=$ac_save_CC
2584
2585 fi
2586
2587 case "x$ac_cv_prog_cc_stdc" in
2588   x|xno)
2589     echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2591   *)
2592     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594     CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 esac
2596
2597 # Some people use a C++ compiler to compile C.  Since we use `exit',
2598 # in C++ we need to declare it.  In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #ifndef __cplusplus
2603   choke me
2604 #endif
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag"
2616                          || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   for ac_declaration in \
2629    '' \
2630    'extern "C" void std::exit (int) throw (); using std::exit;' \
2631    'extern "C" void std::exit (int); using std::exit;' \
2632    'extern "C" void exit (int) throw ();' \
2633    'extern "C" void exit (int);' \
2634    'void exit (int);'
2635 do
2636   cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642 $ac_declaration
2643 #include <stdlib.h>
2644 int
2645 main ()
2646 {
2647 exit (42);
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654   (eval $ac_compile) 2>conftest.er1
2655   ac_status=$?
2656   grep -v '^ *+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } &&
2661          { ac_try='test -z "$ac_c_werror_flag"
2662                          || test ! -s conftest.err'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; } &&
2668          { ac_try='test -s conftest.$ac_objext'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; }; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 continue
2680 fi
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 $ac_declaration
2689 int
2690 main ()
2691 {
2692 exit (42);
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_c_werror_flag"
2707                          || test ! -s conftest.err'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   break
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 done
2727 rm -f conftest*
2728 if test -n "$ac_declaration"; then
2729   echo '#ifdef __cplusplus' >>confdefs.h
2730   echo $ac_declaration      >>confdefs.h
2731   echo '#endif'             >>confdefs.h
2732 fi
2733
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746 if test "x$CC" != xcc; then
2747   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2749 else
2750   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2752 fi
2753 set dummy $CC; ac_cc=`echo $2 |
2754                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 int
2766 main ()
2767 {
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (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); } &&
2782    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); };
2787 then
2788   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2789   if test "x$CC" != xcc; then
2790     # Test first that cc exists at all.
2791     if { ac_try='cc -c conftest.$ac_ext >&5'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); };
2808       then
2809         # cc works too.
2810         :
2811       else
2812         # cc exists but doesn't like -o.
2813         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2814       fi
2815     fi
2816   fi
2817 else
2818   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2819 fi
2820 rm -f conftest*
2821
2822 fi
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824   echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2826 else
2827   echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2829
2830 cat >>confdefs.h <<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2832 _ACEOF
2833
2834 fi
2835
2836 # autoconf is lame and doesn't give us any substitution variable for this.
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2838   NO_MINUS_C_MINUS_O=yes
2839 else
2840   OUTPUT_OPTION='-o $@'
2841 fi
2842
2843
2844
2845 # -------------------------
2846 # Check C compiler features
2847 # -------------------------
2848
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2855 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2856 # On Suns, sometimes $CPP names a directory.
2857 if test -n "$CPP" && test -d "$CPP"; then
2858   CPP=
2859 fi
2860 if test -z "$CPP"; then
2861   if test "${ac_cv_prog_CPP+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864       # Double quotes because CPP needs to be expanded
2865     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866     do
2867       ac_preproc_ok=false
2868 for ac_c_preproc_warn_flag in '' yes
2869 do
2870   # Use a header file that comes with gcc, so configuring glibc
2871   # with a fresh cross-compiler works.
2872   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873   # <limits.h> exists even on freestanding compilers.
2874   # On the NeXT, cc -E runs the code through the compiler's parser,
2875   # not just through cpp. "Syntax error" is here to catch this case.
2876   cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h.  */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h.  */
2882 #ifdef __STDC__
2883 # include <limits.h>
2884 #else
2885 # include <assert.h>
2886 #endif
2887                      Syntax error
2888 _ACEOF
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } >/dev/null; then
2897   if test -s conftest.err; then
2898     ac_cpp_err=$ac_c_preproc_warn_flag
2899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900   else
2901     ac_cpp_err=
2902   fi
2903 else
2904   ac_cpp_err=yes
2905 fi
2906 if test -z "$ac_cpp_err"; then
2907   :
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912   # Broken: fails on valid input.
2913 continue
2914 fi
2915 rm -f conftest.err conftest.$ac_ext
2916
2917   # OK, works on sane cases.  Now check whether non-existent headers
2918   # can be detected and how.
2919   cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 #include <ac_nonexistent.h>
2926 _ACEOF
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } >/dev/null; then
2935   if test -s conftest.err; then
2936     ac_cpp_err=$ac_c_preproc_warn_flag
2937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938   else
2939     ac_cpp_err=
2940   fi
2941 else
2942   ac_cpp_err=yes
2943 fi
2944 if test -z "$ac_cpp_err"; then
2945   # Broken: success on invalid input.
2946 continue
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951   # Passes both tests.
2952 ac_preproc_ok=:
2953 break
2954 fi
2955 rm -f conftest.err conftest.$ac_ext
2956
2957 done
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2961   break
2962 fi
2963
2964     done
2965     ac_cv_prog_CPP=$CPP
2966
2967 fi
2968   CPP=$ac_cv_prog_CPP
2969 else
2970   ac_cv_prog_CPP=$CPP
2971 fi
2972 echo "$as_me:$LINENO: result: $CPP" >&5
2973 echo "${ECHO_T}$CPP" >&6
2974 ac_preproc_ok=false
2975 for ac_c_preproc_warn_flag in '' yes
2976 do
2977   # Use a header file that comes with gcc, so configuring glibc
2978   # with a fresh cross-compiler works.
2979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2980   # <limits.h> exists even on freestanding compilers.
2981   # On the NeXT, cc -E runs the code through the compiler's parser,
2982   # not just through cpp. "Syntax error" is here to catch this case.
2983   cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2994                      Syntax error
2995 _ACEOF
2996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } >/dev/null; then
3004   if test -s conftest.err; then
3005     ac_cpp_err=$ac_c_preproc_warn_flag
3006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3007   else
3008     ac_cpp_err=
3009   fi
3010 else
3011   ac_cpp_err=yes
3012 fi
3013 if test -z "$ac_cpp_err"; then
3014   :
3015 else
3016   echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019   # Broken: fails on valid input.
3020 continue
3021 fi
3022 rm -f conftest.err conftest.$ac_ext
3023
3024   # OK, works on sane cases.  Now check whether non-existent headers
3025   # can be detected and how.
3026   cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036   ac_status=$?
3037   grep -v '^ *+' conftest.er1 >conftest.err
3038   rm -f conftest.er1
3039   cat conftest.err >&5
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); } >/dev/null; then
3042   if test -s conftest.err; then
3043     ac_cpp_err=$ac_c_preproc_warn_flag
3044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045   else
3046     ac_cpp_err=
3047   fi
3048 else
3049   ac_cpp_err=yes
3050 fi
3051 if test -z "$ac_cpp_err"; then
3052   # Broken: success on invalid input.
3053 continue
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058   # Passes both tests.
3059 ac_preproc_ok=:
3060 break
3061 fi
3062 rm -f conftest.err conftest.$ac_ext
3063
3064 done
3065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3066 rm -f conftest.err conftest.$ac_ext
3067 if $ac_preproc_ok; then
3068   :
3069 else
3070   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3071 See \`config.log' for more details." >&5
3072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3073 See \`config.log' for more details." >&2;}
3074    { (exit 1); exit 1; }; }
3075 fi
3076
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
3083
3084 echo "$as_me:$LINENO: checking for inline" >&5
3085 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3086 if test "${ac_cv_c_inline+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   ac_cv_c_inline=no
3090 for ac_kw in inline __inline__ __inline; do
3091   cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097 #ifndef __cplusplus
3098 typedef int foo_t;
3099 static $ac_kw foo_t static_foo () {return 0; }
3100 $ac_kw foo_t foo () {return 0; }
3101 #endif
3102
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106   (eval $ac_compile) 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_c_werror_flag"
3114                          || test ! -s conftest.err'
3115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116   (eval $ac_try) 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   ac_cv_c_inline=$ac_kw; break
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 fi
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 done
3134
3135 fi
3136 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3137 echo "${ECHO_T}$ac_cv_c_inline" >&6
3138
3139
3140 case $ac_cv_c_inline in
3141   inline | yes) ;;
3142   *)
3143     case $ac_cv_c_inline in
3144       no) ac_val=;;
3145       *) ac_val=$ac_cv_c_inline;;
3146     esac
3147     cat >>confdefs.h <<_ACEOF
3148 #ifndef __cplusplus
3149 #define inline $ac_val
3150 #endif
3151 _ACEOF
3152     ;;
3153 esac
3154
3155
3156 echo "$as_me:$LINENO: checking for long long int" >&5
3157 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3158 if test "${ac_cv_c_long_long+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161   cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171 long long int i;
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178   (eval $ac_compile) 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } &&
3185          { ac_try='test -z "$ac_c_werror_flag"
3186                          || test ! -s conftest.err'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; } &&
3192          { ac_try='test -s conftest.$ac_objext'
3193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194   (eval $ac_try) 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; }; then
3198   ac_cv_c_long_long=yes
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ac_cv_c_long_long=no
3204 fi
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3208 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3209   if test $ac_cv_c_long_long = yes; then
3210
3211 cat >>confdefs.h <<\_ACEOF
3212 #define HAVE_LONG_LONG 1
3213 _ACEOF
3214
3215   fi
3216 echo "$as_me:$LINENO: checking for __int64" >&5
3217 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3218 if test "${ac_cv_c___int64+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227
3228 int
3229 main ()
3230 {
3231 __int64 i;
3232   ;
3233   return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238   (eval $ac_compile) 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag"
3246                          || test ! -s conftest.err'
3247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248   (eval $ac_try) 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }; } &&
3252          { ac_try='test -s conftest.$ac_objext'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv_c___int64=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 ac_cv_c___int64=no
3264 fi
3265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3268 echo "${ECHO_T}$ac_cv_c___int64" >&6
3269   if test $ac_cv_c___int64 = yes; then
3270
3271 cat >>confdefs.h <<\_ACEOF
3272 #define HAVE___INT64 1
3273 _ACEOF
3274
3275   fi
3276
3277
3278 # sizeof(char) is 1 by definition.
3279 echo "$as_me:$LINENO: checking size of void *" >&5
3280 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3281 if test "${ac_cv_sizeof_void_p+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3285   cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include "confdefs.h"
3292 #include <sys/types.h>
3293
3294
3295 int
3296 main ()
3297 {
3298 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305   (eval $ac_compile) 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } &&
3312          { ac_try='test -z "$ac_c_werror_flag"
3313                          || test ! -s conftest.err'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; } &&
3319          { ac_try='test -s conftest.$ac_objext'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; }; then
3325   ac_cv_sizeof_void_p=$ac_size
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 fi
3331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3332   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3333 done
3334
3335 fi
3336
3337 if test x$ac_cv_sizeof_void_p = x ; then
3338   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3339 echo "$as_me: error: cannot determine a size for void *" >&2;}
3340    { (exit 1); exit 1; }; }
3341 fi
3342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3343 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3347 _ACEOF
3348
3349
3350 echo "$as_me:$LINENO: checking size of short" >&5
3351 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3352 if test "${ac_cv_sizeof_short+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #include "confdefs.h"
3363 #include <sys/types.h>
3364
3365
3366 int
3367 main ()
3368 {
3369 switch (0) case 0: case (sizeof (short) == $ac_size):;
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376   (eval $ac_compile) 2>conftest.er1
3377   ac_status=$?
3378   grep -v '^ *+' conftest.er1 >conftest.err
3379   rm -f conftest.er1
3380   cat conftest.err >&5
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); } &&
3383          { ac_try='test -z "$ac_c_werror_flag"
3384                          || test ! -s conftest.err'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; } &&
3390          { ac_try='test -s conftest.$ac_objext'
3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392   (eval $ac_try) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396   ac_cv_sizeof_short=$ac_size
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 fi
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403   if test x$ac_cv_sizeof_short != x ; then break; fi
3404 done
3405
3406 fi
3407
3408 if test x$ac_cv_sizeof_short = x ; then
3409   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3410 echo "$as_me: error: cannot determine a size for short" >&2;}
3411    { (exit 1); exit 1; }; }
3412 fi
3413 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3414 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define SIZEOF_SHORT $ac_cv_sizeof_short
3418 _ACEOF
3419
3420
3421 echo "$as_me:$LINENO: checking size of int" >&5
3422 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3423 if test "${ac_cv_sizeof_int+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433 #include "confdefs.h"
3434 #include <sys/types.h>
3435
3436
3437 int
3438 main ()
3439 {
3440 switch (0) case 0: case (sizeof (int) == $ac_size):;
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447   (eval $ac_compile) 2>conftest.er1
3448   ac_status=$?
3449   grep -v '^ *+' conftest.er1 >conftest.err
3450   rm -f conftest.er1
3451   cat conftest.err >&5
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } &&
3454          { ac_try='test -z "$ac_c_werror_flag"
3455                          || test ! -s conftest.err'
3456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457   (eval $ac_try) 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }; } &&
3461          { ac_try='test -s conftest.$ac_objext'
3462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463   (eval $ac_try) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; }; then
3467   ac_cv_sizeof_int=$ac_size
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 fi
3473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474   if test x$ac_cv_sizeof_int != x ; then break; fi
3475 done
3476
3477 fi
3478
3479 if test x$ac_cv_sizeof_int = x ; then
3480   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3481 echo "$as_me: error: cannot determine a size for int" >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3485 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3486
3487 cat >>confdefs.h <<_ACEOF
3488 #define SIZEOF_INT $ac_cv_sizeof_int
3489 _ACEOF
3490
3491
3492 echo "$as_me:$LINENO: checking size of long" >&5
3493 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3494 if test "${ac_cv_sizeof_long+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3498   cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3506
3507
3508 int
3509 main ()
3510 {
3511 switch (0) case 0: case (sizeof (long) == $ac_size):;
3512   ;
3513   return 0;
3514 }
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518   (eval $ac_compile) 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } &&
3525          { ac_try='test -z "$ac_c_werror_flag"
3526                          || test ! -s conftest.err'
3527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528   (eval $ac_try) 2>&5
3529   ac_status=$?
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); }; } &&
3532          { ac_try='test -s conftest.$ac_objext'
3533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534   (eval $ac_try) 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); }; }; then
3538   ac_cv_sizeof_long=$ac_size
3539 else
3540   echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 fi
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545   if test x$ac_cv_sizeof_long != x ; then break; fi
3546 done
3547
3548 fi
3549
3550 if test x$ac_cv_sizeof_long = x ; then
3551   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3552 echo "$as_me: error: cannot determine a size for long" >&2;}
3553    { (exit 1); exit 1; }; }
3554 fi
3555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3556 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3557
3558 cat >>confdefs.h <<_ACEOF
3559 #define SIZEOF_LONG $ac_cv_sizeof_long
3560 _ACEOF
3561
3562
3563 if test $ac_cv_c_long_long = yes; then
3564   echo "$as_me:$LINENO: checking size of long long" >&5
3565 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3566 if test "${ac_cv_sizeof_long_long+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include "confdefs.h"
3577 #include <sys/types.h>
3578
3579
3580 int
3581 main ()
3582 {
3583 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590   (eval $ac_compile) 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -z "$ac_c_werror_flag"
3598                          || test ! -s conftest.err'
3599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600   (eval $ac_try) 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }; } &&
3604          { ac_try='test -s conftest.$ac_objext'
3605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606   (eval $ac_try) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; }; then
3610   ac_cv_sizeof_long_long=$ac_size
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 fi
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3618 done
3619
3620 fi
3621
3622 if test x$ac_cv_sizeof_long_long = x ; then
3623   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3624 echo "$as_me: error: cannot determine a size for long long" >&2;}
3625    { (exit 1); exit 1; }; }
3626 fi
3627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3628 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3629
3630 cat >>confdefs.h <<_ACEOF
3631 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3632 _ACEOF
3633
3634
3635 fi
3636 if test $ac_cv_c___int64 = yes; then
3637   echo "$as_me:$LINENO: checking size of __int64" >&5
3638 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3639 if test "${ac_cv_sizeof___int64+set}" = set; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3643   cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 #include "confdefs.h"
3650 #include <sys/types.h>
3651
3652
3653 int
3654 main ()
3655 {
3656 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663   (eval $ac_compile) 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -z "$ac_c_werror_flag"
3671                          || test ! -s conftest.err'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; } &&
3677          { ac_try='test -s conftest.$ac_objext'
3678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679   (eval $ac_try) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683   ac_cv_sizeof___int64=$ac_size
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 fi
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3691 done
3692
3693 fi
3694
3695 if test x$ac_cv_sizeof___int64 = x ; then
3696   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3697 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3698    { (exit 1); exit 1; }; }
3699 fi
3700 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3701 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3702
3703 cat >>confdefs.h <<_ACEOF
3704 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3705 _ACEOF
3706
3707
3708 fi
3709
3710 # ---------------------
3711 # Warnings and checking
3712 # ---------------------
3713
3714 # Check $CC warning features (if it's GCC).
3715 # We want to use -pedantic, but we don't want warnings about
3716 # * 'long long'
3717 # * variadic macros
3718 # So, we only use -pedantic if we can disable those warnings.
3719
3720 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3721 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3722 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   save_CFLAGS="$CFLAGS"
3726   CFLAGS="-Wno-long-long"
3727   cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>conftest.er1
3738   ac_status=$?
3739   grep -v '^ *+' conftest.er1 >conftest.err
3740   rm -f conftest.er1
3741   cat conftest.err >&5
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); } &&
3744          { ac_try='test -z "$ac_c_werror_flag"
3745                          || test ! -s conftest.err'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_cv_prog_cc_w_no_long_long=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_cv_prog_cc_w_no_long_long=no
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765   CFLAGS="$save_CFLAGS"
3766
3767 fi
3768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3769 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3770
3771 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3772 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3773 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   save_CFLAGS="$CFLAGS"
3777   CFLAGS="-Wno-variadic-macros"
3778   cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788   (eval $ac_compile) 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -z "$ac_c_werror_flag"
3796                          || test ! -s conftest.err'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; } &&
3802          { ac_try='test -s conftest.$ac_objext'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; }; then
3808   ac_cv_prog_cc_w_no_variadic_macros=yes
3809 else
3810   echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 ac_cv_prog_cc_w_no_variadic_macros=no
3814 fi
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816   CFLAGS="$save_CFLAGS"
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3820 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3821
3822 strict1_warn=
3823 if test $ac_cv_prog_cc_w_no_long_long = yes \
3824    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3825   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3826 fi
3827
3828
3829 # Add -Wold-style-definition if it's accepted
3830 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3831 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3832 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   save_CFLAGS="$CFLAGS"
3836   CFLAGS="-Wold-style-definition"
3837   cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h.  */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h.  */
3843
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847   (eval $ac_compile) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"
3855                          || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_cv_prog_cc_w_old_style_definition=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_prog_cc_w_old_style_definition=no
3873 fi
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875   CFLAGS="$save_CFLAGS"
3876
3877 fi
3878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3879 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3880 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3881   strict1_warn="${strict1_warn} -Wold-style-definition"
3882 fi
3883
3884 # Enable -Werror, period.
3885 # Check whether --enable-werror_always or --disable-werror_always was given.
3886 if test "${enable_werror_always+set}" = set; then
3887   enableval="$enable_werror_always"
3888
3889 else
3890   enable_werror_always=no
3891 fi;
3892 if test x${enable_werror_always} = xyes ; then
3893   strict1_warn="${strict1_warn} -Werror"
3894   WERROR=-Werror
3895 fi
3896
3897 # If the native compiler is GCC, we can enable warnings even in stage1.
3898 # That's useful for people building cross-compilers, or just running a
3899 # quick `make'.
3900 warn_cflags=
3901 if test "x$GCC" = "xyes"; then
3902   warn_cflags='$(GCC_WARN_CFLAGS)'
3903 fi
3904
3905
3906 # Enable -Werror in bootstrap stage2 and later.
3907 # Check whether --enable-werror or --disable-werror was given.
3908 if test "${enable_werror+set}" = set; then
3909   enableval="$enable_werror"
3910
3911 else
3912   if test x$is_release = x ; then
3913   # Default to "yes" on development branches.
3914   enable_werror=yes
3915 else
3916   # Default to "no" on release branches.
3917   enable_werror=no
3918 fi
3919 fi;
3920 if test x$enable_werror = xyes ; then
3921   WERROR=-Werror
3922 fi
3923
3924
3925 # Enable expensive internal checks
3926 # Check whether --enable-checking or --disable-checking was given.
3927 if test "${enable_checking+set}" = set; then
3928   enableval="$enable_checking"
3929   ac_checking_flags="${enableval}"
3930 else
3931
3932 # Determine the default checks.
3933 if test x$is_release = x ; then
3934   ac_checking_flags=yes
3935 else
3936   ac_checking_flags=release
3937 fi
3938 fi;
3939 ac_assert_checking=1
3940 ac_checking=
3941 ac_tree_checking=
3942 ac_rtl_checking=
3943 ac_rtlflag_checking=
3944 ac_gc_checking=
3945 ac_gc_always_collect=
3946 ac_fold_checking=
3947 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3948 for check in $ac_checking_flags
3949 do
3950         case $check in
3951         yes)            ac_assert_checking=1 ; ac_checking=1 ;
3952                         ac_tree_checking=1 ; ac_gc_checking=1 ;
3953                         ac_rtlflag_checking=1 ;;
3954         no)             ac_assert_checking= ; ac_checking= ;
3955                         ac_tree_checking= ; ac_rtl_checking= ;
3956                         ac_rtlflag_checking= ; ac_gc_checking= ;
3957                         ac_gc_always_collect= ; ac_fold_checking= ;;
3958         all)            ac_assert_checking=1 ; ac_checking=1 ;
3959                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
3960                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
3961                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
3962         release)        ac_assert_checking=1 ;;
3963         assert)         ac_assert_checking=1 ;;
3964         fold)           ac_fold_checking=1 ;;
3965         gc)             ac_gc_checking=1 ;;
3966         gcac)           ac_gc_always_collect=1 ;;
3967         misc)           ac_checking=1 ;;
3968         rtlflag)        ac_rtlflag_checking=1 ;;
3969         rtl)            ac_rtl_checking=1 ;;
3970         tree)           ac_tree_checking=1 ;;
3971         valgrind)       ac_checking_valgrind=1 ;;
3972         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3973 echo "$as_me: error: unknown check category $check" >&2;}
3974    { (exit 1); exit 1; }; } ;;
3975         esac
3976 done
3977 IFS="$ac_save_IFS"
3978
3979 nocommon_flag=""
3980 if test x$ac_checking != x ; then
3981
3982 cat >>confdefs.h <<\_ACEOF
3983 #define ENABLE_CHECKING 1
3984 _ACEOF
3985
3986   nocommon_flag=-fno-common
3987 fi
3988
3989 if test x$ac_assert_checking != x ; then
3990
3991 cat >>confdefs.h <<\_ACEOF
3992 #define ENABLE_ASSERT_CHECKING 1
3993 _ACEOF
3994
3995 fi
3996 if test x$ac_tree_checking != x ; then
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define ENABLE_TREE_CHECKING 1
4000 _ACEOF
4001
4002   TREEBROWSER=tree-browser.o
4003 fi
4004
4005 if test x$ac_rtl_checking != x ; then
4006
4007 cat >>confdefs.h <<\_ACEOF
4008 #define ENABLE_RTL_CHECKING 1
4009 _ACEOF
4010
4011 fi
4012 if test x$ac_rtlflag_checking != x ; then
4013
4014 cat >>confdefs.h <<\_ACEOF
4015 #define ENABLE_RTL_FLAG_CHECKING 1
4016 _ACEOF
4017
4018 fi
4019 if test x$ac_gc_checking != x ; then
4020
4021 cat >>confdefs.h <<\_ACEOF
4022 #define ENABLE_GC_CHECKING 1
4023 _ACEOF
4024
4025 fi
4026 if test x$ac_gc_always_collect != x ; then
4027
4028 cat >>confdefs.h <<\_ACEOF
4029 #define ENABLE_GC_ALWAYS_COLLECT 1
4030 _ACEOF
4031
4032 fi
4033 if test x$ac_fold_checking != x ; then
4034
4035 cat >>confdefs.h <<\_ACEOF
4036 #define ENABLE_FOLD_CHECKING 1
4037 _ACEOF
4038
4039 fi
4040 valgrind_path_defines=
4041 valgrind_command=
4042
4043
4044 echo "$as_me:$LINENO: checking for egrep" >&5
4045 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4046 if test "${ac_cv_prog_egrep+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4050     then ac_cv_prog_egrep='grep -E'
4051     else ac_cv_prog_egrep='egrep'
4052     fi
4053 fi
4054 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4055 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4056  EGREP=$ac_cv_prog_egrep
4057
4058
4059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4061 if test "${ac_cv_header_stdc+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #include <stdlib.h>
4071 #include <stdarg.h>
4072 #include <string.h>
4073 #include <float.h>
4074
4075 int
4076 main ()
4077 {
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085   (eval $ac_compile) 2>conftest.er1
4086   ac_status=$?
4087   grep -v '^ *+' conftest.er1 >conftest.err
4088   rm -f conftest.er1
4089   cat conftest.err >&5
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } &&
4092          { ac_try='test -z "$ac_c_werror_flag"
4093                          || test ! -s conftest.err'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; } &&
4099          { ac_try='test -s conftest.$ac_objext'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   ac_cv_header_stdc=yes
4106 else
4107   echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 ac_cv_header_stdc=no
4111 fi
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4113
4114 if test $ac_cv_header_stdc = yes; then
4115   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <string.h>
4123
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126   $EGREP "memchr" >/dev/null 2>&1; then
4127   :
4128 else
4129   ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest*
4132
4133 fi
4134
4135 if test $ac_cv_header_stdc = yes; then
4136   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <stdlib.h>
4144
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147   $EGREP "free" >/dev/null 2>&1; then
4148   :
4149 else
4150   ac_cv_header_stdc=no
4151 fi
4152 rm -f conftest*
4153
4154 fi
4155
4156 if test $ac_cv_header_stdc = yes; then
4157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158   if test "$cross_compiling" = yes; then
4159   :
4160 else
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <ctype.h>
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4171 #else
4172 # define ISLOWER(c) \
4173                    (('a' <= (c) && (c) <= 'i') \
4174                      || ('j' <= (c) && (c) <= 'r') \
4175                      || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #endif
4178
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 int
4181 main ()
4182 {
4183   int i;
4184   for (i = 0; i < 256; i++)
4185     if (XOR (islower (i), ISLOWER (i))
4186         || toupper (i) != TOUPPER (i))
4187       exit(2);
4188   exit (0);
4189 }
4190 _ACEOF
4191 rm -f conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193   (eval $ac_link) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   :
4203 else
4204   echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 fi
4214 fi
4215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4217 if test $ac_cv_header_stdc = yes; then
4218
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4221 _ACEOF
4222
4223 fi
4224
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236                   inttypes.h stdint.h unistd.h
4237 do
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 $ac_includes_default
4251
4252 #include <$ac_header>
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256   (eval $ac_compile) 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag"
4264                          || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest.$ac_objext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   eval "$as_ac_Header=yes"
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 eval "$as_ac_Header=no"
4282 fi
4283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4288   cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4290 _ACEOF
4291
4292 fi
4293
4294 done
4295
4296
4297 if test "${ac_cv_header_valgrind_h+set}" = set; then
4298   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4299 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4300 if test "${ac_cv_header_valgrind_h+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 fi
4303 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4304 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4305 else
4306   # Is the header compilable?
4307 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4308 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316 #include <valgrind.h>
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320   (eval $ac_compile) 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag"
4328                          || test ! -s conftest.err'
4329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330   (eval $ac_try) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; } &&
4334          { ac_try='test -s conftest.$ac_objext'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   ac_header_compiler=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 ac_header_compiler=no
4346 fi
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4349 echo "${ECHO_T}$ac_header_compiler" >&6
4350
4351 # Is the header present?
4352 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4353 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 #include <valgrind.h>
4361 _ACEOF
4362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364   ac_status=$?
4365   grep -v '^ *+' conftest.er1 >conftest.err
4366   rm -f conftest.er1
4367   cat conftest.err >&5
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); } >/dev/null; then
4370   if test -s conftest.err; then
4371     ac_cpp_err=$ac_c_preproc_warn_flag
4372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4373   else
4374     ac_cpp_err=
4375   fi
4376 else
4377   ac_cpp_err=yes
4378 fi
4379 if test -z "$ac_cpp_err"; then
4380   ac_header_preproc=yes
4381 else
4382   echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385   ac_header_preproc=no
4386 fi
4387 rm -f conftest.err conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389 echo "${ECHO_T}$ac_header_preproc" >&6
4390
4391 # So?  What about this header?
4392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393   yes:no: )
4394     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4395 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4397 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4398     ac_header_preproc=yes
4399     ;;
4400   no:yes:* )
4401     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4402 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4403     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4404 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4405     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4406 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4407     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4408 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4409     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4410 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4411     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4412 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4413     (
4414       cat <<\_ASBOX
4415 ## ------------------------------------------ ##
4416 ## Report this to the AC_PACKAGE_NAME lists.  ##
4417 ## ------------------------------------------ ##
4418 _ASBOX
4419     ) |
4420       sed "s/^/$as_me: WARNING:     /" >&2
4421     ;;
4422 esac
4423 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4424 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4425 if test "${ac_cv_header_valgrind_h+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   ac_cv_header_valgrind_h=$ac_header_preproc
4429 fi
4430 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4431 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4432
4433 fi
4434 if test $ac_cv_header_valgrind_h = yes; then
4435   have_valgrind_h=yes
4436 else
4437   have_valgrind_h=no
4438 fi
4439
4440
4441
4442 if test x$ac_checking_valgrind != x ; then
4443   # It is certainly possible that there's valgrind but no valgrind.h.
4444   # GCC relies on making annotations so we must have both.
4445   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4446 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4447   cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 #include <valgrind/memcheck.h>
4454 #ifndef VALGRIND_DISCARD
4455 #error VALGRIND_DISCARD not defined
4456 #endif
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } >/dev/null; then
4466   if test -s conftest.err; then
4467     ac_cpp_err=$ac_c_preproc_warn_flag
4468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469   else
4470     ac_cpp_err=
4471   fi
4472 else
4473   ac_cpp_err=yes
4474 fi
4475 if test -z "$ac_cpp_err"; then
4476   gcc_cv_header_valgrind_memcheck_h=yes
4477 else
4478   echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481   gcc_cv_header_valgrind_memcheck_h=no
4482 fi
4483 rm -f conftest.err conftest.$ac_ext
4484   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4485 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4486   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4487 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4488   cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 #include <memcheck.h>
4495 #ifndef VALGRIND_DISCARD
4496 #error VALGRIND_DISCARD not defined
4497 #endif
4498 _ACEOF
4499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4501   ac_status=$?
4502   grep -v '^ *+' conftest.er1 >conftest.err
4503   rm -f conftest.er1
4504   cat conftest.err >&5
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } >/dev/null; then
4507   if test -s conftest.err; then
4508     ac_cpp_err=$ac_c_preproc_warn_flag
4509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4510   else
4511     ac_cpp_err=
4512   fi
4513 else
4514   ac_cpp_err=yes
4515 fi
4516 if test -z "$ac_cpp_err"; then
4517   gcc_cv_header_memcheck_h=yes
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522   gcc_cv_header_memcheck_h=no
4523 fi
4524 rm -f conftest.err conftest.$ac_ext
4525   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4526 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4527
4528 # Prepare PATH_SEPARATOR.
4529 # The user is always right.
4530 if test "${PATH_SEPARATOR+set}" != set; then
4531   echo "#! /bin/sh" >conf$$.sh
4532   echo  "exit 0"   >>conf$$.sh
4533   chmod +x conf$$.sh
4534   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4535     PATH_SEPARATOR=';'
4536   else
4537     PATH_SEPARATOR=:
4538   fi
4539   rm -f conf$$.sh
4540 fi
4541
4542 # Find out how to test for executable files. Don't use a zero-byte file,
4543 # as systems may use methods other than mode bits to determine executability.
4544 cat >conf$$.file <<_ASEOF
4545 #! /bin/sh
4546 exit 0
4547 _ASEOF
4548 chmod +x conf$$.file
4549 if test -x conf$$.file >/dev/null 2>&1; then
4550   ac_executable_p="test -x"
4551 else
4552   ac_executable_p="test -f"
4553 fi
4554 rm -f conf$$.file
4555
4556 # Extract the first word of "valgrind", so it can be a program name with args.
4557 set dummy valgrind; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_path_valgrind_path+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   case "$valgrind_path" in
4564   [\\/]* | ?:[\\/]*)
4565     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4566     ;;
4567   *)
4568     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4569     for ac_dir in $PATH; do
4570       IFS="$ac_save_IFS"
4571       test -z "$ac_dir" && ac_dir=.
4572       for ac_exec_ext in '' $ac_executable_extensions; do
4573         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4574           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4575             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4576             break 2
4577           fi
4578         fi
4579       done
4580     done
4581     IFS="$ac_save_IFS"
4582     ;;
4583 esac
4584 fi
4585 valgrind_path="$ac_cv_path_valgrind_path"
4586 if test -n "$valgrind_path"; then
4587   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4588 echo "${ECHO_T}$valgrind_path" >&6
4589 else
4590   echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6
4592 fi
4593
4594   if test "x$valgrind_path" = "x" \
4595     || (test $have_valgrind_h = no \
4596         && test $gcc_cv_header_memcheck_h = no \
4597         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4598         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4599 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4600    { (exit 1); exit 1; }; }
4601   fi
4602   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4603   valgrind_command="$valgrind_path -q"
4604
4605 cat >>confdefs.h <<\_ACEOF
4606 #define ENABLE_VALGRIND_CHECKING 1
4607 _ACEOF
4608
4609   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4610
4611 cat >>confdefs.h <<\_ACEOF
4612 #define HAVE_VALGRIND_MEMCHECK_H 1
4613 _ACEOF
4614
4615   fi
4616   if test $gcc_cv_header_memcheck_h = yes; then
4617
4618 cat >>confdefs.h <<\_ACEOF
4619 #define HAVE_MEMCHECK_H 1
4620 _ACEOF
4621
4622   fi
4623 fi
4624
4625
4626
4627 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4628 if test "${enable_mapped_location+set}" = set; then
4629   enableval="$enable_mapped_location"
4630
4631 else
4632   enable_mapped_location=no
4633 fi;
4634
4635 if test "$enable_mapped_location" = yes ; then
4636
4637 cat >>confdefs.h <<\_ACEOF
4638 #define USE_MAPPED_LOCATION 1
4639 _ACEOF
4640
4641 fi
4642
4643 # Enable code coverage collection
4644 # Check whether --enable-coverage or --disable-coverage was given.
4645 if test "${enable_coverage+set}" = set; then
4646   enableval="$enable_coverage"
4647   case "${enableval}" in
4648   yes|noopt)
4649     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4650     ;;
4651   opt)
4652     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4653     ;;
4654   no)
4655     # a.k.a. --disable-coverage
4656     coverage_flags=""
4657     ;;
4658   *)
4659     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4660 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4661    { (exit 1); exit 1; }; }
4662     ;;
4663 esac
4664 else
4665   coverage_flags=""
4666 fi;
4667
4668
4669 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4670 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4671   enableval="$enable_gather_detailed_mem_stats"
4672
4673 else
4674   enable_gather_detailed_mem_stats=no
4675 fi;
4676 if test x$enable_gather_detailed_mem_stats = xyes ; then
4677
4678 cat >>confdefs.h <<\_ACEOF
4679 #define GATHER_STATISTICS 1
4680 _ACEOF
4681
4682 fi
4683
4684 # -------------------------------
4685 # Miscenalleous configure options
4686 # -------------------------------
4687
4688 # With stabs
4689
4690 # Check whether --with-stabs or --without-stabs was given.
4691 if test "${with_stabs+set}" = set; then
4692   withval="$with_stabs"
4693   stabs="$with_stabs"
4694 else
4695   stabs=no
4696 fi;
4697
4698 # Determine whether or not multilibs are enabled.
4699 # Check whether --enable-multilib or --disable-multilib was given.
4700 if test "${enable_multilib+set}" = set; then
4701   enableval="$enable_multilib"
4702
4703 else
4704   enable_multilib=yes
4705 fi;
4706
4707
4708 # Enable __cxa_atexit for C++.
4709 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4710 if test "${enable___cxa_atexit+set}" = set; then
4711   enableval="$enable___cxa_atexit"
4712
4713 fi;
4714
4715 # Enable threads
4716 # Pass with no value to take the default
4717 # Pass with a value to specify a thread package
4718 # Check whether --enable-threads or --disable-threads was given.
4719 if test "${enable_threads+set}" = set; then
4720   enableval="$enable_threads"
4721
4722 else
4723   enable_threads=''
4724 fi;
4725
4726 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4727 if test "${enable_objc_gc+set}" = set; then
4728   enableval="$enable_objc_gc"
4729   if test x$enable_objc_gc = xno; then
4730         objc_boehm_gc=''
4731 else
4732         objc_boehm_gc=1
4733 fi
4734 else
4735   objc_boehm_gc=''
4736 fi;
4737
4738
4739 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4740 if test "${with_dwarf2+set}" = set; then
4741   withval="$with_dwarf2"
4742   dwarf2="$with_dwarf2"
4743 else
4744   dwarf2=no
4745 fi;
4746
4747 # Check whether --enable-shared or --disable-shared was given.
4748 if test "${enable_shared+set}" = set; then
4749   enableval="$enable_shared"
4750
4751   case $enable_shared in
4752   yes | no) ;;
4753   *)
4754     enable_shared=no
4755     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4756     for pkg in $enableval; do
4757       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4758         enable_shared=yes
4759       fi
4760     done
4761     IFS="$ac_save_ifs"
4762     ;;
4763   esac
4764
4765 else
4766   enable_shared=yes
4767 fi;
4768
4769
4770
4771 # Check whether --with-sysroot or --without-sysroot was given.
4772 if test "${with_sysroot+set}" = set; then
4773   withval="$with_sysroot"
4774
4775  case ${with_sysroot} in
4776  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4777  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4778  esac
4779
4780  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4781  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4782
4783  if test "x$exec_prefix" = xNONE; then
4784   if test "x$prefix" = xNONE; then
4785    test_prefix=/usr/local
4786   else
4787    test_prefix=$prefix
4788   fi
4789  else
4790   test_prefix=$exec_prefix
4791  fi
4792  case ${TARGET_SYSTEM_ROOT} in
4793  "${test_prefix}"|"${test_prefix}/"*|\
4794  '${exec_prefix}'|'${exec_prefix}/'*)
4795    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4796    TARGET_SYSTEM_ROOT_DEFINE="$t"
4797    ;;
4798  esac
4799
4800 else
4801
4802  TARGET_SYSTEM_ROOT=
4803  TARGET_SYSTEM_ROOT_DEFINE=
4804  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4805
4806 fi;
4807
4808
4809
4810
4811 # Build with intermodule optimisations
4812 # Check whether --enable-intermodule or --disable-intermodule was given.
4813 if test "${enable_intermodule+set}" = set; then
4814   enableval="$enable_intermodule"
4815   case ${enable_intermodule} in
4816   yes) onestep="-onestep";;
4817   *) onestep="";;
4818 esac
4819 else
4820   onestep=""
4821 fi;
4822
4823
4824 # Sanity check enable_languages in case someone does not run the toplevel
4825 # configure # script.
4826 # Check whether --enable-languages or --disable-languages was given.
4827 if test "${enable_languages+set}" = set; then
4828   enableval="$enable_languages"
4829   case ,${enable_languages}, in
4830        ,,|,yes,)
4831                 # go safe -- we cannot be much sure without the toplevel
4832                 # configure's
4833                 # analysis of which target libs are present and usable
4834                 enable_languages=c
4835                 ;;
4836          *,all,*)
4837                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4838 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4839    { (exit 1); exit 1; }; }
4840                 ;;
4841         *,c,*)
4842                 ;;
4843         *)
4844                 enable_languages=c,${enable_languages}
4845                 ;;
4846 esac
4847 else
4848   enable_languages=c
4849 fi;
4850
4851 subdirs=
4852 for lang in ${srcdir}/*/config-lang.in
4853 do
4854         case $lang in
4855         # The odd quoting in the next line works around
4856         # an apparent bug in bash 1.12 on linux.
4857         ${srcdir}/[*]/config-lang.in) ;;
4858         *)
4859           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4860           if test "x$lang_alias" = x
4861           then
4862                 echo "$lang doesn't set \$language." 1>&2
4863                 exit 1
4864           fi
4865           case ",$enable_languages," in
4866           *,$lang_alias,*)
4867             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4868           esac
4869           ;;
4870         esac
4871 done
4872
4873
4874 # -------------------------
4875 # Checks for other programs
4876 # -------------------------
4877
4878 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4879 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4880 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4881 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   cat >conftest.make <<\_ACEOF
4885 all:
4886         @echo 'ac_maketemp="$(MAKE)"'
4887 _ACEOF
4888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4889 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4890 if test -n "$ac_maketemp"; then
4891   eval ac_cv_prog_make_${ac_make}_set=yes
4892 else
4893   eval ac_cv_prog_make_${ac_make}_set=no
4894 fi
4895 rm -f conftest.make
4896 fi
4897 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4898   echo "$as_me:$LINENO: result: yes" >&5
4899 echo "${ECHO_T}yes" >&6
4900   SET_MAKE=
4901 else
4902   echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4904   SET_MAKE="MAKE=${MAKE-make}"
4905 fi
4906
4907
4908 # Find some useful tools
4909 for ac_prog in gawk mawk nawk awk
4910 do
4911   # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_AWK+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   if test -n "$AWK"; then
4919   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_exec_ext in '' $ac_executable_extensions; do
4927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928     ac_cv_prog_AWK="$ac_prog"
4929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933 done
4934
4935 fi
4936 fi
4937 AWK=$ac_cv_prog_AWK
4938 if test -n "$AWK"; then
4939   echo "$as_me:$LINENO: result: $AWK" >&5
4940 echo "${ECHO_T}$AWK" >&6
4941 else
4942   echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4944 fi
4945
4946   test -n "$AWK" && break
4947 done
4948
4949 # We need awk to create options.c and options.h.
4950 # Bail out if it's missing.
4951 case ${AWK} in
4952   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4953 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955 esac
4956
4957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4959 if test "${gcc_cv_prog_LN_S+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   rm -f conftestdata_t
4963 echo >conftestdata_f
4964 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4965 then
4966   gcc_cv_prog_LN_S="ln -s"
4967 else
4968   if ln conftestdata_f conftestdata_t 2>/dev/null
4969   then
4970     gcc_cv_prog_LN_S=ln
4971   else
4972     gcc_cv_prog_LN_S=cp
4973   fi
4974 fi
4975 rm -f conftestdata_f conftestdata_t
4976
4977 fi
4978 LN_S="$gcc_cv_prog_LN_S"
4979 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4980   echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6
4982 else
4983   if test "$gcc_cv_prog_LN_S" = "ln"; then
4984     echo "$as_me:$LINENO: result: no, using ln" >&5
4985 echo "${ECHO_T}no, using ln" >&6
4986   else
4987     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4988 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4989   fi
4990 fi
4991
4992 echo "$as_me:$LINENO: checking whether ln works" >&5
4993 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4994 if test "${acx_cv_prog_LN+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   rm -f conftestdata_t
4998 echo >conftestdata_f
4999 if ln conftestdata_f conftestdata_t 2>/dev/null
5000 then
5001   acx_cv_prog_LN=ln
5002 else
5003   acx_cv_prog_LN=no
5004 fi
5005 rm -f conftestdata_f conftestdata_t
5006
5007 fi
5008 if test $acx_cv_prog_LN = no; then
5009   LN="$LN_S"
5010   echo "$as_me:$LINENO: result: no, using $LN" >&5
5011 echo "${ECHO_T}no, using $LN" >&6
5012 else
5013   LN="$acx_cv_prog_LN"
5014   echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5016 fi
5017
5018 if test -n "$ac_tool_prefix"; then
5019   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_prog_RANLIB+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   if test -n "$RANLIB"; then
5027   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042
5043 fi
5044 fi
5045 RANLIB=$ac_cv_prog_RANLIB
5046 if test -n "$RANLIB"; then
5047   echo "$as_me:$LINENO: result: $RANLIB" >&5
5048 echo "${ECHO_T}$RANLIB" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054 fi
5055 if test -z "$ac_cv_prog_RANLIB"; then
5056   ac_ct_RANLIB=$RANLIB
5057   # Extract the first word of "ranlib", so it can be a program name with args.
5058 set dummy ranlib; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   if test -n "$ac_ct_RANLIB"; then
5065   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072   for ac_exec_ext in '' $ac_executable_extensions; do
5073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074     ac_cv_prog_ac_ct_RANLIB="ranlib"
5075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079 done
5080
5081   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5082 fi
5083 fi
5084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5085 if test -n "$ac_ct_RANLIB"; then
5086   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5087 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5088 else
5089   echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5091 fi
5092
5093   RANLIB=$ac_ct_RANLIB
5094 else
5095   RANLIB="$ac_cv_prog_RANLIB"
5096 fi
5097
5098 case "${host}" in
5099 *-*-darwin*)
5100   # By default, the Darwin ranlib will not treat common symbols as
5101   # definitions when  building the archive table of contents.  Other
5102   # ranlibs do that; pass an option to the Darwin ranlib that makes
5103   # it behave similarly.
5104   ranlib_flags="-c"
5105   ;;
5106 *)
5107   ranlib_flags=""
5108 esac
5109
5110
5111 # Find a good install program.  We prefer a C program (faster),
5112 # so one script is as good as another.  But avoid the broken or
5113 # incompatible versions:
5114 # SysV /etc/install, /usr/sbin/install
5115 # SunOS /usr/etc/install
5116 # IRIX /sbin/install
5117 # AIX /bin/install
5118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5120 # ./install, which can be erroneously created by make from ./install.sh.
5121 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5122 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5123 if test -z "$INSTALL"; then
5124 if test "${ac_cv_path_install+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5128   for ac_dir in $PATH; do
5129     # Account for people who put trailing slashes in PATH elements.
5130     case "$ac_dir/" in
5131     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5132     *)
5133       # OSF1 and SCO ODT 3.0 have their own names for install.
5134       for ac_prog in ginstall scoinst install; do
5135         if test -f $ac_dir/$ac_prog; then
5136           if test $ac_prog = install &&
5137             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5138             # AIX install.  It has an incompatible calling convention.
5139             # OSF/1 installbsd also uses dspmsg, but is usable.
5140             :
5141           else
5142             ac_cv_path_install="$ac_dir/$ac_prog -c"
5143             break 2
5144           fi
5145         fi
5146       done
5147       ;;
5148     esac
5149   done
5150   IFS="$ac_save_IFS"
5151
5152 fi
5153   if test "${ac_cv_path_install+set}" = set; then
5154     INSTALL="$ac_cv_path_install"
5155   else
5156     # As a last resort, use the slow shell script.  We don't cache a
5157     # path for INSTALL within a source directory, because that will
5158     # break other packages using the cache if that directory is
5159     # removed, or if the path is relative.
5160     INSTALL="$ac_install_sh"
5161   fi
5162 fi
5163 echo "$as_me:$LINENO: result: $INSTALL" >&5
5164 echo "${ECHO_T}$INSTALL" >&6
5165
5166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5167 # It thinks the first close brace ends the variable substitution.
5168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5169
5170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5171
5172
5173 # See if cmp has --ignore-initial.
5174 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5175 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5176 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179    echo abfoo >t1
5180   echo cdfoo >t2
5181   gcc_cv_prog_cmp_skip=slowcompare
5182   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5183     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5184       :
5185     else
5186       gcc_cv_prog_cmp_skip=gnucompare
5187     fi
5188   fi
5189   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5190     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5191       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5192         :
5193       else
5194         gcc_cv_prog_cmp_skip=fastcompare
5195       fi
5196     fi
5197   fi
5198   rm t1 t2
5199
5200 fi
5201 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5202 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5203 make_compare_target=$gcc_cv_prog_cmp_skip
5204
5205
5206
5207 # See if we have the mktemp command.
5208 # Extract the first word of "mktemp", so it can be a program name with args.
5209 set dummy mktemp; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   if test -n "$have_mktemp_command"; then
5216   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_prog_have_mktemp_command="yes"
5226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231
5232   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5233 fi
5234 fi
5235 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5236 if test -n "$have_mktemp_command"; then
5237   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5238 echo "${ECHO_T}$have_mktemp_command" >&6
5239 else
5240   echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5242 fi
5243
5244
5245 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5246
5247 # See if makeinfo has been installed and is modern enough
5248 # that we can use it.
5249 # Extract the first word of "makeinfo", so it can be a program name with args.
5250 set dummy makeinfo; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test -n "$MAKEINFO"; then
5257   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for ac_exec_ext in '' $ac_executable_extensions; do
5265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_MAKEINFO="makeinfo"
5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271 done
5272
5273 fi
5274 fi
5275 MAKEINFO=$ac_cv_prog_MAKEINFO
5276 if test -n "$MAKEINFO"; then
5277   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5278 echo "${ECHO_T}$MAKEINFO" >&6
5279 else
5280   echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5282 fi
5283
5284 if test -n "$MAKEINFO"; then
5285   # Found it, now check the version.
5286   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5287 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5288 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291     ac_prog_version=`$MAKEINFO --version 2>&1 |
5292                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5293   echo "configure:5293: version of makeinfo is $ac_prog_version" >&5
5294   case $ac_prog_version in
5295     '')     gcc_cv_prog_makeinfo_modern=no;;
5296     4.[2-9]*)
5297             gcc_cv_prog_makeinfo_modern=yes;;
5298     *)      gcc_cv_prog_makeinfo_modern=no;;
5299   esac
5300
5301 fi
5302 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5303 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5304 else
5305   gcc_cv_prog_makeinfo_modern=no
5306 fi
5307
5308 if test $gcc_cv_prog_makeinfo_modern = no; then
5309   MAKEINFO="$MISSING makeinfo"
5310   { echo "$as_me:$LINENO: WARNING:
5311 *** Makeinfo is missing or too old.
5312 *** Info documentation will not be built." >&5
5313 echo "$as_me: WARNING:
5314 *** Makeinfo is missing or too old.
5315 *** Info documentation will not be built." >&2;}
5316   BUILD_INFO=
5317 else
5318   BUILD_INFO=info
5319 fi
5320
5321
5322 # Is pod2man recent enough to regenerate manpages?
5323 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5324 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5325 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5326   echo "$as_me:$LINENO: result: yes" >&5
5327 echo "${ECHO_T}yes" >&6
5328   GENERATED_MANPAGES=generated-manpages
5329 else
5330   echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5332   GENERATED_MANPAGES=
5333 fi
5334
5335
5336 # How about lex?
5337 for ac_prog in flex
5338 do
5339   # Extract the first word of "$ac_prog", so it can be a program name with args.
5340 set dummy $ac_prog; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_FLEX+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   if test -n "$FLEX"; then
5347   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_prog_FLEX="$ac_prog"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362
5363 fi
5364 fi
5365 FLEX=$ac_cv_prog_FLEX
5366 if test -n "$FLEX"; then
5367   echo "$as_me:$LINENO: result: $FLEX" >&5
5368 echo "${ECHO_T}$FLEX" >&6
5369 else
5370   echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5372 fi
5373
5374   test -n "$FLEX" && break
5375 done
5376 test -n "$FLEX" || FLEX="$MISSING flex"
5377
5378
5379 # Bison?
5380 for ac_prog in bison
5381 do
5382   # Extract the first word of "$ac_prog", so it can be a program name with args.
5383 set dummy $ac_prog; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_BISON+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   if test -n "$BISON"; then
5390   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397   for ac_exec_ext in '' $ac_executable_extensions; do
5398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_prog_BISON="$ac_prog"
5400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404 done
5405
5406 fi
5407 fi
5408 BISON=$ac_cv_prog_BISON
5409 if test -n "$BISON"; then
5410   echo "$as_me:$LINENO: result: $BISON" >&5
5411 echo "${ECHO_T}$BISON" >&6
5412 else
5413   echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5415 fi
5416
5417   test -n "$BISON" && break
5418 done
5419 test -n "$BISON" || BISON="$MISSING bison"
5420
5421
5422 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
5423 # check for build == host before using them.
5424
5425 # NM
5426 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5427   && test -d ../binutils ; then
5428   NM='$(objdir)/../binutils/nm-new'
5429 else
5430   # Extract the first word of "nm", so it can be a program name with args.
5431 set dummy nm; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_NM+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   if test -n "$NM"; then
5438   ac_cv_prog_NM="$NM" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_prog_NM="nm"
5448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453
5454   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5455 fi
5456 fi
5457 NM=$ac_cv_prog_NM
5458 if test -n "$NM"; then
5459   echo "$as_me:$LINENO: result: $NM" >&5
5460 echo "${ECHO_T}$NM" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 fi
5467
5468 # AR
5469 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5470   && test -d ../binutils ; then
5471   AR='$(objdir)/../binutils/ar'
5472 else
5473   # Extract the first word of "ar", so it can be a program name with args.
5474 set dummy ar; ac_word=$2
5475 echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477 if test "${ac_cv_prog_AR+set}" = set; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480   if test -n "$AR"; then
5481   ac_cv_prog_AR="$AR" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488   for ac_exec_ext in '' $ac_executable_extensions; do
5489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_prog_AR="ar"
5491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495 done
5496
5497   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5498 fi
5499 fi
5500 AR=$ac_cv_prog_AR
5501 if test -n "$AR"; then
5502   echo "$as_me:$LINENO: result: $AR" >&5
5503 echo "${ECHO_T}$AR" >&6
5504 else
5505   echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5507 fi
5508
5509 fi
5510
5511
5512 # --------------------
5513 # Checks for C headers
5514 # --------------------
5515
5516 echo "$as_me:$LINENO: checking for GNU C library" >&5
5517 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5518 if test "${gcc_cv_glibc+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h.  */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h.  */
5527 #include <features.h>
5528 int
5529 main ()
5530 {
5531
5532 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5533 #error Not a GNU C library system
5534 #endif
5535   ;
5536   return 0;
5537 }
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541   (eval $ac_compile) 2>conftest.er1
5542   ac_status=$?
5543   grep -v '^ *+' conftest.er1 >conftest.err
5544   rm -f conftest.er1
5545   cat conftest.err >&5
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } &&
5548          { ac_try='test -z "$ac_c_werror_flag"
5549                          || test ! -s conftest.err'
5550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551   (eval $ac_try) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }; } &&
5555          { ac_try='test -s conftest.$ac_objext'
5556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557   (eval $ac_try) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; }; then
5561   gcc_cv_glibc=yes
5562 else
5563   echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 gcc_cv_glibc=no
5567 fi
5568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5569 fi
5570
5571 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5572 echo "${ECHO_T}$gcc_cv_glibc" >&6
5573 if test $gcc_cv_glibc = yes; then
5574
5575 cat >>confdefs.h <<\_ACEOF
5576 #define _GNU_SOURCE 1
5577 _ACEOF
5578
5579 fi
5580
5581 # Need to reject headers which give warnings, so that the -Werror bootstrap
5582 # works later. *sigh*  This needs to come before all header checks.
5583
5584 ac_c_preproc_warn_flag=yes
5585
5586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5588 if test "${ac_cv_header_stdc+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597 #include <stdlib.h>
5598 #include <stdarg.h>
5599 #include <string.h>
5600 #include <float.h>
5601
5602 int
5603 main ()
5604 {
5605
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612   (eval $ac_compile) 2>conftest.er1
5613   ac_status=$?
5614   grep -v '^ *+' conftest.er1 >conftest.err
5615   rm -f conftest.er1
5616   cat conftest.err >&5
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); } &&
5619          { ac_try='test -z "$ac_c_werror_flag"
5620                          || test ! -s conftest.err'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; } &&
5626          { ac_try='test -s conftest.$ac_objext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_cv_header_stdc=yes
5633 else
5634   echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_header_stdc=no
5638 fi
5639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640
5641 if test $ac_cv_header_stdc = yes; then
5642   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643   cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649 #include <string.h>
5650
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653   $EGREP "memchr" >/dev/null 2>&1; then
5654   :
5655 else
5656   ac_cv_header_stdc=no
5657 fi
5658 rm -f conftest*
5659
5660 fi
5661
5662 if test $ac_cv_header_stdc = yes; then
5663   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664   cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h.  */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h.  */
5670 #include <stdlib.h>
5671
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674   $EGREP "free" >/dev/null 2>&1; then
5675   :
5676 else
5677   ac_cv_header_stdc=no
5678 fi
5679 rm -f conftest*
5680
5681 fi
5682
5683 if test $ac_cv_header_stdc = yes; then
5684   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685   if test "$cross_compiling" = yes; then
5686   :
5687 else
5688   cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 #include <ctype.h>
5695 #if ((' ' & 0x0FF) == 0x020)
5696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5698 #else
5699 # define ISLOWER(c) \
5700                    (('a' <= (c) && (c) <= 'i') \
5701                      || ('j' <= (c) && (c) <= 'r') \
5702                      || ('s' <= (c) && (c) <= 'z'))
5703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5704 #endif
5705
5706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5707 int
5708 main ()
5709 {
5710   int i;
5711   for (i = 0; i < 256; i++)
5712     if (XOR (islower (i), ISLOWER (i))
5713         || toupper (i) != TOUPPER (i))
5714       exit(2);
5715   exit (0);
5716 }
5717 _ACEOF
5718 rm -f conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720   (eval $ac_link) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   :
5730 else
5731   echo "$as_me: program exited with status $ac_status" >&5
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 ( exit $ac_status )
5736 ac_cv_header_stdc=no
5737 fi
5738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 fi
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5743 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5744 if test $ac_cv_header_stdc = yes; then
5745
5746 cat >>confdefs.h <<\_ACEOF
5747 #define STDC_HEADERS 1
5748 _ACEOF
5749
5750 fi
5751
5752 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5754 if test "${ac_cv_header_time+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/time.h>
5765 #include <time.h>
5766
5767 int
5768 main ()
5769 {
5770 if ((struct tm *) 0)
5771 return 0;
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778   (eval $ac_compile) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"
5786                          || test ! -s conftest.err'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; } &&
5792          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5798   ac_cv_header_time=yes
5799 else
5800   echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 ac_cv_header_time=no
5804 fi
5805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5808 echo "${ECHO_T}$ac_cv_header_time" >&6
5809 if test $ac_cv_header_time = yes; then
5810
5811 cat >>confdefs.h <<\_ACEOF
5812 #define TIME_WITH_SYS_TIME 1
5813 _ACEOF
5814
5815 fi
5816
5817 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5818 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5819 if test "${gcc_cv_header_string+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h.  */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h.  */
5828 #include <string.h>
5829 #include <strings.h>
5830 int
5831 main ()
5832 {
5833
5834   ;
5835   return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840   (eval $ac_compile) 2>conftest.er1
5841   ac_status=$?
5842   grep -v '^ *+' conftest.er1 >conftest.err
5843   rm -f conftest.er1
5844   cat conftest.err >&5
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); } &&
5847          { ac_try='test -z "$ac_c_werror_flag"
5848                          || test ! -s conftest.err'
5849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850   (eval $ac_try) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); }; } &&
5854          { ac_try='test -s conftest.$ac_objext'
5855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856   (eval $ac_try) 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }; }; then
5860   gcc_cv_header_string=yes
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 gcc_cv_header_string=no
5866 fi
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5870 echo "${ECHO_T}$gcc_cv_header_string" >&6
5871 if test $gcc_cv_header_string = yes; then
5872
5873 cat >>confdefs.h <<\_ACEOF
5874 #define STRING_WITH_STRINGS 1
5875 _ACEOF
5876
5877 fi
5878
5879 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5880 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5881 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890 #include <sys/types.h>
5891 #include <sys/wait.h>
5892 #ifndef WEXITSTATUS
5893 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5894 #endif
5895 #ifndef WIFEXITED
5896 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5897 #endif
5898
5899 int
5900 main ()
5901 {
5902   int s;
5903   wait (&s);
5904   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911   (eval $ac_compile) 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } &&
5918          { ac_try='test -z "$ac_c_werror_flag"
5919                          || test ! -s conftest.err'
5920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921   (eval $ac_try) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; } &&
5925          { ac_try='test -s conftest.$ac_objext'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931   ac_cv_header_sys_wait_h=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 ac_cv_header_sys_wait_h=no
5937 fi
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5941 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5942 if test $ac_cv_header_sys_wait_h = yes; then
5943
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_SYS_WAIT_H 1
5946 _ACEOF
5947
5948 fi
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5972                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5973                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5974                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5975 do
5976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 #include <$ac_header>
5989 _ACEOF
5990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992   ac_status=$?
5993   grep -v '^ *+' conftest.er1 >conftest.err
5994   rm -f conftest.er1
5995   cat conftest.err >&5
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } >/dev/null; then
5998   if test -s conftest.err; then
5999     ac_cpp_err=$ac_c_preproc_warn_flag
6000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001   else
6002     ac_cpp_err=
6003   fi
6004 else
6005   ac_cpp_err=yes
6006 fi
6007 if test -z "$ac_cpp_err"; then
6008   eval "$as_ac_Header=yes"
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013   eval "$as_ac_Header=no"
6014 fi
6015 rm -f conftest.err conftest.$ac_ext
6016 fi
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020   cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6022 _ACEOF
6023
6024 fi
6025 done
6026
6027
6028 # Check for thread headers.
6029 echo "$as_me:$LINENO: checking for thread.h" >&5
6030 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6031 if test "${ac_cv_header_thread_h+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #include <thread.h>
6041 _ACEOF
6042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6044   ac_status=$?
6045   grep -v '^ *+' conftest.er1 >conftest.err
6046   rm -f conftest.er1
6047   cat conftest.err >&5
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); } >/dev/null; then
6050   if test -s conftest.err; then
6051     ac_cpp_err=$ac_c_preproc_warn_flag
6052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6053   else
6054     ac_cpp_err=
6055   fi
6056 else
6057   ac_cpp_err=yes
6058 fi
6059 if test -z "$ac_cpp_err"; then
6060   ac_cv_header_thread_h=yes
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065   ac_cv_header_thread_h=no
6066 fi
6067 rm -f conftest.err conftest.$ac_ext
6068 fi
6069 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6070 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6071 if test $ac_cv_header_thread_h = yes; then
6072   have_thread_h=yes
6073 else
6074   have_thread_h=
6075 fi
6076
6077 echo "$as_me:$LINENO: checking for pthread.h" >&5
6078 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6079 if test "${ac_cv_header_pthread_h+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h.  */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h.  */
6088 #include <pthread.h>
6089 _ACEOF
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092   ac_status=$?
6093   grep -v '^ *+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } >/dev/null; then
6098   if test -s conftest.err; then
6099     ac_cpp_err=$ac_c_preproc_warn_flag
6100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6101   else
6102     ac_cpp_err=
6103   fi
6104 else
6105   ac_cpp_err=yes
6106 fi
6107 if test -z "$ac_cpp_err"; then
6108   ac_cv_header_pthread_h=yes
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113   ac_cv_header_pthread_h=no
6114 fi
6115 rm -f conftest.err conftest.$ac_ext
6116 fi
6117 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6118 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6119 if test $ac_cv_header_pthread_h = yes; then
6120   have_pthread_h=yes
6121 else
6122   have_pthread_h=
6123 fi
6124
6125
6126 # These tests can't be done till we know if we have limits.h.
6127 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6128 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6129 if test "${gcc_cv_decl_char_bit+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138 #ifdef HAVE_LIMITS_H
6139 #include <limits.h>
6140 #endif
6141 #ifdef CHAR_BIT
6142 found
6143 #endif
6144 _ACEOF
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146   $EGREP "found" >/dev/null 2>&1; then
6147   gcc_cv_decl_char_bit=yes
6148 else
6149   gcc_cv_decl_char_bit=no
6150 fi
6151 rm -f conftest*
6152
6153
6154 fi
6155 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6156 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6157 if test $gcc_cv_decl_char_bit = no; then
6158   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6159 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6160 if test "${gcc_cv_c_nbby+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   i=8
6164  gcc_cv_c_nbby=
6165  while test $i -lt 65; do
6166    cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172
6173 int
6174 main ()
6175 {
6176 switch(0) {
6177   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6178   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6179   ; }
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186   (eval $ac_compile) 2>conftest.er1
6187   ac_status=$?
6188   grep -v '^ *+' conftest.er1 >conftest.err
6189   rm -f conftest.er1
6190   cat conftest.err >&5
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); } &&
6193          { ac_try='test -z "$ac_c_werror_flag"
6194                          || test ! -s conftest.err'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; } &&
6200          { ac_try='test -s conftest.$ac_objext'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206   gcc_cv_c_nbby=$i; break
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213    i=`expr $i + 1`
6214  done
6215  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6216
6217 fi
6218 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6219 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6220 if test $gcc_cv_c_nbby = failed; then
6221   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6222 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6223    { (exit 1); exit 1; }; }
6224 else
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define CHAR_BIT $gcc_cv_c_nbby
6228 _ACEOF
6229
6230 fi
6231 fi
6232 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6233 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6234 if test "${ac_cv_c_bigendian+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   ac_cv_c_bigendian=unknown
6238 # See if sys/param.h defines the BYTE_ORDER macro.
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245 #include <sys/types.h>
6246 #include <sys/param.h>
6247 int
6248 main ()
6249 {
6250
6251 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6252  bogus endian macros
6253 #endif
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260   (eval $ac_compile) 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -z "$ac_c_werror_flag"
6268                          || test ! -s conftest.err'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; } &&
6274          { ac_try='test -s conftest.$ac_objext'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; }; then
6280   # It does; now see whether it defined to BIG_ENDIAN or not.
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #include <sys/types.h>
6288 #include <sys/param.h>
6289 int
6290 main ()
6291 {
6292
6293 #if BYTE_ORDER != BIG_ENDIAN
6294  not big endian
6295 #endif
6296   ;
6297   return 0;
6298 }
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>conftest.er1
6303   ac_status=$?
6304   grep -v '^ *+' conftest.er1 >conftest.err
6305   rm -f conftest.er1
6306   cat conftest.err >&5
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } &&
6309          { ac_try='test -z "$ac_c_werror_flag"
6310                          || test ! -s conftest.err'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; } &&
6316          { ac_try='test -s conftest.$ac_objext'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_c_bigendian=yes
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 ac_cv_c_bigendian=no
6328 fi
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 else
6331   echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 fi
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 if test $ac_cv_c_bigendian = unknown; then
6337 if test "$cross_compiling" = yes; then
6338    echo $ac_n "cross-compiling... " 2>&6
6339 else
6340   cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h.  */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h.  */
6346 main () {
6347   /* Are we little or big endian?  From Harbison&Steele.  */
6348   union
6349   {
6350     long l;
6351     char c[sizeof (long)];
6352   } u;
6353   u.l = 1;
6354   exit (u.c[sizeof (long) - 1] == 1);
6355 }
6356 _ACEOF
6357 rm -f conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359   (eval $ac_link) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   ac_cv_c_bigendian=no
6369 else
6370   echo "$as_me: program exited with status $ac_status" >&5
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 ( exit $ac_status )
6375 ac_cv_c_bigendian=yes
6376 fi
6377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6378 fi
6379 fi
6380 fi
6381 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6382 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6383 if test $ac_cv_c_bigendian = unknown; then
6384 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6385 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6386
6387 cat >conftest.c <<EOF
6388 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6389 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6390 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6391 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6392 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6393 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6394 int main() { _ascii (); _ebcdic (); return 0; }
6395 EOF
6396  if test -f conftest.c ; then
6397      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6398         if test `grep -l BIGenDianSyS conftest.o` ; then
6399            echo $ac_n ' big endian probe OK, ' 1>&6
6400            ac_cv_c_bigendian=yes
6401         fi
6402         if test `grep -l LiTTleEnDian conftest.o` ; then
6403            echo $ac_n ' little endian probe OK, ' 1>&6
6404            if test $ac_cv_c_bigendian = yes ; then
6405             ac_cv_c_bigendian=unknown;
6406            else
6407             ac_cv_c_bigendian=no
6408            fi
6409         fi
6410         echo $ac_n 'guessing bigendian ...  ' >&6
6411      fi
6412   fi
6413 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6414 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6415 fi
6416 if test $ac_cv_c_bigendian = yes; then
6417
6418 cat >>confdefs.h <<\_ACEOF
6419 #define WORDS_BIGENDIAN 1
6420 _ACEOF
6421
6422
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HOST_WORDS_BIG_ENDIAN 1
6425 _ACEOF
6426
6427   BYTEORDER=4321
6428 else
6429   BYTEORDER=1234
6430 fi
6431
6432 cat >>confdefs.h <<_ACEOF
6433 #define BYTEORDER $BYTEORDER
6434 _ACEOF
6435
6436 if test $ac_cv_c_bigendian = unknown; then
6437   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6438 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6439    { (exit 1); exit 1; }; }
6440 fi
6441
6442
6443 # --------
6444 # UNSORTED
6445 # --------
6446
6447 # Stage specific cflags for build.
6448 stage1_cflags=
6449 case $build in
6450 vax-*-*)
6451   if test x$GCC = xyes
6452   then
6453     stage1_cflags="-Wa,-J"
6454   else
6455     stage1_cflags="-J"
6456   fi
6457   ;;
6458 powerpc-*-darwin*)
6459   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6460   # sources; use -no-cpp-precomp to get to GNU cpp.
6461   # Apple's GCC has bugs in designated initializer handling, so disable
6462   # that too.
6463   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6464   ;;
6465 esac
6466
6467
6468 # These libraries may be used by collect2.
6469 # We may need a special search path to get them linked.
6470 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6471 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6472 if test "${gcc_cv_collect2_libs+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475   save_LIBS="$LIBS"
6476 for libs in '' -lld -lmld \
6477                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6478                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6479 do
6480         LIBS="$libs"
6481         cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487
6488 /* Override any gcc2 internal prototype to avoid an error.  */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 /* We use char because int might match the return type of a gcc2
6493    builtin and then its argument prototype would still apply.  */
6494 char ldopen ();
6495 int
6496 main ()
6497 {
6498 ldopen ();
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505   (eval $ac_link) 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } &&
6512          { ac_try='test -z "$ac_c_werror_flag"
6513                          || test ! -s conftest.err'
6514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515   (eval $ac_try) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }; } &&
6519          { ac_try='test -s conftest$ac_exeext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   gcc_cv_collect2_libs="$libs"; break
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 fi
6531 rm -f conftest.err conftest.$ac_objext \
6532       conftest$ac_exeext conftest.$ac_ext
6533 done
6534 LIBS="$save_LIBS"
6535 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6536 fi
6537 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6538 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6539 case $gcc_cv_collect2_libs in
6540         "none required")        ;;
6541         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6542 esac
6543
6544
6545 # When building Ada code on Alpha, we need exc_resume which is usually in
6546 # -lexc.  So test for it.
6547 save_LIBS="$LIBS"
6548 LIBS=
6549 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6550 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6551 if test "${ac_cv_search_exc_resume+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   ac_func_search_save_LIBS=$LIBS
6555 ac_cv_search_exc_resume=no
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h.  */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h.  */
6562
6563 /* Override any gcc2 internal prototype to avoid an error.  */
6564 #ifdef __cplusplus
6565 extern "C"
6566 #endif
6567 /* We use char because int might match the return type of a gcc2
6568    builtin and then its argument prototype would still apply.  */
6569 char exc_resume ();
6570 int
6571 main ()
6572 {
6573 exc_resume ();
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580   (eval $ac_link) 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -z "$ac_c_werror_flag"
6588                          || test ! -s conftest.err'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; } &&
6594          { ac_try='test -s conftest$ac_exeext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   ac_cv_search_exc_resume="none required"
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 fi
6606 rm -f conftest.err conftest.$ac_objext \
6607       conftest$ac_exeext conftest.$ac_ext
6608 if test "$ac_cv_search_exc_resume" = no; then
6609   for ac_lib in exc; do
6610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6611     cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h.  */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h.  */
6617
6618 /* Override any gcc2 internal prototype to avoid an error.  */
6619 #ifdef __cplusplus
6620 extern "C"
6621 #endif
6622 /* We use char because int might match the return type of a gcc2
6623    builtin and then its argument prototype would still apply.  */
6624 char exc_resume ();
6625 int
6626 main ()
6627 {
6628 exc_resume ();
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635   (eval $ac_link) 2>conftest.er1
6636   ac_status=$?
6637   grep -v '^ *+' conftest.er1 >conftest.err
6638   rm -f conftest.er1
6639   cat conftest.err >&5
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); } &&
6642          { ac_try='test -z "$ac_c_werror_flag"
6643                          || test ! -s conftest.err'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; } &&
6649          { ac_try='test -s conftest$ac_exeext'
6650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651   (eval $ac_try) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); }; }; then
6655   ac_cv_search_exc_resume="-l$ac_lib"
6656 break
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 fi
6662 rm -f conftest.err conftest.$ac_objext \
6663       conftest$ac_exeext conftest.$ac_ext
6664   done
6665 fi
6666 LIBS=$ac_func_search_save_LIBS
6667 fi
6668 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6669 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6670 if test "$ac_cv_search_exc_resume" != no; then
6671   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6672
6673 fi
6674
6675 GNAT_LIBEXC="$LIBS"
6676 LIBS="$save_LIBS"
6677
6678
6679 # Some systems put ldexp and frexp in libm instead of libc; assume
6680 # they're both in the same place.  jcf-dump needs them.
6681 save_LIBS="$LIBS"
6682 LIBS=
6683 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6684 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6685 if test "${ac_cv_search_ldexp+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   ac_func_search_save_LIBS=$LIBS
6689 ac_cv_search_ldexp=no
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696
6697 /* Override any gcc2 internal prototype to avoid an error.  */
6698 #ifdef __cplusplus
6699 extern "C"
6700 #endif
6701 /* We use char because int might match the return type of a gcc2
6702    builtin and then its argument prototype would still apply.  */
6703 char ldexp ();
6704 int
6705 main ()
6706 {
6707 ldexp ();
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714   (eval $ac_link) 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } &&
6721          { ac_try='test -z "$ac_c_werror_flag"
6722                          || test ! -s conftest.err'
6723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724   (eval $ac_try) 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }; } &&
6728          { ac_try='test -s conftest$ac_exeext'
6729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730   (eval $ac_try) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; }; then
6734   ac_cv_search_ldexp="none required"
6735 else
6736   echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739 fi
6740 rm -f conftest.err conftest.$ac_objext \
6741       conftest$ac_exeext conftest.$ac_ext
6742 if test "$ac_cv_search_ldexp" = no; then
6743   for ac_lib in m; do
6744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6745     cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h.  */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h.  */
6751
6752 /* Override any gcc2 internal prototype to avoid an error.  */
6753 #ifdef __cplusplus
6754 extern "C"
6755 #endif
6756 /* We use char because int might match the return type of a gcc2
6757    builtin and then its argument prototype would still apply.  */
6758 char ldexp ();
6759 int
6760 main ()
6761 {
6762 ldexp ();
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 rm -f conftest.$ac_objext conftest$ac_exeext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769   (eval $ac_link) 2>conftest.er1
6770   ac_status=$?
6771   grep -v '^ *+' conftest.er1 >conftest.err
6772   rm -f conftest.er1
6773   cat conftest.err >&5
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } &&
6776          { ac_try='test -z "$ac_c_werror_flag"
6777                          || test ! -s conftest.err'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; } &&
6783          { ac_try='test -s conftest$ac_exeext'
6784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785   (eval $ac_try) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }; }; then
6789   ac_cv_search_ldexp="-l$ac_lib"
6790 break
6791 else
6792   echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 fi
6796 rm -f conftest.err conftest.$ac_objext \
6797       conftest$ac_exeext conftest.$ac_ext
6798   done
6799 fi
6800 LIBS=$ac_func_search_save_LIBS
6801 fi
6802 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6803 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6804 if test "$ac_cv_search_ldexp" != no; then
6805   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6806
6807 fi
6808
6809 LDEXP_LIB="$LIBS"
6810 LIBS="$save_LIBS"
6811
6812
6813 # Use <inttypes.h> only if it exists,
6814 # doesn't clash with <sys/types.h>, and declares intmax_t.
6815 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6816 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6817 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <sys/types.h>
6827 #include <inttypes.h>
6828 int
6829 main ()
6830 {
6831 intmax_t i = -1;
6832   ;
6833   return 0;
6834 }
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838   (eval $ac_compile) 2>conftest.er1
6839   ac_status=$?
6840   grep -v '^ *+' conftest.er1 >conftest.err
6841   rm -f conftest.er1
6842   cat conftest.err >&5
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } &&
6845          { ac_try='test -z "$ac_c_werror_flag"
6846                          || test ! -s conftest.err'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; } &&
6852          { ac_try='test -s conftest.$ac_objext'
6853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854   (eval $ac_try) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; }; then
6858   gcc_cv_header_inttypes_h=yes
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 gcc_cv_header_inttypes_h=no
6864 fi
6865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 fi
6867
6868 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6869 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6870 if test $gcc_cv_header_inttypes_h = yes; then
6871
6872 cat >>confdefs.h <<\_ACEOF
6873 #define HAVE_INTTYPES_H 1
6874 _ACEOF
6875
6876 fi
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6905         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6906         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6907         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6908         setlocale
6909 do
6910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6911 echo "$as_me:$LINENO: checking for $ac_func" >&5
6912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_var+set}\" = set"; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6924 #define $ac_func innocuous_$ac_func
6925
6926 /* System header to define __stub macros and hopefully few prototypes,
6927     which can conflict with char $ac_func (); below.
6928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929     <limits.h> exists even on freestanding compilers.  */
6930
6931 #ifdef __STDC__
6932 # include <limits.h>
6933 #else
6934 # include <assert.h>
6935 #endif
6936
6937 #undef $ac_func
6938
6939 /* Override any gcc2 internal prototype to avoid an error.  */
6940 #ifdef __cplusplus
6941 extern "C"
6942 {
6943 #endif
6944 /* We use char because int might match the return type of a gcc2
6945    builtin and then its argument prototype would still apply.  */
6946 char $ac_func ();
6947 /* The GNU C library defines this for functions which it implements
6948     to always fail with ENOSYS.  Some functions are actually named
6949     something starting with __ and the normal name is an alias.  */
6950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6951 choke me
6952 #else
6953 char (*f) () = $ac_func;
6954 #endif
6955 #ifdef __cplusplus
6956 }
6957 #endif
6958
6959 int
6960 main ()
6961 {
6962 return f != $ac_func;
6963   ;
6964   return 0;
6965 }
6966 _ACEOF
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969   (eval $ac_link) 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -z "$ac_c_werror_flag"
6977                          || test ! -s conftest.err'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; } &&
6983          { ac_try='test -s conftest$ac_exeext'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   eval "$as_ac_var=yes"
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 eval "$as_ac_var=no"
6995 fi
6996 rm -f conftest.err conftest.$ac_objext \
6997       conftest$ac_exeext conftest.$ac_ext
6998 fi
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7001 if test `eval echo '${'$as_ac_var'}'` = yes; then
7002   cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7004 _ACEOF
7005
7006 fi
7007 done
7008
7009
7010 if test x$ac_cv_func_mbstowcs = xyes; then
7011   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
7012 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
7013 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016       if test "$cross_compiling" = yes; then
7017   gcc_cv_func_mbstowcs_works=yes
7018 else
7019   cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025 #include <stdlib.h>
7026 int main()
7027 {
7028   mbstowcs(0, "", 0);
7029   return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034   (eval $ac_link) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; }; then
7043   gcc_cv_func_mbstowcs_works=yes
7044 else
7045   echo "$as_me: program exited with status $ac_status" >&5
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 ( exit $ac_status )
7050 gcc_cv_func_mbstowcs_works=no
7051 fi
7052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7053 fi
7054 fi
7055 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7056 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7057   if test x$gcc_cv_func_mbstowcs_works = xyes; then
7058
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_WORKING_MBSTOWCS 1
7061 _ACEOF
7062
7063   fi
7064 fi
7065
7066 echo "$as_me:$LINENO: checking for ssize_t" >&5
7067 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7068 if test "${ac_cv_type_ssize_t+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h.  */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h.  */
7077 $ac_includes_default
7078 int
7079 main ()
7080 {
7081 if ((ssize_t *) 0)
7082   return 0;
7083 if (sizeof (ssize_t))
7084   return 0;
7085   ;
7086   return 0;
7087 }
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091   (eval $ac_compile) 2>conftest.er1
7092   ac_status=$?
7093   grep -v '^ *+' conftest.er1 >conftest.err
7094   rm -f conftest.er1
7095   cat conftest.err >&5
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); } &&
7098          { ac_try='test -z "$ac_c_werror_flag"
7099                          || test ! -s conftest.err'
7100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101   (eval $ac_try) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; } &&
7105          { ac_try='test -s conftest.$ac_objext'
7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107   (eval $ac_try) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; }; then
7111   ac_cv_type_ssize_t=yes
7112 else
7113   echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116 ac_cv_type_ssize_t=no
7117 fi
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7121 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7122 if test $ac_cv_type_ssize_t = yes; then
7123   :
7124 else
7125
7126 cat >>confdefs.h <<_ACEOF
7127 #define ssize_t int
7128 _ACEOF
7129
7130 fi
7131
7132
7133 # Try to determine the array type of the second argument of getgroups
7134 # for the target system (int or gid_t).
7135 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7136 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7137 if test "${ac_cv_type_uid_t+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 #include <sys/types.h>
7147
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150   $EGREP "uid_t" >/dev/null 2>&1; then
7151   ac_cv_type_uid_t=yes
7152 else
7153   ac_cv_type_uid_t=no
7154 fi
7155 rm -f conftest*
7156
7157 fi
7158 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7159 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7160 if test $ac_cv_type_uid_t = no; then
7161
7162 cat >>confdefs.h <<\_ACEOF
7163 #define uid_t int
7164 _ACEOF
7165
7166
7167 cat >>confdefs.h <<\_ACEOF
7168 #define gid_t int
7169 _ACEOF
7170
7171 fi
7172
7173 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7174 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7175 if test "${ac_cv_type_getgroups+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   if test "$cross_compiling" = yes; then
7179   ac_cv_type_getgroups=cross
7180 else
7181   cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 /* Thanks to Mike Rendell for this test.  */
7188 #include <sys/types.h>
7189 #define NGID 256
7190 #undef MAX
7191 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7192
7193 int
7194 main ()
7195 {
7196   gid_t gidset[NGID];
7197   int i, n;
7198   union { gid_t gval; long lval; }  val;
7199
7200   val.lval = -1;
7201   for (i = 0; i < NGID; i++)
7202     gidset[i] = val.gval;
7203   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7204                  gidset);
7205   /* Exit non-zero if getgroups seems to require an array of ints.  This
7206      happens when gid_t is short but getgroups modifies an array of ints.  */
7207   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7208 }
7209 _ACEOF
7210 rm -f conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212   (eval $ac_link) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217   (eval $ac_try) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }; }; then
7221   ac_cv_type_getgroups=gid_t
7222 else
7223   echo "$as_me: program exited with status $ac_status" >&5
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227 ( exit $ac_status )
7228 ac_cv_type_getgroups=int
7229 fi
7230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7231 fi
7232 if test $ac_cv_type_getgroups = cross; then
7233         cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h.  */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h.  */
7239 #include <unistd.h>
7240
7241 _ACEOF
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7244   ac_cv_type_getgroups=gid_t
7245 else
7246   ac_cv_type_getgroups=int
7247 fi
7248 rm -f conftest*
7249
7250 fi
7251 fi
7252 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7253 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7254
7255 cat >>confdefs.h <<_ACEOF
7256 #define GETGROUPS_T $ac_cv_type_getgroups
7257 _ACEOF
7258
7259
7260 if test "${target}" = "${build}"; then
7261   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7262 else
7263   case "${target}" in
7264         # This condition may need some tweaking.  It should include all
7265         # targets where the array type of the second argument of getgroups
7266         # is int and the type of gid_t is not equivalent to int.
7267         *-*-sunos* | *-*-ultrix*)
7268                 TARGET_GETGROUPS_T=int
7269                 ;;
7270         *)
7271                 TARGET_GETGROUPS_T=gid_t
7272                 ;;
7273   esac
7274 fi
7275
7276
7277 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7278 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7279 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7280   echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282   if test "$cross_compiling" = yes; then
7283   gcc_cv_func_printf_ptr=no
7284 else
7285   cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291 #include <stdio.h>
7292
7293 int main()
7294 {
7295   char buf[64];
7296   char *p = buf, *q = NULL;
7297   sprintf(buf, "%p", p);
7298   sscanf(buf, "%p", &q);
7299   return (p != q);
7300 }
7301 _ACEOF
7302 rm -f conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304   (eval $ac_link) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; }; then
7313   gcc_cv_func_printf_ptr=yes
7314 else
7315   echo "$as_me: program exited with status $ac_status" >&5
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ( exit $ac_status )
7320 gcc_cv_func_printf_ptr=no
7321 fi
7322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 rm -f core core.* *.core
7325 fi
7326 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7327 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7328 if test $gcc_cv_func_printf_ptr = yes ; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_PRINTF_PTR 1
7332 _ACEOF
7333
7334 fi
7335
7336
7337 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7338 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7339 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 #include <sys/mman.h>
7349 _ACEOF
7350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352   ac_status=$?
7353   grep -v '^ *+' conftest.er1 >conftest.err
7354   rm -f conftest.er1
7355   cat conftest.err >&5
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); } >/dev/null; then
7358   if test -s conftest.err; then
7359     ac_cpp_err=$ac_c_preproc_warn_flag
7360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7361   else
7362     ac_cpp_err=
7363   fi
7364 else
7365   ac_cpp_err=yes
7366 fi
7367 if test -z "$ac_cpp_err"; then
7368   ac_cv_header_sys_mman_h=yes
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373   ac_cv_header_sys_mman_h=no
7374 fi
7375 rm -f conftest.err conftest.$ac_ext
7376 fi
7377 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7378 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7379 if test $ac_cv_header_sys_mman_h = yes; then
7380   gcc_header_sys_mman_h=yes
7381 else
7382   gcc_header_sys_mman_h=no
7383 fi
7384
7385 echo "$as_me:$LINENO: checking for mmap" >&5
7386 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7387 if test "${ac_cv_func_mmap+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7398 #define mmap innocuous_mmap
7399
7400 /* System header to define __stub macros and hopefully few prototypes,
7401     which can conflict with char mmap (); below.
7402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403     <limits.h> exists even on freestanding compilers.  */
7404
7405 #ifdef __STDC__
7406 # include <limits.h>
7407 #else
7408 # include <assert.h>
7409 #endif
7410
7411 #undef mmap
7412
7413 /* Override any gcc2 internal prototype to avoid an error.  */
7414 #ifdef __cplusplus
7415 extern "C"
7416 {
7417 #endif
7418 /* We use char because int might match the return type of a gcc2
7419    builtin and then its argument prototype would still apply.  */
7420 char mmap ();
7421 /* The GNU C library defines this for functions which it implements
7422     to always fail with ENOSYS.  Some functions are actually named
7423     something starting with __ and the normal name is an alias.  */
7424 #if defined (__stub_mmap) || defined (__stub___mmap)
7425 choke me
7426 #else
7427 char (*f) () = mmap;
7428 #endif
7429 #ifdef __cplusplus
7430 }
7431 #endif
7432
7433 int
7434 main ()
7435 {
7436 return f != mmap;
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443   (eval $ac_link) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"
7451                          || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest$ac_exeext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_func_mmap=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ac_cv_func_mmap=no
7469 fi
7470 rm -f conftest.err conftest.$ac_objext \
7471       conftest$ac_exeext conftest.$ac_ext
7472 fi
7473 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7474 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7475 if test $ac_cv_func_mmap = yes; then
7476   gcc_func_mmap=yes
7477 else
7478   gcc_func_mmap=no
7479 fi
7480
7481 if test "$gcc_header_sys_mman_h" != yes \
7482  || test "$gcc_func_mmap" != yes; then
7483    gcc_cv_func_mmap_file=no
7484    gcc_cv_func_mmap_dev_zero=no
7485    gcc_cv_func_mmap_anon=no
7486 else
7487    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7488 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7489 if test "${gcc_cv_func_mmap_file+set}" = set; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   # Add a system to this blacklist if
7493    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7494    # memory area containing the same data that you'd get if you applied
7495    # read() to the same fd.  The only system known to have a problem here
7496    # is VMS, where text files have record structure.
7497    case "$host_os" in
7498      vms* | ultrix*)
7499         gcc_cv_func_mmap_file=no ;;
7500      *)
7501         gcc_cv_func_mmap_file=yes;;
7502    esac
7503 fi
7504 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7505 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7506    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7507 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7508 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   # Add a system to this blacklist if it has mmap() but /dev/zero
7512    # does not exist, or if mmapping /dev/zero does not give anonymous
7513    # zeroed pages with both the following properties:
7514    # 1. If you map N consecutive pages in with one call, and then
7515    #    unmap any subset of those pages, the pages that were not
7516    #    explicitly unmapped remain accessible.
7517    # 2. If you map two adjacent blocks of memory and then unmap them
7518    #    both at once, they must both go away.
7519    # Systems known to be in this category are Windows (all variants),
7520    # VMS, and Darwin.
7521    case "$host_os" in
7522      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7523         gcc_cv_func_mmap_dev_zero=no ;;
7524      *)
7525         gcc_cv_func_mmap_dev_zero=yes;;
7526    esac
7527 fi
7528 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7529 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7530
7531    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7532    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7533 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7534 if test "${gcc_cv_decl_map_anon+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 #include <sys/types.h>
7544 #include <sys/mman.h>
7545 #include <unistd.h>
7546
7547 #ifndef MAP_ANONYMOUS
7548 #define MAP_ANONYMOUS MAP_ANON
7549 #endif
7550
7551 int
7552 main ()
7553 {
7554 int n = MAP_ANONYMOUS;
7555   ;
7556   return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7561   (eval $ac_compile) 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_objext'
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   gcc_cv_decl_map_anon=yes
7582 else
7583   echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 gcc_cv_decl_map_anon=no
7587 fi
7588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7589 fi
7590 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7591 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7592
7593    if test $gcc_cv_decl_map_anon = no; then
7594      gcc_cv_func_mmap_anon=no
7595    else
7596      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7597 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7598 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7602    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7603    # doesn't give anonymous zeroed pages with the same properties listed
7604    # above for use of /dev/zero.
7605    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7606    case "$host_os" in
7607      vms* | cygwin* | pe | mingw* | sco* | udk* )
7608         gcc_cv_func_mmap_anon=no ;;
7609      *)
7610         gcc_cv_func_mmap_anon=yes;;
7611    esac
7612 fi
7613 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7614 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7615    fi
7616 fi
7617
7618 if test $gcc_cv_func_mmap_file = yes; then
7619
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_MMAP_FILE 1
7622 _ACEOF
7623
7624 fi
7625 if test $gcc_cv_func_mmap_dev_zero = yes; then
7626
7627 cat >>confdefs.h <<\_ACEOF
7628 #define HAVE_MMAP_DEV_ZERO 1
7629 _ACEOF
7630
7631 fi
7632 if test $gcc_cv_func_mmap_anon = yes; then
7633
7634 cat >>confdefs.h <<\_ACEOF
7635 #define HAVE_MMAP_ANON 1
7636 _ACEOF
7637
7638 fi
7639
7640
7641 case "${host}" in
7642 *-*-*vms*)
7643   # Under VMS, vfork works very differently than on Unix. The standard test
7644   # won't work, and it isn't easily adaptable. It makes more sense to
7645   # just force it.
7646   ac_cv_func_vfork_works=yes
7647   ;;
7648 esac
7649 echo "$as_me:$LINENO: checking for pid_t" >&5
7650 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7651 if test "${ac_cv_type_pid_t+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h.  */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h.  */
7660 $ac_includes_default
7661 int
7662 main ()
7663 {
7664 if ((pid_t *) 0)
7665   return 0;
7666 if (sizeof (pid_t))
7667   return 0;
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674   (eval $ac_compile) 2>conftest.er1
7675   ac_status=$?
7676   grep -v '^ *+' conftest.er1 >conftest.err
7677   rm -f conftest.er1
7678   cat conftest.err >&5
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); } &&
7681          { ac_try='test -z "$ac_c_werror_flag"
7682                          || test ! -s conftest.err'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; } &&
7688          { ac_try='test -s conftest.$ac_objext'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; }; then
7694   ac_cv_type_pid_t=yes
7695 else
7696   echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 ac_cv_type_pid_t=no
7700 fi
7701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7702 fi
7703 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7705 if test $ac_cv_type_pid_t = yes; then
7706   :
7707 else
7708
7709 cat >>confdefs.h <<_ACEOF
7710 #define pid_t int
7711 _ACEOF
7712
7713 fi
7714
7715
7716
7717 for ac_header in unistd.h vfork.h
7718 do
7719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7720 echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h.  */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h.  */
7731 #include <$ac_header>
7732 _ACEOF
7733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7734   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7735   ac_status=$?
7736   grep -v '^ *+' conftest.er1 >conftest.err
7737   rm -f conftest.er1
7738   cat conftest.err >&5
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } >/dev/null; then
7741   if test -s conftest.err; then
7742     ac_cpp_err=$ac_c_preproc_warn_flag
7743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7744   else
7745     ac_cpp_err=
7746   fi
7747 else
7748   ac_cpp_err=yes
7749 fi
7750 if test -z "$ac_cpp_err"; then
7751   eval "$as_ac_Header=yes"
7752 else
7753   echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756   eval "$as_ac_Header=no"
7757 fi
7758 rm -f conftest.err conftest.$ac_ext
7759 fi
7760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7763   cat >>confdefs.h <<_ACEOF
7764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7765 _ACEOF
7766
7767 fi
7768 done
7769
7770
7771
7772 for ac_func in fork vfork
7773 do
7774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7775 echo "$as_me:$LINENO: checking for $ac_func" >&5
7776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7777 if eval "test \"\${$as_ac_var+set}\" = set"; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h.  */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h.  */
7786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7788 #define $ac_func innocuous_$ac_func
7789
7790 /* System header to define __stub macros and hopefully few prototypes,
7791     which can conflict with char $ac_func (); below.
7792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793     <limits.h> exists even on freestanding compilers.  */
7794
7795 #ifdef __STDC__
7796 # include <limits.h>
7797 #else
7798 # include <assert.h>
7799 #endif
7800
7801 #undef $ac_func
7802
7803 /* Override any gcc2 internal prototype to avoid an error.  */
7804 #ifdef __cplusplus
7805 extern "C"
7806 {
7807 #endif
7808 /* We use char because int might match the return type of a gcc2
7809    builtin and then its argument prototype would still apply.  */
7810 char $ac_func ();
7811 /* The GNU C library defines this for functions which it implements
7812     to always fail with ENOSYS.  Some functions are actually named
7813     something starting with __ and the normal name is an alias.  */
7814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815 choke me
7816 #else
7817 char (*f) () = $ac_func;
7818 #endif
7819 #ifdef __cplusplus
7820 }
7821 #endif
7822
7823 int
7824 main ()
7825 {
7826 return f != $ac_func;
7827   ;
7828   return 0;
7829 }
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833   (eval $ac_link) 2>conftest.er1
7834   ac_status=$?
7835   grep -v '^ *+' conftest.er1 >conftest.err
7836   rm -f conftest.er1
7837   cat conftest.err >&5
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -z "$ac_c_werror_flag"
7841                          || test ! -s conftest.err'
7842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843   (eval $ac_try) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; } &&
7847          { ac_try='test -s conftest$ac_exeext'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   eval "$as_ac_var=yes"
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 eval "$as_ac_var=no"
7859 fi
7860 rm -f conftest.err conftest.$ac_objext \
7861       conftest$ac_exeext conftest.$ac_ext
7862 fi
7863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7865 if test `eval echo '${'$as_ac_var'}'` = yes; then
7866   cat >>confdefs.h <<_ACEOF
7867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7868 _ACEOF
7869
7870 fi
7871 done
7872
7873 if test "x$ac_cv_func_fork" = xyes; then
7874   echo "$as_me:$LINENO: checking for working fork" >&5
7875 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7876 if test "${ac_cv_func_fork_works+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   if test "$cross_compiling" = yes; then
7880   ac_cv_func_fork_works=cross
7881 else
7882   cat >conftest.$ac_ext <<_ACEOF
7883 /* By Ruediger Kuhlmann. */
7884       #include <sys/types.h>
7885       #if HAVE_UNISTD_H
7886       # include <unistd.h>
7887       #endif
7888       /* Some systems only have a dummy stub for fork() */
7889       int main ()
7890       {
7891         if (fork() < 0)
7892           exit (1);
7893         exit (0);
7894       }
7895 _ACEOF
7896 rm -f conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898   (eval $ac_link) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903   (eval $ac_try) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); }; }; then
7907   ac_cv_func_fork_works=yes
7908 else
7909   echo "$as_me: program exited with status $ac_status" >&5
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ( exit $ac_status )
7914 ac_cv_func_fork_works=no
7915 fi
7916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 fi
7918 fi
7919 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7920 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7921
7922 else
7923   ac_cv_func_fork_works=$ac_cv_func_fork
7924 fi
7925 if test "x$ac_cv_func_fork_works" = xcross; then
7926   case $host in
7927     *-*-amigaos* | *-*-msdosdjgpp*)
7928       # Override, as these systems have only a dummy fork() stub
7929       ac_cv_func_fork_works=no
7930       ;;
7931     *)
7932       ac_cv_func_fork_works=yes
7933       ;;
7934   esac
7935   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7936 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7937 fi
7938 ac_cv_func_vfork_works=$ac_cv_func_vfork
7939 if test "x$ac_cv_func_vfork" = xyes; then
7940   echo "$as_me:$LINENO: checking for working vfork" >&5
7941 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7942 if test "${ac_cv_func_vfork_works+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   if test "$cross_compiling" = yes; then
7946   ac_cv_func_vfork_works=cross
7947 else
7948   cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 /* Thanks to Paul Eggert for this test.  */
7955 #include <stdio.h>
7956 #include <stdlib.h>
7957 #include <sys/types.h>
7958 #include <sys/stat.h>
7959 #include <sys/wait.h>
7960 #if HAVE_UNISTD_H
7961 # include <unistd.h>
7962 #endif
7963 #if HAVE_VFORK_H
7964 # include <vfork.h>
7965 #endif
7966 /* On some sparc systems, changes by the child to local and incoming
7967    argument registers are propagated back to the parent.  The compiler
7968    is told about this with #include <vfork.h>, but some compilers
7969    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7970    static variable whose address is put into a register that is
7971    clobbered by the vfork.  */
7972 static void
7973 #ifdef __cplusplus
7974 sparc_address_test (int arg)
7975 # else
7976 sparc_address_test (arg) int arg;
7977 #endif
7978 {
7979   static pid_t child;
7980   if (!child) {
7981     child = vfork ();
7982     if (child < 0) {
7983       perror ("vfork");
7984       _exit(2);
7985     }
7986     if (!child) {
7987       arg = getpid();
7988       write(-1, "", 0);
7989       _exit (arg);
7990     }
7991   }
7992 }
7993
7994 int
7995 main ()
7996 {
7997   pid_t parent = getpid ();
7998   pid_t child;
7999
8000   sparc_address_test (0);
8001
8002   child = vfork ();
8003
8004   if (child == 0) {
8005     /* Here is another test for sparc vfork register problems.  This
8006        test uses lots of local variables, at least as many local
8007        variables as main has allocated so far including compiler
8008        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8009        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8010        reuse the register of parent for one of the local variables,
8011        since it will think that parent can't possibly be used any more
8012        in this routine.  Assigning to the local variable will thus
8013        munge parent in the parent process.  */
8014     pid_t
8015       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8016       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8017     /* Convince the compiler that p..p7 are live; otherwise, it might
8018        use the same hardware register for all 8 local variables.  */
8019     if (p != p1 || p != p2 || p != p3 || p != p4
8020         || p != p5 || p != p6 || p != p7)
8021       _exit(1);
8022
8023     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8024        from child file descriptors.  If the child closes a descriptor
8025        before it execs or exits, this munges the parent's descriptor
8026        as well.  Test for this by closing stdout in the child.  */
8027     _exit(close(fileno(stdout)) != 0);
8028   } else {
8029     int status;
8030     struct stat st;
8031
8032     while (wait(&status) != child)
8033       ;
8034     exit(
8035          /* Was there some problem with vforking?  */
8036          child < 0
8037
8038          /* Did the child fail?  (This shouldn't happen.)  */
8039          || status
8040
8041          /* Did the vfork/compiler bug occur?  */
8042          || parent != getpid()
8043
8044          /* Did the file descriptor bug occur?  */
8045          || fstat(fileno(stdout), &st) != 0
8046          );
8047   }
8048 }
8049 _ACEOF
8050 rm -f conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052   (eval $ac_link) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; }; then
8061   ac_cv_func_vfork_works=yes
8062 else
8063   echo "$as_me: program exited with status $ac_status" >&5
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ( exit $ac_status )
8068 ac_cv_func_vfork_works=no
8069 fi
8070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 fi
8073 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8074 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8075
8076 fi;
8077 if test "x$ac_cv_func_fork_works" = xcross; then
8078   ac_cv_func_vfork_works=$ac_cv_func_vfork
8079   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8080 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8081 fi
8082
8083 if test "x$ac_cv_func_vfork_works" = xyes; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_WORKING_VFORK 1
8087 _ACEOF
8088
8089 else
8090
8091 cat >>confdefs.h <<\_ACEOF
8092 #define vfork fork
8093 _ACEOF
8094
8095 fi
8096 if test "x$ac_cv_func_fork_works" = xyes; then
8097
8098 cat >>confdefs.h <<\_ACEOF
8099 #define HAVE_WORKING_FORK 1
8100 _ACEOF
8101
8102 fi
8103
8104
8105
8106
8107   am_cv_lib_iconv_ldpath=
8108
8109 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8110 if test "${with_libiconv_prefix+set}" = set; then
8111   withval="$with_libiconv_prefix"
8112
8113     for dir in `echo "$withval" | tr : ' '`; do
8114       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8115       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8116     done
8117
8118 fi;
8119
8120
8121 for ac_header in iconv.h
8122 do
8123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135 #include <$ac_header>
8136 _ACEOF
8137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } >/dev/null; then
8145   if test -s conftest.err; then
8146     ac_cpp_err=$ac_c_preproc_warn_flag
8147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8148   else
8149     ac_cpp_err=
8150   fi
8151 else
8152   ac_cpp_err=yes
8153 fi
8154 if test -z "$ac_cpp_err"; then
8155   eval "$as_ac_Header=yes"
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160   eval "$as_ac_Header=no"
8161 fi
8162 rm -f conftest.err conftest.$ac_ext
8163 fi
8164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8167   cat >>confdefs.h <<_ACEOF
8168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8169 _ACEOF
8170
8171 fi
8172 done
8173
8174
8175   echo "$as_me:$LINENO: checking for iconv" >&5
8176 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8177 if test "${am_cv_func_iconv+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180
8181     am_cv_func_iconv="no, consider installing GNU libiconv"
8182     am_cv_lib_iconv=no
8183     cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189 #include <stdlib.h>
8190 #include <iconv.h>
8191 int
8192 main ()
8193 {
8194 iconv_t cd = iconv_open("","");
8195        iconv(cd,NULL,NULL,NULL,NULL);
8196        iconv_close(cd);
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203   (eval $ac_link) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   am_cv_func_iconv=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 fi
8229 rm -f conftest.err conftest.$ac_objext \
8230       conftest$ac_exeext conftest.$ac_ext
8231     if test "$am_cv_func_iconv" != yes; then
8232       am_save_LIBS="$LIBS"
8233       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8234       cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 #include <stdlib.h>
8241 #include <iconv.h>
8242 int
8243 main ()
8244 {
8245 iconv_t cd = iconv_open("","");
8246          iconv(cd,NULL,NULL,NULL,NULL);
8247          iconv_close(cd);
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254   (eval $ac_link) 2>conftest.er1
8255   ac_status=$?
8256   grep -v '^ *+' conftest.er1 >conftest.err
8257   rm -f conftest.er1
8258   cat conftest.err >&5
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } &&
8261          { ac_try='test -z "$ac_c_werror_flag"
8262                          || test ! -s conftest.err'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; } &&
8268          { ac_try='test -s conftest$ac_exeext'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; }; then
8274   am_cv_lib_iconv=yes
8275         am_cv_func_iconv=yes
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 fi
8281 rm -f conftest.err conftest.$ac_objext \
8282       conftest$ac_exeext conftest.$ac_ext
8283       LIBS="$am_save_LIBS"
8284     fi
8285
8286 fi
8287 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8288 echo "${ECHO_T}$am_cv_func_iconv" >&6
8289   if test "$am_cv_func_iconv" = yes; then
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_ICONV 1
8293 _ACEOF
8294
8295     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8296 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8297     if test "${am_cv_proto_iconv+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300
8301       cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307
8308 #include <stdlib.h>
8309 #include <iconv.h>
8310 extern
8311 #ifdef __cplusplus
8312 "C"
8313 #endif
8314 #if defined(__STDC__) || defined(__cplusplus)
8315 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8316 #else
8317 size_t iconv();
8318 #endif
8319
8320 int
8321 main ()
8322 {
8323
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330   (eval $ac_compile) 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -z "$ac_c_werror_flag"
8338                          || test ! -s conftest.err'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; } &&
8344          { ac_try='test -s conftest.$ac_objext'
8345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346   (eval $ac_try) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   am_cv_proto_iconv_arg1=""
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 am_cv_proto_iconv_arg1="const"
8356 fi
8357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8358       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);"
8359 fi
8360
8361     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8362     echo "$as_me:$LINENO: result: ${ac_t:-
8363          }$am_cv_proto_iconv" >&5
8364 echo "${ECHO_T}${ac_t:-
8365          }$am_cv_proto_iconv" >&6
8366
8367 cat >>confdefs.h <<_ACEOF
8368 #define ICONV_CONST $am_cv_proto_iconv_arg1
8369 _ACEOF
8370
8371   fi
8372   LIBICONV=
8373   if test "$am_cv_lib_iconv" = yes; then
8374     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8375   fi
8376
8377
8378 # Until we have in-tree GNU iconv:
8379 LIBICONV_DEP=
8380
8381
8382
8383   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8384 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8385 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394 #include <locale.h>
8395 int
8396 main ()
8397 {
8398 return LC_MESSAGES
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405   (eval $ac_link) 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -z "$ac_c_werror_flag"
8413                          || test ! -s conftest.err'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   am_cv_val_LC_MESSAGES=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 am_cv_val_LC_MESSAGES=no
8431 fi
8432 rm -f conftest.err conftest.$ac_objext \
8433       conftest$ac_exeext conftest.$ac_ext
8434 fi
8435 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8436 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8437   if test $am_cv_val_LC_MESSAGES = yes; then
8438
8439 cat >>confdefs.h <<\_ACEOF
8440 #define HAVE_LC_MESSAGES 1
8441 _ACEOF
8442
8443   fi
8444
8445
8446 # We will need to find libiberty.h and ansidecl.h
8447 saved_CFLAGS="$CFLAGS"
8448 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8474         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8475         fprintf_unlocked strstr errno snprintf vasprintf \
8476         malloc realloc calloc free basename getopt clock getpagesize
8477 do
8478   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8479 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8480 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8481 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490 #undef $ac_tr_decl
8491 #define $ac_tr_decl 1
8492
8493 #include "ansidecl.h"
8494 #include "system.h"
8495
8496 int
8497 main ()
8498 {
8499 #ifndef $ac_func
8500 char *(*pfn) = (char *(*)) $ac_func ;
8501 #endif
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508   (eval $ac_compile) 2>conftest.er1
8509   ac_status=$?
8510   grep -v '^ *+' conftest.er1 >conftest.err
8511   rm -f conftest.er1
8512   cat conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } &&
8515          { ac_try='test -z "$ac_c_werror_flag"
8516                          || test ! -s conftest.err'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; } &&
8522          { ac_try='test -s conftest.$ac_objext'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; }; then
8528   eval "gcc_cv_have_decl_$ac_func=yes"
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 eval "gcc_cv_have_decl_$ac_func=no"
8534 fi
8535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8536 fi
8537
8538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8539   echo "$as_me:$LINENO: result: yes" >&5
8540 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8541 #define $ac_tr_decl 1
8542 _ACEOF
8543
8544 else
8545   echo "$as_me:$LINENO: result: no" >&5
8546 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8547 #define $ac_tr_decl 0
8548 _ACEOF
8549
8550 fi
8551
8552 done
8553
8554
8555
8556
8557
8558 for ac_func in getrlimit setrlimit getrusage
8559 do
8560   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8561 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8562 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8563 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8564   echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566   cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 #undef $ac_tr_decl
8573 #define $ac_tr_decl 1
8574
8575 #include "ansidecl.h"
8576 #include "system.h"
8577 #ifdef HAVE_SYS_RESOURCE_H
8578 #include <sys/resource.h>
8579 #endif
8580
8581
8582 int
8583 main ()
8584 {
8585 #ifndef $ac_func
8586 char *(*pfn) = (char *(*)) $ac_func ;
8587 #endif
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594   (eval $ac_compile) 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag"
8602                          || test ! -s conftest.err'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; } &&
8608          { ac_try='test -s conftest.$ac_objext'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   eval "gcc_cv_have_decl_$ac_func=yes"
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 eval "gcc_cv_have_decl_$ac_func=no"
8620 fi
8621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623
8624 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8625   echo "$as_me:$LINENO: result: yes" >&5
8626 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8627 #define $ac_tr_decl 1
8628 _ACEOF
8629
8630 else
8631   echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8633 #define $ac_tr_decl 0
8634 _ACEOF
8635
8636 fi
8637
8638 done
8639
8640
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647
8648 #include "ansidecl.h"
8649 #include "system.h"
8650 #ifdef HAVE_SYS_RESOURCE_H
8651 #include <sys/resource.h>
8652 #endif
8653
8654 int
8655 main ()
8656 {
8657 rlim_t l = 0;
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664   (eval $ac_compile) 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -z "$ac_c_werror_flag"
8672                          || test ! -s conftest.err'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; } &&
8678          { ac_try='test -s conftest.$ac_objext'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; }; then
8684   :
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689
8690 cat >>confdefs.h <<\_ACEOF
8691 #define rlim_t long
8692 _ACEOF
8693
8694 fi
8695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8696
8697
8698 for ac_func in ldgetname
8699 do
8700   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8701 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8702 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8703 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 #undef $ac_tr_decl
8713 #define $ac_tr_decl 1
8714
8715 #include "ansidecl.h"
8716 #include "system.h"
8717 #ifdef HAVE_LDFCN_H
8718 #include <ldfcn.h>
8719 #endif
8720
8721
8722 int
8723 main ()
8724 {
8725 #ifndef $ac_func
8726 char *(*pfn) = (char *(*)) $ac_func ;
8727 #endif
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8734   (eval $ac_compile) 2>conftest.er1
8735   ac_status=$?
8736   grep -v '^ *+' conftest.er1 >conftest.err
8737   rm -f conftest.er1
8738   cat conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); } &&
8741          { ac_try='test -z "$ac_c_werror_flag"
8742                          || test ! -s conftest.err'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; } &&
8748          { ac_try='test -s conftest.$ac_objext'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; }; then
8754   eval "gcc_cv_have_decl_$ac_func=yes"
8755 else
8756   echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 eval "gcc_cv_have_decl_$ac_func=no"
8760 fi
8761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763
8764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8765   echo "$as_me:$LINENO: result: yes" >&5
8766 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8767 #define $ac_tr_decl 1
8768 _ACEOF
8769
8770 else
8771   echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8773 #define $ac_tr_decl 0
8774 _ACEOF
8775
8776 fi
8777
8778 done
8779
8780
8781
8782 for ac_func in times
8783 do
8784   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8785 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8786 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8787 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796 #undef $ac_tr_decl
8797 #define $ac_tr_decl 1
8798
8799 #include "ansidecl.h"
8800 #include "system.h"
8801 #ifdef HAVE_SYS_TIMES_H
8802 #include <sys/times.h>
8803 #endif
8804
8805
8806 int
8807 main ()
8808 {
8809 #ifndef $ac_func
8810 char *(*pfn) = (char *(*)) $ac_func ;
8811 #endif
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818   (eval $ac_compile) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"
8826                          || test ! -s conftest.err'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; } &&
8832          { ac_try='test -s conftest.$ac_objext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   eval "gcc_cv_have_decl_$ac_func=yes"
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 eval "gcc_cv_have_decl_$ac_func=no"
8844 fi
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847
8848 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8849   echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8851 #define $ac_tr_decl 1
8852 _ACEOF
8853
8854 else
8855   echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8857 #define $ac_tr_decl 0
8858 _ACEOF
8859
8860 fi
8861
8862 done
8863
8864
8865 # More time-related stuff.
8866 echo "$as_me:$LINENO: checking for struct tms" >&5
8867 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8868 if test "${ac_cv_struct_tms+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 #include "ansidecl.h"
8880 #include "system.h"
8881 #ifdef HAVE_SYS_TIMES_H
8882 #include <sys/times.h>
8883 #endif
8884
8885 int
8886 main ()
8887 {
8888 struct tms tms;
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895   (eval $ac_compile) 2>conftest.er1
8896   ac_status=$?
8897   grep -v '^ *+' conftest.er1 >conftest.err
8898   rm -f conftest.er1
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } &&
8902          { ac_try='test -z "$ac_c_werror_flag"
8903                          || test ! -s conftest.err'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; } &&
8909          { ac_try='test -s conftest.$ac_objext'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; }; then
8915   ac_cv_struct_tms=yes
8916 else
8917   echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 ac_cv_struct_tms=no
8921 fi
8922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8923 fi
8924 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8925 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8926 if test $ac_cv_struct_tms = yes; then
8927
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_STRUCT_TMS 1
8930 _ACEOF
8931
8932 fi
8933
8934 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8935 # revisit after autoconf 2.50.
8936 echo "$as_me:$LINENO: checking for clock_t" >&5
8937 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8938 if test "${gcc_cv_type_clock_t+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948
8949 #include "ansidecl.h"
8950 #include "system.h"
8951
8952 int
8953 main ()
8954 {
8955 clock_t x;
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962   (eval $ac_compile) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"
8970                          || test ! -s conftest.err'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; } &&
8976          { ac_try='test -s conftest.$ac_objext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   gcc_cv_type_clock_t=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 gcc_cv_type_clock_t=no
8988 fi
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8990 fi
8991 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8992 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8993 if test $gcc_cv_type_clock_t = yes; then
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_CLOCK_T 1
8997 _ACEOF
8998
8999 fi
9000
9001 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9002 CFLAGS="$saved_CFLAGS"
9003
9004 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9005 if test "${enable_initfini_array+set}" = set; then
9006   enableval="$enable_initfini_array"
9007
9008 else
9009
9010 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9011 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9012 if test "${gcc_cv_initfini_array+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015     if test "$cross_compiling" = yes; then
9016   gcc_cv_initfini_array=no
9017 else
9018   cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h.  */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h.  */
9024
9025 static int x = -1;
9026 int main (void) { return x; }
9027 int foo (void) { x = 0; }
9028 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9029 _ACEOF
9030 rm -f conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032   (eval $ac_link) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   gcc_cv_initfini_array=yes
9042 else
9043   echo "$as_me: program exited with status $ac_status" >&5
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ( exit $ac_status )
9048 gcc_cv_initfini_array=no
9049 fi
9050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9051 fi
9052 fi
9053 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9054 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9055   enable_initfini_array=$gcc_cv_initfini_array
9056
9057 fi;
9058 if test $enable_initfini_array = yes; then
9059
9060 cat >>confdefs.h <<\_ACEOF
9061 #define HAVE_INITFINI_ARRAY 1
9062 _ACEOF
9063
9064 fi
9065
9066 # mkdir takes a single argument on some systems.
9067 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9068 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9069 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078
9079 #include <sys/types.h>
9080 #ifdef HAVE_SYS_STAT_H
9081 # include <sys/stat.h>
9082 #endif
9083 #ifdef HAVE_UNISTD_H
9084 # include <unistd.h>
9085 #endif
9086 #ifdef HAVE_DIRECT_H
9087 # include <direct.h>
9088 #endif
9089 int
9090 main ()
9091 {
9092 mkdir ("foo", 0);
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099   (eval $ac_compile) 2>conftest.er1
9100   ac_status=$?
9101   grep -v '^ *+' conftest.er1 >conftest.err
9102   rm -f conftest.er1
9103   cat conftest.err >&5
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } &&
9106          { ac_try='test -z "$ac_c_werror_flag"
9107                          || test ! -s conftest.err'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; } &&
9113          { ac_try='test -s conftest.$ac_objext'
9114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); }; }; then
9119   gcc_cv_mkdir_takes_one_arg=no
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124 gcc_cv_mkdir_takes_one_arg=yes
9125 fi
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9129 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9130 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9131
9132 cat >>confdefs.h <<\_ACEOF
9133 #define MKDIR_TAKES_ONE_ARG 1
9134 _ACEOF
9135
9136 fi
9137
9138
9139 # File extensions
9140 manext='.1'
9141 objext='.o'
9142
9143
9144
9145 # With Setjmp/Longjmp based exception handling.
9146 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9147 if test "${enable_sjlj_exceptions+set}" = set; then
9148   enableval="$enable_sjlj_exceptions"
9149   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9150
9151 cat >>confdefs.h <<_ACEOF
9152 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9153 _ACEOF
9154
9155 fi;
9156
9157 # For platforms with the unwind ABI which includes an unwind library,
9158 # libunwind, we can choose to use the system libunwind.
9159
9160 # Check whether --with-system-libunwind or --without-system-libunwind was given.
9161 if test "${with_system_libunwind+set}" = set; then
9162   withval="$with_system_libunwind"
9163
9164 fi;
9165
9166 # --------------------------------------------------------
9167 # Build, host, and target specific configuration fragments
9168 # --------------------------------------------------------
9169
9170 # Collect build-machine-specific information.
9171 . ${srcdir}/config.build
9172
9173 # Collect host-machine-specific information.
9174 . ${srcdir}/config.host
9175
9176 target_gtfiles=
9177
9178 # Collect target-machine-specific information.
9179 . ${srcdir}/config.gcc
9180
9181 extra_objs="${host_extra_objs} ${extra_objs}"
9182 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9183
9184 # Default the target-machine variables that were not explicitly set.
9185 if test x"$tm_file" = x
9186 then tm_file=$cpu_type/$cpu_type.h; fi
9187
9188 if test x"$extra_headers" = x
9189 then extra_headers=; fi
9190
9191 if test x$md_file = x
9192 then md_file=$cpu_type/$cpu_type.md; fi
9193
9194 if test x$out_file = x
9195 then out_file=$cpu_type/$cpu_type.c; fi
9196
9197 if test x"$tmake_file" = x
9198 then tmake_file=$cpu_type/t-$cpu_type
9199 fi
9200
9201 if test x"$dwarf2" = xyes
9202 then tm_file="$tm_file tm-dwarf2.h"
9203 fi
9204
9205 # Say what files are being used for the output code and MD file.
9206 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9207 echo "Using \`$srcdir/config/$md_file' as machine description file."
9208
9209 # If any of the xm_file variables contain nonexistent files, warn
9210 # about them and drop them.
9211
9212 bx=
9213 for x in $build_xm_file; do
9214   if    test -f $srcdir/config/$x
9215   then      bx="$bx $x"
9216   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9217 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9218   fi
9219 done
9220 build_xm_file="$bx"
9221
9222 hx=
9223 for x in $host_xm_file; do
9224   if    test -f $srcdir/config/$x
9225   then      hx="$hx $x"
9226   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9227 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9228   fi
9229 done
9230 host_xm_file="$hx"
9231
9232 tx=
9233 for x in $xm_file; do
9234   if    test -f $srcdir/config/$x
9235   then      tx="$tx $x"
9236   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9237 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9238   fi
9239 done
9240 xm_file="$tx"
9241
9242 count=a
9243 for f in $tm_file; do
9244         count=${count}x
9245 done
9246 if test $count = ax; then
9247         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9248 else
9249         echo "Using the following target machine macro files:"
9250         for f in $tm_file; do
9251                 echo "  $srcdir/config/$f"
9252         done
9253 fi
9254
9255 if test x$need_64bit_hwint = xyes; then
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define NEED_64BIT_HOST_WIDE_INT 1
9259 _ACEOF
9260
9261 fi
9262
9263 if test x$use_long_long_for_widest_fast_int = xyes; then
9264
9265 cat >>confdefs.h <<\_ACEOF
9266 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
9267 _ACEOF
9268
9269 fi
9270
9271 count=a
9272 for f in $host_xm_file; do
9273         count=${count}x
9274 done
9275 if test $count = a; then
9276         :
9277 elif test $count = ax; then
9278         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9279 else
9280         echo "Using the following host machine macro files:"
9281         for f in $host_xm_file; do
9282                 echo "  $srcdir/config/$f"
9283         done
9284 fi
9285 echo "Using ${out_host_hook_obj} for host machine hooks."
9286
9287 if test "$host_xm_file" != "$build_xm_file"; then
9288         count=a
9289         for f in $build_xm_file; do
9290                 count=${count}x
9291         done
9292         if test $count = a; then
9293                 :
9294         elif test $count = ax; then
9295                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9296         else
9297                 echo "Using the following build machine macro files:"
9298                 for f in $build_xm_file; do
9299                         echo "  $srcdir/config/$f"
9300                 done
9301         fi
9302 fi
9303
9304 # ---------
9305 # Threading
9306 # ---------
9307
9308 # Check if a valid thread package
9309 case ${enable_threads} in
9310   "" | no)
9311     # No threads
9312     target_thread_file='single'
9313     ;;
9314   yes)
9315     # default
9316     target_thread_file='single'
9317     ;;
9318   aix | dce | gnat | irix | posix | rtems | \
9319   single | solaris | vxworks | win32 )
9320     target_thread_file=${enable_threads}
9321     ;;
9322   *)
9323     echo "${enable_threads} is an unknown thread package" 1>&2
9324     exit 1
9325     ;;
9326 esac
9327
9328 if test x${thread_file} = x; then
9329   # No thread file set by target-specific clauses in config.gcc,
9330   # so use file chosen by default logic above
9331   thread_file=${target_thread_file}
9332 fi
9333
9334 # Make gthr-default.h if we have a thread file.
9335 gthread_flags=
9336 if test $thread_file != single; then
9337   rm -f gthr-default.h
9338   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9339   gthread_flags=-DHAVE_GTHR_DEFAULT
9340 fi
9341
9342
9343 # --------
9344 # UNSORTED
9345 # --------
9346
9347 if test x$enable___cxa_atexit = xyes || \
9348    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9349    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9350 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9351 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9362 #define __cxa_atexit innocuous___cxa_atexit
9363
9364 /* System header to define __stub macros and hopefully few prototypes,
9365     which can conflict with char __cxa_atexit (); below.
9366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367     <limits.h> exists even on freestanding compilers.  */
9368
9369 #ifdef __STDC__
9370 # include <limits.h>
9371 #else
9372 # include <assert.h>
9373 #endif
9374
9375 #undef __cxa_atexit
9376
9377 /* Override any gcc2 internal prototype to avoid an error.  */
9378 #ifdef __cplusplus
9379 extern "C"
9380 {
9381 #endif
9382 /* We use char because int might match the return type of a gcc2
9383    builtin and then its argument prototype would still apply.  */
9384 char __cxa_atexit ();
9385 /* The GNU C library defines this for functions which it implements
9386     to always fail with ENOSYS.  Some functions are actually named
9387     something starting with __ and the normal name is an alias.  */
9388 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9389 choke me
9390 #else
9391 char (*f) () = __cxa_atexit;
9392 #endif
9393 #ifdef __cplusplus
9394 }
9395 #endif
9396
9397 int
9398 main ()
9399 {
9400 return f != __cxa_atexit;
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407   (eval $ac_link) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -z "$ac_c_werror_flag"
9415                          || test ! -s conftest.err'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; } &&
9421          { ac_try='test -s conftest$ac_exeext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_cv_func___cxa_atexit=yes
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_func___cxa_atexit=no
9433 fi
9434 rm -f conftest.err conftest.$ac_objext \
9435       conftest$ac_exeext conftest.$ac_ext
9436 fi
9437 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9438 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9439 if test $ac_cv_func___cxa_atexit = yes; then
9440
9441 cat >>confdefs.h <<\_ACEOF
9442 #define DEFAULT_USE_CXA_ATEXIT 1
9443 _ACEOF
9444
9445 else
9446   echo "__cxa_atexit can't be enabled on this target"
9447 fi
9448
9449 fi
9450
9451 # Look for a file containing extra machine modes.
9452 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9453   extra_modes_file='$(srcdir)'/config/${extra_modes}
9454
9455
9456 cat >>confdefs.h <<_ACEOF
9457 #define EXTRA_MODES_FILE "config/$extra_modes"
9458 _ACEOF
9459
9460 fi
9461
9462 # auto-host.h is the file containing items generated by autoconf and is
9463 # the first file included by config.h.
9464 # If host=build, it is correct to have bconfig include auto-host.h
9465 # as well.  If host!=build, we are in error and need to do more
9466 # work to find out the build config parameters.
9467 if test x$host = x$build
9468 then
9469         build_auto=auto-host.h
9470 else
9471         # We create a subdir, then run autoconf in the subdir.
9472         # To prevent recursion we set host and build for the new
9473         # invocation of configure to the build for this invocation
9474         # of configure.
9475         tempdir=build.$$
9476         rm -rf $tempdir
9477         mkdir $tempdir
9478         cd $tempdir
9479         case ${srcdir} in
9480         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9481         *) realsrcdir=../${srcdir};;
9482         esac
9483         saved_CFLAGS="${CFLAGS}"
9484         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9485         ${realsrcdir}/configure \
9486                 --enable-languages=${enable_languages-all} \
9487                 --target=$target_alias --host=$build_alias --build=$build_alias
9488         CFLAGS="${saved_CFLAGS}"
9489
9490         # We just finished tests for the build machine, so rename
9491         # the file auto-build.h in the gcc directory.
9492         mv auto-host.h ../auto-build.h
9493         cd ..
9494         rm -rf $tempdir
9495         build_auto=auto-build.h
9496 fi
9497
9498
9499 tm_file="${tm_file} defaults.h"
9500 tm_p_file="${tm_p_file} tm-preds.h"
9501 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9502 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9503 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9504 # put this back in temporarily.
9505 xm_file="ansidecl.h ${xm_file}"
9506
9507 # --------
9508 # UNSORTED
9509 # --------
9510
9511 # Get the version trigger filename from the toplevel
9512 if test "${with_gcc_version_trigger+set}" = set; then
9513         gcc_version_trigger=$with_gcc_version_trigger
9514 else
9515         gcc_version_trigger=${srcdir}/version.c
9516 fi
9517 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9518 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9519
9520 # Compile in configure arguments.
9521 if test -f configargs.h ; then
9522         # Being re-configured.
9523         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9524         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9525 else
9526         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9527 fi
9528
9529 # Double all backslashes and backslash all quotes to turn
9530 # gcc_config_arguments into a C string.
9531 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9532 $gcc_config_arguments
9533 EOF
9534 gcc_config_arguments_str=`cat conftest.out`
9535 rm -f conftest.out
9536
9537 cat > configargs.h <<EOF
9538 /* Generated automatically. */
9539 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9540 static const char thread_model[] = "$thread_file";
9541
9542 static const struct {
9543   const char *name, *value;
9544 } configure_default_options[] = $configure_default_options;
9545 EOF
9546
9547 # Internationalization
9548 PACKAGE=gcc
9549 VERSION="$gcc_version"
9550
9551 cat >>confdefs.h <<_ACEOF
9552 #define PACKAGE "$PACKAGE"
9553 _ACEOF
9554
9555
9556
9557
9558 # If we haven't got the data from the intl directory,
9559 # assume NLS is disabled.
9560 USE_NLS=no
9561 LIBINTL=
9562 LIBINTL_DEP=
9563 INCINTL=
9564 XGETTEXT=
9565 GMSGFMT=
9566 POSUB=
9567 if test -f ../intl/config.intl; then
9568   . ../intl/config.intl
9569 fi
9570 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9571 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9572 if test x"$USE_NLS" != xyes; then
9573   echo "$as_me:$LINENO: result: no" >&5
9574 echo "${ECHO_T}no" >&6
9575 else
9576   echo "$as_me:$LINENO: result: yes" >&5
9577 echo "${ECHO_T}yes" >&6
9578
9579 cat >>confdefs.h <<\_ACEOF
9580 #define ENABLE_NLS 1
9581 _ACEOF
9582
9583
9584   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9585 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9586   # Look for .po and .gmo files in the source directory.
9587   CATALOGS=
9588   XLINGUAS=
9589   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9590     # If there aren't any .gmo files the shell will give us the
9591     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9592     # weeded out.
9593     case "$cat" in *\**)
9594       continue;;
9595     esac
9596     # The quadruple backslash is collapsed to a double backslash
9597     # by the backticks, then collapsed again by the double quotes,
9598     # leaving us with one backslash in the sed expression (right
9599     # before the dot that mustn't act as a wildcard).
9600     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9601     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9602     # The user is allowed to set LINGUAS to a list of languages to
9603     # install catalogs for.  If it's empty that means "all of them."
9604     if test "x$LINGUAS" = x; then
9605       CATALOGS="$CATALOGS $cat"
9606       XLINGUAS="$XLINGUAS $lang"
9607     else
9608       case "$LINGUAS" in *$lang*)
9609         CATALOGS="$CATALOGS $cat"
9610         XLINGUAS="$XLINGUAS $lang"
9611         ;;
9612       esac
9613     fi
9614   done
9615   LINGUAS="$XLINGUAS"
9616   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9617 echo "${ECHO_T}$LINGUAS" >&6
9618 fi
9619
9620 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9621 # -liconv on the link line twice.
9622 case "$LIBINTL" in *$LIBICONV*)
9623         LIBICONV= ;;
9624 esac
9625
9626 # Windows32 Registry support for specifying GCC installation paths.
9627 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9628 if test "${enable_win32_registry+set}" = set; then
9629   enableval="$enable_win32_registry"
9630
9631 fi;
9632 case $host_os in
9633         win32 | pe | cygwin* | mingw32* | uwin*)
9634 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9635 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9636 if test "x$enable_win32_registry" != xno; then
9637
9638 cat >>confdefs.h <<\_ACEOF
9639 #define ENABLE_WIN32_REGISTRY 1
9640 _ACEOF
9641
9642   echo "$as_me:$LINENO: result: yes" >&5
9643 echo "${ECHO_T}yes" >&6
9644   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9645 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9646 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   ac_func_search_save_LIBS=$LIBS
9650 ac_cv_search_RegOpenKeyExA=no
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657
9658 /* Override any gcc2 internal prototype to avoid an error.  */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 /* We use char because int might match the return type of a gcc2
9663    builtin and then its argument prototype would still apply.  */
9664 char RegOpenKeyExA ();
9665 int
9666 main ()
9667 {
9668 RegOpenKeyExA ();
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675   (eval $ac_link) 2>conftest.er1
9676   ac_status=$?
9677   grep -v '^ *+' conftest.er1 >conftest.err
9678   rm -f conftest.er1
9679   cat conftest.err >&5
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } &&
9682          { ac_try='test -z "$ac_c_werror_flag"
9683                          || test ! -s conftest.err'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; } &&
9689          { ac_try='test -s conftest$ac_exeext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_search_RegOpenKeyExA="none required"
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 fi
9701 rm -f conftest.err conftest.$ac_objext \
9702       conftest$ac_exeext conftest.$ac_ext
9703 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9704   for ac_lib in advapi32; do
9705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9706     cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any gcc2 internal prototype to avoid an error.  */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 /* We use char because int might match the return type of a gcc2
9718    builtin and then its argument prototype would still apply.  */
9719 char RegOpenKeyExA ();
9720 int
9721 main ()
9722 {
9723 RegOpenKeyExA ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730   (eval $ac_link) 2>conftest.er1
9731   ac_status=$?
9732   grep -v '^ *+' conftest.er1 >conftest.err
9733   rm -f conftest.er1
9734   cat conftest.err >&5
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } &&
9737          { ac_try='test -z "$ac_c_werror_flag"
9738                          || test ! -s conftest.err'
9739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740   (eval $ac_try) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9751 break
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 fi
9757 rm -f conftest.err conftest.$ac_objext \
9758       conftest$ac_exeext conftest.$ac_ext
9759   done
9760 fi
9761 LIBS=$ac_func_search_save_LIBS
9762 fi
9763 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9764 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9765 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9766   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9767
9768 fi
9769
9770 else
9771   echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9773 fi
9774
9775 # Check if user specified a different registry key.
9776 case "x${enable_win32_registry}" in
9777 x | xyes)
9778   # default.
9779   gcc_cv_win32_registry_key="$VERSION"
9780   ;;
9781 xno)
9782   # no registry lookup.
9783   gcc_cv_win32_registry_key=''
9784   ;;
9785 *)
9786   # user-specified key.
9787   gcc_cv_win32_registry_key="$enable_win32_registry"
9788   ;;
9789 esac
9790
9791 if test "x$enable_win32_registry" != xno; then
9792   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9793 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9794
9795 cat >>confdefs.h <<_ACEOF
9796 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9797 _ACEOF
9798
9799   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9800 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9801 fi
9802 ;;
9803 esac
9804
9805 # Get an absolute path to the GCC top-level source directory
9806 holddir=`${PWDCMD-pwd}`
9807 cd $srcdir
9808 topdir=`${PWDCMD-pwd}`
9809 cd $holddir
9810
9811 # Conditionalize the makefile for this host machine.
9812 xmake_file=
9813 for f in ${host_xmake_file}
9814 do
9815         if test -f ${srcdir}/config/$f
9816         then
9817                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9818         fi
9819 done
9820
9821 # Conditionalize the makefile for this target machine.
9822 tmake_file_=
9823 for f in ${tmake_file}
9824 do
9825         if test -f ${srcdir}/config/$f
9826         then
9827                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9828         fi
9829 done
9830 tmake_file="${tmake_file_}"
9831
9832 symbolic_link='ln -s'
9833
9834 # If the host doesn't support symlinks, modify CC in
9835 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9836 # Otherwise, we can use "CC=$(CC)".
9837 rm -f symtest.tem
9838 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9839 then
9840         cc_set_by_configure="\$(CC)"
9841         quoted_cc_set_by_configure="\$(CC)"
9842         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9843         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9844 else
9845         rm -f symtest.tem
9846         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9847         then
9848                 symbolic_link="cp -p"
9849         else
9850                 symbolic_link="cp"
9851         fi
9852         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9853         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9854         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9855         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9856 fi
9857 rm -f symtest.tem
9858
9859 out_object_file=`basename $out_file .c`.o
9860
9861 tm_file_list=
9862 tm_include_list=
9863 for f in $tm_file; do
9864   case $f in
9865     defaults.h )
9866        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9867        tm_include_list="${tm_include_list} $f"
9868        ;;
9869     * )
9870        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9871        tm_include_list="${tm_include_list} config/$f"
9872        ;;
9873   esac
9874 done
9875
9876 tm_p_file_list=
9877 tm_p_include_list=
9878 for f in $tm_p_file; do
9879   case $f in
9880     tm-preds.h )
9881        tm_p_file_list="${tm_p_file_list} $f"
9882        tm_p_include_list="${tm_p_include_list} $f"
9883        ;;
9884     * )
9885        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9886        tm_p_include_list="${tm_p_include_list} config/$f"
9887   esac
9888 done
9889
9890 xm_file_list=
9891 xm_include_list=
9892 for f in $xm_file; do
9893   case $f in
9894     ansidecl.h )
9895        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9896        xm_include_list="${xm_include_list} $f"
9897        ;;
9898     auto-host.h )
9899        xm_file_list="${xm_file_list} $f"
9900        xm_include_list="${xm_include_list} $f"
9901        ;;
9902     * )
9903        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9904        xm_include_list="${xm_include_list} config/$f"
9905        ;;
9906   esac
9907 done
9908
9909 host_xm_file_list=
9910 host_xm_include_list=
9911 for f in $host_xm_file; do
9912   case $f in
9913     ansidecl.h )
9914        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9915        host_xm_include_list="${host_xm_include_list} $f"
9916        ;;
9917     auto-host.h )
9918        host_xm_file_list="${host_xm_file_list} $f"
9919        host_xm_include_list="${host_xm_include_list} $f"
9920        ;;
9921     * )
9922        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9923        host_xm_include_list="${host_xm_include_list} config/$f"
9924        ;;
9925   esac
9926 done
9927
9928 build_xm_file_list=
9929 for f in $build_xm_file; do
9930   case $f in
9931     ansidecl.h )
9932        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9933        build_xm_include_list="${build_xm_include_list} $f"
9934        ;;
9935     auto-build.h | auto-host.h )
9936        build_xm_file_list="${build_xm_file_list} $f"
9937        build_xm_include_list="${build_xm_include_list} $f"
9938        ;;
9939     * )
9940        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9941        build_xm_include_list="${build_xm_include_list} config/$f"
9942        ;;
9943   esac
9944 done
9945
9946 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9947 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9948 CROSS=
9949 ALL=all.internal
9950 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9951 if test x$host != x$target
9952 then
9953         CROSS="-DCROSS_COMPILE"
9954         ALL=all.cross
9955         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9956         case "$host","$target" in
9957         # Darwin crosses can use the host system's libraries and headers,
9958         # because of the fat library support.  Of course, it must be the
9959         # same version of Darwin on both sides.  Allow the user to
9960         # just say --target=foo-darwin without a version number to mean
9961         # "the version on this system".
9962             *-*-darwin*,*-*-darwin*)
9963                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9964                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9965                 if test $hostos = $targetos -o $targetos = darwin ; then
9966                     CROSS=
9967                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9968                     with_headers=yes
9969                 fi
9970                 ;;
9971
9972             i?86-*-*,x86_64-*-* \
9973             | powerpc*-*-*,powerpc64*-*-*)
9974                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9975         esac
9976 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9977         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9978         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9979 fi
9980
9981 # If this is a cross-compiler that does not
9982 # have its own set of headers then define
9983 # inhibit_libc
9984
9985 # If this is using newlib, without having the headers available now,
9986 # then define inhibit_libc in LIBGCC2_CFLAGS.
9987 # This prevents libgcc2 from containing any code which requires libc
9988 # support.
9989 inhibit_libc=
9990 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9991        test x$with_newlib = xyes ; } &&
9992      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9993        inhibit_libc=-Dinhibit_libc
9994 fi
9995
9996
9997 # When building gcc with a cross-compiler, we need to adjust things so
9998 # that the generator programs are still built with the native compiler.
9999 # Also, we cannot run fixincludes or fix-header.
10000
10001 # These are the normal (build=host) settings:
10002 CC_FOR_BUILD='$(CC)'
10003 BUILD_CFLAGS='$(ALL_CFLAGS)'
10004 STMP_FIXINC=stmp-fixinc
10005
10006 # Possibly disable fixproto, on a per-target basis.
10007 case ${use_fixproto} in
10008   no)
10009     STMP_FIXPROTO=
10010     ;;
10011   yes)
10012     STMP_FIXPROTO=stmp-fixproto
10013     ;;
10014 esac
10015
10016
10017 # And these apply if build != host, or we are generating coverage data
10018 if test x$build != x$host || test "x$coverage_flags" != x
10019 then
10020     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10021
10022     if test "x$TARGET_SYSTEM_ROOT" = x; then
10023         STMP_FIXINC=
10024         STMP_FIXPROTO=
10025     fi
10026 fi
10027
10028 # When bootstrapping from the toplevel, only run fixincludes during stage1
10029 if test -d ../prev-gcc
10030 then
10031     STMP_FIXINC=
10032     cp -R ../prev-gcc/include include
10033 fi
10034
10035 # Expand extra_headers to include complete path.
10036 # This substitutes for lots of t-* files.
10037 extra_headers_list=
10038 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10039 for file in ${extra_headers} ; do
10040   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10041 done
10042
10043 # Define collect2 in Makefile.
10044 case $host_can_use_collect2 in
10045   no) collect2= ;;
10046   *) collect2='collect2$(exeext)' ;;
10047 esac
10048
10049
10050 # Add a definition of USE_COLLECT2 if system wants one.
10051 case $use_collect2 in
10052   no) use_collect2= ;;
10053   "") ;;
10054   *)
10055     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10056     xm_defines="${xm_defines} USE_COLLECT2"
10057     case $host_can_use_collect2 in
10058       no)
10059         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10060 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10061    { (exit 1); exit 1; }; }
10062         ;;
10063     esac
10064     ;;
10065 esac
10066
10067 # ---------------------------
10068 # Assembler & linker features
10069 # ---------------------------
10070
10071 # Identify the assembler which will work hand-in-glove with the newly
10072 # built GCC, so that we can examine its features.  This is the assembler
10073 # which will be driven by the driver program.
10074 #
10075 # If build != host, and we aren't building gas in-tree, we identify a
10076 # build->target assembler and hope that it will have the same features
10077 # as the host->target assembler we'll be using.
10078 echo "$as_me:$LINENO: checking what assembler to use" >&5
10079 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10080 in_tree_gas=no
10081 gcc_cv_as=
10082 gcc_cv_gas_major_version=
10083 gcc_cv_gas_minor_version=
10084 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10085 if test -x "$DEFAULT_ASSEMBLER"; then
10086         gcc_cv_as="$DEFAULT_ASSEMBLER"
10087 elif test -x as$host_exeext; then
10088         # Build using assembler in the current directory.
10089         gcc_cv_as=./as$host_exeext
10090 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10091      && test -f ../gas/Makefile \
10092      && test x$build = x$host; then
10093   # Single tree build which includes gas.  We want to prefer it
10094   # over whatever linker top-level may have detected, since
10095   # we'll use what we're building after installation anyway.
10096   in_tree_gas=yes
10097   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10098 for f in $gcc_cv_as_bfd_srcdir/configure \
10099          $gcc_cv_as_gas_srcdir/configure \
10100          $gcc_cv_as_gas_srcdir/configure.in \
10101          $gcc_cv_as_gas_srcdir/Makefile.in ; do
10102   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10103   if test x$gcc_cv_gas_version != x; then
10104     break
10105   fi
10106 done
10107 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10108 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10109 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10110 case $gcc_cv_gas_patch_version in
10111   "") gcc_cv_gas_patch_version="0" ;;
10112 esac
10113 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10114                             + $gcc_cv_gas_minor_version \) \* 1000 \
10115                             + $gcc_cv_gas_patch_version`
10116
10117   rm -f as$host_exeext
10118   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10119   in_tree_gas_is_elf=no
10120   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10121      || (grep 'obj_format = multi' ../gas/Makefile \
10122          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10123   then
10124     in_tree_gas_is_elf=yes
10125   fi
10126 elif test -x "$AS_FOR_TARGET"; then
10127         gcc_cv_as="$AS_FOR_TARGET"
10128 elif test -x "$AS" && test x$host = x$target; then
10129         gcc_cv_as="$AS"
10130 fi
10131
10132 if test "x$gcc_cv_as" = x; then
10133         # Search the same directories that the installed compiler will
10134         # search.  Else we may find the wrong assembler and lose.  If we
10135         # do not find a suitable assembler binary, then try the user's
10136         # path.
10137         #
10138         # Also note we have to check MD_EXEC_PREFIX before checking the
10139         # user's path.  Unfortunately, there is no good way to get at the
10140         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10141         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10142         # to be fixed as part of the make/configure rewrite too.
10143
10144         if test "x$exec_prefix" = xNONE; then
10145                 if test "x$prefix" = xNONE; then
10146                         test_prefix=/usr/local
10147                 else
10148                         test_prefix=$prefix
10149                 fi
10150         else
10151                 test_prefix=$exec_prefix
10152         fi
10153
10154         # If the loop below does not find an assembler, then use whatever
10155         # one we can find in the users's path.
10156         # user's path.
10157         if test "x$program_prefix" != xNONE; then
10158                 gcc_cv_as=${program_prefix}as$host_exeext
10159         else
10160                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10161         fi
10162
10163         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10164                    $test_prefix/libexec/gcc/$target_noncanonical \
10165                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10166                    /usr/lib/gcc/$target_noncanonical \
10167                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10168                    $test_prefix/$target_noncanonical/bin"
10169
10170         if test x$host = x$target; then
10171             test_dirs="$test_dirs \
10172                    /usr/libexec \
10173                    /usr/ccs/gcc \
10174                    /usr/ccs/bin \
10175                    /udk/usr/ccs/bin \
10176                    /bsd43/usr/lib/cmplrs/cc \
10177                    /usr/cross64/usr/bin \
10178                    /usr/lib/cmplrs/cc \
10179                    /sysv/usr/lib/cmplrs/cc \
10180                    /svr4/usr/lib/cmplrs/cc \
10181                    /usr/bin"
10182         fi
10183
10184         for dir in $test_dirs; do
10185                 if test -x $dir/as$host_exeext; then
10186                         gcc_cv_as=$dir/as$host_exeext
10187                         break;
10188                 fi
10189         done
10190 fi
10191 case $in_tree_gas in
10192   yes)
10193     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10194 echo "${ECHO_T}\"newly built gas\"" >&6
10195     ;;
10196   no)
10197     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10198 echo "${ECHO_T}$gcc_cv_as" >&6
10199     ;;
10200 esac
10201
10202 # Identify the linker which will work hand-in-glove with the newly
10203 # built GCC, so that we can examine its features.  This is the linker
10204 # which will be driven by the driver program.
10205 #
10206 # If build != host, and we aren't building gas in-tree, we identify a
10207 # build->target linker and hope that it will have the same features
10208 # as the host->target linker we'll be using.
10209 echo "$as_me:$LINENO: checking what linker to use" >&5
10210 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10211 in_tree_ld=no
10212 gcc_cv_ld=
10213 gcc_cv_gld_major_version=
10214 gcc_cv_gld_minor_version=
10215 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10216 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10217 if test -x "$DEFAULT_LINKER"; then
10218         gcc_cv_ld="$DEFAULT_LINKER"
10219 elif test -x collect-ld$host_exeext; then
10220         # Build using linker in the current directory.
10221         gcc_cv_ld=./collect-ld$host_exeext
10222 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10223      && test -f ../ld/Makefile \
10224      && test x$build = x$host; then
10225         # Single tree build which includes ld.  We want to prefer it
10226         # over whatever linker top-level may have detected, since
10227         # we'll use what we're building after installation anyway.
10228         in_tree_ld=yes
10229         in_tree_ld_is_elf=no
10230         if (grep 'EMUL = .*elf' ../ld/Makefile \
10231             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10232           in_tree_ld_is_elf=yes
10233         fi
10234         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
10235         do
10236                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10237                 if test x$gcc_cv_gld_version != x; then
10238                         break
10239                 fi
10240         done
10241         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10242         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10243         rm -f collect-ld$host_exeext
10244         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10245                 2>/dev/null
10246 elif test -x "$LD_FOR_TARGET"; then
10247         gcc_cv_ld="$LD_FOR_TARGET"
10248 elif test -x "$LD" && test x$host = x$target; then
10249         gcc_cv_ld="$LD"
10250 fi
10251
10252 if test "x$gcc_cv_ld" = x; then
10253         # Search the same directories that the installed compiler will
10254         # search.  Else we may find the wrong linker and lose.  If we
10255         # do not find a suitable linker binary, then try the user's
10256         # path.
10257         #
10258         # Also note we have to check MD_EXEC_PREFIX before checking the
10259         # user's path.  Unfortunately, there is no good way to get at the
10260         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10261         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10262         # to be fixed as part of the make/configure rewrite too.
10263
10264         if test "x$exec_prefix" = xNONE; then
10265                 if test "x$prefix" = xNONE; then
10266                         test_prefix=/usr/local
10267                 else
10268                         test_prefix=$prefix
10269                 fi
10270         else
10271                 test_prefix=$exec_prefix
10272         fi
10273
10274         # If the loop below does not find an linker, then use whatever
10275         # one we can find in the users's path.
10276         # user's path.
10277         if test "x$program_prefix" != xNONE; then
10278                 gcc_cv_ld=${program_prefix}ld$host_exeext
10279         else
10280                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10281         fi
10282
10283         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10284                    $test_prefix/libexec/gcc/$target_noncanonical \
10285                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10286                    /usr/lib/gcc/$target_noncanonical \
10287                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10288                    $test_prefix/$target_noncanonical/bin"
10289
10290         if test x$host = x$target; then
10291             test_dirs="$test_dirs \
10292                    /usr/libexec \
10293                    /usr/ccs/gcc \
10294                    /usr/ccs/bin \
10295                    /udk/usr/ccs/bin \
10296                    /bsd43/usr/lib/cmplrs/cc \
10297                    /usr/cross64/usr/bin \
10298                    /usr/lib/cmplrs/cc \
10299                    /sysv/usr/lib/cmplrs/cc \
10300                    /svr4/usr/lib/cmplrs/cc \
10301                    /usr/bin"
10302         fi
10303
10304         for dir in $test_dirs; do
10305                 if test -x $dir/ld$host_exeext; then
10306                         gcc_cv_ld=$dir/ld$host_exeext
10307                         break;
10308                 fi
10309         done
10310 fi
10311 case $in_tree_ld in
10312   yes)
10313     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10314 echo "${ECHO_T}\"newly built ld\"" >&6
10315     ;;
10316   no)
10317     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10318 echo "${ECHO_T}$gcc_cv_ld" >&6
10319     ;;
10320 esac
10321
10322 # Figure out what nm we will be using.
10323 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10324 echo "$as_me:$LINENO: checking what nm to use" >&5
10325 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10326 in_tree_nm=no
10327 if test -x nm$host_exeext; then
10328         gcc_cv_nm=./nm$host_exeext
10329 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10330      && test -f ../binutils/Makefile; then
10331         # Single tree build which includes binutils.
10332         in_tree_nm=yes
10333         gcc_cv_nm=./nm$host_exeext
10334         rm -f nm$host_exeext
10335         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10336 elif test "x$program_prefix" != xNONE; then
10337         gcc_cv_nm=${program_prefix}nm$host_exeext
10338 else
10339         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10340 fi
10341 case $in_tree_nm in
10342   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10343 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10344   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10345 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10346 esac
10347
10348 # Figure out what objdump we will be using.
10349 echo "$as_me:$LINENO: checking what objdump to use" >&5
10350 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10351 in_tree_objdump=no
10352 if test -x objdump$host_exeext; then
10353         gcc_cv_objdump=./objdump$host_exeext
10354 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10355      && test -f ../binutils/Makefile; then
10356         # Single tree build which includes binutils.
10357         in_tree_objdump=yes
10358         gcc_cv_objdump=./objdump$host_exeext
10359         rm -f objdump$host_exeext
10360         $symbolic_link ../binutils/objdump$host_exeext \
10361                 objdump$host_exeext 2>/dev/null
10362 elif test "x$program_prefix" != xNONE; then
10363         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10364 else
10365         gcc_cv_objdump=`echo objdump | \
10366                 sed "${program_transform_name}"`$host_exeext
10367 fi
10368 case $in_tree_objdump in
10369   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10370 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10371   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10372 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10373 esac
10374
10375 # Figure out what assembler alignment features are present.
10376 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10377 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10378 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   gcc_cv_as_balign_and_p2align=no
10382     if test $in_tree_gas = yes; then
10383     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10384   then gcc_cv_as_balign_and_p2align=yes
10385 fi
10386   elif test x$gcc_cv_as != x; then
10387     echo '.balign 4
10388 .p2align 2' > conftest.s
10389     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391   (eval $ac_try) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; }
10395     then
10396         gcc_cv_as_balign_and_p2align=yes
10397     else
10398       echo "configure: failed program was" >&5
10399       cat conftest.s >&5
10400     fi
10401     rm -f conftest.o conftest.s
10402   fi
10403 fi
10404 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10405 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10406 if test $gcc_cv_as_balign_and_p2align = yes; then
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10410 _ACEOF
10411
10412 fi
10413
10414 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10415 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10416 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   gcc_cv_as_max_skip_p2align=no
10420     if test $in_tree_gas = yes; then
10421     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10422   then gcc_cv_as_max_skip_p2align=yes
10423 fi
10424   elif test x$gcc_cv_as != x; then
10425     echo '.p2align 4,,7' > conftest.s
10426     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }
10432     then
10433         gcc_cv_as_max_skip_p2align=yes
10434     else
10435       echo "configure: failed program was" >&5
10436       cat conftest.s >&5
10437     fi
10438     rm -f conftest.o conftest.s
10439   fi
10440 fi
10441 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10442 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10443 if test $gcc_cv_as_max_skip_p2align = yes; then
10444
10445 cat >>confdefs.h <<\_ACEOF
10446 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10447 _ACEOF
10448
10449 fi
10450
10451 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10452 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10453 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   gcc_cv_as_subsection_m1=no
10457     if test $in_tree_gas = yes; then
10458     if test $in_tree_gas_is_elf = yes \
10459   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10460   then gcc_cv_as_subsection_m1=yes
10461 fi
10462   elif test x$gcc_cv_as != x; then
10463     echo 'conftest_label1: .word 0
10464 .subsection -1
10465 conftest_label2: .word 0
10466 .previous' > conftest.s
10467     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469   (eval $ac_try) 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; }
10473     then
10474         if test x$gcc_cv_nm != x; then
10475     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10476     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10477     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10478     then :
10479     else gcc_cv_as_subsection_m1=yes
10480     fi
10481     rm -f conftest.nm1 conftest.nm2
10482   fi
10483     else
10484       echo "configure: failed program was" >&5
10485       cat conftest.s >&5
10486     fi
10487     rm -f conftest.o conftest.s
10488   fi
10489 fi
10490 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10491 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10492 if test $gcc_cv_as_subsection_m1 = yes; then
10493
10494 cat >>confdefs.h <<\_ACEOF
10495 #define HAVE_GAS_SUBSECTION_ORDERING 1
10496 _ACEOF
10497
10498 fi
10499
10500 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10501 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10502 if test "${gcc_cv_as_weak+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   gcc_cv_as_weak=no
10506     if test $in_tree_gas = yes; then
10507     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10508   then gcc_cv_as_weak=yes
10509 fi
10510   elif test x$gcc_cv_as != x; then
10511     echo '      .weak foobar' > conftest.s
10512     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514   (eval $ac_try) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; }
10518     then
10519         gcc_cv_as_weak=yes
10520     else
10521       echo "configure: failed program was" >&5
10522       cat conftest.s >&5
10523     fi
10524     rm -f conftest.o conftest.s
10525   fi
10526 fi
10527 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10528 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10529 if test $gcc_cv_as_weak = yes; then
10530
10531 cat >>confdefs.h <<\_ACEOF
10532 #define HAVE_GAS_WEAK 1
10533 _ACEOF
10534
10535 fi
10536
10537 # .hidden needs to be supported in both the assembler and the linker,
10538 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10539 # This is irritatingly difficult to feature test for; we have to check the
10540 # date string after the version number.  If we've got an in-tree
10541 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10542 # to be safe.
10543 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10544 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10545 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10546 if test "${gcc_cv_as_hidden+set}" = set; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549   gcc_cv_as_hidden=no
10550     if test $in_tree_gas = yes; then
10551     if test $in_tree_gas_is_elf = yes \
10552   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10553   then gcc_cv_as_hidden=yes
10554 fi
10555   elif test x$gcc_cv_as != x; then
10556     echo '      .hidden foobar
10557 foobar:' > conftest.s
10558     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560   (eval $ac_try) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; }
10564     then
10565         gcc_cv_as_hidden=yes
10566     else
10567       echo "configure: failed program was" >&5
10568       cat conftest.s >&5
10569     fi
10570     rm -f conftest.o conftest.s
10571   fi
10572 fi
10573 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10574 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10575
10576
10577 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10578 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10579 if test "${gcc_cv_ld_hidden+set}" = set; then
10580   echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582   if test $in_tree_ld = yes ; then
10583   gcc_cv_ld_hidden=no
10584   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 \
10585      && test $in_tree_ld_is_elf = yes; then
10586      gcc_cv_ld_hidden=yes
10587   fi
10588 else
10589   gcc_cv_ld_hidden=yes
10590   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10591   if echo "$ld_ver" | grep GNU > /dev/null; then
10592     ld_vers=`echo $ld_ver | sed -n \
10593         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10594         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10595         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10596         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10597         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10598         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10599     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'`
10600     if test 0"$ld_date" -lt 20020404; then
10601       if test -n "$ld_date"; then
10602         # If there was date string, but was earlier than 2002-04-04, fail
10603         gcc_cv_ld_hidden=no
10604       elif test -z "$ld_vers"; then
10605         # If there was no date string nor ld version number, something is wrong
10606         gcc_cv_ld_hidden=no
10607       else
10608         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10609         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10610         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10611         test -z "$ld_vers_patch" && ld_vers_patch=0
10612         if test "$ld_vers_major" -lt 2; then
10613           gcc_cv_ld_hidden=no
10614         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10615           gcc_cv_ld_hidden="no"
10616         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10617           gcc_cv_ld_hidden=no
10618         fi
10619       fi
10620     fi
10621   else
10622     case "${target}" in
10623       hppa64*-*-hpux* | ia64*-*-hpux*)
10624         gcc_cv_ld_hidden=yes
10625         ;;
10626       *)
10627         gcc_cv_ld_hidden=no
10628         ;;
10629     esac
10630   fi
10631 fi
10632 fi
10633 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10634 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10635 libgcc_visibility=no
10636
10637 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10638   libgcc_visibility=yes
10639
10640 cat >>confdefs.h <<\_ACEOF
10641 #define HAVE_GAS_HIDDEN 1
10642 _ACEOF
10643
10644 fi
10645
10646 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10647 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10648 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10649 if test "${gcc_cv_as_leb128+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   gcc_cv_as_leb128=no
10653     if test $in_tree_gas = yes; then
10654     if test $in_tree_gas_is_elf = yes \
10655   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10656   then gcc_cv_as_leb128=yes
10657 fi
10658   elif test x$gcc_cv_as != x; then
10659     echo '      .data
10660         .uleb128 L2 - L1
10661 L1:
10662         .uleb128 1280
10663         .sleb128 -1010
10664 L2:' > conftest.s
10665     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }
10671     then
10672         # GAS versions before 2.11 do not support uleb128,
10673   # despite appearing to.
10674   # ??? There exists an elf-specific test that will crash
10675   # the assembler.  Perhaps it's better to figure out whether
10676   # arbitrary sections are supported and try the test.
10677   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10678   if echo "$as_ver" | grep GNU > /dev/null; then
10679     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10680     as_major=`echo $as_ver | sed 's/\..*//'`
10681     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10682     if test $as_major -eq 2 && test $as_minor -lt 11
10683     then :
10684     else gcc_cv_as_leb128=yes
10685     fi
10686   fi
10687     else
10688       echo "configure: failed program was" >&5
10689       cat conftest.s >&5
10690     fi
10691     rm -f conftest.o conftest.s
10692   fi
10693 fi
10694 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10695 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10696 if test $gcc_cv_as_leb128 = yes; then
10697
10698 cat >>confdefs.h <<\_ACEOF
10699 #define HAVE_AS_LEB128 1
10700 _ACEOF
10701
10702 fi
10703
10704 # GAS versions up to and including 2.11.0 may mis-optimize
10705 # .eh_frame data.
10706 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10707 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10708 if test "${gcc_cv_as_eh_frame+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   gcc_cv_as_eh_frame=no
10712     if test $in_tree_gas = yes; then
10713     if test $in_tree_gas_is_elf = yes \
10714   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10715   then gcc_cv_as_eh_frame=yes
10716 fi
10717   elif test x$gcc_cv_as != x; then
10718     echo '      .text
10719 .LFB1:
10720         .4byte  0
10721 .L1:
10722         .4byte  0
10723 .LFE1:
10724         .section        .eh_frame,"aw",@progbits
10725 __FRAME_BEGIN__:
10726         .4byte  .LECIE1-.LSCIE1
10727 .LSCIE1:
10728         .4byte  0x0
10729         .byte   0x1
10730         .ascii "z\0"
10731         .byte   0x1
10732         .byte   0x78
10733         .byte   0x1a
10734         .byte   0x0
10735         .byte   0x4
10736         .4byte  1
10737         .p2align 1
10738 .LECIE1:
10739 .LSFDE1:
10740         .4byte  .LEFDE1-.LASFDE1
10741 .LASFDE1:
10742         .4byte  .LASFDE1-__FRAME_BEGIN__
10743         .4byte  .LFB1
10744         .4byte  .LFE1-.LFB1
10745         .byte   0x4
10746         .4byte  .LFE1-.LFB1
10747         .byte   0x4
10748         .4byte  .L1-.LFB1
10749 .LEFDE1:' > conftest.s
10750     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; }
10756     then
10757           cat > conftest.lit <<EOF
10758  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10759  0010 01000000 12000000 18000000 00000000  ................
10760  0020 08000000 04080000 0044               .........D      
10761 EOF
10762 cat > conftest.big <<EOF
10763  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10764  0010 00000001 00000012 00000018 00000000  ................
10765  0020 00000008 04000000 0844               .........D      
10766 EOF
10767   # If the assembler didn't choke, and we can objdump,
10768   # and we got the correct data, then succeed.
10769   if test x$gcc_cv_objdump != x \
10770   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10771      | tail -3 > conftest.got \
10772   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10773     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10774   then
10775     gcc_cv_as_eh_frame=yes
10776   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778   (eval $ac_try) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; }; then
10782     gcc_cv_as_eh_frame=buggy
10783   else
10784     # Uh oh, what do we do now?
10785     gcc_cv_as_eh_frame=no
10786   fi
10787     else
10788       echo "configure: failed program was" >&5
10789       cat conftest.s >&5
10790     fi
10791     rm -f conftest.o conftest.s
10792   fi
10793 fi
10794 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10795 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10796
10797
10798 if test $gcc_cv_as_eh_frame = buggy; then
10799
10800 cat >>confdefs.h <<\_ACEOF
10801 #define USE_AS_TRADITIONAL_FORMAT 1
10802 _ACEOF
10803
10804 fi
10805
10806 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10807 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10808 if test "${gcc_cv_as_shf_merge+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   gcc_cv_as_shf_merge=no
10812     if test $in_tree_gas = yes; then
10813     if test $in_tree_gas_is_elf = yes \
10814   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10815   then gcc_cv_as_shf_merge=yes
10816 fi
10817   elif test x$gcc_cv_as != x; then
10818     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10819     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }
10825     then
10826         gcc_cv_as_shf_merge=yes
10827     else
10828       echo "configure: failed program was" >&5
10829       cat conftest.s >&5
10830     fi
10831     rm -f conftest.o conftest.s
10832   fi
10833 fi
10834 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10835 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10836
10837
10838 cat >>confdefs.h <<_ACEOF
10839 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10840 _ACEOF
10841
10842
10843 # Thread-local storage - the check is heavily parametrized.
10844 conftest_s=
10845 tls_first_major=
10846 tls_first_minor=
10847 tls_as_opt=
10848 case "$target" in
10849   alpha*-*-*)
10850     conftest_s='
10851         .section ".tdata","awT",@progbits
10852 foo:    .long   25
10853         .text
10854         ldq     $27,__tls_get_addr($29)         !literal!1
10855         lda     $16,foo($29)                    !tlsgd!1
10856         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10857         ldq     $27,__tls_get_addr($29)         !literal!2
10858         lda     $16,foo($29)                    !tlsldm!2
10859         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10860         ldq     $1,foo($29)                     !gotdtprel
10861         ldah    $2,foo($29)                     !dtprelhi
10862         lda     $3,foo($2)                      !dtprello
10863         lda     $4,foo($29)                     !dtprel
10864         ldq     $1,foo($29)                     !gottprel
10865         ldah    $2,foo($29)                     !tprelhi
10866         lda     $3,foo($2)                      !tprello
10867         lda     $4,foo($29)                     !tprel'
10868         tls_first_major=2
10869         tls_first_minor=13
10870         tls_as_opt=--fatal-warnings
10871         ;;
10872   i[34567]86-*-*)
10873     conftest_s='
10874         .section ".tdata","awT",@progbits
10875 foo:    .long   25
10876         .text
10877         movl    %gs:0, %eax
10878         leal    foo@TLSGD(,%ebx,1), %eax
10879         leal    foo@TLSLDM(%ebx), %eax
10880         leal    foo@DTPOFF(%eax), %edx
10881         movl    foo@GOTTPOFF(%ebx), %eax
10882         subl    foo@GOTTPOFF(%ebx), %eax
10883         addl    foo@GOTNTPOFF(%ebx), %eax
10884         movl    foo@INDNTPOFF, %eax
10885         movl    $foo@TPOFF, %eax
10886         subl    $foo@TPOFF, %eax
10887         leal    foo@NTPOFF(%ecx), %eax'
10888         tls_first_major=2
10889         tls_first_minor=14
10890         tls_as_opt=--fatal-warnings
10891         ;;
10892   x86_64-*-*)
10893     conftest_s='
10894         .section ".tdata","awT",@progbits
10895 foo:    .long   25
10896         .text
10897         movq    %fs:0, %rax
10898         leaq    foo@TLSGD(%rip), %rdi
10899         leaq    foo@TLSLD(%rip), %rdi
10900         leaq    foo@DTPOFF(%rax), %rdx
10901         movq    foo@GOTTPOFF(%rip), %rax
10902         movq    $foo@TPOFF, %rax'
10903         tls_first_major=2
10904         tls_first_minor=14
10905         tls_as_opt=--fatal-warnings
10906         ;;
10907   ia64-*-*)
10908     conftest_s='
10909         .section ".tdata","awT",@progbits
10910 foo:    data8   25
10911         .text
10912         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10913         addl    r17 = @ltoff(@dtprel(foo#)), gp
10914         addl    r18 = @ltoff(@tprel(foo#)), gp
10915         addl    r19 = @dtprel(foo#), gp
10916         adds    r21 = @dtprel(foo#), r13
10917         movl    r23 = @dtprel(foo#)
10918         addl    r20 = @tprel(foo#), gp
10919         adds    r22 = @tprel(foo#), r13
10920         movl    r24 = @tprel(foo#)'
10921         tls_first_major=2
10922         tls_first_minor=13
10923         tls_as_opt=--fatal-warnings
10924         ;;
10925   powerpc-*-*)
10926     conftest_s='
10927         .section ".tdata","awT",@progbits
10928         .align 2
10929 ld0:    .space 4
10930 ld1:    .space 4
10931 x1:     .space 4
10932 x2:     .space 4
10933 x3:     .space 4
10934         .text
10935         addi 3,31,ld0@got@tlsgd
10936         bl __tls_get_addr
10937         addi 3,31,x1@got@tlsld
10938         bl __tls_get_addr
10939         addi 9,3,x1@dtprel
10940         addis 9,3,x2@dtprel@ha
10941         addi 9,9,x2@dtprel@l
10942         lwz 9,x3@got@tprel(31)
10943         add 9,9,x@tls
10944         addi 9,2,x1@tprel
10945         addis 9,2,x2@tprel@ha
10946         addi 9,9,x2@tprel@l'
10947         tls_first_major=2
10948         tls_first_minor=14
10949         tls_as_opt="-a32 --fatal-warnings"
10950         ;;
10951   powerpc64-*-*)
10952     conftest_s='
10953         .section ".tdata","awT",@progbits
10954         .align 3
10955 ld0:    .space 8
10956 ld1:    .space 8
10957 x1:     .space 8
10958 x2:     .space 8
10959 x3:     .space 8
10960         .text
10961         addi 3,2,ld0@got@tlsgd
10962         bl .__tls_get_addr
10963         nop
10964         addi 3,2,ld1@toc
10965         bl .__tls_get_addr
10966         nop
10967         addi 3,2,x1@got@tlsld
10968         bl .__tls_get_addr
10969         nop
10970         addi 9,3,x1@dtprel
10971         bl .__tls_get_addr
10972         nop
10973         addis 9,3,x2@dtprel@ha
10974         addi 9,9,x2@dtprel@l
10975         bl .__tls_get_addr
10976         nop
10977         ld 9,x3@got@dtprel(2)
10978         add 9,9,3
10979         bl .__tls_get_addr
10980         nop'
10981         tls_first_major=2
10982         tls_first_minor=14
10983         tls_as_opt="-a64 --fatal-warnings"
10984         ;;
10985   s390-*-*)
10986     conftest_s='
10987         .section ".tdata","awT",@progbits
10988 foo:    .long   25
10989         .text
10990         .long   foo@TLSGD
10991         .long   foo@TLSLDM
10992         .long   foo@DTPOFF
10993         .long   foo@NTPOFF
10994         .long   foo@GOTNTPOFF
10995         .long   foo@INDNTPOFF
10996         l       %r1,foo@GOTNTPOFF(%r12)
10997         l       %r1,0(%r1):tls_load:foo
10998         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10999         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
11000         tls_first_major=2
11001         tls_first_minor=14
11002         tls_as_opt="-m31 --fatal-warnings"
11003         ;;
11004   s390x-*-*)
11005     conftest_s='
11006         .section ".tdata","awT",@progbits
11007 foo:    .long   25
11008         .text
11009         .quad   foo@TLSGD
11010         .quad   foo@TLSLDM
11011         .quad   foo@DTPOFF
11012         .quad   foo@NTPOFF
11013         .quad   foo@GOTNTPOFF
11014         lg      %r1,foo@GOTNTPOFF(%r12)
11015         larl    %r1,foo@INDNTPOFF
11016         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
11017         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11018         tls_first_major=2
11019         tls_first_minor=14
11020         tls_as_opt="-m64 -Aesame --fatal-warnings"
11021         ;;
11022   sh-*-* | sh[34]-*-*)
11023     conftest_s='
11024         .section ".tdata","awT",@progbits
11025 foo:    .long   25
11026         .text
11027         .long   foo@TLSGD
11028         .long   foo@TLSLDM
11029         .long   foo@DTPOFF
11030         .long   foo@GOTTPOFF
11031         .long   foo@TPOFF'
11032         tls_first_major=2
11033         tls_first_minor=13
11034         tls_as_opt=--fatal-warnings
11035         ;;
11036   sparc*-*-*)
11037     case "$target" in
11038       sparc*-sun-solaris2.*)
11039         on_solaris=yes
11040         ;;
11041       *)
11042         on_solaris=no
11043         ;;
11044     esac
11045     if test x$on_solaris = xyes && test x$gas_flag = xno; then
11046       conftest_s='
11047         .section ".tdata",#alloc,#write,#tls
11048 foo:    .long   25
11049         .text
11050         sethi   %tgd_hi22(foo), %o0
11051         add     %o0, %tgd_lo10(foo), %o1
11052         add     %l7, %o1, %o0, %tgd_add(foo)
11053         call    __tls_get_addr, %tgd_call(foo)
11054         sethi   %tldm_hi22(foo), %l1
11055         add     %l1, %tldm_lo10(foo), %l2
11056         add     %l7, %l2, %o0, %tldm_add(foo)
11057         call    __tls_get_addr, %tldm_call(foo)
11058         sethi   %tldo_hix22(foo), %l3
11059         xor     %l3, %tldo_lox10(foo), %l4
11060         add     %o0, %l4, %l5, %tldo_add(foo)
11061         sethi   %tie_hi22(foo), %o3
11062         add     %o3, %tie_lo10(foo), %o3
11063         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11064         add     %g7, %o2, %o4, %tie_add(foo)
11065         sethi   %tle_hix22(foo), %l1
11066         xor     %l1, %tle_lox10(foo), %o5
11067         ld      [%g7 + %o5], %o1'
11068         tls_first_major=0
11069         tls_first_minor=0
11070     else
11071       conftest_s='
11072         .section ".tdata","awT",@progbits
11073 foo:    .long   25
11074         .text
11075         sethi   %tgd_hi22(foo), %o0
11076         add     %o0, %tgd_lo10(foo), %o1
11077         add     %l7, %o1, %o0, %tgd_add(foo)
11078         call    __tls_get_addr, %tgd_call(foo)
11079         sethi   %tldm_hi22(foo), %l1
11080         add     %l1, %tldm_lo10(foo), %l2
11081         add     %l7, %l2, %o0, %tldm_add(foo)
11082         call    __tls_get_addr, %tldm_call(foo)
11083         sethi   %tldo_hix22(foo), %l3
11084         xor     %l3, %tldo_lox10(foo), %l4
11085         add     %o0, %l4, %l5, %tldo_add(foo)
11086         sethi   %tie_hi22(foo), %o3
11087         add     %o3, %tie_lo10(foo), %o3
11088         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11089         add     %g7, %o2, %o4, %tie_add(foo)
11090         sethi   %tle_hix22(foo), %l1
11091         xor     %l1, %tle_lox10(foo), %o5
11092         ld      [%g7 + %o5], %o1'
11093         tls_first_major=2
11094         tls_first_minor=14
11095         tls_as_opt="-32 --fatal-warnings"
11096       fi
11097         ;;
11098 esac
11099 if test -z "$tls_first_major"; then
11100   : # If we don't have a check, assume no support.
11101 else
11102   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11103 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11104 if test "${gcc_cv_as_tls+set}" = set; then
11105   echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107   gcc_cv_as_tls=no
11108     if test $in_tree_gas = yes; then
11109     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11110   then gcc_cv_as_tls=yes
11111 fi
11112   elif test x$gcc_cv_as != x; then
11113     echo "$conftest_s" > conftest.s
11114     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116   (eval $ac_try) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); }; }
11120     then
11121         gcc_cv_as_tls=yes
11122     else
11123       echo "configure: failed program was" >&5
11124       cat conftest.s >&5
11125     fi
11126     rm -f conftest.o conftest.s
11127   fi
11128 fi
11129 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11130 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11131 if test $gcc_cv_as_tls = yes; then
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_AS_TLS 1
11135 _ACEOF
11136
11137 fi
11138 fi
11139
11140 # Target-specific assembler checks.
11141
11142 if test x"$demangler_in_ld" = xyes; then
11143   echo "$as_me:$LINENO: checking linker --demangle support" >&5
11144 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11145   gcc_cv_ld_demangle=no
11146   if test $in_tree_ld = yes; then
11147     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
11148       gcc_cv_ld_demangle=yes
11149     fi
11150   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11151     # Check if the GNU linker supports --demangle option
11152     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11153       gcc_cv_ld_demangle=yes
11154     fi
11155   fi
11156   if test x"$gcc_cv_ld_demangle" = xyes; then
11157
11158 cat >>confdefs.h <<\_ACEOF
11159 #define HAVE_LD_DEMANGLE 1
11160 _ACEOF
11161
11162   fi
11163   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11164 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11165 fi
11166
11167 case "$target" in
11168   # All TARGET_ABI_OSF targets.
11169   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11170     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11171 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11172 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   gcc_cv_as_alpha_explicit_relocs=no
11176     if test $in_tree_gas = yes; then
11177     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11178   then gcc_cv_as_alpha_explicit_relocs=yes
11179 fi
11180   elif test x$gcc_cv_as != x; then
11181     echo '      .set nomacro
11182         .text
11183         extbl   $3, $2, $3      !lituse_bytoff!1
11184         ldq     $2, a($29)      !literal!1
11185         ldq     $4, b($29)      !literal!2
11186         ldq_u   $3, 0($2)       !lituse_base!1
11187         ldq     $27, f($29)     !literal!5
11188         jsr     $26, ($27), f   !lituse_jsr!5
11189         ldah    $29, 0($26)     !gpdisp!3
11190         lda     $0, c($29)      !gprel
11191         ldah    $1, d($29)      !gprelhigh
11192         lda     $1, d($1)       !gprellow
11193         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11194     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }
11200     then
11201         gcc_cv_as_alpha_explicit_relocs=yes
11202     else
11203       echo "configure: failed program was" >&5
11204       cat conftest.s >&5
11205     fi
11206     rm -f conftest.o conftest.s
11207   fi
11208 fi
11209 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11210 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11211 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11212
11213 cat >>confdefs.h <<\_ACEOF
11214 #define HAVE_AS_EXPLICIT_RELOCS 1
11215 _ACEOF
11216
11217 fi
11218     ;;
11219
11220   cris-*-*)
11221     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11222 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11223 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226   gcc_cv_as_cris_no_mul_bug=no
11227     if test $in_tree_gas = yes; then
11228     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11229   then gcc_cv_as_cris_no_mul_bug=yes
11230 fi
11231   elif test x$gcc_cv_as != x; then
11232     echo '.text' > conftest.s
11233     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235   (eval $ac_try) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; }
11239     then
11240         gcc_cv_as_cris_no_mul_bug=yes
11241     else
11242       echo "configure: failed program was" >&5
11243       cat conftest.s >&5
11244     fi
11245     rm -f conftest.o conftest.s
11246   fi
11247 fi
11248 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11249 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11250 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11251
11252 cat >>confdefs.h <<\_ACEOF
11253 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11254 _ACEOF
11255
11256 fi
11257     ;;
11258
11259   sparc*-*-*)
11260     echo "$as_me:$LINENO: checking assembler for .register" >&5
11261 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11262 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   gcc_cv_as_sparc_register_op=no
11266   if test x$gcc_cv_as != x; then
11267     echo '.register %g2, #scratch' > conftest.s
11268     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270   (eval $ac_try) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; }
11274     then
11275         gcc_cv_as_sparc_register_op=yes
11276     else
11277       echo "configure: failed program was" >&5
11278       cat conftest.s >&5
11279     fi
11280     rm -f conftest.o conftest.s
11281   fi
11282 fi
11283 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11284 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11285 if test $gcc_cv_as_sparc_register_op = yes; then
11286
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11289 _ACEOF
11290
11291 fi
11292
11293     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11294 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11295 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   gcc_cv_as_sparc_relax=no
11299   if test x$gcc_cv_as != x; then
11300     echo '.text' > conftest.s
11301     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303   (eval $ac_try) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }
11307     then
11308         gcc_cv_as_sparc_relax=yes
11309     else
11310       echo "configure: failed program was" >&5
11311       cat conftest.s >&5
11312     fi
11313     rm -f conftest.o conftest.s
11314   fi
11315 fi
11316 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11317 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11318 if test $gcc_cv_as_sparc_relax = yes; then
11319
11320 cat >>confdefs.h <<\_ACEOF
11321 #define HAVE_AS_RELAX_OPTION 1
11322 _ACEOF
11323
11324 fi
11325
11326     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11327 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11328 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   gcc_cv_as_sparc_ua_pcrel=no
11332   if test x$gcc_cv_as != x; then
11333     echo '.text
11334 foo:
11335         nop
11336 .data
11337 .align 4
11338 .byte 0
11339 .uaword %r_disp32(foo)' > conftest.s
11340     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; }
11346     then
11347         if test x$gcc_cv_ld != x \
11348        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11349          gcc_cv_as_sparc_ua_pcrel=yes
11350        fi
11351        rm -f conftest
11352     else
11353       echo "configure: failed program was" >&5
11354       cat conftest.s >&5
11355     fi
11356     rm -f conftest.o conftest.s
11357   fi
11358 fi
11359 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11360 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11361 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11362
11363 cat >>confdefs.h <<\_ACEOF
11364 #define HAVE_AS_SPARC_UA_PCREL 1
11365 _ACEOF
11366
11367
11368       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11369 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11370 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   gcc_cv_as_sparc_ua_pcrel_hidden=no
11374   if test x$gcc_cv_as != x; then
11375     echo '.data
11376 .align 4
11377 .byte 0x31
11378 .uaword %r_disp32(foo)
11379 .byte 0x32, 0x33, 0x34
11380 .global foo
11381 .hidden foo
11382 foo:
11383 .skip 4' > conftest.s
11384     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386   (eval $ac_try) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; }
11390     then
11391         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11392          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11393          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11394             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11395             if $gcc_cv_objdump -R conftest 2> /dev/null \
11396                | grep 'DISP32' > /dev/null 2>&1; then
11397                 :
11398             else
11399                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11400             fi
11401          fi
11402          rm -f conftest
11403     else
11404       echo "configure: failed program was" >&5
11405       cat conftest.s >&5
11406     fi
11407     rm -f conftest.o conftest.s
11408   fi
11409 fi
11410 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11411 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11412 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11413
11414 cat >>confdefs.h <<\_ACEOF
11415 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11416 _ACEOF
11417
11418 fi
11419
11420 fi # unaligned pcrel relocs
11421
11422     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11423 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11424 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427   gcc_cv_as_sparc_offsetable_lo10=no
11428   if test x$gcc_cv_as != x; then
11429     echo '.text
11430         or %g1, %lo(ab) + 12, %g1
11431         or %g1, %lo(ab + 12), %g1' > conftest.s
11432     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; }
11438     then
11439         if test x$gcc_cv_objdump != x \
11440        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11441           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11442          gcc_cv_as_offsetable_lo10=yes
11443        fi
11444     else
11445       echo "configure: failed program was" >&5
11446       cat conftest.s >&5
11447     fi
11448     rm -f conftest.o conftest.s
11449   fi
11450 fi
11451 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11452 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11453 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11454
11455 cat >>confdefs.h <<\_ACEOF
11456 #define HAVE_AS_OFFSETABLE_LO10 1
11457 _ACEOF
11458
11459 fi
11460     ;;
11461
11462   i[34567]86-*-* | x86_64-*-*)
11463     case $target_os in
11464       cygwin* | pe | mingw32*)
11465         # Used for DWARF 2 in PE
11466         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11467 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11468 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471   gcc_cv_as_ix86_pe_secrel32=no
11472     if test $in_tree_gas = yes; then
11473     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11474   then gcc_cv_as_ix86_pe_secrel32=yes
11475 fi
11476   elif test x$gcc_cv_as != x; then
11477     echo '.text
11478 foo:    nop
11479 .data
11480         .secrel32 foo' > conftest.s
11481     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; }
11487     then
11488         if test x$gcc_cv_ld != x \
11489            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11490              gcc_cv_as_ix86_pe_secrel32=yes
11491            fi
11492            rm -f conftest
11493     else
11494       echo "configure: failed program was" >&5
11495       cat conftest.s >&5
11496     fi
11497     rm -f conftest.o conftest.s
11498   fi
11499 fi
11500 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11501 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11502 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11503
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_GAS_PE_SECREL32_RELOC 1
11506 _ACEOF
11507
11508 fi
11509         ;;
11510     esac
11511
11512     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11513 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11514 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517   gcc_cv_as_ix86_filds_fists=no
11518     if test $in_tree_gas = yes; then
11519     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11520   then gcc_cv_as_ix86_filds_fists=yes
11521 fi
11522   elif test x$gcc_cv_as != x; then
11523     echo 'filds mem; fists mem' > conftest.s
11524     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }
11530     then
11531         gcc_cv_as_ix86_filds_fists=yes
11532     else
11533       echo "configure: failed program was" >&5
11534       cat conftest.s >&5
11535     fi
11536     rm -f conftest.o conftest.s
11537   fi
11538 fi
11539 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11540 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11541 if test $gcc_cv_as_ix86_filds_fists = yes; then
11542
11543 cat >>confdefs.h <<\_ACEOF
11544 #define HAVE_GAS_FILDS_FISTS 1
11545 _ACEOF
11546
11547 fi
11548
11549     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11550 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11551 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554   gcc_cv_as_ix86_cmov_sun_syntax=no
11555   if test x$gcc_cv_as != x; then
11556     echo 'cmovl.l %edx, %eax' > conftest.s
11557     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }
11563     then
11564         gcc_cv_as_ix86_cmov_sun_syntax=yes
11565     else
11566       echo "configure: failed program was" >&5
11567       cat conftest.s >&5
11568     fi
11569     rm -f conftest.o conftest.s
11570   fi
11571 fi
11572 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11573 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11574 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11575
11576 cat >>confdefs.h <<\_ACEOF
11577 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11578 _ACEOF
11579
11580 fi
11581
11582     # This one is used unconditionally by i386.[ch]; it is to be defined
11583     # to 1 if the feature is present, 0 otherwise.
11584     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11585 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11586 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   gcc_cv_as_ix86_gotoff_in_data=no
11590     if test $in_tree_gas = yes; then
11591     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11592   then gcc_cv_as_ix86_gotoff_in_data=yes
11593 fi
11594   elif test x$gcc_cv_as != x; then
11595     echo '      .text
11596 .L0:
11597         nop
11598         .data
11599         .long .L0@GOTOFF' > conftest.s
11600     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602   (eval $ac_try) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; }
11606     then
11607         gcc_cv_as_ix86_gotoff_in_data=yes
11608     else
11609       echo "configure: failed program was" >&5
11610       cat conftest.s >&5
11611     fi
11612     rm -f conftest.o conftest.s
11613   fi
11614 fi
11615 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11616 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11617
11618
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11621 _ACEOF
11622
11623     ;;
11624
11625   ia64*-*-*)
11626     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11627 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11628 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11629   echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11632     if test $in_tree_gas = yes; then
11633     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11634   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11635 fi
11636   elif test x$gcc_cv_as != x; then
11637     echo '      .text
11638         addl r15 = @ltoffx(x#), gp
11639         ;;
11640         ld8.mov r16 = [r15], x#' > conftest.s
11641     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }
11647     then
11648         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11649     else
11650       echo "configure: failed program was" >&5
11651       cat conftest.s >&5
11652     fi
11653     rm -f conftest.o conftest.s
11654   fi
11655 fi
11656 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11657 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11658 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11659
11660 cat >>confdefs.h <<\_ACEOF
11661 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11662 _ACEOF
11663
11664 fi
11665
11666     ;;
11667
11668   powerpc*-*-*)
11669     case $target in
11670       *-*-aix*) conftest_s='    .csect .text[PR]
11671         mfcr 3,128';;
11672       *-*-darwin*) conftest_s=' .text
11673         mfcr r3,128';;
11674       *)       conftest_s='     .text
11675         mfcr 3,128';;
11676     esac
11677
11678     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11679 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11680 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   gcc_cv_as_powerpc_mfcrf=no
11684     if test $in_tree_gas = yes; then
11685     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11686   then gcc_cv_as_powerpc_mfcrf=yes
11687 fi
11688   elif test x$gcc_cv_as != x; then
11689     echo "$conftest_s" > conftest.s
11690     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692   (eval $ac_try) 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); }; }
11696     then
11697         gcc_cv_as_powerpc_mfcrf=yes
11698     else
11699       echo "configure: failed program was" >&5
11700       cat conftest.s >&5
11701     fi
11702     rm -f conftest.o conftest.s
11703   fi
11704 fi
11705 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11706 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11707 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11708
11709 cat >>confdefs.h <<\_ACEOF
11710 #define HAVE_AS_MFCRF 1
11711 _ACEOF
11712
11713 fi
11714     ;;
11715
11716   mips*-*-*)
11717     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11718 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11719 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722   gcc_cv_as_mips_explicit_relocs=no
11723     if test $in_tree_gas = yes; then
11724     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11725   then gcc_cv_as_mips_explicit_relocs=yes
11726 fi
11727   elif test x$gcc_cv_as != x; then
11728     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11729     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; }
11735     then
11736         gcc_cv_as_mips_explicit_relocs=yes
11737     else
11738       echo "configure: failed program was" >&5
11739       cat conftest.s >&5
11740     fi
11741     rm -f conftest.o conftest.s
11742   fi
11743 fi
11744 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11745 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11746 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11747   if test x$target_cpu_default = x
11748        then target_cpu_default=MASK_EXPLICIT_RELOCS
11749        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11750        fi
11751 fi
11752
11753     if test x$gas_flag = xyes \
11754        || test x"$host" != x"$build" \
11755        || test ! -x "$gcc_cv_as" \
11756        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11757       :
11758     else
11759       echo "*** This configuration requires the GNU assembler" >&2
11760       exit 1
11761     fi
11762     ;;
11763 esac
11764 # ??? Not all targets support dwarf2 debug_line, even within a version
11765 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11766 # info to the output file.  So, as supported targets are added to gas 2.11,
11767 # add some instruction here to (also) show we expect this might work.
11768 # ??? Once 2.11 is released, probably need to add first known working
11769 # version to the per-target configury.
11770 case "$target" in
11771   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11772   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11773   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11774     insn="nop"
11775     ;;
11776   ia64*-*-* | s390*-*-*)
11777     insn="nop 0"
11778     ;;
11779   mmix-*-*)
11780     insn="swym 0"
11781     ;;
11782 esac
11783 if test x"$insn" != x; then
11784  conftest_s="\
11785         .file 1 \"conftest.s\"
11786         .loc 1 3 0
11787         $insn"
11788  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11789 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11790 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   gcc_cv_as_dwarf2_debug_line=no
11794     if test $in_tree_gas = yes; then
11795     if test $in_tree_gas_is_elf = yes \
11796   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11797   then gcc_cv_as_dwarf2_debug_line=yes
11798 fi
11799   elif test x$gcc_cv_as != x; then
11800     echo "$conftest_s" > conftest.s
11801     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }
11807     then
11808         # ??? This fails with non-gnu grep.  Maybe use objdump?
11809    if grep debug_line conftest.o > /dev/null 2>&1; then
11810      gcc_cv_as_dwarf2_debug_line=yes
11811    fi
11812     else
11813       echo "configure: failed program was" >&5
11814       cat conftest.s >&5
11815     fi
11816     rm -f conftest.o conftest.s
11817   fi
11818 fi
11819 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11820 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11821
11822
11823 # The .debug_line file table must be in the exact order that
11824 # we specified the files, since these indices are also used
11825 # by DW_AT_decl_file.  Approximate this test by testing if
11826 # the assembler bitches if the same index is assigned twice.
11827  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11828 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11829 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832   gcc_cv_as_dwarf2_file_buggy=no
11833   if test x$gcc_cv_as != x; then
11834     echo '      .file 1 "foo.s"
11835         .file 1 "bar.s"' > conftest.s
11836     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }
11842     then
11843         gcc_cv_as_dwarf2_file_buggy=yes
11844     else
11845       echo "configure: failed program was" >&5
11846       cat conftest.s >&5
11847     fi
11848     rm -f conftest.o conftest.s
11849   fi
11850 fi
11851 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11852 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11853
11854
11855  if test $gcc_cv_as_dwarf2_debug_line = yes \
11856  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11860 _ACEOF
11861
11862  fi
11863
11864  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11865 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11866 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   gcc_cv_as_gdwarf2_flag=no
11870     if test $in_tree_gas = yes; then
11871     if test $in_tree_gas_is_elf = yes \
11872   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11873   then gcc_cv_as_gdwarf2_flag=yes
11874 fi
11875   elif test x$gcc_cv_as != x; then
11876     echo "$insn" > conftest.s
11877     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }
11883     then
11884         gcc_cv_as_gdwarf2_flag=yes
11885     else
11886       echo "configure: failed program was" >&5
11887       cat conftest.s >&5
11888     fi
11889     rm -f conftest.o conftest.s
11890   fi
11891 fi
11892 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11893 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11894 if test $gcc_cv_as_gdwarf2_flag = yes; then
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11898 _ACEOF
11899
11900 fi
11901
11902  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11903 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11904 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   gcc_cv_as_gstabs_flag=no
11908     if test $in_tree_gas = yes; then
11909     if test $in_tree_gas_is_elf = yes \
11910   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11911   then gcc_cv_as_gstabs_flag=yes
11912 fi
11913   elif test x$gcc_cv_as != x; then
11914     echo "$insn" > conftest.s
11915     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }
11921     then
11922         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11923    # and warns about it, but still exits successfully.  So check for
11924    # this.
11925    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }
11931    then :
11932    else gcc_cv_as_gstabs_flag=yes
11933    fi
11934     else
11935       echo "configure: failed program was" >&5
11936       cat conftest.s >&5
11937     fi
11938     rm -f conftest.o conftest.s
11939   fi
11940 fi
11941 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11942 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11943 if test $gcc_cv_as_gstabs_flag = yes; then
11944
11945 cat >>confdefs.h <<\_ACEOF
11946 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11947 _ACEOF
11948
11949 fi
11950 fi
11951
11952 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11953 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11954 gcc_cv_ld_ro_rw_mix=unknown
11955 if test $in_tree_ld = yes ; then
11956   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 \
11957      && test $in_tree_ld_is_elf = yes; then
11958     gcc_cv_ld_ro_rw_mix=read-write
11959   fi
11960 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11961   echo '.section myfoosect, "a"' > conftest1.s
11962   echo '.section myfoosect, "aw"' > conftest2.s
11963   echo '.byte 1' >> conftest2.s
11964   echo '.section myfoosect, "a"' > conftest3.s
11965   echo '.byte 0' >> conftest3.s
11966   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11967      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11968      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11969      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11970         conftest2.o conftest3.o > /dev/null 2>&1; then
11971     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11972                          | sed -e '/myfoosect/!d' -e N`
11973     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11974       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11975         gcc_cv_ld_ro_rw_mix=read-only
11976       else
11977         gcc_cv_ld_ro_rw_mix=read-write
11978       fi
11979     fi
11980   fi
11981   rm -f conftest.* conftest[123].*
11982 fi
11983 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11984
11985 cat >>confdefs.h <<\_ACEOF
11986 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11987 _ACEOF
11988
11989 fi
11990 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11991 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11992
11993 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11994 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11995 gcc_cv_ld_eh_frame_hdr=no
11996 if test $in_tree_ld = yes ; then
11997   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 \
11998      && test $in_tree_ld_is_elf = yes; then
11999     gcc_cv_ld_eh_frame_hdr=yes
12000   fi
12001 elif test x$gcc_cv_ld != x; then
12002         # Check if linker supports --eh-frame-hdr option
12003         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12004                 gcc_cv_ld_eh_frame_hdr=yes
12005         fi
12006 fi
12007 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12008
12009 cat >>confdefs.h <<\_ACEOF
12010 #define HAVE_LD_EH_FRAME_HDR 1
12011 _ACEOF
12012
12013 fi
12014 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12015 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12016
12017 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12018 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12019 gcc_cv_ld_pie=no
12020 if test $in_tree_ld = yes ; then
12021   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 \
12022      && test $in_tree_ld_is_elf = yes; then
12023     gcc_cv_ld_pie=yes
12024   fi
12025 elif test x$gcc_cv_ld != x; then
12026         # Check if linker supports -pie option
12027         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12028                 gcc_cv_ld_pie=yes
12029         fi
12030 fi
12031 if test x"$gcc_cv_ld_pie" = xyes; then
12032
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_LD_PIE 1
12035 _ACEOF
12036
12037 fi
12038 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12039 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12040
12041 # --------
12042 # UNSORTED
12043 # --------
12044
12045 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12046 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12047 if test "${gcc_cv_ld_as_needed+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   gcc_cv_ld_as_needed=no
12051 if test $in_tree_ld = yes ; then
12052   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 \
12053      && test $in_tree_ld_is_elf = yes; then
12054     gcc_cv_ld_as_needed=yes
12055   fi
12056 elif test x$gcc_cv_ld != x; then
12057         # Check if linker supports --as-needed and --no-as-needed options
12058         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12059                 gcc_cv_ld_as_needed=yes
12060         fi
12061 fi
12062
12063 fi
12064 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12065 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12066 if test x"$gcc_cv_ld_as_needed" = xyes; then
12067
12068 cat >>confdefs.h <<\_ACEOF
12069 #define HAVE_LD_AS_NEEDED 1
12070 _ACEOF
12071
12072 fi
12073
12074 case "$target" in
12075   powerpc64*-*-linux*)
12076     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12077 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12078 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12079   echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081   gcc_cv_ld_no_dot_syms=no
12082     if test $in_tree_ld = yes ; then
12083       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12084         gcc_cv_ld_no_dot_syms=yes
12085       fi
12086     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12087       cat > conftest1.s <<EOF
12088         .text
12089         bl .foo
12090 EOF
12091       cat > conftest2.s <<EOF
12092         .section ".opd","aw"
12093         .align 3
12094         .globl foo
12095         .type foo,@function
12096 foo:
12097         .quad .LEfoo,.TOC.@tocbase,0
12098         .text
12099 .LEfoo:
12100         blr
12101         .size foo,.-.LEfoo
12102 EOF
12103       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12104          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12105          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12106         gcc_cv_ld_no_dot_syms=yes
12107       fi
12108       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12109     fi
12110
12111 fi
12112 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12113 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12114     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12115
12116 cat >>confdefs.h <<\_ACEOF
12117 #define HAVE_LD_NO_DOT_SYMS 1
12118 _ACEOF
12119
12120     fi
12121     ;;
12122 esac
12123
12124 if test x$with_sysroot = x && test x$host = x$target \
12125    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12126
12127 cat >>confdefs.h <<_ACEOF
12128 #define PREFIX_INCLUDE_DIR "$prefix/include"
12129 _ACEOF
12130
12131 fi
12132
12133 # Find out what GC implementation we want, or may, use.
12134
12135 # Check whether --with-gc or --without-gc was given.
12136 if test "${with_gc+set}" = set; then
12137   withval="$with_gc"
12138   case "$withval" in
12139   page | zone)
12140     GGC=ggc-$withval
12141     ;;
12142   *)
12143     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12144 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12145    { (exit 1); exit 1; }; }
12146     ;;
12147 esac
12148 else
12149   GGC=ggc-page
12150 fi;
12151
12152 echo "Using $GGC for garbage collection."
12153
12154 # Use the system's zlib library.
12155 zlibdir=-L../zlib
12156 zlibinc="-I\$(srcdir)/../zlib"
12157
12158 # Check whether --with-system-zlib or --without-system-zlib was given.
12159 if test "${with_system_zlib+set}" = set; then
12160   withval="$with_system_zlib"
12161   zlibdir=
12162 zlibinc=
12163
12164 fi;
12165
12166
12167
12168
12169 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12170 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12171     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12172 if test "${enable_maintainer_mode+set}" = set; then
12173   enableval="$enable_maintainer_mode"
12174   maintainer_mode=$enableval
12175 else
12176   maintainer_mode=no
12177 fi;
12178
12179 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12180 echo "${ECHO_T}$maintainer_mode" >&6
12181
12182 if test "$maintainer_mode" = "yes"; then
12183   MAINT=''
12184 else
12185   MAINT='#'
12186 fi
12187
12188 # --------------
12189 # Language hooks
12190 # --------------
12191
12192 # Make empty files to contain the specs and options for each language.
12193 # Then add #include lines to for a compiler that has specs and/or options.
12194
12195 lang_opt_files=
12196 lang_specs_files=
12197 lang_tree_files=
12198 for subdir in . $subdirs
12199 do
12200         if test -f $srcdir/$subdir/lang.opt; then
12201             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12202         fi
12203         if test -f $srcdir/$subdir/lang-specs.h; then
12204             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12205         fi
12206         if test -f $srcdir/$subdir/$subdir-tree.def; then
12207             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12208         fi
12209 done
12210
12211 # These (without "all_") are set in each config-lang.in.
12212 # `language' must be a single word so is spelled singularly.
12213 all_languages=
12214 all_boot_languages=
12215 all_compilers=
12216 all_stagestuff=
12217 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
12218 # List of language makefile fragments.
12219 all_lang_makefrags=
12220 # List of language subdirectory makefiles.  Deprecated.
12221 all_lang_makefiles=
12222 # Files for gengtype
12223 all_gtfiles="$target_gtfiles"
12224 # Files for gengtype with language
12225 all_gtfiles_files_langs=
12226 all_gtfiles_files_files=
12227
12228 # Add the language fragments.
12229 # Languages are added via two mechanisms.  Some information must be
12230 # recorded in makefile variables, these are defined in config-lang.in.
12231 # We accumulate them and plug them into the main Makefile.
12232 # The other mechanism is a set of hooks for each of the main targets
12233 # like `clean', `install', etc.
12234
12235 language_hooks="Make-hooks"
12236
12237 for s in $subdirs
12238 do
12239                 language=
12240                 boot_language=
12241                 compilers=
12242                 stagestuff=
12243                 outputs=
12244                 gtfiles=
12245                 . ${srcdir}/$s/config-lang.in
12246                 if test "x$language" = x
12247                 then
12248                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12249                         exit 1
12250                 fi
12251                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12252                 if test -f ${srcdir}/$s/Makefile.in
12253                 then all_lang_makefiles="$s/Makefile"
12254                 fi
12255                 all_languages="$all_languages $language"
12256                 if test "x$boot_language" = xyes
12257                 then
12258                         all_boot_languages="$all_boot_languages $language"
12259                 fi
12260                 all_compilers="$all_compilers $compilers"
12261                 all_stagestuff="$all_stagestuff $stagestuff"
12262                 all_outputs="$all_outputs $outputs"
12263                 all_gtfiles="$all_gtfiles $gtfiles"
12264                 for f in $gtfiles
12265                 do
12266                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12267                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12268                 done
12269 done
12270
12271 # Pick up gtfiles for c
12272 gtfiles=
12273 s="c"
12274 . ${srcdir}/c-config-lang.in
12275 all_gtfiles="$all_gtfiles $gtfiles"
12276 for f in $gtfiles
12277 do
12278         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12279         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12280 done
12281
12282 check_languages=
12283 for language in $all_languages
12284 do
12285                 check_languages="$check_languages check-$language"
12286 done
12287
12288 # We link each language in with a set of hooks, reached indirectly via
12289 # lang.${target}.
12290
12291 rm -f Make-hooks
12292 touch Make-hooks
12293 target_list="all.build all.cross start.encap rest.encap tags \
12294         install-normal install-common install-man \
12295         uninstall info man srcextra srcman srcinfo \
12296         mostlyclean clean distclean maintainer-clean \
12297         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12298 for t in $target_list
12299 do
12300         x=
12301         for lang in $all_languages
12302         do
12303                         x="$x $lang.$t"
12304         done
12305         echo "lang.$t: $x" >> Make-hooks
12306 done
12307
12308 # --------
12309 # UNSORTED
12310 # --------
12311
12312 # Create .gdbinit.
12313
12314 echo "dir ." > .gdbinit
12315 echo "dir ${srcdir}" >> .gdbinit
12316 if test x$gdb_needs_out_file_path = xyes
12317 then
12318         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12319 fi
12320 if test "x$subdirs" != x; then
12321         for s in $subdirs
12322         do
12323                 echo "dir ${srcdir}/$s" >> .gdbinit
12324         done
12325 fi
12326 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12327
12328 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12329 # absolute path for gcc_tooldir based on inserting the number of up-directory
12330 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12331 # $(libsubdir)/@(unlibsubdir) based path.
12332 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12333 # make and thus we'd get different behavior depending on where we built the
12334 # sources.
12335 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12336     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12337 else
12338 # An explanation of the sed strings:
12339 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12340 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12341 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12342 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12343 #
12344 # (*) Note this pattern overwrites the first character of the string
12345 # with a forward slash if one is not already present.  This is not a
12346 # problem because the exact names of the sub-directories concerned is
12347 # unimportant, just the number of them matters.
12348 #
12349 # The practical upshot of these patterns is like this:
12350 #
12351 #  prefix     exec_prefix        result
12352 #  ------     -----------        ------
12353 #   /foo        /foo/bar          ../
12354 #   /foo/       /foo/bar          ../
12355 #   /foo        /foo/bar/         ../
12356 #   /foo/       /foo/bar/         ../
12357 #   /foo        /foo/bar/ugg      ../../
12358 #
12359     dollar='$$'
12360     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12361 fi
12362
12363
12364
12365 # Find a directory in which to install a shared libgcc.
12366
12367 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12368 if test "${enable_version_specific_runtime_libs+set}" = set; then
12369   enableval="$enable_version_specific_runtime_libs"
12370
12371 fi;
12372
12373
12374 # Check whether --with-slibdir or --without-slibdir was given.
12375 if test "${with_slibdir+set}" = set; then
12376   withval="$with_slibdir"
12377   slibdir="$with_slibdir"
12378 else
12379   if test "${enable_version_specific_runtime_libs+set}" = set; then
12380   slibdir='$(libsubdir)'
12381 elif test "$host" != "$target"; then
12382   slibdir='$(build_tooldir)/lib'
12383 else
12384   slibdir='$(libdir)'
12385 fi
12386 fi;
12387
12388
12389 objdir=`${PWDCMD-pwd}`
12390
12391
12392 # Substitute configuration variables
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460 # If it doesn't already exist, create document directory
12461 echo "checking for the document directory." 1>&2
12462 if test -d doc ; then
12463   true
12464 else
12465   mkdir doc
12466 fi
12467
12468 # Echo link setup.
12469 if test x${build} = x${host} ; then
12470   if test x${host} = x${target} ; then
12471     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12472   else
12473     echo "Links are now set up to build a cross-compiler" 1>&2
12474     echo " from ${host} to ${target}." 1>&2
12475   fi
12476 else
12477   if test x${host} = x${target} ; then
12478     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12479     echo " for ${target}." 1>&2
12480   else
12481     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12482     echo " from ${host} to ${target}." 1>&2
12483   fi
12484 fi
12485
12486
12487
12488
12489 # Configure the subdirectories
12490 # AC_CONFIG_SUBDIRS($subdirs)
12491
12492 # Create the Makefile
12493 # and configure language subdirectories
12494           ac_config_files="$ac_config_files $all_outputs"
12495
12496
12497           ac_config_commands="$ac_config_commands default"
12498
12499 cat >confcache <<\_ACEOF
12500 # This file is a shell script that caches the results of configure
12501 # tests run on this system so they can be shared between configure
12502 # scripts and configure runs, see configure's option --config-cache.
12503 # It is not useful on other systems.  If it contains results you don't
12504 # want to keep, you may remove or edit it.
12505 #
12506 # config.status only pays attention to the cache file if you give it
12507 # the --recheck option to rerun configure.
12508 #
12509 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12510 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12511 # following values.
12512
12513 _ACEOF
12514
12515 # The following way of writing the cache mishandles newlines in values,
12516 # but we know of no workaround that is simple, portable, and efficient.
12517 # So, don't put newlines in cache variables' values.
12518 # Ultrix sh set writes to stderr and can't be redirected directly,
12519 # and sets the high bit in the cache file unless we assign to the vars.
12520 {
12521   (set) 2>&1 |
12522     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12523     *ac_space=\ *)
12524       # `set' does not quote correctly, so add quotes (double-quote
12525       # substitution turns \\\\ into \\, and sed turns \\ into \).
12526       sed -n \
12527         "s/'/'\\\\''/g;
12528           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12529       ;;
12530     *)
12531       # `set' quotes correctly as required by POSIX, so do not add quotes.
12532       sed -n \
12533         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12534       ;;
12535     esac;
12536 } |
12537   sed '
12538      t clear
12539      : clear
12540      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12541      t end
12542      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12543      : end' >>confcache
12544 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12545   if test -w $cache_file; then
12546     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12547     cat confcache >$cache_file
12548   else
12549     echo "not updating unwritable cache $cache_file"
12550   fi
12551 fi
12552 rm -f confcache
12553
12554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12555 # Let make expand exec_prefix.
12556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12557
12558 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12559 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12560 # trailing colons and then remove the whole line if VPATH becomes empty
12561 # (actually we leave an empty line to preserve line numbers).
12562 if test "x$srcdir" = x.; then
12563   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12564 s/:*\$(srcdir):*/:/;
12565 s/:*\${srcdir}:*/:/;
12566 s/:*@srcdir@:*/:/;
12567 s/^\([^=]*=[     ]*\):*/\1/;
12568 s/:*$//;
12569 s/^[^=]*=[       ]*$//;
12570 }'
12571 fi
12572
12573 DEFS=-DHAVE_CONFIG_H
12574
12575 ac_libobjs=
12576 ac_ltlibobjs=
12577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12578   # 1. Remove the extension, and $U if already installed.
12579   ac_i=`echo "$ac_i" |
12580          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12581   # 2. Add them.
12582   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12583   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12584 done
12585 LIBOBJS=$ac_libobjs
12586
12587 LTLIBOBJS=$ac_ltlibobjs
12588
12589
12590
12591 : ${CONFIG_STATUS=./config.status}
12592 ac_clean_files_save=$ac_clean_files
12593 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12594 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12595 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12596 cat >$CONFIG_STATUS <<_ACEOF
12597 #! $SHELL
12598 # Generated by $as_me.
12599 # Run this file to recreate the current configuration.
12600 # Compiler output produced by configure, useful for debugging
12601 # configure, is in config.log if it exists.
12602
12603 debug=false
12604 ac_cs_recheck=false
12605 ac_cs_silent=false
12606 SHELL=\${CONFIG_SHELL-$SHELL}
12607 _ACEOF
12608
12609 cat >>$CONFIG_STATUS <<\_ACEOF
12610 ## --------------------- ##
12611 ## M4sh Initialization.  ##
12612 ## --------------------- ##
12613
12614 # Be Bourne compatible
12615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12616   emulate sh
12617   NULLCMD=:
12618   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12619   # is contrary to our usage.  Disable this feature.
12620   alias -g '${1+"$@"}'='"$@"'
12621 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12622   set -o posix
12623 fi
12624 DUALCASE=1; export DUALCASE # for MKS sh
12625
12626 # Support unset when possible.
12627 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12628   as_unset=unset
12629 else
12630   as_unset=false
12631 fi
12632
12633
12634 # Work around bugs in pre-3.0 UWIN ksh.
12635 $as_unset ENV MAIL MAILPATH
12636 PS1='$ '
12637 PS2='> '
12638 PS4='+ '
12639
12640 # NLS nuisances.
12641 for as_var in \
12642   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12643   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12644   LC_TELEPHONE LC_TIME
12645 do
12646   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12647     eval $as_var=C; export $as_var
12648   else
12649     $as_unset $as_var
12650   fi
12651 done
12652
12653 # Required to use basename.
12654 if expr a : '\(a\)' >/dev/null 2>&1; then
12655   as_expr=expr
12656 else
12657   as_expr=false
12658 fi
12659
12660 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12661   as_basename=basename
12662 else
12663   as_basename=false
12664 fi
12665
12666
12667 # Name of the executable.
12668 as_me=`$as_basename "$0" ||
12669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12670          X"$0" : 'X\(//\)$' \| \
12671          X"$0" : 'X\(/\)$' \| \
12672          .     : '\(.\)' 2>/dev/null ||
12673 echo X/"$0" |
12674     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12675           /^X\/\(\/\/\)$/{ s//\1/; q; }
12676           /^X\/\(\/\).*/{ s//\1/; q; }
12677           s/.*/./; q'`
12678
12679
12680 # PATH needs CR, and LINENO needs CR and PATH.
12681 # Avoid depending upon Character Ranges.
12682 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12683 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12684 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12685 as_cr_digits='0123456789'
12686 as_cr_alnum=$as_cr_Letters$as_cr_digits
12687
12688 # The user is always right.
12689 if test "${PATH_SEPARATOR+set}" != set; then
12690   echo "#! /bin/sh" >conf$$.sh
12691   echo  "exit 0"   >>conf$$.sh
12692   chmod +x conf$$.sh
12693   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12694     PATH_SEPARATOR=';'
12695   else
12696     PATH_SEPARATOR=:
12697   fi
12698   rm -f conf$$.sh
12699 fi
12700
12701
12702   as_lineno_1=$LINENO
12703   as_lineno_2=$LINENO
12704   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12705   test "x$as_lineno_1" != "x$as_lineno_2" &&
12706   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12707   # Find who we are.  Look in the path if we contain no path at all
12708   # relative or not.
12709   case $0 in
12710     *[\\/]* ) as_myself=$0 ;;
12711     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $PATH
12713 do
12714   IFS=$as_save_IFS
12715   test -z "$as_dir" && as_dir=.
12716   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12717 done
12718
12719        ;;
12720   esac
12721   # We did not find ourselves, most probably we were run as `sh COMMAND'
12722   # in which case we are not to be found in the path.
12723   if test "x$as_myself" = x; then
12724     as_myself=$0
12725   fi
12726   if test ! -f "$as_myself"; then
12727     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12728 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12729    { (exit 1); exit 1; }; }
12730   fi
12731   case $CONFIG_SHELL in
12732   '')
12733     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12735 do
12736   IFS=$as_save_IFS
12737   test -z "$as_dir" && as_dir=.
12738   for as_base in sh bash ksh sh5; do
12739          case $as_dir in
12740          /*)
12741            if ("$as_dir/$as_base" -c '
12742   as_lineno_1=$LINENO
12743   as_lineno_2=$LINENO
12744   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12745   test "x$as_lineno_1" != "x$as_lineno_2" &&
12746   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12747              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12748              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12749              CONFIG_SHELL=$as_dir/$as_base
12750              export CONFIG_SHELL
12751              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12752            fi;;
12753          esac
12754        done
12755 done
12756 ;;
12757   esac
12758
12759   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12760   # uniformly replaced by the line number.  The first 'sed' inserts a
12761   # line-number line before each line; the second 'sed' does the real
12762   # work.  The second script uses 'N' to pair each line-number line
12763   # with the numbered line, and appends trailing '-' during
12764   # substitution so that $LINENO is not a special case at line end.
12765   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12766   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12767   sed '=' <$as_myself |
12768     sed '
12769       N
12770       s,$,-,
12771       : loop
12772       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12773       t loop
12774       s,-$,,
12775       s,^['$as_cr_digits']*\n,,
12776     ' >$as_me.lineno &&
12777   chmod +x $as_me.lineno ||
12778     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12779 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12780    { (exit 1); exit 1; }; }
12781
12782   # Don't try to exec as it changes $[0], causing all sort of problems
12783   # (the dirname of $[0] is not the place where we might find the
12784   # original and so on.  Autoconf is especially sensible to this).
12785   . ./$as_me.lineno
12786   # Exit status is that of the last command.
12787   exit
12788 }
12789
12790
12791 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12792   *c*,-n*) ECHO_N= ECHO_C='
12793 ' ECHO_T='      ' ;;
12794   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12795   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12796 esac
12797
12798 if expr a : '\(a\)' >/dev/null 2>&1; then
12799   as_expr=expr
12800 else
12801   as_expr=false
12802 fi
12803
12804 rm -f conf$$ conf$$.exe conf$$.file
12805 echo >conf$$.file
12806 if ln -s conf$$.file conf$$ 2>/dev/null; then
12807   # We could just check for DJGPP; but this test a) works b) is more generic
12808   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12809   if test -f conf$$.exe; then
12810     # Don't use ln at all; we don't have any links
12811     as_ln_s='cp -p'
12812   else
12813     as_ln_s='ln -s'
12814   fi
12815 elif ln conf$$.file conf$$ 2>/dev/null; then
12816   as_ln_s=ln
12817 else
12818   as_ln_s='cp -p'
12819 fi
12820 rm -f conf$$ conf$$.exe conf$$.file
12821
12822 if mkdir -p . 2>/dev/null; then
12823   as_mkdir_p=:
12824 else
12825   test -d ./-p && rmdir ./-p
12826   as_mkdir_p=false
12827 fi
12828
12829 as_executable_p="test -f"
12830
12831 # Sed expression to map a string onto a valid CPP name.
12832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12833
12834 # Sed expression to map a string onto a valid variable name.
12835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12836
12837
12838 # IFS
12839 # We need space, tab and new line, in precisely that order.
12840 as_nl='
12841 '
12842 IFS="   $as_nl"
12843
12844 # CDPATH.
12845 $as_unset CDPATH
12846
12847 exec 6>&1
12848
12849 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12850 # report actual input values of CONFIG_FILES etc. instead of their
12851 # values after options handling.  Logging --version etc. is OK.
12852 exec 5>>config.log
12853 {
12854   echo
12855   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12856 ## Running $as_me. ##
12857 _ASBOX
12858 } >&5
12859 cat >&5 <<_CSEOF
12860
12861 This file was extended by $as_me, which was
12862 generated by GNU Autoconf 2.59.  Invocation command line was
12863
12864   CONFIG_FILES    = $CONFIG_FILES
12865   CONFIG_HEADERS  = $CONFIG_HEADERS
12866   CONFIG_LINKS    = $CONFIG_LINKS
12867   CONFIG_COMMANDS = $CONFIG_COMMANDS
12868   $ $0 $@
12869
12870 _CSEOF
12871 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12872 echo >&5
12873 _ACEOF
12874
12875 # Files that config.status was made for.
12876 if test -n "$ac_config_files"; then
12877   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12878 fi
12879
12880 if test -n "$ac_config_headers"; then
12881   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12882 fi
12883
12884 if test -n "$ac_config_links"; then
12885   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12886 fi
12887
12888 if test -n "$ac_config_commands"; then
12889   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12890 fi
12891
12892 cat >>$CONFIG_STATUS <<\_ACEOF
12893
12894 ac_cs_usage="\
12895 \`$as_me' instantiates files from templates according to the
12896 current configuration.
12897
12898 Usage: $0 [OPTIONS] [FILE]...
12899
12900   -h, --help       print this help, then exit
12901   -V, --version    print version number, then exit
12902   -q, --quiet      do not print progress messages
12903   -d, --debug      don't remove temporary files
12904       --recheck    update $as_me by reconfiguring in the same conditions
12905   --file=FILE[:TEMPLATE]
12906                    instantiate the configuration file FILE
12907   --header=FILE[:TEMPLATE]
12908                    instantiate the configuration header FILE
12909
12910 Configuration files:
12911 $config_files
12912
12913 Configuration headers:
12914 $config_headers
12915
12916 Configuration commands:
12917 $config_commands
12918
12919 Report bugs to <bug-autoconf@gnu.org>."
12920 _ACEOF
12921
12922 cat >>$CONFIG_STATUS <<_ACEOF
12923 ac_cs_version="\\
12924 config.status
12925 configured by $0, generated by GNU Autoconf 2.59,
12926   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12927
12928 Copyright (C) 2003 Free Software Foundation, Inc.
12929 This config.status script is free software; the Free Software Foundation
12930 gives unlimited permission to copy, distribute and modify it."
12931 srcdir=$srcdir
12932 _ACEOF
12933
12934 cat >>$CONFIG_STATUS <<\_ACEOF
12935 # If no file are specified by the user, then we need to provide default
12936 # value.  By we need to know if files were specified by the user.
12937 ac_need_defaults=:
12938 while test $# != 0
12939 do
12940   case $1 in
12941   --*=*)
12942     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12943     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12944     ac_shift=:
12945     ;;
12946   -*)
12947     ac_option=$1
12948     ac_optarg=$2
12949     ac_shift=shift
12950     ;;
12951   *) # This is not an option, so the user has probably given explicit
12952      # arguments.
12953      ac_option=$1
12954      ac_need_defaults=false;;
12955   esac
12956
12957   case $ac_option in
12958   # Handling of the options.
12959 _ACEOF
12960 cat >>$CONFIG_STATUS <<\_ACEOF
12961   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12962     ac_cs_recheck=: ;;
12963   --version | --vers* | -V )
12964     echo "$ac_cs_version"; exit 0 ;;
12965   --he | --h)
12966     # Conflict between --help and --header
12967     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12968 Try \`$0 --help' for more information." >&5
12969 echo "$as_me: error: ambiguous option: $1
12970 Try \`$0 --help' for more information." >&2;}
12971    { (exit 1); exit 1; }; };;
12972   --help | --hel | -h )
12973     echo "$ac_cs_usage"; exit 0 ;;
12974   --debug | --d* | -d )
12975     debug=: ;;
12976   --file | --fil | --fi | --f )
12977     $ac_shift
12978     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12979     ac_need_defaults=false;;
12980   --header | --heade | --head | --hea )
12981     $ac_shift
12982     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12983     ac_need_defaults=false;;
12984   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12985   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12986     ac_cs_silent=: ;;
12987
12988   # This is an error.
12989   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12990 Try \`$0 --help' for more information." >&5
12991 echo "$as_me: error: unrecognized option: $1
12992 Try \`$0 --help' for more information." >&2;}
12993    { (exit 1); exit 1; }; } ;;
12994
12995   *) ac_config_targets="$ac_config_targets $1" ;;
12996
12997   esac
12998   shift
12999 done
13000
13001 ac_configure_extra_args=
13002
13003 if $ac_cs_silent; then
13004   exec 6>/dev/null
13005   ac_configure_extra_args="$ac_configure_extra_args --silent"
13006 fi
13007
13008 _ACEOF
13009 cat >>$CONFIG_STATUS <<_ACEOF
13010 if \$ac_cs_recheck; then
13011   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13012   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13013 fi
13014
13015 _ACEOF
13016
13017 cat >>$CONFIG_STATUS <<_ACEOF
13018 #
13019 # INIT-COMMANDS section.
13020 #
13021
13022 subdirs='$subdirs'
13023 symbolic_link='$symbolic_link'
13024
13025
13026 _ACEOF
13027
13028
13029
13030 cat >>$CONFIG_STATUS <<\_ACEOF
13031 for ac_config_target in $ac_config_targets
13032 do
13033   case "$ac_config_target" in
13034   # Handling of arguments.
13035   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13036   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13037   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13038   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13039 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13040    { (exit 1); exit 1; }; };;
13041   esac
13042 done
13043
13044 # If the user did not use the arguments to specify the items to instantiate,
13045 # then the envvar interface is used.  Set only those that are not.
13046 # We use the long form for the default assignment because of an extremely
13047 # bizarre bug on SunOS 4.1.3.
13048 if $ac_need_defaults; then
13049   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13050   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13051   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13052 fi
13053
13054 # Have a temporary directory for convenience.  Make it in the build tree
13055 # simply because there is no reason to put it here, and in addition,
13056 # creating and moving files from /tmp can sometimes cause problems.
13057 # Create a temporary directory, and hook for its removal unless debugging.
13058 $debug ||
13059 {
13060   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13061   trap '{ (exit 1); exit 1; }' 1 2 13 15
13062 }
13063
13064 # Create a (secure) tmp directory for tmp files.
13065
13066 {
13067   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13068   test -n "$tmp" && test -d "$tmp"
13069 }  ||
13070 {
13071   tmp=./confstat$$-$RANDOM
13072   (umask 077 && mkdir $tmp)
13073 } ||
13074 {
13075    echo "$me: cannot create a temporary directory in ." >&2
13076    { (exit 1); exit 1; }
13077 }
13078
13079 _ACEOF
13080
13081 cat >>$CONFIG_STATUS <<_ACEOF
13082
13083 #
13084 # CONFIG_FILES section.
13085 #
13086
13087 # No need to generate the scripts if there are no CONFIG_FILES.
13088 # This happens for instance when ./config.status config.h
13089 if test -n "\$CONFIG_FILES"; then
13090   # Protect against being on the right side of a sed subst in config.status.
13091   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13092    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13093 s,@SHELL@,$SHELL,;t t
13094 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13095 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13096 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13097 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13098 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13099 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13100 s,@exec_prefix@,$exec_prefix,;t t
13101 s,@prefix@,$prefix,;t t
13102 s,@program_transform_name@,$program_transform_name,;t t
13103 s,@bindir@,$bindir,;t t
13104 s,@sbindir@,$sbindir,;t t
13105 s,@libexecdir@,$libexecdir,;t t
13106 s,@datadir@,$datadir,;t t
13107 s,@sysconfdir@,$sysconfdir,;t t
13108 s,@sharedstatedir@,$sharedstatedir,;t t
13109 s,@localstatedir@,$localstatedir,;t t
13110 s,@libdir@,$libdir,;t t
13111 s,@includedir@,$includedir,;t t
13112 s,@oldincludedir@,$oldincludedir,;t t
13113 s,@infodir@,$infodir,;t t
13114 s,@mandir@,$mandir,;t t
13115 s,@build_alias@,$build_alias,;t t
13116 s,@host_alias@,$host_alias,;t t
13117 s,@target_alias@,$target_alias,;t t
13118 s,@DEFS@,$DEFS,;t t
13119 s,@ECHO_C@,$ECHO_C,;t t
13120 s,@ECHO_N@,$ECHO_N,;t t
13121 s,@ECHO_T@,$ECHO_T,;t t
13122 s,@LIBS@,$LIBS,;t t
13123 s,@build@,$build,;t t
13124 s,@build_cpu@,$build_cpu,;t t
13125 s,@build_vendor@,$build_vendor,;t t
13126 s,@build_os@,$build_os,;t t
13127 s,@host@,$host,;t t
13128 s,@host_cpu@,$host_cpu,;t t
13129 s,@host_vendor@,$host_vendor,;t t
13130 s,@host_os@,$host_os,;t t
13131 s,@target@,$target,;t t
13132 s,@target_cpu@,$target_cpu,;t t
13133 s,@target_vendor@,$target_vendor,;t t
13134 s,@target_os@,$target_os,;t t
13135 s,@target_noncanonical@,$target_noncanonical,;t t
13136 s,@build_subdir@,$build_subdir,;t t
13137 s,@host_subdir@,$host_subdir,;t t
13138 s,@target_subdir@,$target_subdir,;t t
13139 s,@GENINSRC@,$GENINSRC,;t t
13140 s,@CC@,$CC,;t t
13141 s,@CFLAGS@,$CFLAGS,;t t
13142 s,@LDFLAGS@,$LDFLAGS,;t t
13143 s,@CPPFLAGS@,$CPPFLAGS,;t t
13144 s,@ac_ct_CC@,$ac_ct_CC,;t t
13145 s,@EXEEXT@,$EXEEXT,;t t
13146 s,@OBJEXT@,$OBJEXT,;t t
13147 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13148 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13149 s,@CPP@,$CPP,;t t
13150 s,@strict1_warn@,$strict1_warn,;t t
13151 s,@warn_cflags@,$warn_cflags,;t t
13152 s,@WERROR@,$WERROR,;t t
13153 s,@nocommon_flag@,$nocommon_flag,;t t
13154 s,@TREEBROWSER@,$TREEBROWSER,;t t
13155 s,@EGREP@,$EGREP,;t t
13156 s,@valgrind_path@,$valgrind_path,;t t
13157 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13158 s,@valgrind_command@,$valgrind_command,;t t
13159 s,@coverage_flags@,$coverage_flags,;t t
13160 s,@enable_multilib@,$enable_multilib,;t t
13161 s,@enable_shared@,$enable_shared,;t t
13162 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13163 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13164 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13165 s,@onestep@,$onestep,;t t
13166 s,@SET_MAKE@,$SET_MAKE,;t t
13167 s,@AWK@,$AWK,;t t
13168 s,@LN_S@,$LN_S,;t t
13169 s,@LN@,$LN,;t t
13170 s,@RANLIB@,$RANLIB,;t t
13171 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13172 s,@ranlib_flags@,$ranlib_flags,;t t
13173 s,@INSTALL@,$INSTALL,;t t
13174 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13175 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13176 s,@make_compare_target@,$make_compare_target,;t t
13177 s,@have_mktemp_command@,$have_mktemp_command,;t t
13178 s,@MAKEINFO@,$MAKEINFO,;t t
13179 s,@BUILD_INFO@,$BUILD_INFO,;t t
13180 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13181 s,@FLEX@,$FLEX,;t t
13182 s,@BISON@,$BISON,;t t
13183 s,@NM@,$NM,;t t
13184 s,@AR@,$AR,;t t
13185 s,@stage1_cflags@,$stage1_cflags,;t t
13186 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13187 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13188 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13189 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13190 s,@LIBICONV@,$LIBICONV,;t t
13191 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13192 s,@manext@,$manext,;t t
13193 s,@objext@,$objext,;t t
13194 s,@gthread_flags@,$gthread_flags,;t t
13195 s,@extra_modes_file@,$extra_modes_file,;t t
13196 s,@PACKAGE@,$PACKAGE,;t t
13197 s,@VERSION@,$VERSION,;t t
13198 s,@USE_NLS@,$USE_NLS,;t t
13199 s,@LIBINTL@,$LIBINTL,;t t
13200 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13201 s,@INCINTL@,$INCINTL,;t t
13202 s,@XGETTEXT@,$XGETTEXT,;t t
13203 s,@GMSGFMT@,$GMSGFMT,;t t
13204 s,@POSUB@,$POSUB,;t t
13205 s,@CATALOGS@,$CATALOGS,;t t
13206 s,@CROSS@,$CROSS,;t t
13207 s,@ALL@,$ALL,;t t
13208 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13209 s,@inhibit_libc@,$inhibit_libc,;t t
13210 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13211 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13212 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13213 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13214 s,@collect2@,$collect2,;t t
13215 s,@libgcc_visibility@,$libgcc_visibility,;t t
13216 s,@GGC@,$GGC,;t t
13217 s,@zlibdir@,$zlibdir,;t t
13218 s,@zlibinc@,$zlibinc,;t t
13219 s,@MAINT@,$MAINT,;t t
13220 s,@gcc_tooldir@,$gcc_tooldir,;t t
13221 s,@dollar@,$dollar,;t t
13222 s,@slibdir@,$slibdir,;t t
13223 s,@objdir@,$objdir,;t t
13224 s,@subdirs@,$subdirs,;t t
13225 s,@srcdir@,$srcdir,;t t
13226 s,@all_boot_languages@,$all_boot_languages,;t t
13227 s,@all_compilers@,$all_compilers,;t t
13228 s,@all_gtfiles@,$all_gtfiles,;t t
13229 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13230 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13231 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13232 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13233 s,@all_languages@,$all_languages,;t t
13234 s,@all_stagestuff@,$all_stagestuff,;t t
13235 s,@build_exeext@,$build_exeext,;t t
13236 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13237 s,@build_xm_file_list@,$build_xm_file_list,;t t
13238 s,@build_xm_include_list@,$build_xm_include_list,;t t
13239 s,@build_xm_defines@,$build_xm_defines,;t t
13240 s,@check_languages@,$check_languages,;t t
13241 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13242 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13243 s,@cpp_install_dir@,$cpp_install_dir,;t t
13244 s,@xmake_file@,$xmake_file,;t t
13245 s,@tmake_file@,$tmake_file,;t t
13246 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13247 s,@extra_headers_list@,$extra_headers_list,;t t
13248 s,@extra_objs@,$extra_objs,;t t
13249 s,@extra_parts@,$extra_parts,;t t
13250 s,@extra_passes@,$extra_passes,;t t
13251 s,@extra_programs@,$extra_programs,;t t
13252 s,@float_h_file@,$float_h_file,;t t
13253 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13254 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13255 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13256 s,@gcc_version@,$gcc_version,;t t
13257 s,@gcc_version_full@,$gcc_version_full,;t t
13258 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13259 s,@host_exeext@,$host_exeext,;t t
13260 s,@host_xm_file_list@,$host_xm_file_list,;t t
13261 s,@host_xm_include_list@,$host_xm_include_list,;t t
13262 s,@host_xm_defines@,$host_xm_defines,;t t
13263 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13264 s,@install@,$install,;t t
13265 s,@lang_opt_files@,$lang_opt_files,;t t
13266 s,@lang_specs_files@,$lang_specs_files,;t t
13267 s,@lang_tree_files@,$lang_tree_files,;t t
13268 s,@local_prefix@,$local_prefix,;t t
13269 s,@md_file@,$md_file,;t t
13270 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13271 s,@out_file@,$out_file,;t t
13272 s,@out_object_file@,$out_object_file,;t t
13273 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13274 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13275 s,@symbolic_link@,$symbolic_link,;t t
13276 s,@thread_file@,$thread_file,;t t
13277 s,@tm_file_list@,$tm_file_list,;t t
13278 s,@tm_include_list@,$tm_include_list,;t t
13279 s,@tm_defines@,$tm_defines,;t t
13280 s,@tm_p_file_list@,$tm_p_file_list,;t t
13281 s,@tm_p_include_list@,$tm_p_include_list,;t t
13282 s,@xm_file_list@,$xm_file_list,;t t
13283 s,@xm_include_list@,$xm_include_list,;t t
13284 s,@xm_defines@,$xm_defines,;t t
13285 s,@c_target_objs@,$c_target_objs,;t t
13286 s,@cxx_target_objs@,$cxx_target_objs,;t t
13287 s,@target_cpu_default@,$target_cpu_default,;t t
13288 s,@GMPLIBS@,$GMPLIBS,;t t
13289 s,@GMPINC@,$GMPINC,;t t
13290 s,@LIBOBJS@,$LIBOBJS,;t t
13291 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13292 /@language_hooks@/r $language_hooks
13293 s,@language_hooks@,,;t t
13294 CEOF
13295
13296 _ACEOF
13297
13298   cat >>$CONFIG_STATUS <<\_ACEOF
13299   # Split the substitutions into bite-sized pieces for seds with
13300   # small command number limits, like on Digital OSF/1 and HP-UX.
13301   ac_max_sed_lines=48
13302   ac_sed_frag=1 # Number of current file.
13303   ac_beg=1 # First line for current file.
13304   ac_end=$ac_max_sed_lines # Line after last line for current file.
13305   ac_more_lines=:
13306   ac_sed_cmds=
13307   while $ac_more_lines; do
13308     if test $ac_beg -gt 1; then
13309       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13310     else
13311       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13312     fi
13313     if test ! -s $tmp/subs.frag; then
13314       ac_more_lines=false
13315     else
13316       # The purpose of the label and of the branching condition is to
13317       # speed up the sed processing (if there are no `@' at all, there
13318       # is no need to browse any of the substitutions).
13319       # These are the two extra sed commands mentioned above.
13320       (echo ':t
13321   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13322       if test -z "$ac_sed_cmds"; then
13323         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13324       else
13325         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13326       fi
13327       ac_sed_frag=`expr $ac_sed_frag + 1`
13328       ac_beg=$ac_end
13329       ac_end=`expr $ac_end + $ac_max_sed_lines`
13330     fi
13331   done
13332   if test -z "$ac_sed_cmds"; then
13333     ac_sed_cmds=cat
13334   fi
13335 fi # test -n "$CONFIG_FILES"
13336
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<\_ACEOF
13339 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13340   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13341   case $ac_file in
13342   - | *:- | *:-:* ) # input from stdin
13343         cat >$tmp/stdin
13344         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13345         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13346   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13347         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13348   * )   ac_file_in=$ac_file.in ;;
13349   esac
13350
13351   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13352   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13353 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13354          X"$ac_file" : 'X\(//\)[^/]' \| \
13355          X"$ac_file" : 'X\(//\)$' \| \
13356          X"$ac_file" : 'X\(/\)' \| \
13357          .     : '\(.\)' 2>/dev/null ||
13358 echo X"$ac_file" |
13359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13360           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13361           /^X\(\/\/\)$/{ s//\1/; q; }
13362           /^X\(\/\).*/{ s//\1/; q; }
13363           s/.*/./; q'`
13364   { if $as_mkdir_p; then
13365     mkdir -p "$ac_dir"
13366   else
13367     as_dir="$ac_dir"
13368     as_dirs=
13369     while test ! -d "$as_dir"; do
13370       as_dirs="$as_dir $as_dirs"
13371       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13373          X"$as_dir" : 'X\(//\)[^/]' \| \
13374          X"$as_dir" : 'X\(//\)$' \| \
13375          X"$as_dir" : 'X\(/\)' \| \
13376          .     : '\(.\)' 2>/dev/null ||
13377 echo X"$as_dir" |
13378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13380           /^X\(\/\/\)$/{ s//\1/; q; }
13381           /^X\(\/\).*/{ s//\1/; q; }
13382           s/.*/./; q'`
13383     done
13384     test ! -n "$as_dirs" || mkdir $as_dirs
13385   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13386 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13387    { (exit 1); exit 1; }; }; }
13388
13389   ac_builddir=.
13390
13391 if test "$ac_dir" != .; then
13392   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13393   # A "../" for each directory in $ac_dir_suffix.
13394   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13395 else
13396   ac_dir_suffix= ac_top_builddir=
13397 fi
13398
13399 case $srcdir in
13400   .)  # No --srcdir option.  We are building in place.
13401     ac_srcdir=.
13402     if test -z "$ac_top_builddir"; then
13403        ac_top_srcdir=.
13404     else
13405        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13406     fi ;;
13407   [\\/]* | ?:[\\/]* )  # Absolute path.
13408     ac_srcdir=$srcdir$ac_dir_suffix;
13409     ac_top_srcdir=$srcdir ;;
13410   *) # Relative path.
13411     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13412     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13413 esac
13414
13415 # Do not use `cd foo && pwd` to compute absolute paths, because
13416 # the directories may not exist.
13417 case `pwd` in
13418 .) ac_abs_builddir="$ac_dir";;
13419 *)
13420   case "$ac_dir" in
13421   .) ac_abs_builddir=`pwd`;;
13422   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13423   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13424   esac;;
13425 esac
13426 case $ac_abs_builddir in
13427 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13428 *)
13429   case ${ac_top_builddir}. in
13430   .) ac_abs_top_builddir=$ac_abs_builddir;;
13431   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13432   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13433   esac;;
13434 esac
13435 case $ac_abs_builddir in
13436 .) ac_abs_srcdir=$ac_srcdir;;
13437 *)
13438   case $ac_srcdir in
13439   .) ac_abs_srcdir=$ac_abs_builddir;;
13440   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13441   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13442   esac;;
13443 esac
13444 case $ac_abs_builddir in
13445 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13446 *)
13447   case $ac_top_srcdir in
13448   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13449   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13450   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13451   esac;;
13452 esac
13453
13454
13455
13456   if test x"$ac_file" != x-; then
13457     { echo "$as_me:$LINENO: creating $ac_file" >&5
13458 echo "$as_me: creating $ac_file" >&6;}
13459     rm -f "$ac_file"
13460   fi
13461   # Let's still pretend it is `configure' which instantiates (i.e., don't
13462   # use $as_me), people would be surprised to read:
13463   #    /* config.h.  Generated by config.status.  */
13464   if test x"$ac_file" = x-; then
13465     configure_input=
13466   else
13467     configure_input="$ac_file.  "
13468   fi
13469   configure_input=$configure_input"Generated from `echo $ac_file_in |
13470                                      sed 's,.*/,,'` by configure."
13471
13472   # First look for the input files in the build tree, otherwise in the
13473   # src tree.
13474   ac_file_inputs=`IFS=:
13475     for f in $ac_file_in; do
13476       case $f in
13477       -) echo $tmp/stdin ;;
13478       [\\/$]*)
13479          # Absolute (can't be DOS-style, as IFS=:)
13480          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13481 echo "$as_me: error: cannot find input file: $f" >&2;}
13482    { (exit 1); exit 1; }; }
13483          echo "$f";;
13484       *) # Relative
13485          if test -f "$f"; then
13486            # Build tree
13487            echo "$f"
13488          elif test -f "$srcdir/$f"; then
13489            # Source tree
13490            echo "$srcdir/$f"
13491          else
13492            # /dev/null tree
13493            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13494 echo "$as_me: error: cannot find input file: $f" >&2;}
13495    { (exit 1); exit 1; }; }
13496          fi;;
13497       esac
13498     done` || { (exit 1); exit 1; }
13499 _ACEOF
13500 cat >>$CONFIG_STATUS <<_ACEOF
13501   sed "$ac_vpsub
13502 $extrasub
13503 _ACEOF
13504 cat >>$CONFIG_STATUS <<\_ACEOF
13505 :t
13506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13507 s,@configure_input@,$configure_input,;t t
13508 s,@srcdir@,$ac_srcdir,;t t
13509 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13510 s,@top_srcdir@,$ac_top_srcdir,;t t
13511 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13512 s,@builddir@,$ac_builddir,;t t
13513 s,@abs_builddir@,$ac_abs_builddir,;t t
13514 s,@top_builddir@,$ac_top_builddir,;t t
13515 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13516 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13517   rm -f $tmp/stdin
13518   if test x"$ac_file" != x-; then
13519     mv $tmp/out $ac_file
13520   else
13521     cat $tmp/out
13522     rm -f $tmp/out
13523   fi
13524
13525 done
13526 _ACEOF
13527 cat >>$CONFIG_STATUS <<\_ACEOF
13528
13529 #
13530 # CONFIG_HEADER section.
13531 #
13532
13533 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13534 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13535 #
13536 # ac_d sets the value in "#define NAME VALUE" lines.
13537 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13538 ac_dB='[         ].*$,\1#\2'
13539 ac_dC=' '
13540 ac_dD=',;t'
13541 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13542 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13543 ac_uB='$,\1#\2define\3'
13544 ac_uC=' '
13545 ac_uD=',;t'
13546
13547 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13548   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13549   case $ac_file in
13550   - | *:- | *:-:* ) # input from stdin
13551         cat >$tmp/stdin
13552         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13553         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13554   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13555         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13556   * )   ac_file_in=$ac_file.in ;;
13557   esac
13558
13559   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13560 echo "$as_me: creating $ac_file" >&6;}
13561
13562   # First look for the input files in the build tree, otherwise in the
13563   # src tree.
13564   ac_file_inputs=`IFS=:
13565     for f in $ac_file_in; do
13566       case $f in
13567       -) echo $tmp/stdin ;;
13568       [\\/$]*)
13569          # Absolute (can't be DOS-style, as IFS=:)
13570          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13571 echo "$as_me: error: cannot find input file: $f" >&2;}
13572    { (exit 1); exit 1; }; }
13573          # Do quote $f, to prevent DOS paths from being IFS'd.
13574          echo "$f";;
13575       *) # Relative
13576          if test -f "$f"; then
13577            # Build tree
13578            echo "$f"
13579          elif test -f "$srcdir/$f"; then
13580            # Source tree
13581            echo "$srcdir/$f"
13582          else
13583            # /dev/null tree
13584            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13585 echo "$as_me: error: cannot find input file: $f" >&2;}
13586    { (exit 1); exit 1; }; }
13587          fi;;
13588       esac
13589     done` || { (exit 1); exit 1; }
13590   # Remove the trailing spaces.
13591   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13592
13593 _ACEOF
13594
13595 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13596 # `conftest.undefs', that substitutes the proper values into
13597 # config.h.in to produce config.h.  The first handles `#define'
13598 # templates, and the second `#undef' templates.
13599 # And first: Protect against being on the right side of a sed subst in
13600 # config.status.  Protect against being in an unquoted here document
13601 # in config.status.
13602 rm -f conftest.defines conftest.undefs
13603 # Using a here document instead of a string reduces the quoting nightmare.
13604 # Putting comments in sed scripts is not portable.
13605 #
13606 # `end' is used to avoid that the second main sed command (meant for
13607 # 0-ary CPP macros) applies to n-ary macro definitions.
13608 # See the Autoconf documentation for `clear'.
13609 cat >confdef2sed.sed <<\_ACEOF
13610 s/[\\&,]/\\&/g
13611 s,[\\$`],\\&,g
13612 t clear
13613 : clear
13614 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13615 t end
13616 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13617 : end
13618 _ACEOF
13619 # If some macros were called several times there might be several times
13620 # the same #defines, which is useless.  Nevertheless, we may not want to
13621 # sort them, since we want the *last* AC-DEFINE to be honored.
13622 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13623 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13624 rm -f confdef2sed.sed
13625
13626 # This sed command replaces #undef with comments.  This is necessary, for
13627 # example, in the case of _POSIX_SOURCE, which is predefined and required
13628 # on some systems where configure will not decide to define it.
13629 cat >>conftest.undefs <<\_ACEOF
13630 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13631 _ACEOF
13632
13633 # Break up conftest.defines because some shells have a limit on the size
13634 # of here documents, and old seds have small limits too (100 cmds).
13635 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13636 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13637 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13638 echo '  :' >>$CONFIG_STATUS
13639 rm -f conftest.tail
13640 while grep . conftest.defines >/dev/null
13641 do
13642   # Write a limited-size here document to $tmp/defines.sed.
13643   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13644   # Speed up: don't consider the non `#define' lines.
13645   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13646   # Work around the forget-to-reset-the-flag bug.
13647   echo 't clr' >>$CONFIG_STATUS
13648   echo ': clr' >>$CONFIG_STATUS
13649   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13650   echo 'CEOF
13651   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13652   rm -f $tmp/in
13653   mv $tmp/out $tmp/in
13654 ' >>$CONFIG_STATUS
13655   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13656   rm -f conftest.defines
13657   mv conftest.tail conftest.defines
13658 done
13659 rm -f conftest.defines
13660 echo '  fi # grep' >>$CONFIG_STATUS
13661 echo >>$CONFIG_STATUS
13662
13663 # Break up conftest.undefs because some shells have a limit on the size
13664 # of here documents, and old seds have small limits too (100 cmds).
13665 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13666 rm -f conftest.tail
13667 while grep . conftest.undefs >/dev/null
13668 do
13669   # Write a limited-size here document to $tmp/undefs.sed.
13670   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13671   # Speed up: don't consider the non `#undef'
13672   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13673   # Work around the forget-to-reset-the-flag bug.
13674   echo 't clr' >>$CONFIG_STATUS
13675   echo ': clr' >>$CONFIG_STATUS
13676   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13677   echo 'CEOF
13678   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13679   rm -f $tmp/in
13680   mv $tmp/out $tmp/in
13681 ' >>$CONFIG_STATUS
13682   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13683   rm -f conftest.undefs
13684   mv conftest.tail conftest.undefs
13685 done
13686 rm -f conftest.undefs
13687
13688 cat >>$CONFIG_STATUS <<\_ACEOF
13689   # Let's still pretend it is `configure' which instantiates (i.e., don't
13690   # use $as_me), people would be surprised to read:
13691   #    /* config.h.  Generated by config.status.  */
13692   if test x"$ac_file" = x-; then
13693     echo "/* Generated by configure.  */" >$tmp/config.h
13694   else
13695     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13696   fi
13697   cat $tmp/in >>$tmp/config.h
13698   rm -f $tmp/in
13699   if test x"$ac_file" != x-; then
13700     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13701       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13702 echo "$as_me: $ac_file is unchanged" >&6;}
13703     else
13704       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13706          X"$ac_file" : 'X\(//\)[^/]' \| \
13707          X"$ac_file" : 'X\(//\)$' \| \
13708          X"$ac_file" : 'X\(/\)' \| \
13709          .     : '\(.\)' 2>/dev/null ||
13710 echo X"$ac_file" |
13711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13713           /^X\(\/\/\)$/{ s//\1/; q; }
13714           /^X\(\/\).*/{ s//\1/; q; }
13715           s/.*/./; q'`
13716       { if $as_mkdir_p; then
13717     mkdir -p "$ac_dir"
13718   else
13719     as_dir="$ac_dir"
13720     as_dirs=
13721     while test ! -d "$as_dir"; do
13722       as_dirs="$as_dir $as_dirs"
13723       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13725          X"$as_dir" : 'X\(//\)[^/]' \| \
13726          X"$as_dir" : 'X\(//\)$' \| \
13727          X"$as_dir" : 'X\(/\)' \| \
13728          .     : '\(.\)' 2>/dev/null ||
13729 echo X"$as_dir" |
13730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13732           /^X\(\/\/\)$/{ s//\1/; q; }
13733           /^X\(\/\).*/{ s//\1/; q; }
13734           s/.*/./; q'`
13735     done
13736     test ! -n "$as_dirs" || mkdir $as_dirs
13737   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13739    { (exit 1); exit 1; }; }; }
13740
13741       rm -f $ac_file
13742       mv $tmp/config.h $ac_file
13743     fi
13744   else
13745     cat $tmp/config.h
13746     rm -f $tmp/config.h
13747   fi
13748 done
13749 _ACEOF
13750 cat >>$CONFIG_STATUS <<\_ACEOF
13751
13752 #
13753 # CONFIG_COMMANDS section.
13754 #
13755 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13756   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13757   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13758   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13759 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760          X"$ac_dest" : 'X\(//\)[^/]' \| \
13761          X"$ac_dest" : 'X\(//\)$' \| \
13762          X"$ac_dest" : 'X\(/\)' \| \
13763          .     : '\(.\)' 2>/dev/null ||
13764 echo X"$ac_dest" |
13765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13767           /^X\(\/\/\)$/{ s//\1/; q; }
13768           /^X\(\/\).*/{ s//\1/; q; }
13769           s/.*/./; q'`
13770   { if $as_mkdir_p; then
13771     mkdir -p "$ac_dir"
13772   else
13773     as_dir="$ac_dir"
13774     as_dirs=
13775     while test ! -d "$as_dir"; do
13776       as_dirs="$as_dir $as_dirs"
13777       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779          X"$as_dir" : 'X\(//\)[^/]' \| \
13780          X"$as_dir" : 'X\(//\)$' \| \
13781          X"$as_dir" : 'X\(/\)' \| \
13782          .     : '\(.\)' 2>/dev/null ||
13783 echo X"$as_dir" |
13784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13786           /^X\(\/\/\)$/{ s//\1/; q; }
13787           /^X\(\/\).*/{ s//\1/; q; }
13788           s/.*/./; q'`
13789     done
13790     test ! -n "$as_dirs" || mkdir $as_dirs
13791   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13793    { (exit 1); exit 1; }; }; }
13794
13795   ac_builddir=.
13796
13797 if test "$ac_dir" != .; then
13798   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13799   # A "../" for each directory in $ac_dir_suffix.
13800   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13801 else
13802   ac_dir_suffix= ac_top_builddir=
13803 fi
13804
13805 case $srcdir in
13806   .)  # No --srcdir option.  We are building in place.
13807     ac_srcdir=.
13808     if test -z "$ac_top_builddir"; then
13809        ac_top_srcdir=.
13810     else
13811        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13812     fi ;;
13813   [\\/]* | ?:[\\/]* )  # Absolute path.
13814     ac_srcdir=$srcdir$ac_dir_suffix;
13815     ac_top_srcdir=$srcdir ;;
13816   *) # Relative path.
13817     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13818     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13819 esac
13820
13821 # Do not use `cd foo && pwd` to compute absolute paths, because
13822 # the directories may not exist.
13823 case `pwd` in
13824 .) ac_abs_builddir="$ac_dir";;
13825 *)
13826   case "$ac_dir" in
13827   .) ac_abs_builddir=`pwd`;;
13828   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13829   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13830   esac;;
13831 esac
13832 case $ac_abs_builddir in
13833 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13834 *)
13835   case ${ac_top_builddir}. in
13836   .) ac_abs_top_builddir=$ac_abs_builddir;;
13837   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13838   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13839   esac;;
13840 esac
13841 case $ac_abs_builddir in
13842 .) ac_abs_srcdir=$ac_srcdir;;
13843 *)
13844   case $ac_srcdir in
13845   .) ac_abs_srcdir=$ac_abs_builddir;;
13846   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13847   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13848   esac;;
13849 esac
13850 case $ac_abs_builddir in
13851 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13852 *)
13853   case $ac_top_srcdir in
13854   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13855   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13856   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13857   esac;;
13858 esac
13859
13860
13861   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13862 echo "$as_me: executing $ac_dest commands" >&6;}
13863   case $ac_dest in
13864     default )
13865 case ${CONFIG_HEADERS} in
13866   *auto-host.h:config.in*)
13867   echo > cstamp-h ;;
13868 esac
13869 # Make sure all the subdirs exist.
13870 for d in $subdirs
13871 do
13872     test -d $d || mkdir $d
13873 done
13874 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13875 # bootstrapping and the installation procedure can still use
13876 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13877 # FLAGS_TO_PASS has been modified to solve the problem there.
13878 # This is virtually a duplicate of what happens in configure.lang; we do
13879 # an extra check to make sure this only happens if ln -s can be used.
13880 if test "$symbolic_link" = "ln -s"; then
13881  for d in ${subdirs} ; do
13882         STARTDIR=`${PWDCMD-pwd}`
13883         cd $d
13884         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13885         do
13886                 rm -f $t
13887                 $symbolic_link ../$t $t 2>/dev/null
13888         done
13889         cd $STARTDIR
13890  done
13891 else true ; fi
13892  ;;
13893   esac
13894 done
13895 _ACEOF
13896
13897 cat >>$CONFIG_STATUS <<\_ACEOF
13898
13899 { (exit 0); exit 0; }
13900 _ACEOF
13901 chmod +x $CONFIG_STATUS
13902 ac_clean_files=$ac_clean_files_save
13903
13904
13905 # configure is writing to config.log, and then calls config.status.
13906 # config.status does its own redirection, appending to config.log.
13907 # Unfortunately, on DOS this fails, as config.log is still kept open
13908 # by configure, so config.status won't be able to write to it; its
13909 # output is simply discarded.  So we exec the FD to /dev/null,
13910 # effectively closing config.log, so it can be properly (re)opened and
13911 # appended to by config.status.  When coming back to configure, we
13912 # need to make the FD available again.
13913 if test "$no_create" != yes; then
13914   ac_cs_success=:
13915   ac_config_status_args=
13916   test "$silent" = yes &&
13917     ac_config_status_args="$ac_config_status_args --quiet"
13918   exec 5>/dev/null
13919   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13920   exec 5>>config.log
13921   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13922   # would make configure fail if this is the last instruction.
13923   $ac_cs_success || { (exit 1); exit 1; }
13924 fi
13925