OSDN Git Service

* configure.ac (gcc_cv_gld_version): Handle whitespace before
[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=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $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 \
10232             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
10233           in_tree_ld_is_elf=yes
10234         fi
10235         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
10236         do
10237                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
10238                 if test x$gcc_cv_gld_version != x; then
10239                         break
10240                 fi
10241         done
10242         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10243         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10244         rm -f collect-ld$host_exeext
10245         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10246                 2>/dev/null
10247 elif test -x "$LD_FOR_TARGET"; then
10248         gcc_cv_ld="$LD_FOR_TARGET"
10249 elif test -x "$LD" && test x$host = x$target; then
10250         gcc_cv_ld="$LD"
10251 fi
10252
10253 if test "x$gcc_cv_ld" = x; then
10254         # Search the same directories that the installed compiler will
10255         # search.  Else we may find the wrong linker and lose.  If we
10256         # do not find a suitable linker binary, then try the user's
10257         # path.
10258         #
10259         # Also note we have to check MD_EXEC_PREFIX before checking the
10260         # user's path.  Unfortunately, there is no good way to get at the
10261         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10262         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10263         # to be fixed as part of the make/configure rewrite too.
10264
10265         if test "x$exec_prefix" = xNONE; then
10266                 if test "x$prefix" = xNONE; then
10267                         test_prefix=/usr/local
10268                 else
10269                         test_prefix=$prefix
10270                 fi
10271         else
10272                 test_prefix=$exec_prefix
10273         fi
10274
10275         # If the loop below does not find an linker, then use whatever
10276         # one we can find in the users's path.
10277         # user's path.
10278         if test "x$program_prefix" != xNONE; then
10279                 gcc_cv_ld=${program_prefix}ld$host_exeext
10280         else
10281                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10282         fi
10283
10284         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10285                    $test_prefix/libexec/gcc/$target_noncanonical \
10286                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10287                    /usr/lib/gcc/$target_noncanonical \
10288                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10289                    $test_prefix/$target_noncanonical/bin"
10290
10291         if test x$host = x$target; then
10292             test_dirs="$test_dirs \
10293                    /usr/libexec \
10294                    /usr/ccs/gcc \
10295                    /usr/ccs/bin \
10296                    /udk/usr/ccs/bin \
10297                    /bsd43/usr/lib/cmplrs/cc \
10298                    /usr/cross64/usr/bin \
10299                    /usr/lib/cmplrs/cc \
10300                    /sysv/usr/lib/cmplrs/cc \
10301                    /svr4/usr/lib/cmplrs/cc \
10302                    /usr/bin"
10303         fi
10304
10305         for dir in $test_dirs; do
10306                 if test -x $dir/ld$host_exeext; then
10307                         gcc_cv_ld=$dir/ld$host_exeext
10308                         break;
10309                 fi
10310         done
10311 fi
10312 case $in_tree_ld in
10313   yes)
10314     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10315 echo "${ECHO_T}\"newly built ld\"" >&6
10316     ;;
10317   no)
10318     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10319 echo "${ECHO_T}$gcc_cv_ld" >&6
10320     ;;
10321 esac
10322
10323 # Figure out what nm we will be using.
10324 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10325 echo "$as_me:$LINENO: checking what nm to use" >&5
10326 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10327 in_tree_nm=no
10328 if test -x nm$host_exeext; then
10329         gcc_cv_nm=./nm$host_exeext
10330 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10331      && test -f ../binutils/Makefile; then
10332         # Single tree build which includes binutils.
10333         in_tree_nm=yes
10334         gcc_cv_nm=./nm$host_exeext
10335         rm -f nm$host_exeext
10336         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10337 elif test "x$program_prefix" != xNONE; then
10338         gcc_cv_nm=${program_prefix}nm$host_exeext
10339 else
10340         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10341 fi
10342 case $in_tree_nm in
10343   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10344 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10345   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10346 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10347 esac
10348
10349 # Figure out what objdump we will be using.
10350 echo "$as_me:$LINENO: checking what objdump to use" >&5
10351 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10352 in_tree_objdump=no
10353 if test -x objdump$host_exeext; then
10354         gcc_cv_objdump=./objdump$host_exeext
10355 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10356      && test -f ../binutils/Makefile; then
10357         # Single tree build which includes binutils.
10358         in_tree_objdump=yes
10359         gcc_cv_objdump=./objdump$host_exeext
10360         rm -f objdump$host_exeext
10361         $symbolic_link ../binutils/objdump$host_exeext \
10362                 objdump$host_exeext 2>/dev/null
10363 elif test "x$program_prefix" != xNONE; then
10364         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10365 else
10366         gcc_cv_objdump=`echo objdump | \
10367                 sed "${program_transform_name}"`$host_exeext
10368 fi
10369 case $in_tree_objdump in
10370   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10371 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10372   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10373 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10374 esac
10375
10376 # Figure out what assembler alignment features are present.
10377 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10378 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10379 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382   gcc_cv_as_balign_and_p2align=no
10383     if test $in_tree_gas = yes; then
10384     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10385   then gcc_cv_as_balign_and_p2align=yes
10386 fi
10387   elif test x$gcc_cv_as != x; then
10388     echo '.balign 4
10389 .p2align 2' > conftest.s
10390     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392   (eval $ac_try) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; }
10396     then
10397         gcc_cv_as_balign_and_p2align=yes
10398     else
10399       echo "configure: failed program was" >&5
10400       cat conftest.s >&5
10401     fi
10402     rm -f conftest.o conftest.s
10403   fi
10404 fi
10405 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10406 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10407 if test $gcc_cv_as_balign_and_p2align = yes; then
10408
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10411 _ACEOF
10412
10413 fi
10414
10415 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10416 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10417 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   gcc_cv_as_max_skip_p2align=no
10421     if test $in_tree_gas = yes; then
10422     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10423   then gcc_cv_as_max_skip_p2align=yes
10424 fi
10425   elif test x$gcc_cv_as != x; then
10426     echo '.p2align 4,,7' > conftest.s
10427     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }
10433     then
10434         gcc_cv_as_max_skip_p2align=yes
10435     else
10436       echo "configure: failed program was" >&5
10437       cat conftest.s >&5
10438     fi
10439     rm -f conftest.o conftest.s
10440   fi
10441 fi
10442 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10443 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10444 if test $gcc_cv_as_max_skip_p2align = yes; then
10445
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10448 _ACEOF
10449
10450 fi
10451
10452 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10453 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10454 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   gcc_cv_as_subsection_m1=no
10458     if test $in_tree_gas = yes; then
10459     if test $in_tree_gas_is_elf = yes \
10460   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10461   then gcc_cv_as_subsection_m1=yes
10462 fi
10463   elif test x$gcc_cv_as != x; then
10464     echo 'conftest_label1: .word 0
10465 .subsection -1
10466 conftest_label2: .word 0
10467 .previous' > conftest.s
10468     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470   (eval $ac_try) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; }
10474     then
10475         if test x$gcc_cv_nm != x; then
10476     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10477     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10478     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10479     then :
10480     else gcc_cv_as_subsection_m1=yes
10481     fi
10482     rm -f conftest.nm1 conftest.nm2
10483   fi
10484     else
10485       echo "configure: failed program was" >&5
10486       cat conftest.s >&5
10487     fi
10488     rm -f conftest.o conftest.s
10489   fi
10490 fi
10491 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10492 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10493 if test $gcc_cv_as_subsection_m1 = yes; then
10494
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_GAS_SUBSECTION_ORDERING 1
10497 _ACEOF
10498
10499 fi
10500
10501 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10502 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10503 if test "${gcc_cv_as_weak+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   gcc_cv_as_weak=no
10507     if test $in_tree_gas = yes; then
10508     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10509   then gcc_cv_as_weak=yes
10510 fi
10511   elif test x$gcc_cv_as != x; then
10512     echo '      .weak foobar' > conftest.s
10513     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515   (eval $ac_try) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; }
10519     then
10520         gcc_cv_as_weak=yes
10521     else
10522       echo "configure: failed program was" >&5
10523       cat conftest.s >&5
10524     fi
10525     rm -f conftest.o conftest.s
10526   fi
10527 fi
10528 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10529 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10530 if test $gcc_cv_as_weak = yes; then
10531
10532 cat >>confdefs.h <<\_ACEOF
10533 #define HAVE_GAS_WEAK 1
10534 _ACEOF
10535
10536 fi
10537
10538 # .hidden needs to be supported in both the assembler and the linker,
10539 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10540 # This is irritatingly difficult to feature test for; we have to check the
10541 # date string after the version number.  If we've got an in-tree
10542 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10543 # to be safe.
10544 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10545 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10546 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10547 if test "${gcc_cv_as_hidden+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   gcc_cv_as_hidden=no
10551     if test $in_tree_gas = yes; then
10552     if test $in_tree_gas_is_elf = yes \
10553   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10554   then gcc_cv_as_hidden=yes
10555 fi
10556   elif test x$gcc_cv_as != x; then
10557     echo '      .hidden foobar
10558 foobar:' > conftest.s
10559     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }
10565     then
10566         gcc_cv_as_hidden=yes
10567     else
10568       echo "configure: failed program was" >&5
10569       cat conftest.s >&5
10570     fi
10571     rm -f conftest.o conftest.s
10572   fi
10573 fi
10574 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10575 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10576
10577
10578 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10579 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10580 if test "${gcc_cv_ld_hidden+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   if test $in_tree_ld = yes ; then
10584   gcc_cv_ld_hidden=no
10585   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 \
10586      && test $in_tree_ld_is_elf = yes; then
10587      gcc_cv_ld_hidden=yes
10588   fi
10589 else
10590   gcc_cv_ld_hidden=yes
10591   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10592   if echo "$ld_ver" | grep GNU > /dev/null; then
10593     ld_vers=`echo $ld_ver | sed -n \
10594         -e 's,^.*[       ]\([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]*\)$,\1,p' \
10596         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10597         -e 's,^.*[       ]\([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]*\)[     ].*$,\1,p' \
10599         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10600     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'`
10601     if test 0"$ld_date" -lt 20020404; then
10602       if test -n "$ld_date"; then
10603         # If there was date string, but was earlier than 2002-04-04, fail
10604         gcc_cv_ld_hidden=no
10605       elif test -z "$ld_vers"; then
10606         # If there was no date string nor ld version number, something is wrong
10607         gcc_cv_ld_hidden=no
10608       else
10609         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10610         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10611         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10612         test -z "$ld_vers_patch" && ld_vers_patch=0
10613         if test "$ld_vers_major" -lt 2; then
10614           gcc_cv_ld_hidden=no
10615         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10616           gcc_cv_ld_hidden="no"
10617         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10618           gcc_cv_ld_hidden=no
10619         fi
10620       fi
10621     fi
10622   else
10623     case "${target}" in
10624       hppa64*-*-hpux* | ia64*-*-hpux*)
10625         gcc_cv_ld_hidden=yes
10626         ;;
10627       *)
10628         gcc_cv_ld_hidden=no
10629         ;;
10630     esac
10631   fi
10632 fi
10633 fi
10634 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10635 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10636 libgcc_visibility=no
10637
10638 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10639   libgcc_visibility=yes
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_GAS_HIDDEN 1
10643 _ACEOF
10644
10645 fi
10646
10647 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10648 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10649 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10650 if test "${gcc_cv_as_leb128+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   gcc_cv_as_leb128=no
10654     if test $in_tree_gas = yes; then
10655     if test $in_tree_gas_is_elf = yes \
10656   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10657   then gcc_cv_as_leb128=yes
10658 fi
10659   elif test x$gcc_cv_as != x; then
10660     echo '      .data
10661         .uleb128 L2 - L1
10662 L1:
10663         .uleb128 1280
10664         .sleb128 -1010
10665 L2:' > conftest.s
10666     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }
10672     then
10673         # GAS versions before 2.11 do not support uleb128,
10674   # despite appearing to.
10675   # ??? There exists an elf-specific test that will crash
10676   # the assembler.  Perhaps it's better to figure out whether
10677   # arbitrary sections are supported and try the test.
10678   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10679   if echo "$as_ver" | grep GNU > /dev/null; then
10680     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10681     as_major=`echo $as_ver | sed 's/\..*//'`
10682     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10683     if test $as_major -eq 2 && test $as_minor -lt 11
10684     then :
10685     else gcc_cv_as_leb128=yes
10686     fi
10687   fi
10688     else
10689       echo "configure: failed program was" >&5
10690       cat conftest.s >&5
10691     fi
10692     rm -f conftest.o conftest.s
10693   fi
10694 fi
10695 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10696 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10697 if test $gcc_cv_as_leb128 = yes; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_AS_LEB128 1
10701 _ACEOF
10702
10703 fi
10704
10705 # GAS versions up to and including 2.11.0 may mis-optimize
10706 # .eh_frame data.
10707 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10708 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10709 if test "${gcc_cv_as_eh_frame+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   gcc_cv_as_eh_frame=no
10713     if test $in_tree_gas = yes; then
10714     if test $in_tree_gas_is_elf = yes \
10715   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10716   then gcc_cv_as_eh_frame=yes
10717 fi
10718   elif test x$gcc_cv_as != x; then
10719     echo '      .text
10720 .LFB1:
10721         .4byte  0
10722 .L1:
10723         .4byte  0
10724 .LFE1:
10725         .section        .eh_frame,"aw",@progbits
10726 __FRAME_BEGIN__:
10727         .4byte  .LECIE1-.LSCIE1
10728 .LSCIE1:
10729         .4byte  0x0
10730         .byte   0x1
10731         .ascii "z\0"
10732         .byte   0x1
10733         .byte   0x78
10734         .byte   0x1a
10735         .byte   0x0
10736         .byte   0x4
10737         .4byte  1
10738         .p2align 1
10739 .LECIE1:
10740 .LSFDE1:
10741         .4byte  .LEFDE1-.LASFDE1
10742 .LASFDE1:
10743         .4byte  .LASFDE1-__FRAME_BEGIN__
10744         .4byte  .LFB1
10745         .4byte  .LFE1-.LFB1
10746         .byte   0x4
10747         .4byte  .LFE1-.LFB1
10748         .byte   0x4
10749         .4byte  .L1-.LFB1
10750 .LEFDE1:' > conftest.s
10751     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }
10757     then
10758           cat > conftest.lit <<EOF
10759  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10760  0010 01000000 12000000 18000000 00000000  ................
10761  0020 08000000 04080000 0044               .........D      
10762 EOF
10763 cat > conftest.big <<EOF
10764  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10765  0010 00000001 00000012 00000018 00000000  ................
10766  0020 00000008 04000000 0844               .........D      
10767 EOF
10768   # If the assembler didn't choke, and we can objdump,
10769   # and we got the correct data, then succeed.
10770   if test x$gcc_cv_objdump != x \
10771   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10772      | tail -3 > conftest.got \
10773   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10774     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10775   then
10776     gcc_cv_as_eh_frame=yes
10777   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; }; then
10783     gcc_cv_as_eh_frame=buggy
10784   else
10785     # Uh oh, what do we do now?
10786     gcc_cv_as_eh_frame=no
10787   fi
10788     else
10789       echo "configure: failed program was" >&5
10790       cat conftest.s >&5
10791     fi
10792     rm -f conftest.o conftest.s
10793   fi
10794 fi
10795 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10796 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10797
10798
10799 if test $gcc_cv_as_eh_frame = buggy; then
10800
10801 cat >>confdefs.h <<\_ACEOF
10802 #define USE_AS_TRADITIONAL_FORMAT 1
10803 _ACEOF
10804
10805 fi
10806
10807 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10808 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10809 if test "${gcc_cv_as_shf_merge+set}" = set; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812   gcc_cv_as_shf_merge=no
10813     if test $in_tree_gas = yes; then
10814     if test $in_tree_gas_is_elf = yes \
10815   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10816   then gcc_cv_as_shf_merge=yes
10817 fi
10818   elif test x$gcc_cv_as != x; then
10819     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10820     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }
10826     then
10827         gcc_cv_as_shf_merge=yes
10828     else
10829       echo "configure: failed program was" >&5
10830       cat conftest.s >&5
10831     fi
10832     rm -f conftest.o conftest.s
10833   fi
10834 fi
10835 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10836 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10837
10838 if test $gcc_cv_as_shf_merge = no; then
10839   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10840 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10841 if test "${gcc_cv_as_shf_merge+set}" = set; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   gcc_cv_as_shf_merge=no
10845     if test $in_tree_gas = yes; then
10846     if test $in_tree_gas_is_elf = yes \
10847   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10848   then gcc_cv_as_shf_merge=yes
10849 fi
10850   elif test x$gcc_cv_as != x; then
10851     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
10852     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854   (eval $ac_try) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; }
10858     then
10859         gcc_cv_as_shf_merge=yes
10860     else
10861       echo "configure: failed program was" >&5
10862       cat conftest.s >&5
10863     fi
10864     rm -f conftest.o conftest.s
10865   fi
10866 fi
10867 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10868 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10869
10870 fi
10871
10872 cat >>confdefs.h <<_ACEOF
10873 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10874 _ACEOF
10875
10876
10877 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
10878 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
10879 if test "${gcc_cv_as_comdat_group+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   gcc_cv_as_comdat_group=no
10883     if test $in_tree_gas = yes; then
10884     if test $in_tree_gas_is_elf = yes \
10885   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10886   then gcc_cv_as_comdat_group=yes
10887 fi
10888   elif test x$gcc_cv_as != x; then
10889     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
10890     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }
10896     then
10897         gcc_cv_as_comdat_group=yes
10898     else
10899       echo "configure: failed program was" >&5
10900       cat conftest.s >&5
10901     fi
10902     rm -f conftest.o conftest.s
10903   fi
10904 fi
10905 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
10906 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
10907
10908 if test $gcc_cv_as_comdat_group = yes; then
10909   gcc_cv_as_comdat_group_percent=no
10910 else
10911  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
10912 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
10913 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   gcc_cv_as_comdat_group_percent=no
10917     if test $in_tree_gas = yes; then
10918     if test $in_tree_gas_is_elf = yes \
10919   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10920   then gcc_cv_as_comdat_group_percent=yes
10921 fi
10922   elif test x$gcc_cv_as != x; then
10923     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
10924     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926   (eval $ac_try) 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; }
10930     then
10931         gcc_cv_as_comdat_group_percent=yes
10932     else
10933       echo "configure: failed program was" >&5
10934       cat conftest.s >&5
10935     fi
10936     rm -f conftest.o conftest.s
10937   fi
10938 fi
10939 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
10940 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
10941
10942 fi
10943
10944 cat >>confdefs.h <<_ACEOF
10945 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
10946 _ACEOF
10947
10948
10949 # Thread-local storage - the check is heavily parametrized.
10950 conftest_s=
10951 tls_first_major=
10952 tls_first_minor=
10953 tls_as_opt=
10954 case "$target" in
10955   alpha*-*-*)
10956     conftest_s='
10957         .section ".tdata","awT",@progbits
10958 foo:    .long   25
10959         .text
10960         ldq     $27,__tls_get_addr($29)         !literal!1
10961         lda     $16,foo($29)                    !tlsgd!1
10962         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10963         ldq     $27,__tls_get_addr($29)         !literal!2
10964         lda     $16,foo($29)                    !tlsldm!2
10965         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10966         ldq     $1,foo($29)                     !gotdtprel
10967         ldah    $2,foo($29)                     !dtprelhi
10968         lda     $3,foo($2)                      !dtprello
10969         lda     $4,foo($29)                     !dtprel
10970         ldq     $1,foo($29)                     !gottprel
10971         ldah    $2,foo($29)                     !tprelhi
10972         lda     $3,foo($2)                      !tprello
10973         lda     $4,foo($29)                     !tprel'
10974         tls_first_major=2
10975         tls_first_minor=13
10976         tls_as_opt=--fatal-warnings
10977         ;;
10978   i[34567]86-*-*)
10979     conftest_s='
10980         .section ".tdata","awT",@progbits
10981 foo:    .long   25
10982         .text
10983         movl    %gs:0, %eax
10984         leal    foo@TLSGD(,%ebx,1), %eax
10985         leal    foo@TLSLDM(%ebx), %eax
10986         leal    foo@DTPOFF(%eax), %edx
10987         movl    foo@GOTTPOFF(%ebx), %eax
10988         subl    foo@GOTTPOFF(%ebx), %eax
10989         addl    foo@GOTNTPOFF(%ebx), %eax
10990         movl    foo@INDNTPOFF, %eax
10991         movl    $foo@TPOFF, %eax
10992         subl    $foo@TPOFF, %eax
10993         leal    foo@NTPOFF(%ecx), %eax'
10994         tls_first_major=2
10995         tls_first_minor=14
10996         tls_as_opt=--fatal-warnings
10997         ;;
10998   x86_64-*-*)
10999     conftest_s='
11000         .section ".tdata","awT",@progbits
11001 foo:    .long   25
11002         .text
11003         movq    %fs:0, %rax
11004         leaq    foo@TLSGD(%rip), %rdi
11005         leaq    foo@TLSLD(%rip), %rdi
11006         leaq    foo@DTPOFF(%rax), %rdx
11007         movq    foo@GOTTPOFF(%rip), %rax
11008         movq    $foo@TPOFF, %rax'
11009         tls_first_major=2
11010         tls_first_minor=14
11011         tls_as_opt=--fatal-warnings
11012         ;;
11013   ia64-*-*)
11014     conftest_s='
11015         .section ".tdata","awT",@progbits
11016 foo:    data8   25
11017         .text
11018         addl    r16 = @ltoff(@dtpmod(foo#)), gp
11019         addl    r17 = @ltoff(@dtprel(foo#)), gp
11020         addl    r18 = @ltoff(@tprel(foo#)), gp
11021         addl    r19 = @dtprel(foo#), gp
11022         adds    r21 = @dtprel(foo#), r13
11023         movl    r23 = @dtprel(foo#)
11024         addl    r20 = @tprel(foo#), gp
11025         adds    r22 = @tprel(foo#), r13
11026         movl    r24 = @tprel(foo#)'
11027         tls_first_major=2
11028         tls_first_minor=13
11029         tls_as_opt=--fatal-warnings
11030         ;;
11031   powerpc-*-*)
11032     conftest_s='
11033         .section ".tdata","awT",@progbits
11034         .align 2
11035 ld0:    .space 4
11036 ld1:    .space 4
11037 x1:     .space 4
11038 x2:     .space 4
11039 x3:     .space 4
11040         .text
11041         addi 3,31,ld0@got@tlsgd
11042         bl __tls_get_addr
11043         addi 3,31,x1@got@tlsld
11044         bl __tls_get_addr
11045         addi 9,3,x1@dtprel
11046         addis 9,3,x2@dtprel@ha
11047         addi 9,9,x2@dtprel@l
11048         lwz 9,x3@got@tprel(31)
11049         add 9,9,x@tls
11050         addi 9,2,x1@tprel
11051         addis 9,2,x2@tprel@ha
11052         addi 9,9,x2@tprel@l'
11053         tls_first_major=2
11054         tls_first_minor=14
11055         tls_as_opt="-a32 --fatal-warnings"
11056         ;;
11057   powerpc64-*-*)
11058     conftest_s='
11059         .section ".tdata","awT",@progbits
11060         .align 3
11061 ld0:    .space 8
11062 ld1:    .space 8
11063 x1:     .space 8
11064 x2:     .space 8
11065 x3:     .space 8
11066         .text
11067         addi 3,2,ld0@got@tlsgd
11068         bl .__tls_get_addr
11069         nop
11070         addi 3,2,ld1@toc
11071         bl .__tls_get_addr
11072         nop
11073         addi 3,2,x1@got@tlsld
11074         bl .__tls_get_addr
11075         nop
11076         addi 9,3,x1@dtprel
11077         bl .__tls_get_addr
11078         nop
11079         addis 9,3,x2@dtprel@ha
11080         addi 9,9,x2@dtprel@l
11081         bl .__tls_get_addr
11082         nop
11083         ld 9,x3@got@dtprel(2)
11084         add 9,9,3
11085         bl .__tls_get_addr
11086         nop'
11087         tls_first_major=2
11088         tls_first_minor=14
11089         tls_as_opt="-a64 --fatal-warnings"
11090         ;;
11091   s390-*-*)
11092     conftest_s='
11093         .section ".tdata","awT",@progbits
11094 foo:    .long   25
11095         .text
11096         .long   foo@TLSGD
11097         .long   foo@TLSLDM
11098         .long   foo@DTPOFF
11099         .long   foo@NTPOFF
11100         .long   foo@GOTNTPOFF
11101         .long   foo@INDNTPOFF
11102         l       %r1,foo@GOTNTPOFF(%r12)
11103         l       %r1,0(%r1):tls_load:foo
11104         bas     %r14,0(%r1,%r13):tls_gdcall:foo
11105         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
11106         tls_first_major=2
11107         tls_first_minor=14
11108         tls_as_opt="-m31 --fatal-warnings"
11109         ;;
11110   s390x-*-*)
11111     conftest_s='
11112         .section ".tdata","awT",@progbits
11113 foo:    .long   25
11114         .text
11115         .quad   foo@TLSGD
11116         .quad   foo@TLSLDM
11117         .quad   foo@DTPOFF
11118         .quad   foo@NTPOFF
11119         .quad   foo@GOTNTPOFF
11120         lg      %r1,foo@GOTNTPOFF(%r12)
11121         larl    %r1,foo@INDNTPOFF
11122         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
11123         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11124         tls_first_major=2
11125         tls_first_minor=14
11126         tls_as_opt="-m64 -Aesame --fatal-warnings"
11127         ;;
11128   sh-*-* | sh[34]-*-*)
11129     conftest_s='
11130         .section ".tdata","awT",@progbits
11131 foo:    .long   25
11132         .text
11133         .long   foo@TLSGD
11134         .long   foo@TLSLDM
11135         .long   foo@DTPOFF
11136         .long   foo@GOTTPOFF
11137         .long   foo@TPOFF'
11138         tls_first_major=2
11139         tls_first_minor=13
11140         tls_as_opt=--fatal-warnings
11141         ;;
11142   sparc*-*-*)
11143     case "$target" in
11144       sparc*-sun-solaris2.*)
11145         on_solaris=yes
11146         ;;
11147       *)
11148         on_solaris=no
11149         ;;
11150     esac
11151     if test x$on_solaris = xyes && test x$gas_flag = xno; then
11152       conftest_s='
11153         .section ".tdata",#alloc,#write,#tls
11154 foo:    .long   25
11155         .text
11156         sethi   %tgd_hi22(foo), %o0
11157         add     %o0, %tgd_lo10(foo), %o1
11158         add     %l7, %o1, %o0, %tgd_add(foo)
11159         call    __tls_get_addr, %tgd_call(foo)
11160         sethi   %tldm_hi22(foo), %l1
11161         add     %l1, %tldm_lo10(foo), %l2
11162         add     %l7, %l2, %o0, %tldm_add(foo)
11163         call    __tls_get_addr, %tldm_call(foo)
11164         sethi   %tldo_hix22(foo), %l3
11165         xor     %l3, %tldo_lox10(foo), %l4
11166         add     %o0, %l4, %l5, %tldo_add(foo)
11167         sethi   %tie_hi22(foo), %o3
11168         add     %o3, %tie_lo10(foo), %o3
11169         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11170         add     %g7, %o2, %o4, %tie_add(foo)
11171         sethi   %tle_hix22(foo), %l1
11172         xor     %l1, %tle_lox10(foo), %o5
11173         ld      [%g7 + %o5], %o1'
11174         tls_first_major=0
11175         tls_first_minor=0
11176     else
11177       conftest_s='
11178         .section ".tdata","awT",@progbits
11179 foo:    .long   25
11180         .text
11181         sethi   %tgd_hi22(foo), %o0
11182         add     %o0, %tgd_lo10(foo), %o1
11183         add     %l7, %o1, %o0, %tgd_add(foo)
11184         call    __tls_get_addr, %tgd_call(foo)
11185         sethi   %tldm_hi22(foo), %l1
11186         add     %l1, %tldm_lo10(foo), %l2
11187         add     %l7, %l2, %o0, %tldm_add(foo)
11188         call    __tls_get_addr, %tldm_call(foo)
11189         sethi   %tldo_hix22(foo), %l3
11190         xor     %l3, %tldo_lox10(foo), %l4
11191         add     %o0, %l4, %l5, %tldo_add(foo)
11192         sethi   %tie_hi22(foo), %o3
11193         add     %o3, %tie_lo10(foo), %o3
11194         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11195         add     %g7, %o2, %o4, %tie_add(foo)
11196         sethi   %tle_hix22(foo), %l1
11197         xor     %l1, %tle_lox10(foo), %o5
11198         ld      [%g7 + %o5], %o1'
11199         tls_first_major=2
11200         tls_first_minor=14
11201         tls_as_opt="-32 --fatal-warnings"
11202       fi
11203         ;;
11204 esac
11205 if test -z "$tls_first_major"; then
11206   : # If we don't have a check, assume no support.
11207 else
11208   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11209 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11210 if test "${gcc_cv_as_tls+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   gcc_cv_as_tls=no
11214     if test $in_tree_gas = yes; then
11215     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11216   then gcc_cv_as_tls=yes
11217 fi
11218   elif test x$gcc_cv_as != x; then
11219     echo "$conftest_s" > conftest.s
11220     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }
11226     then
11227         gcc_cv_as_tls=yes
11228     else
11229       echo "configure: failed program was" >&5
11230       cat conftest.s >&5
11231     fi
11232     rm -f conftest.o conftest.s
11233   fi
11234 fi
11235 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11236 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11237 if test $gcc_cv_as_tls = yes; then
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_AS_TLS 1
11241 _ACEOF
11242
11243 fi
11244 fi
11245
11246 # Target-specific assembler checks.
11247
11248 if test x"$demangler_in_ld" = xyes; then
11249   echo "$as_me:$LINENO: checking linker --demangle support" >&5
11250 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11251   gcc_cv_ld_demangle=no
11252   if test $in_tree_ld = yes; then
11253     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 \
11254       gcc_cv_ld_demangle=yes
11255     fi
11256   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11257     # Check if the GNU linker supports --demangle option
11258     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11259       gcc_cv_ld_demangle=yes
11260     fi
11261   fi
11262   if test x"$gcc_cv_ld_demangle" = xyes; then
11263
11264 cat >>confdefs.h <<\_ACEOF
11265 #define HAVE_LD_DEMANGLE 1
11266 _ACEOF
11267
11268   fi
11269   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11270 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11271 fi
11272
11273 case "$target" in
11274   # All TARGET_ABI_OSF targets.
11275   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11276     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11277 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11278 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   gcc_cv_as_alpha_explicit_relocs=no
11282     if test $in_tree_gas = yes; then
11283     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11284   then gcc_cv_as_alpha_explicit_relocs=yes
11285 fi
11286   elif test x$gcc_cv_as != x; then
11287     echo '      .set nomacro
11288         .text
11289         extbl   $3, $2, $3      !lituse_bytoff!1
11290         ldq     $2, a($29)      !literal!1
11291         ldq     $4, b($29)      !literal!2
11292         ldq_u   $3, 0($2)       !lituse_base!1
11293         ldq     $27, f($29)     !literal!5
11294         jsr     $26, ($27), f   !lituse_jsr!5
11295         ldah    $29, 0($26)     !gpdisp!3
11296         lda     $0, c($29)      !gprel
11297         ldah    $1, d($29)      !gprelhigh
11298         lda     $1, d($1)       !gprellow
11299         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11300     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302   (eval $ac_try) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; }
11306     then
11307         gcc_cv_as_alpha_explicit_relocs=yes
11308     else
11309       echo "configure: failed program was" >&5
11310       cat conftest.s >&5
11311     fi
11312     rm -f conftest.o conftest.s
11313   fi
11314 fi
11315 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11316 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11317 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11318
11319 cat >>confdefs.h <<\_ACEOF
11320 #define HAVE_AS_EXPLICIT_RELOCS 1
11321 _ACEOF
11322
11323 fi
11324     ;;
11325
11326   cris-*-*)
11327     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11328 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11329 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332   gcc_cv_as_cris_no_mul_bug=no
11333     if test $in_tree_gas = yes; then
11334     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11335   then gcc_cv_as_cris_no_mul_bug=yes
11336 fi
11337   elif test x$gcc_cv_as != x; then
11338     echo '.text' > conftest.s
11339     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }
11345     then
11346         gcc_cv_as_cris_no_mul_bug=yes
11347     else
11348       echo "configure: failed program was" >&5
11349       cat conftest.s >&5
11350     fi
11351     rm -f conftest.o conftest.s
11352   fi
11353 fi
11354 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11355 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11356 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11357
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11360 _ACEOF
11361
11362 fi
11363     ;;
11364
11365   sparc*-*-*)
11366     echo "$as_me:$LINENO: checking assembler for .register" >&5
11367 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11368 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   gcc_cv_as_sparc_register_op=no
11372   if test x$gcc_cv_as != x; then
11373     echo '.register %g2, #scratch' > conftest.s
11374     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }
11380     then
11381         gcc_cv_as_sparc_register_op=yes
11382     else
11383       echo "configure: failed program was" >&5
11384       cat conftest.s >&5
11385     fi
11386     rm -f conftest.o conftest.s
11387   fi
11388 fi
11389 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11390 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11391 if test $gcc_cv_as_sparc_register_op = yes; then
11392
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11395 _ACEOF
11396
11397 fi
11398
11399     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11400 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11401 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   gcc_cv_as_sparc_relax=no
11405   if test x$gcc_cv_as != x; then
11406     echo '.text' > conftest.s
11407     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }
11413     then
11414         gcc_cv_as_sparc_relax=yes
11415     else
11416       echo "configure: failed program was" >&5
11417       cat conftest.s >&5
11418     fi
11419     rm -f conftest.o conftest.s
11420   fi
11421 fi
11422 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11423 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11424 if test $gcc_cv_as_sparc_relax = yes; then
11425
11426 cat >>confdefs.h <<\_ACEOF
11427 #define HAVE_AS_RELAX_OPTION 1
11428 _ACEOF
11429
11430 fi
11431
11432     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11433 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11434 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   gcc_cv_as_sparc_ua_pcrel=no
11438   if test x$gcc_cv_as != x; then
11439     echo '.text
11440 foo:
11441         nop
11442 .data
11443 .align 4
11444 .byte 0
11445 .uaword %r_disp32(foo)' > conftest.s
11446     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; }
11452     then
11453         if test x$gcc_cv_ld != x \
11454        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11455          gcc_cv_as_sparc_ua_pcrel=yes
11456        fi
11457        rm -f conftest
11458     else
11459       echo "configure: failed program was" >&5
11460       cat conftest.s >&5
11461     fi
11462     rm -f conftest.o conftest.s
11463   fi
11464 fi
11465 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11466 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11467 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11468
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_AS_SPARC_UA_PCREL 1
11471 _ACEOF
11472
11473
11474       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11475 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11476 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   gcc_cv_as_sparc_ua_pcrel_hidden=no
11480   if test x$gcc_cv_as != x; then
11481     echo '.data
11482 .align 4
11483 .byte 0x31
11484 .uaword %r_disp32(foo)
11485 .byte 0x32, 0x33, 0x34
11486 .global foo
11487 .hidden foo
11488 foo:
11489 .skip 4' > conftest.s
11490     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492   (eval $ac_try) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }
11496     then
11497         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11498          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11499          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11500             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11501             if $gcc_cv_objdump -R conftest 2> /dev/null \
11502                | grep 'DISP32' > /dev/null 2>&1; then
11503                 :
11504             else
11505                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11506             fi
11507          fi
11508          rm -f conftest
11509     else
11510       echo "configure: failed program was" >&5
11511       cat conftest.s >&5
11512     fi
11513     rm -f conftest.o conftest.s
11514   fi
11515 fi
11516 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11517 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11518 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11519
11520 cat >>confdefs.h <<\_ACEOF
11521 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11522 _ACEOF
11523
11524 fi
11525
11526 fi # unaligned pcrel relocs
11527
11528     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11529 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11530 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   gcc_cv_as_sparc_offsetable_lo10=no
11534   if test x$gcc_cv_as != x; then
11535     echo '.text
11536         or %g1, %lo(ab) + 12, %g1
11537         or %g1, %lo(ab + 12), %g1' > conftest.s
11538     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }
11544     then
11545         if test x$gcc_cv_objdump != x \
11546        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11547           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11548          gcc_cv_as_offsetable_lo10=yes
11549        fi
11550     else
11551       echo "configure: failed program was" >&5
11552       cat conftest.s >&5
11553     fi
11554     rm -f conftest.o conftest.s
11555   fi
11556 fi
11557 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11558 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11559 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11560
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_AS_OFFSETABLE_LO10 1
11563 _ACEOF
11564
11565 fi
11566     ;;
11567
11568   i[34567]86-*-* | x86_64-*-*)
11569     case $target_os in
11570       cygwin* | pe | mingw32*)
11571         # Used for DWARF 2 in PE
11572         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11573 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11574 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   gcc_cv_as_ix86_pe_secrel32=no
11578     if test $in_tree_gas = yes; then
11579     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11580   then gcc_cv_as_ix86_pe_secrel32=yes
11581 fi
11582   elif test x$gcc_cv_as != x; then
11583     echo '.text
11584 foo:    nop
11585 .data
11586         .secrel32 foo' > conftest.s
11587     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; }
11593     then
11594         if test x$gcc_cv_ld != x \
11595            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11596              gcc_cv_as_ix86_pe_secrel32=yes
11597            fi
11598            rm -f conftest
11599     else
11600       echo "configure: failed program was" >&5
11601       cat conftest.s >&5
11602     fi
11603     rm -f conftest.o conftest.s
11604   fi
11605 fi
11606 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11607 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11608 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11609
11610 cat >>confdefs.h <<\_ACEOF
11611 #define HAVE_GAS_PE_SECREL32_RELOC 1
11612 _ACEOF
11613
11614 fi
11615         ;;
11616     esac
11617
11618     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11619 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11620 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   gcc_cv_as_ix86_filds_fists=no
11624     if test $in_tree_gas = yes; then
11625     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11626   then gcc_cv_as_ix86_filds_fists=yes
11627 fi
11628   elif test x$gcc_cv_as != x; then
11629     echo 'filds mem; fists mem' > conftest.s
11630     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; }
11636     then
11637         gcc_cv_as_ix86_filds_fists=yes
11638     else
11639       echo "configure: failed program was" >&5
11640       cat conftest.s >&5
11641     fi
11642     rm -f conftest.o conftest.s
11643   fi
11644 fi
11645 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11646 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11647 if test $gcc_cv_as_ix86_filds_fists = yes; then
11648
11649 cat >>confdefs.h <<\_ACEOF
11650 #define HAVE_GAS_FILDS_FISTS 1
11651 _ACEOF
11652
11653 fi
11654
11655     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11656 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11657 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660   gcc_cv_as_ix86_cmov_sun_syntax=no
11661   if test x$gcc_cv_as != x; then
11662     echo 'cmovl.l %edx, %eax' > conftest.s
11663     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665   (eval $ac_try) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; }
11669     then
11670         gcc_cv_as_ix86_cmov_sun_syntax=yes
11671     else
11672       echo "configure: failed program was" >&5
11673       cat conftest.s >&5
11674     fi
11675     rm -f conftest.o conftest.s
11676   fi
11677 fi
11678 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11679 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11680 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11681
11682 cat >>confdefs.h <<\_ACEOF
11683 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11684 _ACEOF
11685
11686 fi
11687
11688     # This one is used unconditionally by i386.[ch]; it is to be defined
11689     # to 1 if the feature is present, 0 otherwise.
11690     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11691 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11692 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   gcc_cv_as_ix86_gotoff_in_data=no
11696     if test $in_tree_gas = yes; then
11697     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11698   then gcc_cv_as_ix86_gotoff_in_data=yes
11699 fi
11700   elif test x$gcc_cv_as != x; then
11701     echo '      .text
11702 .L0:
11703         nop
11704         .data
11705         .long .L0@GOTOFF' > conftest.s
11706     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708   (eval $ac_try) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); }; }
11712     then
11713         gcc_cv_as_ix86_gotoff_in_data=yes
11714     else
11715       echo "configure: failed program was" >&5
11716       cat conftest.s >&5
11717     fi
11718     rm -f conftest.o conftest.s
11719   fi
11720 fi
11721 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11722 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11723
11724
11725 cat >>confdefs.h <<_ACEOF
11726 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11727 _ACEOF
11728
11729     ;;
11730
11731   ia64*-*-*)
11732     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11733 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11734 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11738     if test $in_tree_gas = yes; then
11739     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11740   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11741 fi
11742   elif test x$gcc_cv_as != x; then
11743     echo '      .text
11744         addl r15 = @ltoffx(x#), gp
11745         ;;
11746         ld8.mov r16 = [r15], x#' > conftest.s
11747     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }
11753     then
11754         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11755     else
11756       echo "configure: failed program was" >&5
11757       cat conftest.s >&5
11758     fi
11759     rm -f conftest.o conftest.s
11760   fi
11761 fi
11762 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11763 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11764 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11765
11766 cat >>confdefs.h <<\_ACEOF
11767 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11768 _ACEOF
11769
11770 fi
11771
11772     ;;
11773
11774   powerpc*-*-*)
11775     case $target in
11776       *-*-aix*) conftest_s='    .csect .text[PR]
11777         mfcr 3,128';;
11778       *-*-darwin*) conftest_s=' .text
11779         mfcr r3,128';;
11780       *)       conftest_s='     .text
11781         mfcr 3,128';;
11782     esac
11783
11784     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11785 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11786 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   gcc_cv_as_powerpc_mfcrf=no
11790     if test $in_tree_gas = yes; then
11791     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11792   then gcc_cv_as_powerpc_mfcrf=yes
11793 fi
11794   elif test x$gcc_cv_as != x; then
11795     echo "$conftest_s" > conftest.s
11796     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }
11802     then
11803         gcc_cv_as_powerpc_mfcrf=yes
11804     else
11805       echo "configure: failed program was" >&5
11806       cat conftest.s >&5
11807     fi
11808     rm -f conftest.o conftest.s
11809   fi
11810 fi
11811 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11812 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11813 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11814
11815 cat >>confdefs.h <<\_ACEOF
11816 #define HAVE_AS_MFCRF 1
11817 _ACEOF
11818
11819 fi
11820     ;;
11821
11822   mips*-*-*)
11823     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11824 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11825 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   gcc_cv_as_mips_explicit_relocs=no
11829     if test $in_tree_gas = yes; then
11830     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11831   then gcc_cv_as_mips_explicit_relocs=yes
11832 fi
11833   elif test x$gcc_cv_as != x; then
11834     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11835     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837   (eval $ac_try) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }
11841     then
11842         gcc_cv_as_mips_explicit_relocs=yes
11843     else
11844       echo "configure: failed program was" >&5
11845       cat conftest.s >&5
11846     fi
11847     rm -f conftest.o conftest.s
11848   fi
11849 fi
11850 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11851 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11852 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11853   if test x$target_cpu_default = x
11854        then target_cpu_default=MASK_EXPLICIT_RELOCS
11855        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11856        fi
11857 fi
11858
11859     if test x$gas_flag = xyes \
11860        || test x"$host" != x"$build" \
11861        || test ! -x "$gcc_cv_as" \
11862        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11863       :
11864     else
11865       echo "*** This configuration requires the GNU assembler" >&2
11866       exit 1
11867     fi
11868     ;;
11869 esac
11870 # ??? Not all targets support dwarf2 debug_line, even within a version
11871 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11872 # info to the output file.  So, as supported targets are added to gas 2.11,
11873 # add some instruction here to (also) show we expect this might work.
11874 # ??? Once 2.11 is released, probably need to add first known working
11875 # version to the per-target configury.
11876 case "$target" in
11877   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11878   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11879   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11880     insn="nop"
11881     ;;
11882   ia64*-*-* | s390*-*-*)
11883     insn="nop 0"
11884     ;;
11885   mmix-*-*)
11886     insn="swym 0"
11887     ;;
11888 esac
11889 if test x"$insn" != x; then
11890  conftest_s="\
11891         .file 1 \"conftest.s\"
11892         .loc 1 3 0
11893         $insn"
11894  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11895 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11896 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   gcc_cv_as_dwarf2_debug_line=no
11900     if test $in_tree_gas = yes; then
11901     if test $in_tree_gas_is_elf = yes \
11902   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11903   then gcc_cv_as_dwarf2_debug_line=yes
11904 fi
11905   elif test x$gcc_cv_as != x; then
11906     echo "$conftest_s" > conftest.s
11907     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }
11913     then
11914         # ??? This fails with non-gnu grep.  Maybe use objdump?
11915    if grep debug_line conftest.o > /dev/null 2>&1; then
11916      gcc_cv_as_dwarf2_debug_line=yes
11917    fi
11918     else
11919       echo "configure: failed program was" >&5
11920       cat conftest.s >&5
11921     fi
11922     rm -f conftest.o conftest.s
11923   fi
11924 fi
11925 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11926 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11927
11928
11929 # The .debug_line file table must be in the exact order that
11930 # we specified the files, since these indices are also used
11931 # by DW_AT_decl_file.  Approximate this test by testing if
11932 # the assembler bitches if the same index is assigned twice.
11933  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11934 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11935 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   gcc_cv_as_dwarf2_file_buggy=no
11939   if test x$gcc_cv_as != x; then
11940     echo '      .file 1 "foo.s"
11941         .file 1 "bar.s"' > conftest.s
11942     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }
11948     then
11949         gcc_cv_as_dwarf2_file_buggy=yes
11950     else
11951       echo "configure: failed program was" >&5
11952       cat conftest.s >&5
11953     fi
11954     rm -f conftest.o conftest.s
11955   fi
11956 fi
11957 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11958 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11959
11960
11961  if test $gcc_cv_as_dwarf2_debug_line = yes \
11962  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11963
11964 cat >>confdefs.h <<\_ACEOF
11965 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11966 _ACEOF
11967
11968  fi
11969
11970  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11971 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11972 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   gcc_cv_as_gdwarf2_flag=no
11976     if test $in_tree_gas = yes; then
11977     if test $in_tree_gas_is_elf = yes \
11978   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11979   then gcc_cv_as_gdwarf2_flag=yes
11980 fi
11981   elif test x$gcc_cv_as != x; then
11982     echo "$insn" > conftest.s
11983     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }
11989     then
11990         gcc_cv_as_gdwarf2_flag=yes
11991     else
11992       echo "configure: failed program was" >&5
11993       cat conftest.s >&5
11994     fi
11995     rm -f conftest.o conftest.s
11996   fi
11997 fi
11998 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11999 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
12000 if test $gcc_cv_as_gdwarf2_flag = yes; then
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
12004 _ACEOF
12005
12006 fi
12007
12008  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
12009 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
12010 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   gcc_cv_as_gstabs_flag=no
12014     if test $in_tree_gas = yes; then
12015     if test $in_tree_gas_is_elf = yes \
12016   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
12017   then gcc_cv_as_gstabs_flag=yes
12018 fi
12019   elif test x$gcc_cv_as != x; then
12020     echo "$insn" > conftest.s
12021     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
12022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023   (eval $ac_try) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }
12027     then
12028         # The native Solaris 9/Intel assembler doesn't understand --gstabs
12029    # and warns about it, but still exits successfully.  So check for
12030    # this.
12031    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; }
12037    then :
12038    else gcc_cv_as_gstabs_flag=yes
12039    fi
12040     else
12041       echo "configure: failed program was" >&5
12042       cat conftest.s >&5
12043     fi
12044     rm -f conftest.o conftest.s
12045   fi
12046 fi
12047 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
12048 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
12049 if test $gcc_cv_as_gstabs_flag = yes; then
12050
12051 cat >>confdefs.h <<\_ACEOF
12052 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
12053 _ACEOF
12054
12055 fi
12056 fi
12057
12058 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
12059 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
12060 gcc_cv_ld_ro_rw_mix=unknown
12061 if test $in_tree_ld = yes ; then
12062   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 \
12063      && test $in_tree_ld_is_elf = yes; then
12064     gcc_cv_ld_ro_rw_mix=read-write
12065   fi
12066 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
12067   echo '.section myfoosect, "a"' > conftest1.s
12068   echo '.section myfoosect, "aw"' > conftest2.s
12069   echo '.byte 1' >> conftest2.s
12070   echo '.section myfoosect, "a"' > conftest3.s
12071   echo '.byte 0' >> conftest3.s
12072   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
12073      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
12074      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
12075      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
12076         conftest2.o conftest3.o > /dev/null 2>&1; then
12077     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
12078                          | sed -e '/myfoosect/!d' -e N`
12079     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
12080       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
12081         gcc_cv_ld_ro_rw_mix=read-only
12082       else
12083         gcc_cv_ld_ro_rw_mix=read-write
12084       fi
12085     fi
12086   fi
12087   rm -f conftest.* conftest[123].*
12088 fi
12089 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12090
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12093 _ACEOF
12094
12095 fi
12096 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12097 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12098
12099 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12100 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12101 gcc_cv_ld_eh_frame_hdr=no
12102 if test $in_tree_ld = yes ; then
12103   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 \
12104      && test $in_tree_ld_is_elf = yes; then
12105     gcc_cv_ld_eh_frame_hdr=yes
12106   fi
12107 elif test x$gcc_cv_ld != x; then
12108         # Check if linker supports --eh-frame-hdr option
12109         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12110                 gcc_cv_ld_eh_frame_hdr=yes
12111         fi
12112 fi
12113 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12114
12115 cat >>confdefs.h <<\_ACEOF
12116 #define HAVE_LD_EH_FRAME_HDR 1
12117 _ACEOF
12118
12119 fi
12120 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12121 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12122
12123 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12124 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12125 gcc_cv_ld_pie=no
12126 if test $in_tree_ld = yes ; then
12127   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 \
12128      && test $in_tree_ld_is_elf = yes; then
12129     gcc_cv_ld_pie=yes
12130   fi
12131 elif test x$gcc_cv_ld != x; then
12132         # Check if linker supports -pie option
12133         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12134                 gcc_cv_ld_pie=yes
12135         fi
12136 fi
12137 if test x"$gcc_cv_ld_pie" = xyes; then
12138
12139 cat >>confdefs.h <<\_ACEOF
12140 #define HAVE_LD_PIE 1
12141 _ACEOF
12142
12143 fi
12144 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12145 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12146
12147 # --------
12148 # UNSORTED
12149 # --------
12150
12151 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12152 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12153 if test "${gcc_cv_ld_as_needed+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   gcc_cv_ld_as_needed=no
12157 if test $in_tree_ld = yes ; then
12158   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 \
12159      && test $in_tree_ld_is_elf = yes; then
12160     gcc_cv_ld_as_needed=yes
12161   fi
12162 elif test x$gcc_cv_ld != x; then
12163         # Check if linker supports --as-needed and --no-as-needed options
12164         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12165                 gcc_cv_ld_as_needed=yes
12166         fi
12167 fi
12168
12169 fi
12170 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12171 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12172 if test x"$gcc_cv_ld_as_needed" = xyes; then
12173
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HAVE_LD_AS_NEEDED 1
12176 _ACEOF
12177
12178 fi
12179
12180 case "$target" in
12181   powerpc64*-*-linux*)
12182     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12183 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12184 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   gcc_cv_ld_no_dot_syms=no
12188     if test $in_tree_ld = yes ; then
12189       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
12190         gcc_cv_ld_no_dot_syms=yes
12191       fi
12192     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12193       cat > conftest1.s <<EOF
12194         .text
12195         bl .foo
12196 EOF
12197       cat > conftest2.s <<EOF
12198         .section ".opd","aw"
12199         .align 3
12200         .globl foo
12201         .type foo,@function
12202 foo:
12203         .quad .LEfoo,.TOC.@tocbase,0
12204         .text
12205 .LEfoo:
12206         blr
12207         .size foo,.-.LEfoo
12208 EOF
12209       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12210          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12211          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12212         gcc_cv_ld_no_dot_syms=yes
12213       fi
12214       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12215     fi
12216
12217 fi
12218 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12219 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12220     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_LD_NO_DOT_SYMS 1
12224 _ACEOF
12225
12226     fi
12227     ;;
12228 esac
12229
12230 if test x$with_sysroot = x && test x$host = x$target \
12231    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12232
12233 cat >>confdefs.h <<_ACEOF
12234 #define PREFIX_INCLUDE_DIR "$prefix/include"
12235 _ACEOF
12236
12237 fi
12238
12239 # Find out what GC implementation we want, or may, use.
12240
12241 # Check whether --with-gc or --without-gc was given.
12242 if test "${with_gc+set}" = set; then
12243   withval="$with_gc"
12244   case "$withval" in
12245   page | zone)
12246     GGC=ggc-$withval
12247     ;;
12248   *)
12249     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12250 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12251    { (exit 1); exit 1; }; }
12252     ;;
12253 esac
12254 else
12255   GGC=ggc-page
12256 fi;
12257
12258 echo "Using $GGC for garbage collection."
12259
12260 # Use the system's zlib library.
12261 zlibdir=-L../zlib
12262 zlibinc="-I\$(srcdir)/../zlib"
12263
12264 # Check whether --with-system-zlib or --without-system-zlib was given.
12265 if test "${with_system_zlib+set}" = set; then
12266   withval="$with_system_zlib"
12267   zlibdir=
12268 zlibinc=
12269
12270 fi;
12271
12272
12273
12274
12275 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12276 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12277     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12278 if test "${enable_maintainer_mode+set}" = set; then
12279   enableval="$enable_maintainer_mode"
12280   maintainer_mode=$enableval
12281 else
12282   maintainer_mode=no
12283 fi;
12284
12285 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12286 echo "${ECHO_T}$maintainer_mode" >&6
12287
12288 if test "$maintainer_mode" = "yes"; then
12289   MAINT=''
12290 else
12291   MAINT='#'
12292 fi
12293
12294 # --------------
12295 # Language hooks
12296 # --------------
12297
12298 # Make empty files to contain the specs and options for each language.
12299 # Then add #include lines to for a compiler that has specs and/or options.
12300
12301 lang_opt_files=
12302 lang_specs_files=
12303 lang_tree_files=
12304 for subdir in . $subdirs
12305 do
12306         if test -f $srcdir/$subdir/lang.opt; then
12307             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12308         fi
12309         if test -f $srcdir/$subdir/lang-specs.h; then
12310             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12311         fi
12312         if test -f $srcdir/$subdir/$subdir-tree.def; then
12313             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12314         fi
12315 done
12316
12317 # These (without "all_") are set in each config-lang.in.
12318 # `language' must be a single word so is spelled singularly.
12319 all_languages=
12320 all_boot_languages=
12321 all_compilers=
12322 all_stagestuff=
12323 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
12324 # List of language makefile fragments.
12325 all_lang_makefrags=
12326 # List of language subdirectory makefiles.  Deprecated.
12327 all_lang_makefiles=
12328 # Files for gengtype
12329 all_gtfiles="$target_gtfiles"
12330 # Files for gengtype with language
12331 all_gtfiles_files_langs=
12332 all_gtfiles_files_files=
12333
12334 # Add the language fragments.
12335 # Languages are added via two mechanisms.  Some information must be
12336 # recorded in makefile variables, these are defined in config-lang.in.
12337 # We accumulate them and plug them into the main Makefile.
12338 # The other mechanism is a set of hooks for each of the main targets
12339 # like `clean', `install', etc.
12340
12341 language_hooks="Make-hooks"
12342
12343 for s in $subdirs
12344 do
12345                 language=
12346                 boot_language=
12347                 compilers=
12348                 stagestuff=
12349                 outputs=
12350                 gtfiles=
12351                 . ${srcdir}/$s/config-lang.in
12352                 if test "x$language" = x
12353                 then
12354                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12355                         exit 1
12356                 fi
12357                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12358                 if test -f ${srcdir}/$s/Makefile.in
12359                 then all_lang_makefiles="$s/Makefile"
12360                 fi
12361                 all_languages="$all_languages $language"
12362                 if test "x$boot_language" = xyes
12363                 then
12364                         all_boot_languages="$all_boot_languages $language"
12365                 fi
12366                 all_compilers="$all_compilers $compilers"
12367                 all_stagestuff="$all_stagestuff $stagestuff"
12368                 all_outputs="$all_outputs $outputs"
12369                 all_gtfiles="$all_gtfiles $gtfiles"
12370                 for f in $gtfiles
12371                 do
12372                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12373                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12374                 done
12375 done
12376
12377 # Pick up gtfiles for c
12378 gtfiles=
12379 s="c"
12380 . ${srcdir}/c-config-lang.in
12381 all_gtfiles="$all_gtfiles $gtfiles"
12382 for f in $gtfiles
12383 do
12384         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12385         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12386 done
12387
12388 check_languages=
12389 for language in $all_languages
12390 do
12391                 check_languages="$check_languages check-$language"
12392 done
12393
12394 # We link each language in with a set of hooks, reached indirectly via
12395 # lang.${target}.
12396
12397 rm -f Make-hooks
12398 touch Make-hooks
12399 target_list="all.build all.cross start.encap rest.encap tags \
12400         install-normal install-common install-man \
12401         uninstall info man srcextra srcman srcinfo \
12402         mostlyclean clean distclean maintainer-clean \
12403         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12404 for t in $target_list
12405 do
12406         x=
12407         for lang in $all_languages
12408         do
12409                         x="$x $lang.$t"
12410         done
12411         echo "lang.$t: $x" >> Make-hooks
12412 done
12413
12414 # --------
12415 # UNSORTED
12416 # --------
12417
12418 # Create .gdbinit.
12419
12420 echo "dir ." > .gdbinit
12421 echo "dir ${srcdir}" >> .gdbinit
12422 if test x$gdb_needs_out_file_path = xyes
12423 then
12424         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12425 fi
12426 if test "x$subdirs" != x; then
12427         for s in $subdirs
12428         do
12429                 echo "dir ${srcdir}/$s" >> .gdbinit
12430         done
12431 fi
12432 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12433
12434 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12435 # absolute path for gcc_tooldir based on inserting the number of up-directory
12436 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12437 # $(libsubdir)/@(unlibsubdir) based path.
12438 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12439 # make and thus we'd get different behavior depending on where we built the
12440 # sources.
12441 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12442     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12443 else
12444 # An explanation of the sed strings:
12445 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12446 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12447 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12448 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12449 #
12450 # (*) Note this pattern overwrites the first character of the string
12451 # with a forward slash if one is not already present.  This is not a
12452 # problem because the exact names of the sub-directories concerned is
12453 # unimportant, just the number of them matters.
12454 #
12455 # The practical upshot of these patterns is like this:
12456 #
12457 #  prefix     exec_prefix        result
12458 #  ------     -----------        ------
12459 #   /foo        /foo/bar          ../
12460 #   /foo/       /foo/bar          ../
12461 #   /foo        /foo/bar/         ../
12462 #   /foo/       /foo/bar/         ../
12463 #   /foo        /foo/bar/ugg      ../../
12464 #
12465     dollar='$$'
12466     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12467 fi
12468
12469
12470
12471 # Find a directory in which to install a shared libgcc.
12472
12473 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12474 if test "${enable_version_specific_runtime_libs+set}" = set; then
12475   enableval="$enable_version_specific_runtime_libs"
12476
12477 fi;
12478
12479
12480 # Check whether --with-slibdir or --without-slibdir was given.
12481 if test "${with_slibdir+set}" = set; then
12482   withval="$with_slibdir"
12483   slibdir="$with_slibdir"
12484 else
12485   if test "${enable_version_specific_runtime_libs+set}" = set; then
12486   slibdir='$(libsubdir)'
12487 elif test "$host" != "$target"; then
12488   slibdir='$(build_tooldir)/lib'
12489 else
12490   slibdir='$(libdir)'
12491 fi
12492 fi;
12493
12494
12495 objdir=`${PWDCMD-pwd}`
12496
12497
12498 # Substitute configuration variables
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 # If it doesn't already exist, create document directory
12567 echo "checking for the document directory." 1>&2
12568 if test -d doc ; then
12569   true
12570 else
12571   mkdir doc
12572 fi
12573
12574 # Echo link setup.
12575 if test x${build} = x${host} ; then
12576   if test x${host} = x${target} ; then
12577     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12578   else
12579     echo "Links are now set up to build a cross-compiler" 1>&2
12580     echo " from ${host} to ${target}." 1>&2
12581   fi
12582 else
12583   if test x${host} = x${target} ; then
12584     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12585     echo " for ${target}." 1>&2
12586   else
12587     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12588     echo " from ${host} to ${target}." 1>&2
12589   fi
12590 fi
12591
12592
12593
12594
12595 # Configure the subdirectories
12596 # AC_CONFIG_SUBDIRS($subdirs)
12597
12598 # Create the Makefile
12599 # and configure language subdirectories
12600           ac_config_files="$ac_config_files $all_outputs"
12601
12602
12603           ac_config_commands="$ac_config_commands default"
12604
12605 cat >confcache <<\_ACEOF
12606 # This file is a shell script that caches the results of configure
12607 # tests run on this system so they can be shared between configure
12608 # scripts and configure runs, see configure's option --config-cache.
12609 # It is not useful on other systems.  If it contains results you don't
12610 # want to keep, you may remove or edit it.
12611 #
12612 # config.status only pays attention to the cache file if you give it
12613 # the --recheck option to rerun configure.
12614 #
12615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12617 # following values.
12618
12619 _ACEOF
12620
12621 # The following way of writing the cache mishandles newlines in values,
12622 # but we know of no workaround that is simple, portable, and efficient.
12623 # So, don't put newlines in cache variables' values.
12624 # Ultrix sh set writes to stderr and can't be redirected directly,
12625 # and sets the high bit in the cache file unless we assign to the vars.
12626 {
12627   (set) 2>&1 |
12628     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12629     *ac_space=\ *)
12630       # `set' does not quote correctly, so add quotes (double-quote
12631       # substitution turns \\\\ into \\, and sed turns \\ into \).
12632       sed -n \
12633         "s/'/'\\\\''/g;
12634           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12635       ;;
12636     *)
12637       # `set' quotes correctly as required by POSIX, so do not add quotes.
12638       sed -n \
12639         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12640       ;;
12641     esac;
12642 } |
12643   sed '
12644      t clear
12645      : clear
12646      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12647      t end
12648      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12649      : end' >>confcache
12650 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12651   if test -w $cache_file; then
12652     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12653     cat confcache >$cache_file
12654   else
12655     echo "not updating unwritable cache $cache_file"
12656   fi
12657 fi
12658 rm -f confcache
12659
12660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12661 # Let make expand exec_prefix.
12662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12663
12664 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12665 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12666 # trailing colons and then remove the whole line if VPATH becomes empty
12667 # (actually we leave an empty line to preserve line numbers).
12668 if test "x$srcdir" = x.; then
12669   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12670 s/:*\$(srcdir):*/:/;
12671 s/:*\${srcdir}:*/:/;
12672 s/:*@srcdir@:*/:/;
12673 s/^\([^=]*=[     ]*\):*/\1/;
12674 s/:*$//;
12675 s/^[^=]*=[       ]*$//;
12676 }'
12677 fi
12678
12679 DEFS=-DHAVE_CONFIG_H
12680
12681 ac_libobjs=
12682 ac_ltlibobjs=
12683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12684   # 1. Remove the extension, and $U if already installed.
12685   ac_i=`echo "$ac_i" |
12686          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12687   # 2. Add them.
12688   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12689   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12690 done
12691 LIBOBJS=$ac_libobjs
12692
12693 LTLIBOBJS=$ac_ltlibobjs
12694
12695
12696
12697 : ${CONFIG_STATUS=./config.status}
12698 ac_clean_files_save=$ac_clean_files
12699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12702 cat >$CONFIG_STATUS <<_ACEOF
12703 #! $SHELL
12704 # Generated by $as_me.
12705 # Run this file to recreate the current configuration.
12706 # Compiler output produced by configure, useful for debugging
12707 # configure, is in config.log if it exists.
12708
12709 debug=false
12710 ac_cs_recheck=false
12711 ac_cs_silent=false
12712 SHELL=\${CONFIG_SHELL-$SHELL}
12713 _ACEOF
12714
12715 cat >>$CONFIG_STATUS <<\_ACEOF
12716 ## --------------------- ##
12717 ## M4sh Initialization.  ##
12718 ## --------------------- ##
12719
12720 # Be Bourne compatible
12721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12722   emulate sh
12723   NULLCMD=:
12724   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12725   # is contrary to our usage.  Disable this feature.
12726   alias -g '${1+"$@"}'='"$@"'
12727 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12728   set -o posix
12729 fi
12730 DUALCASE=1; export DUALCASE # for MKS sh
12731
12732 # Support unset when possible.
12733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12734   as_unset=unset
12735 else
12736   as_unset=false
12737 fi
12738
12739
12740 # Work around bugs in pre-3.0 UWIN ksh.
12741 $as_unset ENV MAIL MAILPATH
12742 PS1='$ '
12743 PS2='> '
12744 PS4='+ '
12745
12746 # NLS nuisances.
12747 for as_var in \
12748   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12749   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12750   LC_TELEPHONE LC_TIME
12751 do
12752   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12753     eval $as_var=C; export $as_var
12754   else
12755     $as_unset $as_var
12756   fi
12757 done
12758
12759 # Required to use basename.
12760 if expr a : '\(a\)' >/dev/null 2>&1; then
12761   as_expr=expr
12762 else
12763   as_expr=false
12764 fi
12765
12766 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12767   as_basename=basename
12768 else
12769   as_basename=false
12770 fi
12771
12772
12773 # Name of the executable.
12774 as_me=`$as_basename "$0" ||
12775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12776          X"$0" : 'X\(//\)$' \| \
12777          X"$0" : 'X\(/\)$' \| \
12778          .     : '\(.\)' 2>/dev/null ||
12779 echo X/"$0" |
12780     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12781           /^X\/\(\/\/\)$/{ s//\1/; q; }
12782           /^X\/\(\/\).*/{ s//\1/; q; }
12783           s/.*/./; q'`
12784
12785
12786 # PATH needs CR, and LINENO needs CR and PATH.
12787 # Avoid depending upon Character Ranges.
12788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12791 as_cr_digits='0123456789'
12792 as_cr_alnum=$as_cr_Letters$as_cr_digits
12793
12794 # The user is always right.
12795 if test "${PATH_SEPARATOR+set}" != set; then
12796   echo "#! /bin/sh" >conf$$.sh
12797   echo  "exit 0"   >>conf$$.sh
12798   chmod +x conf$$.sh
12799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12800     PATH_SEPARATOR=';'
12801   else
12802     PATH_SEPARATOR=:
12803   fi
12804   rm -f conf$$.sh
12805 fi
12806
12807
12808   as_lineno_1=$LINENO
12809   as_lineno_2=$LINENO
12810   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12811   test "x$as_lineno_1" != "x$as_lineno_2" &&
12812   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12813   # Find who we are.  Look in the path if we contain no path at all
12814   # relative or not.
12815   case $0 in
12816     *[\\/]* ) as_myself=$0 ;;
12817     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820   IFS=$as_save_IFS
12821   test -z "$as_dir" && as_dir=.
12822   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12823 done
12824
12825        ;;
12826   esac
12827   # We did not find ourselves, most probably we were run as `sh COMMAND'
12828   # in which case we are not to be found in the path.
12829   if test "x$as_myself" = x; then
12830     as_myself=$0
12831   fi
12832   if test ! -f "$as_myself"; then
12833     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12834 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12835    { (exit 1); exit 1; }; }
12836   fi
12837   case $CONFIG_SHELL in
12838   '')
12839     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12841 do
12842   IFS=$as_save_IFS
12843   test -z "$as_dir" && as_dir=.
12844   for as_base in sh bash ksh sh5; do
12845          case $as_dir in
12846          /*)
12847            if ("$as_dir/$as_base" -c '
12848   as_lineno_1=$LINENO
12849   as_lineno_2=$LINENO
12850   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12851   test "x$as_lineno_1" != "x$as_lineno_2" &&
12852   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12853              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12854              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12855              CONFIG_SHELL=$as_dir/$as_base
12856              export CONFIG_SHELL
12857              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12858            fi;;
12859          esac
12860        done
12861 done
12862 ;;
12863   esac
12864
12865   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12866   # uniformly replaced by the line number.  The first 'sed' inserts a
12867   # line-number line before each line; the second 'sed' does the real
12868   # work.  The second script uses 'N' to pair each line-number line
12869   # with the numbered line, and appends trailing '-' during
12870   # substitution so that $LINENO is not a special case at line end.
12871   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12872   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12873   sed '=' <$as_myself |
12874     sed '
12875       N
12876       s,$,-,
12877       : loop
12878       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12879       t loop
12880       s,-$,,
12881       s,^['$as_cr_digits']*\n,,
12882     ' >$as_me.lineno &&
12883   chmod +x $as_me.lineno ||
12884     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12885 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12886    { (exit 1); exit 1; }; }
12887
12888   # Don't try to exec as it changes $[0], causing all sort of problems
12889   # (the dirname of $[0] is not the place where we might find the
12890   # original and so on.  Autoconf is especially sensible to this).
12891   . ./$as_me.lineno
12892   # Exit status is that of the last command.
12893   exit
12894 }
12895
12896
12897 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12898   *c*,-n*) ECHO_N= ECHO_C='
12899 ' ECHO_T='      ' ;;
12900   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12901   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12902 esac
12903
12904 if expr a : '\(a\)' >/dev/null 2>&1; then
12905   as_expr=expr
12906 else
12907   as_expr=false
12908 fi
12909
12910 rm -f conf$$ conf$$.exe conf$$.file
12911 echo >conf$$.file
12912 if ln -s conf$$.file conf$$ 2>/dev/null; then
12913   # We could just check for DJGPP; but this test a) works b) is more generic
12914   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12915   if test -f conf$$.exe; then
12916     # Don't use ln at all; we don't have any links
12917     as_ln_s='cp -p'
12918   else
12919     as_ln_s='ln -s'
12920   fi
12921 elif ln conf$$.file conf$$ 2>/dev/null; then
12922   as_ln_s=ln
12923 else
12924   as_ln_s='cp -p'
12925 fi
12926 rm -f conf$$ conf$$.exe conf$$.file
12927
12928 if mkdir -p . 2>/dev/null; then
12929   as_mkdir_p=:
12930 else
12931   test -d ./-p && rmdir ./-p
12932   as_mkdir_p=false
12933 fi
12934
12935 as_executable_p="test -f"
12936
12937 # Sed expression to map a string onto a valid CPP name.
12938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12939
12940 # Sed expression to map a string onto a valid variable name.
12941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12942
12943
12944 # IFS
12945 # We need space, tab and new line, in precisely that order.
12946 as_nl='
12947 '
12948 IFS="   $as_nl"
12949
12950 # CDPATH.
12951 $as_unset CDPATH
12952
12953 exec 6>&1
12954
12955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12956 # report actual input values of CONFIG_FILES etc. instead of their
12957 # values after options handling.  Logging --version etc. is OK.
12958 exec 5>>config.log
12959 {
12960   echo
12961   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12962 ## Running $as_me. ##
12963 _ASBOX
12964 } >&5
12965 cat >&5 <<_CSEOF
12966
12967 This file was extended by $as_me, which was
12968 generated by GNU Autoconf 2.59.  Invocation command line was
12969
12970   CONFIG_FILES    = $CONFIG_FILES
12971   CONFIG_HEADERS  = $CONFIG_HEADERS
12972   CONFIG_LINKS    = $CONFIG_LINKS
12973   CONFIG_COMMANDS = $CONFIG_COMMANDS
12974   $ $0 $@
12975
12976 _CSEOF
12977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12978 echo >&5
12979 _ACEOF
12980
12981 # Files that config.status was made for.
12982 if test -n "$ac_config_files"; then
12983   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12984 fi
12985
12986 if test -n "$ac_config_headers"; then
12987   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12988 fi
12989
12990 if test -n "$ac_config_links"; then
12991   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12992 fi
12993
12994 if test -n "$ac_config_commands"; then
12995   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12996 fi
12997
12998 cat >>$CONFIG_STATUS <<\_ACEOF
12999
13000 ac_cs_usage="\
13001 \`$as_me' instantiates files from templates according to the
13002 current configuration.
13003
13004 Usage: $0 [OPTIONS] [FILE]...
13005
13006   -h, --help       print this help, then exit
13007   -V, --version    print version number, then exit
13008   -q, --quiet      do not print progress messages
13009   -d, --debug      don't remove temporary files
13010       --recheck    update $as_me by reconfiguring in the same conditions
13011   --file=FILE[:TEMPLATE]
13012                    instantiate the configuration file FILE
13013   --header=FILE[:TEMPLATE]
13014                    instantiate the configuration header FILE
13015
13016 Configuration files:
13017 $config_files
13018
13019 Configuration headers:
13020 $config_headers
13021
13022 Configuration commands:
13023 $config_commands
13024
13025 Report bugs to <bug-autoconf@gnu.org>."
13026 _ACEOF
13027
13028 cat >>$CONFIG_STATUS <<_ACEOF
13029 ac_cs_version="\\
13030 config.status
13031 configured by $0, generated by GNU Autoconf 2.59,
13032   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13033
13034 Copyright (C) 2003 Free Software Foundation, Inc.
13035 This config.status script is free software; the Free Software Foundation
13036 gives unlimited permission to copy, distribute and modify it."
13037 srcdir=$srcdir
13038 _ACEOF
13039
13040 cat >>$CONFIG_STATUS <<\_ACEOF
13041 # If no file are specified by the user, then we need to provide default
13042 # value.  By we need to know if files were specified by the user.
13043 ac_need_defaults=:
13044 while test $# != 0
13045 do
13046   case $1 in
13047   --*=*)
13048     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13049     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13050     ac_shift=:
13051     ;;
13052   -*)
13053     ac_option=$1
13054     ac_optarg=$2
13055     ac_shift=shift
13056     ;;
13057   *) # This is not an option, so the user has probably given explicit
13058      # arguments.
13059      ac_option=$1
13060      ac_need_defaults=false;;
13061   esac
13062
13063   case $ac_option in
13064   # Handling of the options.
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF
13067   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13068     ac_cs_recheck=: ;;
13069   --version | --vers* | -V )
13070     echo "$ac_cs_version"; exit 0 ;;
13071   --he | --h)
13072     # Conflict between --help and --header
13073     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13074 Try \`$0 --help' for more information." >&5
13075 echo "$as_me: error: ambiguous option: $1
13076 Try \`$0 --help' for more information." >&2;}
13077    { (exit 1); exit 1; }; };;
13078   --help | --hel | -h )
13079     echo "$ac_cs_usage"; exit 0 ;;
13080   --debug | --d* | -d )
13081     debug=: ;;
13082   --file | --fil | --fi | --f )
13083     $ac_shift
13084     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13085     ac_need_defaults=false;;
13086   --header | --heade | --head | --hea )
13087     $ac_shift
13088     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13089     ac_need_defaults=false;;
13090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13091   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13092     ac_cs_silent=: ;;
13093
13094   # This is an error.
13095   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13096 Try \`$0 --help' for more information." >&5
13097 echo "$as_me: error: unrecognized option: $1
13098 Try \`$0 --help' for more information." >&2;}
13099    { (exit 1); exit 1; }; } ;;
13100
13101   *) ac_config_targets="$ac_config_targets $1" ;;
13102
13103   esac
13104   shift
13105 done
13106
13107 ac_configure_extra_args=
13108
13109 if $ac_cs_silent; then
13110   exec 6>/dev/null
13111   ac_configure_extra_args="$ac_configure_extra_args --silent"
13112 fi
13113
13114 _ACEOF
13115 cat >>$CONFIG_STATUS <<_ACEOF
13116 if \$ac_cs_recheck; then
13117   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13118   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13119 fi
13120
13121 _ACEOF
13122
13123 cat >>$CONFIG_STATUS <<_ACEOF
13124 #
13125 # INIT-COMMANDS section.
13126 #
13127
13128 subdirs='$subdirs'
13129 symbolic_link='$symbolic_link'
13130
13131
13132 _ACEOF
13133
13134
13135
13136 cat >>$CONFIG_STATUS <<\_ACEOF
13137 for ac_config_target in $ac_config_targets
13138 do
13139   case "$ac_config_target" in
13140   # Handling of arguments.
13141   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13142   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13143   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13144   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13145 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13146    { (exit 1); exit 1; }; };;
13147   esac
13148 done
13149
13150 # If the user did not use the arguments to specify the items to instantiate,
13151 # then the envvar interface is used.  Set only those that are not.
13152 # We use the long form for the default assignment because of an extremely
13153 # bizarre bug on SunOS 4.1.3.
13154 if $ac_need_defaults; then
13155   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13156   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13157   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13158 fi
13159
13160 # Have a temporary directory for convenience.  Make it in the build tree
13161 # simply because there is no reason to put it here, and in addition,
13162 # creating and moving files from /tmp can sometimes cause problems.
13163 # Create a temporary directory, and hook for its removal unless debugging.
13164 $debug ||
13165 {
13166   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13167   trap '{ (exit 1); exit 1; }' 1 2 13 15
13168 }
13169
13170 # Create a (secure) tmp directory for tmp files.
13171
13172 {
13173   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13174   test -n "$tmp" && test -d "$tmp"
13175 }  ||
13176 {
13177   tmp=./confstat$$-$RANDOM
13178   (umask 077 && mkdir $tmp)
13179 } ||
13180 {
13181    echo "$me: cannot create a temporary directory in ." >&2
13182    { (exit 1); exit 1; }
13183 }
13184
13185 _ACEOF
13186
13187 cat >>$CONFIG_STATUS <<_ACEOF
13188
13189 #
13190 # CONFIG_FILES section.
13191 #
13192
13193 # No need to generate the scripts if there are no CONFIG_FILES.
13194 # This happens for instance when ./config.status config.h
13195 if test -n "\$CONFIG_FILES"; then
13196   # Protect against being on the right side of a sed subst in config.status.
13197   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13198    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13199 s,@SHELL@,$SHELL,;t t
13200 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13201 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13202 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13203 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13204 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13205 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13206 s,@exec_prefix@,$exec_prefix,;t t
13207 s,@prefix@,$prefix,;t t
13208 s,@program_transform_name@,$program_transform_name,;t t
13209 s,@bindir@,$bindir,;t t
13210 s,@sbindir@,$sbindir,;t t
13211 s,@libexecdir@,$libexecdir,;t t
13212 s,@datadir@,$datadir,;t t
13213 s,@sysconfdir@,$sysconfdir,;t t
13214 s,@sharedstatedir@,$sharedstatedir,;t t
13215 s,@localstatedir@,$localstatedir,;t t
13216 s,@libdir@,$libdir,;t t
13217 s,@includedir@,$includedir,;t t
13218 s,@oldincludedir@,$oldincludedir,;t t
13219 s,@infodir@,$infodir,;t t
13220 s,@mandir@,$mandir,;t t
13221 s,@build_alias@,$build_alias,;t t
13222 s,@host_alias@,$host_alias,;t t
13223 s,@target_alias@,$target_alias,;t t
13224 s,@DEFS@,$DEFS,;t t
13225 s,@ECHO_C@,$ECHO_C,;t t
13226 s,@ECHO_N@,$ECHO_N,;t t
13227 s,@ECHO_T@,$ECHO_T,;t t
13228 s,@LIBS@,$LIBS,;t t
13229 s,@build@,$build,;t t
13230 s,@build_cpu@,$build_cpu,;t t
13231 s,@build_vendor@,$build_vendor,;t t
13232 s,@build_os@,$build_os,;t t
13233 s,@host@,$host,;t t
13234 s,@host_cpu@,$host_cpu,;t t
13235 s,@host_vendor@,$host_vendor,;t t
13236 s,@host_os@,$host_os,;t t
13237 s,@target@,$target,;t t
13238 s,@target_cpu@,$target_cpu,;t t
13239 s,@target_vendor@,$target_vendor,;t t
13240 s,@target_os@,$target_os,;t t
13241 s,@target_noncanonical@,$target_noncanonical,;t t
13242 s,@build_subdir@,$build_subdir,;t t
13243 s,@host_subdir@,$host_subdir,;t t
13244 s,@target_subdir@,$target_subdir,;t t
13245 s,@GENINSRC@,$GENINSRC,;t t
13246 s,@CC@,$CC,;t t
13247 s,@CFLAGS@,$CFLAGS,;t t
13248 s,@LDFLAGS@,$LDFLAGS,;t t
13249 s,@CPPFLAGS@,$CPPFLAGS,;t t
13250 s,@ac_ct_CC@,$ac_ct_CC,;t t
13251 s,@EXEEXT@,$EXEEXT,;t t
13252 s,@OBJEXT@,$OBJEXT,;t t
13253 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13254 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13255 s,@CPP@,$CPP,;t t
13256 s,@strict1_warn@,$strict1_warn,;t t
13257 s,@warn_cflags@,$warn_cflags,;t t
13258 s,@WERROR@,$WERROR,;t t
13259 s,@nocommon_flag@,$nocommon_flag,;t t
13260 s,@TREEBROWSER@,$TREEBROWSER,;t t
13261 s,@EGREP@,$EGREP,;t t
13262 s,@valgrind_path@,$valgrind_path,;t t
13263 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13264 s,@valgrind_command@,$valgrind_command,;t t
13265 s,@coverage_flags@,$coverage_flags,;t t
13266 s,@enable_multilib@,$enable_multilib,;t t
13267 s,@enable_shared@,$enable_shared,;t t
13268 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13269 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13270 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13271 s,@onestep@,$onestep,;t t
13272 s,@SET_MAKE@,$SET_MAKE,;t t
13273 s,@AWK@,$AWK,;t t
13274 s,@LN_S@,$LN_S,;t t
13275 s,@LN@,$LN,;t t
13276 s,@RANLIB@,$RANLIB,;t t
13277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13278 s,@ranlib_flags@,$ranlib_flags,;t t
13279 s,@INSTALL@,$INSTALL,;t t
13280 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13281 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13282 s,@make_compare_target@,$make_compare_target,;t t
13283 s,@have_mktemp_command@,$have_mktemp_command,;t t
13284 s,@MAKEINFO@,$MAKEINFO,;t t
13285 s,@BUILD_INFO@,$BUILD_INFO,;t t
13286 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13287 s,@FLEX@,$FLEX,;t t
13288 s,@BISON@,$BISON,;t t
13289 s,@NM@,$NM,;t t
13290 s,@AR@,$AR,;t t
13291 s,@stage1_cflags@,$stage1_cflags,;t t
13292 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13293 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13294 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13295 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13296 s,@LIBICONV@,$LIBICONV,;t t
13297 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13298 s,@manext@,$manext,;t t
13299 s,@objext@,$objext,;t t
13300 s,@gthread_flags@,$gthread_flags,;t t
13301 s,@extra_modes_file@,$extra_modes_file,;t t
13302 s,@PACKAGE@,$PACKAGE,;t t
13303 s,@VERSION@,$VERSION,;t t
13304 s,@USE_NLS@,$USE_NLS,;t t
13305 s,@LIBINTL@,$LIBINTL,;t t
13306 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13307 s,@INCINTL@,$INCINTL,;t t
13308 s,@XGETTEXT@,$XGETTEXT,;t t
13309 s,@GMSGFMT@,$GMSGFMT,;t t
13310 s,@POSUB@,$POSUB,;t t
13311 s,@CATALOGS@,$CATALOGS,;t t
13312 s,@CROSS@,$CROSS,;t t
13313 s,@ALL@,$ALL,;t t
13314 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13315 s,@inhibit_libc@,$inhibit_libc,;t t
13316 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13317 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13318 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13319 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13320 s,@collect2@,$collect2,;t t
13321 s,@libgcc_visibility@,$libgcc_visibility,;t t
13322 s,@GGC@,$GGC,;t t
13323 s,@zlibdir@,$zlibdir,;t t
13324 s,@zlibinc@,$zlibinc,;t t
13325 s,@MAINT@,$MAINT,;t t
13326 s,@gcc_tooldir@,$gcc_tooldir,;t t
13327 s,@dollar@,$dollar,;t t
13328 s,@slibdir@,$slibdir,;t t
13329 s,@objdir@,$objdir,;t t
13330 s,@subdirs@,$subdirs,;t t
13331 s,@srcdir@,$srcdir,;t t
13332 s,@all_boot_languages@,$all_boot_languages,;t t
13333 s,@all_compilers@,$all_compilers,;t t
13334 s,@all_gtfiles@,$all_gtfiles,;t t
13335 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13336 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13337 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13338 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13339 s,@all_languages@,$all_languages,;t t
13340 s,@all_stagestuff@,$all_stagestuff,;t t
13341 s,@build_exeext@,$build_exeext,;t t
13342 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13343 s,@build_xm_file_list@,$build_xm_file_list,;t t
13344 s,@build_xm_include_list@,$build_xm_include_list,;t t
13345 s,@build_xm_defines@,$build_xm_defines,;t t
13346 s,@check_languages@,$check_languages,;t t
13347 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13348 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13349 s,@cpp_install_dir@,$cpp_install_dir,;t t
13350 s,@xmake_file@,$xmake_file,;t t
13351 s,@tmake_file@,$tmake_file,;t t
13352 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13353 s,@extra_headers_list@,$extra_headers_list,;t t
13354 s,@extra_objs@,$extra_objs,;t t
13355 s,@extra_parts@,$extra_parts,;t t
13356 s,@extra_passes@,$extra_passes,;t t
13357 s,@extra_programs@,$extra_programs,;t t
13358 s,@float_h_file@,$float_h_file,;t t
13359 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13360 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13361 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13362 s,@gcc_version@,$gcc_version,;t t
13363 s,@gcc_version_full@,$gcc_version_full,;t t
13364 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13365 s,@host_exeext@,$host_exeext,;t t
13366 s,@host_xm_file_list@,$host_xm_file_list,;t t
13367 s,@host_xm_include_list@,$host_xm_include_list,;t t
13368 s,@host_xm_defines@,$host_xm_defines,;t t
13369 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13370 s,@install@,$install,;t t
13371 s,@lang_opt_files@,$lang_opt_files,;t t
13372 s,@lang_specs_files@,$lang_specs_files,;t t
13373 s,@lang_tree_files@,$lang_tree_files,;t t
13374 s,@local_prefix@,$local_prefix,;t t
13375 s,@md_file@,$md_file,;t t
13376 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13377 s,@out_file@,$out_file,;t t
13378 s,@out_object_file@,$out_object_file,;t t
13379 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13380 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13381 s,@symbolic_link@,$symbolic_link,;t t
13382 s,@thread_file@,$thread_file,;t t
13383 s,@tm_file_list@,$tm_file_list,;t t
13384 s,@tm_include_list@,$tm_include_list,;t t
13385 s,@tm_defines@,$tm_defines,;t t
13386 s,@tm_p_file_list@,$tm_p_file_list,;t t
13387 s,@tm_p_include_list@,$tm_p_include_list,;t t
13388 s,@xm_file_list@,$xm_file_list,;t t
13389 s,@xm_include_list@,$xm_include_list,;t t
13390 s,@xm_defines@,$xm_defines,;t t
13391 s,@c_target_objs@,$c_target_objs,;t t
13392 s,@cxx_target_objs@,$cxx_target_objs,;t t
13393 s,@target_cpu_default@,$target_cpu_default,;t t
13394 s,@GMPLIBS@,$GMPLIBS,;t t
13395 s,@GMPINC@,$GMPINC,;t t
13396 s,@LIBOBJS@,$LIBOBJS,;t t
13397 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13398 /@language_hooks@/r $language_hooks
13399 s,@language_hooks@,,;t t
13400 CEOF
13401
13402 _ACEOF
13403
13404   cat >>$CONFIG_STATUS <<\_ACEOF
13405   # Split the substitutions into bite-sized pieces for seds with
13406   # small command number limits, like on Digital OSF/1 and HP-UX.
13407   ac_max_sed_lines=48
13408   ac_sed_frag=1 # Number of current file.
13409   ac_beg=1 # First line for current file.
13410   ac_end=$ac_max_sed_lines # Line after last line for current file.
13411   ac_more_lines=:
13412   ac_sed_cmds=
13413   while $ac_more_lines; do
13414     if test $ac_beg -gt 1; then
13415       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13416     else
13417       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13418     fi
13419     if test ! -s $tmp/subs.frag; then
13420       ac_more_lines=false
13421     else
13422       # The purpose of the label and of the branching condition is to
13423       # speed up the sed processing (if there are no `@' at all, there
13424       # is no need to browse any of the substitutions).
13425       # These are the two extra sed commands mentioned above.
13426       (echo ':t
13427   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13428       if test -z "$ac_sed_cmds"; then
13429         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13430       else
13431         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13432       fi
13433       ac_sed_frag=`expr $ac_sed_frag + 1`
13434       ac_beg=$ac_end
13435       ac_end=`expr $ac_end + $ac_max_sed_lines`
13436     fi
13437   done
13438   if test -z "$ac_sed_cmds"; then
13439     ac_sed_cmds=cat
13440   fi
13441 fi # test -n "$CONFIG_FILES"
13442
13443 _ACEOF
13444 cat >>$CONFIG_STATUS <<\_ACEOF
13445 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13446   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13447   case $ac_file in
13448   - | *:- | *:-:* ) # input from stdin
13449         cat >$tmp/stdin
13450         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13451         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13452   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13453         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13454   * )   ac_file_in=$ac_file.in ;;
13455   esac
13456
13457   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13458   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13460          X"$ac_file" : 'X\(//\)[^/]' \| \
13461          X"$ac_file" : 'X\(//\)$' \| \
13462          X"$ac_file" : 'X\(/\)' \| \
13463          .     : '\(.\)' 2>/dev/null ||
13464 echo X"$ac_file" |
13465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13466           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13467           /^X\(\/\/\)$/{ s//\1/; q; }
13468           /^X\(\/\).*/{ s//\1/; q; }
13469           s/.*/./; q'`
13470   { if $as_mkdir_p; then
13471     mkdir -p "$ac_dir"
13472   else
13473     as_dir="$ac_dir"
13474     as_dirs=
13475     while test ! -d "$as_dir"; do
13476       as_dirs="$as_dir $as_dirs"
13477       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13479          X"$as_dir" : 'X\(//\)[^/]' \| \
13480          X"$as_dir" : 'X\(//\)$' \| \
13481          X"$as_dir" : 'X\(/\)' \| \
13482          .     : '\(.\)' 2>/dev/null ||
13483 echo X"$as_dir" |
13484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13486           /^X\(\/\/\)$/{ s//\1/; q; }
13487           /^X\(\/\).*/{ s//\1/; q; }
13488           s/.*/./; q'`
13489     done
13490     test ! -n "$as_dirs" || mkdir $as_dirs
13491   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13493    { (exit 1); exit 1; }; }; }
13494
13495   ac_builddir=.
13496
13497 if test "$ac_dir" != .; then
13498   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13499   # A "../" for each directory in $ac_dir_suffix.
13500   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13501 else
13502   ac_dir_suffix= ac_top_builddir=
13503 fi
13504
13505 case $srcdir in
13506   .)  # No --srcdir option.  We are building in place.
13507     ac_srcdir=.
13508     if test -z "$ac_top_builddir"; then
13509        ac_top_srcdir=.
13510     else
13511        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13512     fi ;;
13513   [\\/]* | ?:[\\/]* )  # Absolute path.
13514     ac_srcdir=$srcdir$ac_dir_suffix;
13515     ac_top_srcdir=$srcdir ;;
13516   *) # Relative path.
13517     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13518     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13519 esac
13520
13521 # Do not use `cd foo && pwd` to compute absolute paths, because
13522 # the directories may not exist.
13523 case `pwd` in
13524 .) ac_abs_builddir="$ac_dir";;
13525 *)
13526   case "$ac_dir" in
13527   .) ac_abs_builddir=`pwd`;;
13528   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13529   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13530   esac;;
13531 esac
13532 case $ac_abs_builddir in
13533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13534 *)
13535   case ${ac_top_builddir}. in
13536   .) ac_abs_top_builddir=$ac_abs_builddir;;
13537   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13538   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13539   esac;;
13540 esac
13541 case $ac_abs_builddir in
13542 .) ac_abs_srcdir=$ac_srcdir;;
13543 *)
13544   case $ac_srcdir in
13545   .) ac_abs_srcdir=$ac_abs_builddir;;
13546   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13547   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13548   esac;;
13549 esac
13550 case $ac_abs_builddir in
13551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13552 *)
13553   case $ac_top_srcdir in
13554   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13555   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13556   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13557   esac;;
13558 esac
13559
13560
13561
13562   if test x"$ac_file" != x-; then
13563     { echo "$as_me:$LINENO: creating $ac_file" >&5
13564 echo "$as_me: creating $ac_file" >&6;}
13565     rm -f "$ac_file"
13566   fi
13567   # Let's still pretend it is `configure' which instantiates (i.e., don't
13568   # use $as_me), people would be surprised to read:
13569   #    /* config.h.  Generated by config.status.  */
13570   if test x"$ac_file" = x-; then
13571     configure_input=
13572   else
13573     configure_input="$ac_file.  "
13574   fi
13575   configure_input=$configure_input"Generated from `echo $ac_file_in |
13576                                      sed 's,.*/,,'` by configure."
13577
13578   # First look for the input files in the build tree, otherwise in the
13579   # src tree.
13580   ac_file_inputs=`IFS=:
13581     for f in $ac_file_in; do
13582       case $f in
13583       -) echo $tmp/stdin ;;
13584       [\\/$]*)
13585          # Absolute (can't be DOS-style, as IFS=:)
13586          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13587 echo "$as_me: error: cannot find input file: $f" >&2;}
13588    { (exit 1); exit 1; }; }
13589          echo "$f";;
13590       *) # Relative
13591          if test -f "$f"; then
13592            # Build tree
13593            echo "$f"
13594          elif test -f "$srcdir/$f"; then
13595            # Source tree
13596            echo "$srcdir/$f"
13597          else
13598            # /dev/null tree
13599            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13600 echo "$as_me: error: cannot find input file: $f" >&2;}
13601    { (exit 1); exit 1; }; }
13602          fi;;
13603       esac
13604     done` || { (exit 1); exit 1; }
13605 _ACEOF
13606 cat >>$CONFIG_STATUS <<_ACEOF
13607   sed "$ac_vpsub
13608 $extrasub
13609 _ACEOF
13610 cat >>$CONFIG_STATUS <<\_ACEOF
13611 :t
13612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13613 s,@configure_input@,$configure_input,;t t
13614 s,@srcdir@,$ac_srcdir,;t t
13615 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13616 s,@top_srcdir@,$ac_top_srcdir,;t t
13617 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13618 s,@builddir@,$ac_builddir,;t t
13619 s,@abs_builddir@,$ac_abs_builddir,;t t
13620 s,@top_builddir@,$ac_top_builddir,;t t
13621 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13622 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13623   rm -f $tmp/stdin
13624   if test x"$ac_file" != x-; then
13625     mv $tmp/out $ac_file
13626   else
13627     cat $tmp/out
13628     rm -f $tmp/out
13629   fi
13630
13631 done
13632 _ACEOF
13633 cat >>$CONFIG_STATUS <<\_ACEOF
13634
13635 #
13636 # CONFIG_HEADER section.
13637 #
13638
13639 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13640 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13641 #
13642 # ac_d sets the value in "#define NAME VALUE" lines.
13643 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13644 ac_dB='[         ].*$,\1#\2'
13645 ac_dC=' '
13646 ac_dD=',;t'
13647 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13648 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13649 ac_uB='$,\1#\2define\3'
13650 ac_uC=' '
13651 ac_uD=',;t'
13652
13653 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13654   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13655   case $ac_file in
13656   - | *:- | *:-:* ) # input from stdin
13657         cat >$tmp/stdin
13658         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13659         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13660   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13661         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13662   * )   ac_file_in=$ac_file.in ;;
13663   esac
13664
13665   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13666 echo "$as_me: creating $ac_file" >&6;}
13667
13668   # First look for the input files in the build tree, otherwise in the
13669   # src tree.
13670   ac_file_inputs=`IFS=:
13671     for f in $ac_file_in; do
13672       case $f in
13673       -) echo $tmp/stdin ;;
13674       [\\/$]*)
13675          # Absolute (can't be DOS-style, as IFS=:)
13676          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13677 echo "$as_me: error: cannot find input file: $f" >&2;}
13678    { (exit 1); exit 1; }; }
13679          # Do quote $f, to prevent DOS paths from being IFS'd.
13680          echo "$f";;
13681       *) # Relative
13682          if test -f "$f"; then
13683            # Build tree
13684            echo "$f"
13685          elif test -f "$srcdir/$f"; then
13686            # Source tree
13687            echo "$srcdir/$f"
13688          else
13689            # /dev/null tree
13690            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13691 echo "$as_me: error: cannot find input file: $f" >&2;}
13692    { (exit 1); exit 1; }; }
13693          fi;;
13694       esac
13695     done` || { (exit 1); exit 1; }
13696   # Remove the trailing spaces.
13697   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13698
13699 _ACEOF
13700
13701 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13702 # `conftest.undefs', that substitutes the proper values into
13703 # config.h.in to produce config.h.  The first handles `#define'
13704 # templates, and the second `#undef' templates.
13705 # And first: Protect against being on the right side of a sed subst in
13706 # config.status.  Protect against being in an unquoted here document
13707 # in config.status.
13708 rm -f conftest.defines conftest.undefs
13709 # Using a here document instead of a string reduces the quoting nightmare.
13710 # Putting comments in sed scripts is not portable.
13711 #
13712 # `end' is used to avoid that the second main sed command (meant for
13713 # 0-ary CPP macros) applies to n-ary macro definitions.
13714 # See the Autoconf documentation for `clear'.
13715 cat >confdef2sed.sed <<\_ACEOF
13716 s/[\\&,]/\\&/g
13717 s,[\\$`],\\&,g
13718 t clear
13719 : clear
13720 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13721 t end
13722 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13723 : end
13724 _ACEOF
13725 # If some macros were called several times there might be several times
13726 # the same #defines, which is useless.  Nevertheless, we may not want to
13727 # sort them, since we want the *last* AC-DEFINE to be honored.
13728 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13729 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13730 rm -f confdef2sed.sed
13731
13732 # This sed command replaces #undef with comments.  This is necessary, for
13733 # example, in the case of _POSIX_SOURCE, which is predefined and required
13734 # on some systems where configure will not decide to define it.
13735 cat >>conftest.undefs <<\_ACEOF
13736 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13737 _ACEOF
13738
13739 # Break up conftest.defines because some shells have a limit on the size
13740 # of here documents, and old seds have small limits too (100 cmds).
13741 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13742 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13743 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13744 echo '  :' >>$CONFIG_STATUS
13745 rm -f conftest.tail
13746 while grep . conftest.defines >/dev/null
13747 do
13748   # Write a limited-size here document to $tmp/defines.sed.
13749   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13750   # Speed up: don't consider the non `#define' lines.
13751   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13752   # Work around the forget-to-reset-the-flag bug.
13753   echo 't clr' >>$CONFIG_STATUS
13754   echo ': clr' >>$CONFIG_STATUS
13755   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13756   echo 'CEOF
13757   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13758   rm -f $tmp/in
13759   mv $tmp/out $tmp/in
13760 ' >>$CONFIG_STATUS
13761   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13762   rm -f conftest.defines
13763   mv conftest.tail conftest.defines
13764 done
13765 rm -f conftest.defines
13766 echo '  fi # grep' >>$CONFIG_STATUS
13767 echo >>$CONFIG_STATUS
13768
13769 # Break up conftest.undefs because some shells have a limit on the size
13770 # of here documents, and old seds have small limits too (100 cmds).
13771 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13772 rm -f conftest.tail
13773 while grep . conftest.undefs >/dev/null
13774 do
13775   # Write a limited-size here document to $tmp/undefs.sed.
13776   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13777   # Speed up: don't consider the non `#undef'
13778   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13779   # Work around the forget-to-reset-the-flag bug.
13780   echo 't clr' >>$CONFIG_STATUS
13781   echo ': clr' >>$CONFIG_STATUS
13782   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13783   echo 'CEOF
13784   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13785   rm -f $tmp/in
13786   mv $tmp/out $tmp/in
13787 ' >>$CONFIG_STATUS
13788   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13789   rm -f conftest.undefs
13790   mv conftest.tail conftest.undefs
13791 done
13792 rm -f conftest.undefs
13793
13794 cat >>$CONFIG_STATUS <<\_ACEOF
13795   # Let's still pretend it is `configure' which instantiates (i.e., don't
13796   # use $as_me), people would be surprised to read:
13797   #    /* config.h.  Generated by config.status.  */
13798   if test x"$ac_file" = x-; then
13799     echo "/* Generated by configure.  */" >$tmp/config.h
13800   else
13801     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13802   fi
13803   cat $tmp/in >>$tmp/config.h
13804   rm -f $tmp/in
13805   if test x"$ac_file" != x-; then
13806     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13807       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13808 echo "$as_me: $ac_file is unchanged" >&6;}
13809     else
13810       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13812          X"$ac_file" : 'X\(//\)[^/]' \| \
13813          X"$ac_file" : 'X\(//\)$' \| \
13814          X"$ac_file" : 'X\(/\)' \| \
13815          .     : '\(.\)' 2>/dev/null ||
13816 echo X"$ac_file" |
13817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13818           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13819           /^X\(\/\/\)$/{ s//\1/; q; }
13820           /^X\(\/\).*/{ s//\1/; q; }
13821           s/.*/./; q'`
13822       { if $as_mkdir_p; then
13823     mkdir -p "$ac_dir"
13824   else
13825     as_dir="$ac_dir"
13826     as_dirs=
13827     while test ! -d "$as_dir"; do
13828       as_dirs="$as_dir $as_dirs"
13829       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831          X"$as_dir" : 'X\(//\)[^/]' \| \
13832          X"$as_dir" : 'X\(//\)$' \| \
13833          X"$as_dir" : 'X\(/\)' \| \
13834          .     : '\(.\)' 2>/dev/null ||
13835 echo X"$as_dir" |
13836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13837           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13838           /^X\(\/\/\)$/{ s//\1/; q; }
13839           /^X\(\/\).*/{ s//\1/; q; }
13840           s/.*/./; q'`
13841     done
13842     test ! -n "$as_dirs" || mkdir $as_dirs
13843   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13845    { (exit 1); exit 1; }; }; }
13846
13847       rm -f $ac_file
13848       mv $tmp/config.h $ac_file
13849     fi
13850   else
13851     cat $tmp/config.h
13852     rm -f $tmp/config.h
13853   fi
13854 done
13855 _ACEOF
13856 cat >>$CONFIG_STATUS <<\_ACEOF
13857
13858 #
13859 # CONFIG_COMMANDS section.
13860 #
13861 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13862   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13863   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13864   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13865 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13866          X"$ac_dest" : 'X\(//\)[^/]' \| \
13867          X"$ac_dest" : 'X\(//\)$' \| \
13868          X"$ac_dest" : 'X\(/\)' \| \
13869          .     : '\(.\)' 2>/dev/null ||
13870 echo X"$ac_dest" |
13871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13873           /^X\(\/\/\)$/{ s//\1/; q; }
13874           /^X\(\/\).*/{ s//\1/; q; }
13875           s/.*/./; q'`
13876   { if $as_mkdir_p; then
13877     mkdir -p "$ac_dir"
13878   else
13879     as_dir="$ac_dir"
13880     as_dirs=
13881     while test ! -d "$as_dir"; do
13882       as_dirs="$as_dir $as_dirs"
13883       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13885          X"$as_dir" : 'X\(//\)[^/]' \| \
13886          X"$as_dir" : 'X\(//\)$' \| \
13887          X"$as_dir" : 'X\(/\)' \| \
13888          .     : '\(.\)' 2>/dev/null ||
13889 echo X"$as_dir" |
13890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13891           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13892           /^X\(\/\/\)$/{ s//\1/; q; }
13893           /^X\(\/\).*/{ s//\1/; q; }
13894           s/.*/./; q'`
13895     done
13896     test ! -n "$as_dirs" || mkdir $as_dirs
13897   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13898 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13899    { (exit 1); exit 1; }; }; }
13900
13901   ac_builddir=.
13902
13903 if test "$ac_dir" != .; then
13904   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13905   # A "../" for each directory in $ac_dir_suffix.
13906   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13907 else
13908   ac_dir_suffix= ac_top_builddir=
13909 fi
13910
13911 case $srcdir in
13912   .)  # No --srcdir option.  We are building in place.
13913     ac_srcdir=.
13914     if test -z "$ac_top_builddir"; then
13915        ac_top_srcdir=.
13916     else
13917        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13918     fi ;;
13919   [\\/]* | ?:[\\/]* )  # Absolute path.
13920     ac_srcdir=$srcdir$ac_dir_suffix;
13921     ac_top_srcdir=$srcdir ;;
13922   *) # Relative path.
13923     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13924     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13925 esac
13926
13927 # Do not use `cd foo && pwd` to compute absolute paths, because
13928 # the directories may not exist.
13929 case `pwd` in
13930 .) ac_abs_builddir="$ac_dir";;
13931 *)
13932   case "$ac_dir" in
13933   .) ac_abs_builddir=`pwd`;;
13934   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13935   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13936   esac;;
13937 esac
13938 case $ac_abs_builddir in
13939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13940 *)
13941   case ${ac_top_builddir}. in
13942   .) ac_abs_top_builddir=$ac_abs_builddir;;
13943   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13944   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13945   esac;;
13946 esac
13947 case $ac_abs_builddir in
13948 .) ac_abs_srcdir=$ac_srcdir;;
13949 *)
13950   case $ac_srcdir in
13951   .) ac_abs_srcdir=$ac_abs_builddir;;
13952   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13953   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13954   esac;;
13955 esac
13956 case $ac_abs_builddir in
13957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13958 *)
13959   case $ac_top_srcdir in
13960   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13961   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13962   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13963   esac;;
13964 esac
13965
13966
13967   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13968 echo "$as_me: executing $ac_dest commands" >&6;}
13969   case $ac_dest in
13970     default )
13971 case ${CONFIG_HEADERS} in
13972   *auto-host.h:config.in*)
13973   echo > cstamp-h ;;
13974 esac
13975 # Make sure all the subdirs exist.
13976 for d in $subdirs
13977 do
13978     test -d $d || mkdir $d
13979 done
13980 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13981 # bootstrapping and the installation procedure can still use
13982 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13983 # FLAGS_TO_PASS has been modified to solve the problem there.
13984 # This is virtually a duplicate of what happens in configure.lang; we do
13985 # an extra check to make sure this only happens if ln -s can be used.
13986 if test "$symbolic_link" = "ln -s"; then
13987  for d in ${subdirs} ; do
13988         STARTDIR=`${PWDCMD-pwd}`
13989         cd $d
13990         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13991         do
13992                 rm -f $t
13993                 $symbolic_link ../$t $t 2>/dev/null
13994         done
13995         cd $STARTDIR
13996  done
13997 else true ; fi
13998  ;;
13999   esac
14000 done
14001 _ACEOF
14002
14003 cat >>$CONFIG_STATUS <<\_ACEOF
14004
14005 { (exit 0); exit 0; }
14006 _ACEOF
14007 chmod +x $CONFIG_STATUS
14008 ac_clean_files=$ac_clean_files_save
14009
14010
14011 # configure is writing to config.log, and then calls config.status.
14012 # config.status does its own redirection, appending to config.log.
14013 # Unfortunately, on DOS this fails, as config.log is still kept open
14014 # by configure, so config.status won't be able to write to it; its
14015 # output is simply discarded.  So we exec the FD to /dev/null,
14016 # effectively closing config.log, so it can be properly (re)opened and
14017 # appended to by config.status.  When coming back to configure, we
14018 # need to make the FD available again.
14019 if test "$no_create" != yes; then
14020   ac_cs_success=:
14021   ac_config_status_args=
14022   test "$silent" = yes &&
14023     ac_config_status_args="$ac_config_status_args --quiet"
14024   exec 5>/dev/null
14025   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14026   exec 5>>config.log
14027   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14028   # would make configure fail if this is the last instruction.
14029   $ac_cs_success || { (exit 1); exit 1; }
14030 fi
14031