OSDN Git Service

2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
871                           default is misc,tree,gc,rtlflag
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler\'s code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-threads        enable thread usage for target GCC
883   --enable-threads=LIB    use LIB thread package for target GCC
884   --enable-objc-gc        enable the use of Boehm's garbage collector with
885                           the GNU Objective-C runtime
886   --disable-shared        don't provide a shared libgcc
887   --enable-intermodule    build the compiler in one step
888   --enable-languages=LIST specify which front-ends to build
889   --enable-initfini-array       use .init_array/.fini_array sections
890   --enable-sjlj-exceptions
891                           arrange to use setjmp/longjmp exception handling
892   --enable-libunwind-exceptions  force use libunwind for exceptions
893   --disable-win32-registry
894                           disable lookup of installation paths in the
895                           Registry on Windows hosts
896   --enable-win32-registry enable registry lookup (default)
897   --enable-win32-registry=KEY
898                           use KEY instead of GCC version as the last portion
899                           of the registry key
900   --enable-maintainer-mode
901                           enable make rules and dependencies not useful
902                           (and sometimes confusing) to the casual installer
903   --enable-version-specific-runtime-libs
904                           specify that runtime libraries should be
905                           installed in a compiler-specific directory
906
907 Optional Packages:
908   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910   --with-local-prefix=DIR specifies directory to put local include
911   --with-gxx-include-dir=DIR
912                           specifies directory to put g++ header files
913   --with-cpp-install-dir=DIR
914                           install the user visible C preprocessor in DIR
915                           (relative to PREFIX) as well as PREFIX/bin
916   --with-gnu-ld           arrange to work with GNU ld.
917   --with-ld               arrange to use the specified ld (full pathname)
918   --with-demangler-in-ld  try to use demangler in GNU ld.
919   --with-gnu-as           arrange to work with GNU as
920   --with-as               arrange to use the specified as (full pathname)
921   --with-stabs            arrange to use stabs instead of host debug format
922   --with-dwarf2           force the default debug format to be DWARF 2
923   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
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-libbanshee       enable libbanshee
929   --with-slibdir=DIR      shared libraries in DIR LIBDIR
930
931 Some influential environment variables:
932   CC          C compiler command
933   CFLAGS      C compiler flags
934   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
935               nonstandard directory <lib dir>
936   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
937               headers in a nonstandard directory <include dir>
938   CPP         C preprocessor
939   GMPLIBS     How to link GMP
940   GMPINC      How to find GMP include files
941
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
944
945 _ACEOF
946 fi
947
948 if test "$ac_init_help" = "recursive"; then
949   # If there are subdirs, report their specific --help.
950   ac_popdir=`pwd`
951   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952     test -d $ac_dir || continue
953     ac_builddir=.
954
955 if test "$ac_dir" != .; then
956   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957   # A "../" for each directory in $ac_dir_suffix.
958   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 else
960   ac_dir_suffix= ac_top_builddir=
961 fi
962
963 case $srcdir in
964   .)  # No --srcdir option.  We are building in place.
965     ac_srcdir=.
966     if test -z "$ac_top_builddir"; then
967        ac_top_srcdir=.
968     else
969        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970     fi ;;
971   [\\/]* | ?:[\\/]* )  # Absolute path.
972     ac_srcdir=$srcdir$ac_dir_suffix;
973     ac_top_srcdir=$srcdir ;;
974   *) # Relative path.
975     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976     ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 esac
978
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
981 case `pwd` in
982 .) ac_abs_builddir="$ac_dir";;
983 *)
984   case "$ac_dir" in
985   .) ac_abs_builddir=`pwd`;;
986   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987   *) ac_abs_builddir=`pwd`/"$ac_dir";;
988   esac;;
989 esac
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 *)
993   case ${ac_top_builddir}. in
994   .) ac_abs_top_builddir=$ac_abs_builddir;;
995   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997   esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1001 *)
1002   case $ac_srcdir in
1003   .) ac_abs_srcdir=$ac_abs_builddir;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 *)
1011   case $ac_top_srcdir in
1012   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015   esac;;
1016 esac
1017
1018     cd $ac_dir
1019     # Check for guested configure; otherwise get Cygnus style configure.
1020     if test -f $ac_srcdir/configure.gnu; then
1021       echo
1022       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1023     elif test -f $ac_srcdir/configure; then
1024       echo
1025       $SHELL $ac_srcdir/configure  --help=recursive
1026     elif test -f $ac_srcdir/configure.ac ||
1027            test -f $ac_srcdir/configure.in; then
1028       echo
1029       $ac_configure --help
1030     else
1031       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032     fi
1033     cd $ac_popdir
1034   done
1035 fi
1036
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1039   cat <<\_ACEOF
1040
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1044 _ACEOF
1045   exit 0
1046 fi
1047 exec 5>config.log
1048 cat >&5 <<_ACEOF
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1051
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59.  Invocation command line was
1054
1055   $ $0 $@
1056
1057 _ACEOF
1058 {
1059 cat <<_ASUNAME
1060 ## --------- ##
1061 ## Platform. ##
1062 ## --------- ##
1063
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1072
1073 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1074 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1077 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1078 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1079 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1080
1081 _ASUNAME
1082
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084 for as_dir in $PATH
1085 do
1086   IFS=$as_save_IFS
1087   test -z "$as_dir" && as_dir=.
1088   echo "PATH: $as_dir"
1089 done
1090
1091 } >&5
1092
1093 cat >&5 <<_ACEOF
1094
1095
1096 ## ----------- ##
1097 ## Core tests. ##
1098 ## ----------- ##
1099
1100 _ACEOF
1101
1102
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1108 ac_configure_args=
1109 ac_configure_args0=
1110 ac_configure_args1=
1111 ac_sep=
1112 ac_must_keep_next=false
1113 for ac_pass in 1 2
1114 do
1115   for ac_arg
1116   do
1117     case $ac_arg in
1118     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120     | -silent | --silent | --silen | --sile | --sil)
1121       continue ;;
1122     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124     esac
1125     case $ac_pass in
1126     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127     2)
1128       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129       if test $ac_must_keep_next = true; then
1130         ac_must_keep_next=false # Got value, back to normal.
1131       else
1132         case $ac_arg in
1133           *=* | --config-cache | -C | -disable-* | --disable-* \
1134           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136           | -with-* | --with-* | -without-* | --without-* | --x)
1137             case "$ac_configure_args0 " in
1138               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139             esac
1140             ;;
1141           -* ) ac_must_keep_next=true ;;
1142         esac
1143       fi
1144       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145       # Get rid of the leading space.
1146       ac_sep=" "
1147       ;;
1148     esac
1149   done
1150 done
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log.  We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160   # Save into config.log some information that might help in debugging.
1161   {
1162     echo
1163
1164     cat <<\_ASBOX
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1168 _ASBOX
1169     echo
1170     # The following way of writing the cache mishandles newlines in values,
1171 {
1172   (set) 2>&1 |
1173     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174     *ac_space=\ *)
1175       sed -n \
1176         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1178       ;;
1179     *)
1180       sed -n \
1181         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1182       ;;
1183     esac;
1184 }
1185     echo
1186
1187     cat <<\_ASBOX
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1191 _ASBOX
1192     echo
1193     for ac_var in $ac_subst_vars
1194     do
1195       eval ac_val=$`echo $ac_var`
1196       echo "$ac_var='"'"'$ac_val'"'"'"
1197     done | sort
1198     echo
1199
1200     if test -n "$ac_subst_files"; then
1201       cat <<\_ASBOX
1202 ## ------------- ##
1203 ## Output files. ##
1204 ## ------------- ##
1205 _ASBOX
1206       echo
1207       for ac_var in $ac_subst_files
1208       do
1209         eval ac_val=$`echo $ac_var`
1210         echo "$ac_var='"'"'$ac_val'"'"'"
1211       done | sort
1212       echo
1213     fi
1214
1215     if test -s confdefs.h; then
1216       cat <<\_ASBOX
1217 ## ----------- ##
1218 ## confdefs.h. ##
1219 ## ----------- ##
1220 _ASBOX
1221       echo
1222       sed "/^$/d" confdefs.h | sort
1223       echo
1224     fi
1225     test "$ac_signal" != 0 &&
1226       echo "$as_me: caught signal $ac_signal"
1227     echo "$as_me: exit $exit_status"
1228   } >&5
1229   rm -f core *.core &&
1230   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231     exit $exit_status
1232      ' 0
1233 for ac_signal in 1 2 13 15; do
1234   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235 done
1236 ac_signal=0
1237
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241 echo >confdefs.h
1242
1243 # Predefined preprocessor variables.
1244
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1247 _ACEOF
1248
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1262 _ACEOF
1263
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267 _ACEOF
1268
1269
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273   if test "x$prefix" != xNONE; then
1274     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275   else
1276     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277   fi
1278 fi
1279 for ac_site_file in $CONFIG_SITE; do
1280   if test -r "$ac_site_file"; then
1281     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283     sed 's/^/| /' "$ac_site_file" >&5
1284     . "$ac_site_file"
1285   fi
1286 done
1287
1288 if test -r "$cache_file"; then
1289   # Some versions of bash will fail to source /dev/null (special
1290   # files actually), so we avoid doing that.
1291   if test -f "$cache_file"; then
1292     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1294     case $cache_file in
1295       [\\/]* | ?:[\\/]* ) . $cache_file;;
1296       *)                      . ./$cache_file;;
1297     esac
1298   fi
1299 else
1300   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1302   >$cache_file
1303 fi
1304
1305 # Check that the precious variables saved in the cache have kept the same
1306 # value.
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311   eval ac_new_set=\$ac_env_${ac_var}_set
1312   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313   eval ac_new_val="\$ac_env_${ac_var}_value"
1314   case $ac_old_set,$ac_new_set in
1315     set,)
1316       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318       ac_cache_corrupted=: ;;
1319     ,set)
1320       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322       ac_cache_corrupted=: ;;
1323     ,);;
1324     *)
1325       if test "x$ac_old_val" != "x$ac_new_val"; then
1326         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1329 echo "$as_me:   former value:  $ac_old_val" >&2;}
1330         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1331 echo "$as_me:   current value: $ac_new_val" >&2;}
1332         ac_cache_corrupted=:
1333       fi;;
1334   esac
1335   # Pass precious variables to config.status.
1336   if test "$ac_new_set" = set; then
1337     case $ac_new_val in
1338     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340     *) ac_arg=$ac_var=$ac_new_val ;;
1341     esac
1342     case " $ac_configure_args " in
1343       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1344       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345     esac
1346   fi
1347 done
1348 if $ac_cache_corrupted; then
1349   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355
1356 ac_ext=c
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1382
1383
1384 # Determine the host, build, and target systems
1385 ac_aux_dir=
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387   if test -f $ac_dir/install-sh; then
1388     ac_aux_dir=$ac_dir
1389     ac_install_sh="$ac_aux_dir/install-sh -c"
1390     break
1391   elif test -f $ac_dir/install.sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install.sh -c"
1394     break
1395   elif test -f $ac_dir/shtool; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/shtool install -c"
1398     break
1399   fi
1400 done
1401 if test -z "$ac_aux_dir"; then
1402   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404    { (exit 1); exit 1; }; }
1405 fi
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414    { (exit 1); exit 1; }; }
1415
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423   ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427    { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431    { (exit 1); exit 1; }; }
1432
1433 fi
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1436 build=$ac_cv_build
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440
1441
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449   ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453    { (exit 1); exit 1; }; }
1454
1455 fi
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1458 host=$ac_cv_host
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462
1463
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471   ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475    { (exit 1); exit 1; }; }
1476
1477 fi
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484
1485
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489   test "$program_prefix$program_suffix$program_transform_name" = \
1490     NONENONEs,x,x, &&
1491   program_prefix=${target_alias}-
1492
1493 # Determine the noncanonical target name, for directory use.
1494  case ${build_alias} in
1495   "") build_noncanonical=${build} ;;
1496   *) build_noncanonical=${build_alias} ;;
1497 esac
1498
1499  case ${host_alias} in
1500   "") host_noncanonical=${build_noncanonical} ;;
1501   *) host_noncanonical=${host_alias} ;;
1502 esac
1503
1504  case ${target_alias} in
1505   "") target_noncanonical=${host_noncanonical} ;;
1506   *) target_noncanonical=${target_alias} ;;
1507 esac
1508
1509
1510 # Determine the target- and build-specific subdirectories
1511   # Prefix 'build-' so this never conflicts with target_subdir.
1512 build_subdir="build-${build_noncanonical}"
1513 # Not really a subdirectory, but here for completeness.
1514 host_subdir=.
1515 # No prefix.
1516 target_subdir=${target_noncanonical}
1517
1518
1519 # Set program_transform_name
1520 test "$program_prefix" != NONE &&
1521   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE &&
1524   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $.  echo might interpret backslashes.
1526 # By default was `s,x,x', remove it if useless.
1527 cat <<\_ACEOF >conftest.sed
1528 s/[\\$]/&&/g;s/;s,x,x,$//
1529 _ACEOF
1530 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1531 rm conftest.sed
1532
1533
1534 # Check for bogus environment variables.
1535 # Test if LIBRARY_PATH contains the notation for the current directory
1536 # since this would lead to problems installing/building glibc.
1537 # LIBRARY_PATH contains the current directory if one of the following
1538 # is true:
1539 # - one of the terminals (":" and ";") is the first or last sign
1540 # - two terminals occur directly after each other
1541 # - the path contains an element with a dot in it
1542 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1543 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1544 case ${LIBRARY_PATH} in
1545   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1546     library_path_setting="contains current directory"
1547     ;;
1548   *)
1549     library_path_setting="ok"
1550     ;;
1551 esac
1552 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1553 echo "${ECHO_T}$library_path_setting" >&6
1554 if test "$library_path_setting" != "ok"; then
1555 { { echo "$as_me:$LINENO: error:
1556 *** LIBRARY_PATH shouldn't contain the current directory when
1557 *** building gcc. Please change the environment variable
1558 *** and run configure again." >&5
1559 echo "$as_me: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&2;}
1563    { (exit 1); exit 1; }; }
1564 fi
1565
1566 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1567 # since this would lead to problems installing/building glibc.
1568 # GCC_EXEC_PREFIX contains the current directory if one of the following
1569 # is true:
1570 # - one of the terminals (":" and ";") is the first or last sign
1571 # - two terminals occur directly after each other
1572 # - the path contains an element with a dot in it
1573 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1574 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1575 case ${GCC_EXEC_PREFIX} in
1576   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1577     gcc_exec_prefix_setting="contains current directory"
1578     ;;
1579   *)
1580     gcc_exec_prefix_setting="ok"
1581     ;;
1582 esac
1583 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1584 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1585 if test "$gcc_exec_prefix_setting" != "ok"; then
1586 { { echo "$as_me:$LINENO: error:
1587 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1588 *** building gcc. Please change the environment variable
1589 *** and run configure again." >&5
1590 echo "$as_me: 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." >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 # -----------
1598 # Directories
1599 # -----------
1600
1601 # Specify the local prefix
1602 local_prefix=
1603
1604 # Check whether --with-local-prefix or --without-local-prefix was given.
1605 if test "${with_local_prefix+set}" = set; then
1606   withval="$with_local_prefix"
1607   case "${withval}" in
1608 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1609 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1610    { (exit 1); exit 1; }; } ;;
1611 no)     ;;
1612 *)      local_prefix=$with_local_prefix ;;
1613 esac
1614 fi;
1615
1616 # Default local prefix if it is empty
1617 if test x$local_prefix = x; then
1618         local_prefix=/usr/local
1619 fi
1620
1621 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1622 # passed in by the toplevel make and thus we'd get different behavior
1623 # depending on where we built the sources.
1624 gcc_gxx_include_dir=
1625 # Specify the g++ header file directory
1626
1627 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1628 if test "${with_gxx_include_dir+set}" = set; then
1629   withval="$with_gxx_include_dir"
1630   case "${withval}" in
1631 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1632 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1633    { (exit 1); exit 1; }; } ;;
1634 no)     ;;
1635 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1636 esac
1637 fi;
1638
1639 if test x${gcc_gxx_include_dir} = x; then
1640   if test x${enable_version_specific_runtime_libs} = xyes; then
1641     gcc_gxx_include_dir='${libsubdir}/include/c++'
1642   else
1643     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1644     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1645   fi
1646 fi
1647
1648
1649 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1650 if test "${with_cpp_install_dir+set}" = set; then
1651   withval="$with_cpp_install_dir"
1652   if test x$withval = xyes; then
1653   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1654 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1655    { (exit 1); exit 1; }; }
1656 elif test x$withval != xno; then
1657   cpp_install_dir=$withval
1658 fi
1659 fi;
1660
1661 # We would like to our source tree to be readonly.  However when releases or
1662 # pre-releases are generated, the flex/bison generated files as well as the
1663 # various formats of manuals need to be included along with the rest of the
1664 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1665 # just that.
1666
1667 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1668 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1669     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1670 if test "${enable_generated_files_in_srcdir+set}" = set; then
1671   enableval="$enable_generated_files_in_srcdir"
1672   generated_files_in_srcdir=$enableval
1673 else
1674   generated_files_in_srcdir=no
1675 fi;
1676
1677 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1678 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1679
1680 if test "$generated_files_in_srcdir" = "yes"; then
1681   GENINSRC=''
1682 else
1683   GENINSRC='#'
1684 fi
1685
1686
1687 # -------------------
1688 # Find default linker
1689 # -------------------
1690
1691 # With GNU ld
1692
1693 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1694 if test "${with_gnu_ld+set}" = set; then
1695   withval="$with_gnu_ld"
1696   gnu_ld_flag="$with_gnu_ld"
1697 else
1698   gnu_ld_flag=no
1699 fi;
1700
1701 # With pre-defined ld
1702
1703 # Check whether --with-ld or --without-ld was given.
1704 if test "${with_ld+set}" = set; then
1705   withval="$with_ld"
1706   DEFAULT_LINKER="$with_ld"
1707 fi;
1708 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1709   if test ! -x "$DEFAULT_LINKER"; then
1710     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1711 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1712    { (exit 1); exit 1; }; }
1713   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1714     gnu_ld_flag=yes
1715   fi
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1719 _ACEOF
1720
1721 fi
1722
1723 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1724 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1726   if test x"$gnu_ld_flag" = x"no"; then
1727     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1729   else
1730     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1732   fi
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 # With demangler in GNU ld
1739
1740 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1741 if test "${with_demangler_in_ld+set}" = set; then
1742   withval="$with_demangler_in_ld"
1743   demangler_in_ld="$with_demangler_in_ld"
1744 else
1745   demangler_in_ld=no
1746 fi;
1747
1748 # ----------------------
1749 # Find default assembler
1750 # ----------------------
1751
1752 # With GNU as
1753
1754 # Check whether --with-gnu-as or --without-gnu-as was given.
1755 if test "${with_gnu_as+set}" = set; then
1756   withval="$with_gnu_as"
1757   gas_flag="$with_gnu_as"
1758 else
1759   gas_flag=no
1760 fi;
1761
1762
1763 # Check whether --with-as or --without-as was given.
1764 if test "${with_as+set}" = set; then
1765   withval="$with_as"
1766   DEFAULT_ASSEMBLER="$with_as"
1767 fi;
1768 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1769   if test ! -x "$DEFAULT_ASSEMBLER"; then
1770     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1771 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1772    { (exit 1); exit 1; }; }
1773   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1774     gas_flag=yes
1775   fi
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1779 _ACEOF
1780
1781 fi
1782
1783 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1784 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1785 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1786   if test x"$gas_flag" = x"no"; then
1787     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1789   else
1790     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1791 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1792   fi
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798 # ---------------
1799 # Find C compiler
1800 # ---------------
1801
1802 # If a non-executable a.out is present (e.g. created by GNU as above even if
1803 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1804 # file, even when creating an executable, so an execution test fails.
1805 # Remove possible default executable files to avoid this.
1806 #
1807 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1808 # Autoconf includes it.
1809 rm -f a.out a.exe b.out
1810
1811 # Find the native compiler
1812 ac_ext=c
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823   echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825   if test -n "$CC"; then
1826   ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831   IFS=$as_save_IFS
1832   test -z "$as_dir" && as_dir=.
1833   for ac_exec_ext in '' $ac_executable_extensions; do
1834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837     break 2
1838   fi
1839 done
1840 done
1841
1842 fi
1843 fi
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846   echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1848 else
1849   echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1851 fi
1852
1853 fi
1854 if test -z "$ac_cv_prog_CC"; then
1855   ac_ct_CC=$CC
1856   # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861   echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863   if test -n "$ac_ct_CC"; then
1864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1868 do
1869   IFS=$as_save_IFS
1870   test -z "$as_dir" && as_dir=.
1871   for ac_exec_ext in '' $ac_executable_extensions; do
1872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873     ac_cv_prog_ac_ct_CC="gcc"
1874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875     break 2
1876   fi
1877 done
1878 done
1879
1880 fi
1881 fi
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1886 else
1887   echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1889 fi
1890
1891   CC=$ac_ct_CC
1892 else
1893   CC="$ac_cv_prog_CC"
1894 fi
1895
1896 if test -z "$CC"; then
1897   if test -n "$ac_tool_prefix"; then
1898   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$CC"; then
1906   ac_cv_prog_CC="$CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_CC="${ac_tool_prefix}cc"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 CC=$ac_cv_prog_CC
1925 if test -n "$CC"; then
1926   echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933 fi
1934 if test -z "$ac_cv_prog_CC"; then
1935   ac_ct_CC=$CC
1936   # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_CC"; then
1944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_CC="cc"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971   CC=$ac_ct_CC
1972 else
1973   CC="$ac_cv_prog_CC"
1974 fi
1975
1976 fi
1977 if test -z "$CC"; then
1978   # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988   ac_prog_rejected=no
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997        ac_prog_rejected=yes
1998        continue
1999      fi
2000     ac_cv_prog_CC="cc"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003   fi
2004 done
2005 done
2006
2007 if test $ac_prog_rejected = yes; then
2008   # We found a bogon in the path, so make sure we never use it.
2009   set dummy $ac_cv_prog_CC
2010   shift
2011   if test $# != 0; then
2012     # We chose a different compiler from the bogus one.
2013     # However, it has the same basename, so the bogon will be chosen
2014     # first if we set CC to just the basename; use the full file name.
2015     shift
2016     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2017   fi
2018 fi
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023   echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2025 else
2026   echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 fi
2031 if test -z "$CC"; then
2032   if test -n "$ac_tool_prefix"; then
2033   for ac_prog in cl
2034   do
2035     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058
2059 fi
2060 fi
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063   echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2065 else
2066   echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2068 fi
2069
2070     test -n "$CC" && break
2071   done
2072 fi
2073 if test -z "$CC"; then
2074   ac_ct_CC=$CC
2075   for ac_prog in cl
2076 do
2077   # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   if test -n "$ac_ct_CC"; then
2085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092   for ac_exec_ext in '' $ac_executable_extensions; do
2093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094     ac_cv_prog_ac_ct_CC="$ac_prog"
2095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096     break 2
2097   fi
2098 done
2099 done
2100
2101 fi
2102 fi
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2107 else
2108   echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2110 fi
2111
2112   test -n "$ac_ct_CC" && break
2113 done
2114
2115   CC=$ac_ct_CC
2116 fi
2117
2118 fi
2119
2120
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125    { (exit 1); exit 1; }; }
2126
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129      "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132   (eval $ac_compiler --version </dev/null >&5) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137   (eval $ac_compiler -v </dev/null >&5) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142   (eval $ac_compiler -V </dev/null >&5) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }
2146
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153
2154 int
2155 main ()
2156 {
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2166 # of exeext.
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171   (eval $ac_link_default) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   # Find the output, starting from the most likely.  This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2177 # resort.
2178
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2181 ac_cv_exeext=
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2184 do
2185   test -f "$ac_file" || continue
2186   case $ac_file in
2187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2188         ;;
2189     conftest.$ac_ext )
2190         # This is the source file.
2191         ;;
2192     [ab].out )
2193         # We found the default executable, but exeext='' is most
2194         # certainly right.
2195         break;;
2196     *.* )
2197         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198         # FIXME: I believe we export ac_cv_exeext for Libtool,
2199         # but it would be cool to find out if it's true.  Does anybody
2200         # maintain Libtool? --akim.
2201         export ac_cv_exeext
2202         break;;
2203     * )
2204         break;;
2205   esac
2206 done
2207 else
2208   echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215    { (exit 77); exit 77; }; }
2216 fi
2217
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2221
2222 # Check the compiler produces executables we can run.  If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229   if { ac_try='./$ac_file'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235     cross_compiling=no
2236   else
2237     if test "$cross_compiling" = maybe; then
2238         cross_compiling=yes
2239     else
2240         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246    { (exit 1); exit 1; }; }
2247     fi
2248   fi
2249 fi
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2252
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run.  If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2261
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265   (eval $ac_link) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 # `rm'.
2273 for ac_file in conftest.exe conftest conftest.*; do
2274   test -f "$ac_file" || continue
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278           export ac_cv_exeext
2279           break;;
2280     * ) break;;
2281   esac
2282 done
2283 else
2284   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289 fi
2290
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2294
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2297 ac_exeext=$EXEEXT
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309
2310 int
2311 main ()
2312 {
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320   (eval $ac_compile) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; then
2324   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328        break;;
2329   esac
2330 done
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 fi
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363 #ifndef __GNUC__
2364        choke me
2365 #endif
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373   (eval $ac_compile) 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag"
2381                          || test ! -s conftest.err'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; }; then
2393   ac_compiler_gnu=yes
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 ac_compiler_gnu=no
2399 fi
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2402
2403 fi
2404 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2405 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2406 GCC=`test $ac_compiler_gnu = yes && echo yes`
2407 ac_test_CFLAGS=${CFLAGS+set}
2408 ac_save_CFLAGS=$CFLAGS
2409 CFLAGS="-g"
2410 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2411 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2412 if test "${ac_cv_prog_cc_g+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h.  */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h.  */
2421
2422 int
2423 main ()
2424 {
2425
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432   (eval $ac_compile) 2>conftest.er1
2433   ac_status=$?
2434   grep -v '^ *+' conftest.er1 >conftest.err
2435   rm -f conftest.er1
2436   cat conftest.err >&5
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); } &&
2439          { ac_try='test -z "$ac_c_werror_flag"
2440                          || test ! -s conftest.err'
2441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442   (eval $ac_try) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; } &&
2446          { ac_try='test -s conftest.$ac_objext'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452   ac_cv_prog_cc_g=yes
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 ac_cv_prog_cc_g=no
2458 fi
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 fi
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2463 if test "$ac_test_CFLAGS" = set; then
2464   CFLAGS=$ac_save_CFLAGS
2465 elif test $ac_cv_prog_cc_g = yes; then
2466   if test "$GCC" = yes; then
2467     CFLAGS="-g -O2"
2468   else
2469     CFLAGS="-g"
2470   fi
2471 else
2472   if test "$GCC" = yes; then
2473     CFLAGS="-O2"
2474   else
2475     CFLAGS=
2476   fi
2477 fi
2478 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2479 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2480 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   ac_cv_prog_cc_stdc=no
2484 ac_save_CC=$CC
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491 #include <stdarg.h>
2492 #include <stdio.h>
2493 #include <sys/types.h>
2494 #include <sys/stat.h>
2495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2496 struct buf { int x; };
2497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2498 static char *e (p, i)
2499      char **p;
2500      int i;
2501 {
2502   return p[i];
2503 }
2504 static char *f (char * (*g) (char **, int), char **p, ...)
2505 {
2506   char *s;
2507   va_list v;
2508   va_start (v,p);
2509   s = g (p, va_arg (v,int));
2510   va_end (v);
2511   return s;
2512 }
2513
2514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2515    function prototypes and stuff, but not '\xHH' hex character constants.
2516    These don't provoke an error unfortunately, instead are silently treated
2517    as 'x'.  The following induces an error, until -std1 is added to get
2518    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2519    array size at least.  It's necessary to write '\x00'==0 to get something
2520    that's true only with -std1.  */
2521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2522
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2527 int argc;
2528 char **argv;
2529 int
2530 main ()
2531 {
2532 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 # Don't try gcc -ansi; that turns off useful extensions and
2538 # breaks some systems' header files.
2539 # AIX                   -qlanglvl=ansi
2540 # Ultrix and OSF/1      -std1
2541 # HP-UX 10.20 and later -Ae
2542 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2543 # SVR4                  -Xc -D__EXTENSIONS__
2544 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2545 do
2546   CC="$ac_save_CC $ac_arg"
2547   rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>conftest.er1
2550   ac_status=$?
2551   grep -v '^ *+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -z "$ac_c_werror_flag"
2557                          || test ! -s conftest.err'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; } &&
2563          { ac_try='test -s conftest.$ac_objext'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   ac_cv_prog_cc_stdc=$ac_arg
2570 break
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 fi
2576 rm -f conftest.err conftest.$ac_objext
2577 done
2578 rm -f conftest.$ac_ext conftest.$ac_objext
2579 CC=$ac_save_CC
2580
2581 fi
2582
2583 case "x$ac_cv_prog_cc_stdc" in
2584   x|xno)
2585     echo "$as_me:$LINENO: result: none needed" >&5
2586 echo "${ECHO_T}none needed" >&6 ;;
2587   *)
2588     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2590     CC="$CC $ac_cv_prog_cc_stdc" ;;
2591 esac
2592
2593 # Some people use a C++ compiler to compile C.  Since we use `exit',
2594 # in C++ we need to declare it.  In case someone uses the same compiler
2595 # for both compiling C and C++ we need to have the C++ compiler decide
2596 # the declaration of exit, since it's the most demanding environment.
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #ifndef __cplusplus
2599   choke me
2600 #endif
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604   (eval $ac_compile) 2>conftest.er1
2605   ac_status=$?
2606   grep -v '^ *+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } &&
2611          { ac_try='test -z "$ac_c_werror_flag"
2612                          || test ! -s conftest.err'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; } &&
2618          { ac_try='test -s conftest.$ac_objext'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; }; then
2624   for ac_declaration in \
2625    '' \
2626    'extern "C" void std::exit (int) throw (); using std::exit;' \
2627    'extern "C" void std::exit (int); using std::exit;' \
2628    'extern "C" void exit (int) throw ();' \
2629    'extern "C" void exit (int);' \
2630    'void exit (int);'
2631 do
2632   cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 $ac_declaration
2639 #include <stdlib.h>
2640 int
2641 main ()
2642 {
2643 exit (42);
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>conftest.er1
2651   ac_status=$?
2652   grep -v '^ *+' conftest.er1 >conftest.err
2653   rm -f conftest.er1
2654   cat conftest.err >&5
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -z "$ac_c_werror_flag"
2658                          || test ! -s conftest.err'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; } &&
2664          { ac_try='test -s conftest.$ac_objext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   :
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 continue
2676 fi
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678   cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 $ac_declaration
2685 int
2686 main ()
2687 {
2688 exit (42);
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695   (eval $ac_compile) 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag"
2703                          || test ! -s conftest.err'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; }; then
2715   break
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 fi
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 done
2723 rm -f conftest*
2724 if test -n "$ac_declaration"; then
2725   echo '#ifdef __cplusplus' >>confdefs.h
2726   echo $ac_declaration      >>confdefs.h
2727   echo '#endif'             >>confdefs.h
2728 fi
2729
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742 if test "x$CC" != xcc; then
2743   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2744 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2745 else
2746   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2747 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2748 fi
2749 set dummy $CC; ac_cc=`echo $2 |
2750                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2751 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 # Make sure it works both with $CC and with simple cc.
2770 # We do the test twice because some compilers refuse to overwrite an
2771 # existing .o file with -o, though they will create one.
2772 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2773 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); };
2783 then
2784   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2785   if test "x$CC" != xcc; then
2786     # Test first that cc exists at all.
2787     if { ac_try='cc -c conftest.$ac_ext >&5'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2794       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); };
2804       then
2805         # cc works too.
2806         :
2807       else
2808         # cc exists but doesn't like -o.
2809         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2810       fi
2811     fi
2812   fi
2813 else
2814   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815 fi
2816 rm -f conftest*
2817
2818 fi
2819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2820   echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825
2826 cat >>confdefs.h <<\_ACEOF
2827 #define NO_MINUS_C_MINUS_O 1
2828 _ACEOF
2829
2830 fi
2831
2832 # autoconf is lame and doesn't give us any substitution variable for this.
2833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2834   NO_MINUS_C_MINUS_O=yes
2835 else
2836   OUTPUT_OPTION='-o $@'
2837 fi
2838
2839
2840
2841 # -------------------------
2842 # Check C compiler features
2843 # -------------------------
2844
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2851 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2852 # On Suns, sometimes $CPP names a directory.
2853 if test -n "$CPP" && test -d "$CPP"; then
2854   CPP=
2855 fi
2856 if test -z "$CPP"; then
2857   if test "${ac_cv_prog_CPP+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860       # Double quotes because CPP needs to be expanded
2861     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2862     do
2863       ac_preproc_ok=false
2864 for ac_c_preproc_warn_flag in '' yes
2865 do
2866   # Use a header file that comes with gcc, so configuring glibc
2867   # with a fresh cross-compiler works.
2868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869   # <limits.h> exists even on freestanding compilers.
2870   # On the NeXT, cc -E runs the code through the compiler's parser,
2871   # not just through cpp. "Syntax error" is here to catch this case.
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 #ifdef __STDC__
2879 # include <limits.h>
2880 #else
2881 # include <assert.h>
2882 #endif
2883                      Syntax error
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } >/dev/null; then
2893   if test -s conftest.err; then
2894     ac_cpp_err=$ac_c_preproc_warn_flag
2895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2896   else
2897     ac_cpp_err=
2898   fi
2899 else
2900   ac_cpp_err=yes
2901 fi
2902 if test -z "$ac_cpp_err"; then
2903   :
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908   # Broken: fails on valid input.
2909 continue
2910 fi
2911 rm -f conftest.err conftest.$ac_ext
2912
2913   # OK, works on sane cases.  Now check whether non-existent headers
2914   # can be detected and how.
2915   cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921 #include <ac_nonexistent.h>
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } >/dev/null; then
2931   if test -s conftest.err; then
2932     ac_cpp_err=$ac_c_preproc_warn_flag
2933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934   else
2935     ac_cpp_err=
2936   fi
2937 else
2938   ac_cpp_err=yes
2939 fi
2940 if test -z "$ac_cpp_err"; then
2941   # Broken: success on invalid input.
2942 continue
2943 else
2944   echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947   # Passes both tests.
2948 ac_preproc_ok=:
2949 break
2950 fi
2951 rm -f conftest.err conftest.$ac_ext
2952
2953 done
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2957   break
2958 fi
2959
2960     done
2961     ac_cv_prog_CPP=$CPP
2962
2963 fi
2964   CPP=$ac_cv_prog_CPP
2965 else
2966   ac_cv_prog_CPP=$CPP
2967 fi
2968 echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2970 ac_preproc_ok=false
2971 for ac_c_preproc_warn_flag in '' yes
2972 do
2973   # Use a header file that comes with gcc, so configuring glibc
2974   # with a fresh cross-compiler works.
2975   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976   # <limits.h> exists even on freestanding compilers.
2977   # On the NeXT, cc -E runs the code through the compiler's parser,
2978   # not just through cpp. "Syntax error" is here to catch this case.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #ifdef __STDC__
2986 # include <limits.h>
2987 #else
2988 # include <assert.h>
2989 #endif
2990                      Syntax error
2991 _ACEOF
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null; then
3000   if test -s conftest.err; then
3001     ac_cpp_err=$ac_c_preproc_warn_flag
3002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003   else
3004     ac_cpp_err=
3005   fi
3006 else
3007   ac_cpp_err=yes
3008 fi
3009 if test -z "$ac_cpp_err"; then
3010   :
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015   # Broken: fails on valid input.
3016 continue
3017 fi
3018 rm -f conftest.err conftest.$ac_ext
3019
3020   # OK, works on sane cases.  Now check whether non-existent headers
3021   # can be detected and how.
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028 #include <ac_nonexistent.h>
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } >/dev/null; then
3038   if test -s conftest.err; then
3039     ac_cpp_err=$ac_c_preproc_warn_flag
3040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041   else
3042     ac_cpp_err=
3043   fi
3044 else
3045   ac_cpp_err=yes
3046 fi
3047 if test -z "$ac_cpp_err"; then
3048   # Broken: success on invalid input.
3049 continue
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054   # Passes both tests.
3055 ac_preproc_ok=:
3056 break
3057 fi
3058 rm -f conftest.err conftest.$ac_ext
3059
3060 done
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3064   :
3065 else
3066   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&2;}
3070    { (exit 1); exit 1; }; }
3071 fi
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   ac_cv_c_inline=no
3086 for ac_kw in inline __inline__ __inline; do
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #ifndef __cplusplus
3094 typedef int foo_t;
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3097 #endif
3098
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102   (eval $ac_compile) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_c_werror_flag"
3110                          || test ! -s conftest.err'
3111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112   (eval $ac_try) 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118   (eval $ac_try) 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; }; then
3122   ac_cv_c_inline=$ac_kw; break
3123 else
3124   echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 fi
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129 done
3130
3131 fi
3132 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3133 echo "${ECHO_T}$ac_cv_c_inline" >&6
3134
3135
3136 case $ac_cv_c_inline in
3137   inline | yes) ;;
3138   *)
3139     case $ac_cv_c_inline in
3140       no) ac_val=;;
3141       *) ac_val=$ac_cv_c_inline;;
3142     esac
3143     cat >>confdefs.h <<_ACEOF
3144 #ifndef __cplusplus
3145 #define inline $ac_val
3146 #endif
3147 _ACEOF
3148     ;;
3149 esac
3150
3151
3152 echo "$as_me:$LINENO: checking for long long int" >&5
3153 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3154 if test "${ac_cv_c_long_long+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167 long long int i;
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174   (eval $ac_compile) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_c_werror_flag"
3182                          || test ! -s conftest.err'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; } &&
3188          { ac_try='test -s conftest.$ac_objext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   ac_cv_c_long_long=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_cv_c_long_long=no
3200 fi
3201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3204 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3205   if test $ac_cv_c_long_long = yes; then
3206
3207 cat >>confdefs.h <<\_ACEOF
3208 #define HAVE_LONG_LONG 1
3209 _ACEOF
3210
3211   fi
3212 echo "$as_me:$LINENO: checking for __int64" >&5
3213 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3214 if test "${ac_cv_c___int64+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223
3224 int
3225 main ()
3226 {
3227 __int64 i;
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234   (eval $ac_compile) 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -z "$ac_c_werror_flag"
3242                          || test ! -s conftest.err'
3243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244   (eval $ac_try) 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }; } &&
3248          { ac_try='test -s conftest.$ac_objext'
3249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250   (eval $ac_try) 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }; }; then
3254   ac_cv_c___int64=yes
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 ac_cv_c___int64=no
3260 fi
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3264 echo "${ECHO_T}$ac_cv_c___int64" >&6
3265   if test $ac_cv_c___int64 = yes; then
3266
3267 cat >>confdefs.h <<\_ACEOF
3268 #define HAVE___INT64 1
3269 _ACEOF
3270
3271   fi
3272
3273
3274 # sizeof(char) is 1 by definition.
3275 echo "$as_me:$LINENO: checking size of void *" >&5
3276 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3277 if test "${ac_cv_sizeof_void_p+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3289
3290
3291 int
3292 main ()
3293 {
3294 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301   (eval $ac_compile) 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } &&
3308          { ac_try='test -z "$ac_c_werror_flag"
3309                          || test ! -s conftest.err'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; } &&
3315          { ac_try='test -s conftest.$ac_objext'
3316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317   (eval $ac_try) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   ac_cv_sizeof_void_p=$ac_size
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 fi
3327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3328   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3329 done
3330
3331 fi
3332
3333 if test x$ac_cv_sizeof_void_p = x ; then
3334   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3335 echo "$as_me: error: cannot determine a size for void *" >&2;}
3336    { (exit 1); exit 1; }; }
3337 fi
3338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3339 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3343 _ACEOF
3344
3345
3346 echo "$as_me:$LINENO: checking size of short" >&5
3347 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3348 if test "${ac_cv_sizeof_short+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #include "confdefs.h"
3359 #include <sys/types.h>
3360
3361
3362 int
3363 main ()
3364 {
3365 switch (0) case 0: case (sizeof (short) == $ac_size):;
3366   ;
3367   return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372   (eval $ac_compile) 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } &&
3379          { ac_try='test -z "$ac_c_werror_flag"
3380                          || test ! -s conftest.err'
3381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382   (eval $ac_try) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; } &&
3386          { ac_try='test -s conftest.$ac_objext'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392   ac_cv_sizeof_short=$ac_size
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 fi
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399   if test x$ac_cv_sizeof_short != x ; then break; fi
3400 done
3401
3402 fi
3403
3404 if test x$ac_cv_sizeof_short = x ; then
3405   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3406 echo "$as_me: error: cannot determine a size for short" >&2;}
3407    { (exit 1); exit 1; }; }
3408 fi
3409 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3410 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3411
3412 cat >>confdefs.h <<_ACEOF
3413 #define SIZEOF_SHORT $ac_cv_sizeof_short
3414 _ACEOF
3415
3416
3417 echo "$as_me:$LINENO: checking size of int" >&5
3418 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3419 if test "${ac_cv_sizeof_int+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3431
3432
3433 int
3434 main ()
3435 {
3436 switch (0) case 0: case (sizeof (int) == $ac_size):;
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   ac_cv_sizeof_int=$ac_size
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 fi
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470   if test x$ac_cv_sizeof_int != x ; then break; fi
3471 done
3472
3473 fi
3474
3475 if test x$ac_cv_sizeof_int = x ; then
3476   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3477 echo "$as_me: error: cannot determine a size for int" >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3481 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3482
3483 cat >>confdefs.h <<_ACEOF
3484 #define SIZEOF_INT $ac_cv_sizeof_int
3485 _ACEOF
3486
3487
3488 echo "$as_me:$LINENO: checking size of long" >&5
3489 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_long+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3502
3503
3504 int
3505 main ()
3506 {
3507 switch (0) case 0: case (sizeof (long) == $ac_size):;
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514   (eval $ac_compile) 2>conftest.er1
3515   ac_status=$?
3516   grep -v '^ *+' conftest.er1 >conftest.err
3517   rm -f conftest.er1
3518   cat conftest.err >&5
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); } &&
3521          { ac_try='test -z "$ac_c_werror_flag"
3522                          || test ! -s conftest.err'
3523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524   (eval $ac_try) 2>&5
3525   ac_status=$?
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }; } &&
3528          { ac_try='test -s conftest.$ac_objext'
3529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530   (eval $ac_try) 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; }; then
3534   ac_cv_sizeof_long=$ac_size
3535 else
3536   echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 fi
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541   if test x$ac_cv_sizeof_long != x ; then break; fi
3542 done
3543
3544 fi
3545
3546 if test x$ac_cv_sizeof_long = x ; then
3547   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3548 echo "$as_me: error: cannot determine a size for long" >&2;}
3549    { (exit 1); exit 1; }; }
3550 fi
3551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3552 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3553
3554 cat >>confdefs.h <<_ACEOF
3555 #define SIZEOF_LONG $ac_cv_sizeof_long
3556 _ACEOF
3557
3558
3559 if test $ac_cv_c_long_long = yes; then
3560   echo "$as_me:$LINENO: checking size of long long" >&5
3561 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3562 if test "${ac_cv_sizeof_long_long+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #include "confdefs.h"
3573 #include <sys/types.h>
3574
3575
3576 int
3577 main ()
3578 {
3579 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586   (eval $ac_compile) 2>conftest.er1
3587   ac_status=$?
3588   grep -v '^ *+' conftest.er1 >conftest.err
3589   rm -f conftest.er1
3590   cat conftest.err >&5
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } &&
3593          { ac_try='test -z "$ac_c_werror_flag"
3594                          || test ! -s conftest.err'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; } &&
3600          { ac_try='test -s conftest.$ac_objext'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; }; then
3606   ac_cv_sizeof_long_long=$ac_size
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 fi
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3614 done
3615
3616 fi
3617
3618 if test x$ac_cv_sizeof_long_long = x ; then
3619   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3620 echo "$as_me: error: cannot determine a size for long long" >&2;}
3621    { (exit 1); exit 1; }; }
3622 fi
3623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3625
3626 cat >>confdefs.h <<_ACEOF
3627 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3628 _ACEOF
3629
3630
3631 fi
3632 if test $ac_cv_c___int64 = yes; then
3633   echo "$as_me:$LINENO: checking size of __int64" >&5
3634 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3635 if test "${ac_cv_sizeof___int64+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3639   cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647
3648
3649 int
3650 main ()
3651 {
3652 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659   (eval $ac_compile) 2>conftest.er1
3660   ac_status=$?
3661   grep -v '^ *+' conftest.er1 >conftest.err
3662   rm -f conftest.er1
3663   cat conftest.err >&5
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } &&
3666          { ac_try='test -z "$ac_c_werror_flag"
3667                          || test ! -s conftest.err'
3668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669   (eval $ac_try) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; } &&
3673          { ac_try='test -s conftest.$ac_objext'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; }; then
3679   ac_cv_sizeof___int64=$ac_size
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 fi
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3687 done
3688
3689 fi
3690
3691 if test x$ac_cv_sizeof___int64 = x ; then
3692   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3693 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3694    { (exit 1); exit 1; }; }
3695 fi
3696 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3697 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3698
3699 cat >>confdefs.h <<_ACEOF
3700 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3701 _ACEOF
3702
3703
3704 fi
3705
3706 # ---------------------
3707 # Warnings and checking
3708 # ---------------------
3709
3710 # Check $CC warning features (if it's GCC).
3711 # We want to use -pedantic, but we don't want warnings about
3712 # * 'long long'
3713 # * variadic macros
3714 # So, we only use -pedantic if we can disable those warnings.
3715
3716 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3717 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3718 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   save_CFLAGS="$CFLAGS"
3722   CFLAGS="-Wno-long-long"
3723   cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h.  */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h.  */
3729
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          { ac_try='test -z "$ac_c_werror_flag"
3741                          || test ! -s conftest.err'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; } &&
3747          { ac_try='test -s conftest.$ac_objext'
3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; }; then
3753   ac_cv_prog_cc_w_no_long_long=yes
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_cv_prog_cc_w_no_long_long=no
3759 fi
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761   CFLAGS="$save_CFLAGS"
3762
3763 fi
3764 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3765 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3766
3767 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3768 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3769 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   save_CFLAGS="$CFLAGS"
3773   CFLAGS="-Wno-variadic-macros"
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784   (eval $ac_compile) 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -z "$ac_c_werror_flag"
3792                          || test ! -s conftest.err'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; } &&
3798          { ac_try='test -s conftest.$ac_objext'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; }; then
3804   ac_cv_prog_cc_w_no_variadic_macros=yes
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 ac_cv_prog_cc_w_no_variadic_macros=no
3810 fi
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812   CFLAGS="$save_CFLAGS"
3813
3814 fi
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3817
3818 strict1_warn=
3819 if test $ac_cv_prog_cc_w_no_long_long = yes \
3820    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3821   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3822 fi
3823
3824
3825 # Add -Wold-style-definition if it's accepted
3826 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3827 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3828 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   save_CFLAGS="$CFLAGS"
3832   CFLAGS="-Wold-style-definition"
3833   cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843   (eval $ac_compile) 2>conftest.er1
3844   ac_status=$?
3845   grep -v '^ *+' conftest.er1 >conftest.err
3846   rm -f conftest.er1
3847   cat conftest.err >&5
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } &&
3850          { ac_try='test -z "$ac_c_werror_flag"
3851                          || test ! -s conftest.err'
3852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853   (eval $ac_try) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; } &&
3857          { ac_try='test -s conftest.$ac_objext'
3858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859   (eval $ac_try) 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); }; }; then
3863   ac_cv_prog_cc_w_old_style_definition=yes
3864 else
3865   echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 ac_cv_prog_cc_w_old_style_definition=no
3869 fi
3870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871   CFLAGS="$save_CFLAGS"
3872
3873 fi
3874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3875 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3876 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3877   strict1_warn="${strict1_warn} -Wold-style-definition"
3878 fi
3879
3880 # Enable -Werror, period.
3881 # Check whether --enable-werror_always or --disable-werror_always was given.
3882 if test "${enable_werror_always+set}" = set; then
3883   enableval="$enable_werror_always"
3884
3885 else
3886   enable_werror_always=no
3887 fi;
3888 if test x${enable_werror_always} = xyes ; then
3889   strict1_warn="${strict1_warn} -Werror"
3890   WERROR=-Werror
3891 fi
3892
3893 # If the native compiler is GCC, we can enable warnings even in stage1.
3894 # That's useful for people building cross-compilers, or just running a
3895 # quick `make'.
3896 warn_cflags=
3897 if test "x$GCC" = "xyes"; then
3898   warn_cflags='$(GCC_WARN_CFLAGS)'
3899 fi
3900
3901
3902 # Enable -Werror in bootstrap stage2 and later.
3903 # Change the default to "no" on release branches.
3904 # Check whether --enable-werror or --disable-werror was given.
3905 if test "${enable_werror+set}" = set; then
3906   enableval="$enable_werror"
3907
3908 else
3909   enable_werror=yes
3910 fi;
3911 if test x$enable_werror = xyes ; then
3912   WERROR=-Werror
3913 fi
3914
3915
3916 # Enable expensive internal checks
3917 # Check whether --enable-checking or --disable-checking was given.
3918 if test "${enable_checking+set}" = set; then
3919   enableval="$enable_checking"
3920   ac_checking=
3921 ac_tree_checking=
3922 ac_rtl_checking=
3923 ac_rtlflag_checking=
3924 ac_gc_checking=
3925 ac_gc_always_collect=
3926 ac_fold_checking=
3927 case "${enableval}" in
3928 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3929         ac_rtlflag_checking=1 ;;
3930 no)     ;;
3931 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3932         set fnord $enableval; shift
3933         IFS="$ac_save_IFS"
3934         for check
3935         do
3936                 case $check in
3937                 misc)   ac_checking=1 ;;
3938                 tree)   ac_tree_checking=1 ;;
3939                 rtlflag)        ac_rtlflag_checking=1 ;;
3940                 rtl)    ac_rtl_checking=1 ;;
3941                 gc)     ac_gc_checking=1 ;;
3942                 gcac)   ac_gc_always_collect=1 ;;
3943                 fold)   ac_fold_checking=1 ;;
3944                 valgrind)       ac_checking_valgrind=1 ;;
3945                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3946 echo "$as_me: error: unknown check category $check" >&2;}
3947    { (exit 1); exit 1; }; } ;;
3948                 esac
3949         done
3950         ;;
3951 esac
3952
3953 else
3954   # Enable some checks by default for development versions of GCC
3955 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3956 fi;
3957 nocommon_flag=""
3958 if test x$ac_checking != x ; then
3959
3960 cat >>confdefs.h <<\_ACEOF
3961 #define ENABLE_CHECKING 1
3962 _ACEOF
3963
3964   nocommon_flag=-fno-common
3965 fi
3966
3967 if test x$ac_tree_checking != x ; then
3968
3969 cat >>confdefs.h <<\_ACEOF
3970 #define ENABLE_TREE_CHECKING 1
3971 _ACEOF
3972
3973   TREEBROWSER=tree-browser.o
3974 fi
3975
3976 if test x$ac_rtl_checking != x ; then
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_RTL_CHECKING 1
3980 _ACEOF
3981
3982 fi
3983 if test x$ac_rtlflag_checking != x ; then
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define ENABLE_RTL_FLAG_CHECKING 1
3987 _ACEOF
3988
3989 fi
3990 if test x$ac_gc_checking != x ; then
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_GC_CHECKING 1
3994 _ACEOF
3995
3996 fi
3997 if test x$ac_gc_always_collect != x ; then
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define ENABLE_GC_ALWAYS_COLLECT 1
4001 _ACEOF
4002
4003 fi
4004 if test x$ac_fold_checking != x ; then
4005
4006 cat >>confdefs.h <<\_ACEOF
4007 #define ENABLE_FOLD_CHECKING 1
4008 _ACEOF
4009
4010 fi
4011 valgrind_path_defines=
4012 valgrind_command=
4013
4014
4015 echo "$as_me:$LINENO: checking for egrep" >&5
4016 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4017 if test "${ac_cv_prog_egrep+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4021     then ac_cv_prog_egrep='grep -E'
4022     else ac_cv_prog_egrep='egrep'
4023     fi
4024 fi
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4026 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4027  EGREP=$ac_cv_prog_egrep
4028
4029
4030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4032 if test "${ac_cv_header_stdc+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 #include <stdlib.h>
4042 #include <stdarg.h>
4043 #include <string.h>
4044 #include <float.h>
4045
4046 int
4047 main ()
4048 {
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056   (eval $ac_compile) 2>conftest.er1
4057   ac_status=$?
4058   grep -v '^ *+' conftest.er1 >conftest.err
4059   rm -f conftest.er1
4060   cat conftest.err >&5
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } &&
4063          { ac_try='test -z "$ac_c_werror_flag"
4064                          || test ! -s conftest.err'
4065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066   (eval $ac_try) 2>&5
4067   ac_status=$?
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); }; } &&
4070          { ac_try='test -s conftest.$ac_objext'
4071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072   (eval $ac_try) 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; }; then
4076   ac_cv_header_stdc=yes
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 ac_cv_header_stdc=no
4082 fi
4083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4084
4085 if test $ac_cv_header_stdc = yes; then
4086   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087   cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093 #include <string.h>
4094
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097   $EGREP "memchr" >/dev/null 2>&1; then
4098   :
4099 else
4100   ac_cv_header_stdc=no
4101 fi
4102 rm -f conftest*
4103
4104 fi
4105
4106 if test $ac_cv_header_stdc = yes; then
4107   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #include <stdlib.h>
4115
4116 _ACEOF
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118   $EGREP "free" >/dev/null 2>&1; then
4119   :
4120 else
4121   ac_cv_header_stdc=no
4122 fi
4123 rm -f conftest*
4124
4125 fi
4126
4127 if test $ac_cv_header_stdc = yes; then
4128   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4129   if test "$cross_compiling" = yes; then
4130   :
4131 else
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <ctype.h>
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142 #else
4143 # define ISLOWER(c) \
4144                    (('a' <= (c) && (c) <= 'i') \
4145                      || ('j' <= (c) && (c) <= 'r') \
4146                      || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148 #endif
4149
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4151 int
4152 main ()
4153 {
4154   int i;
4155   for (i = 0; i < 256; i++)
4156     if (XOR (islower (i), ISLOWER (i))
4157         || toupper (i) != TOUPPER (i))
4158       exit(2);
4159   exit (0);
4160 }
4161 _ACEOF
4162 rm -f conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   :
4174 else
4175   echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ( exit $ac_status )
4180 ac_cv_header_stdc=no
4181 fi
4182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183 fi
4184 fi
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4188 if test $ac_cv_header_stdc = yes; then
4189
4190 cat >>confdefs.h <<\_ACEOF
4191 #define STDC_HEADERS 1
4192 _ACEOF
4193
4194 fi
4195
4196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4207                   inttypes.h stdint.h unistd.h
4208 do
4209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210 echo "$as_me:$LINENO: checking for $ac_header" >&5
4211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 $ac_includes_default
4222
4223 #include <$ac_header>
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227   (eval $ac_compile) 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -z "$ac_c_werror_flag"
4235                          || test ! -s conftest.err'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; } &&
4241          { ac_try='test -s conftest.$ac_objext'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   eval "$as_ac_Header=yes"
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 eval "$as_ac_Header=no"
4253 fi
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259   cat >>confdefs.h <<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4261 _ACEOF
4262
4263 fi
4264
4265 done
4266
4267
4268 if test "${ac_cv_header_valgrind_h+set}" = set; then
4269   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4270 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4271 if test "${ac_cv_header_valgrind_h+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4275 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4276 else
4277   # Is the header compilable?
4278 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4279 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 $ac_includes_default
4287 #include <valgrind.h>
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291   (eval $ac_compile) 2>conftest.er1
4292   ac_status=$?
4293   grep -v '^ *+' conftest.er1 >conftest.err
4294   rm -f conftest.er1
4295   cat conftest.err >&5
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); } &&
4298          { ac_try='test -z "$ac_c_werror_flag"
4299                          || test ! -s conftest.err'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   ac_header_compiler=yes
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ac_header_compiler=no
4317 fi
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6
4321
4322 # Is the header present?
4323 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4324 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #include <valgrind.h>
4332 _ACEOF
4333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } >/dev/null; then
4341   if test -s conftest.err; then
4342     ac_cpp_err=$ac_c_preproc_warn_flag
4343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4344   else
4345     ac_cpp_err=
4346   fi
4347 else
4348   ac_cpp_err=yes
4349 fi
4350 if test -z "$ac_cpp_err"; then
4351   ac_header_preproc=yes
4352 else
4353   echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356   ac_header_preproc=no
4357 fi
4358 rm -f conftest.err conftest.$ac_ext
4359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4360 echo "${ECHO_T}$ac_header_preproc" >&6
4361
4362 # So?  What about this header?
4363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4364   yes:no: )
4365     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4366 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4367     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4368 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4369     ac_header_preproc=yes
4370     ;;
4371   no:yes:* )
4372     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4373 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4374     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4375 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4376     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4377 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4378     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4379 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4380     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4382     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4383 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4384     (
4385       cat <<\_ASBOX
4386 ## ------------------------------------------ ##
4387 ## Report this to the AC_PACKAGE_NAME lists.  ##
4388 ## ------------------------------------------ ##
4389 _ASBOX
4390     ) |
4391       sed "s/^/$as_me: WARNING:     /" >&2
4392     ;;
4393 esac
4394 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4395 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4396 if test "${ac_cv_header_valgrind_h+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   ac_cv_header_valgrind_h=$ac_header_preproc
4400 fi
4401 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4402 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4403
4404 fi
4405 if test $ac_cv_header_valgrind_h = yes; then
4406   have_valgrind_h=yes
4407 else
4408   have_valgrind_h=no
4409 fi
4410
4411
4412
4413 if test x$ac_checking_valgrind != x ; then
4414   # It is certainly possible that there's valgrind but no valgrind.h.
4415   # GCC relies on making annotations so we must have both.
4416   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4417 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4418   cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <valgrind/memcheck.h>
4425 #ifndef VALGRIND_DISCARD
4426 #error VALGRIND_DISCARD not defined
4427 #endif
4428 _ACEOF
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } >/dev/null; then
4437   if test -s conftest.err; then
4438     ac_cpp_err=$ac_c_preproc_warn_flag
4439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440   else
4441     ac_cpp_err=
4442   fi
4443 else
4444   ac_cpp_err=yes
4445 fi
4446 if test -z "$ac_cpp_err"; then
4447   gcc_cv_header_valgrind_memcheck_h=yes
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452   gcc_cv_header_valgrind_memcheck_h=no
4453 fi
4454 rm -f conftest.err conftest.$ac_ext
4455   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4456 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4457   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4458 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4459   cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h.  */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h.  */
4465 #include <memcheck.h>
4466 #ifndef VALGRIND_DISCARD
4467 #error VALGRIND_DISCARD not defined
4468 #endif
4469 _ACEOF
4470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } >/dev/null; then
4478   if test -s conftest.err; then
4479     ac_cpp_err=$ac_c_preproc_warn_flag
4480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4481   else
4482     ac_cpp_err=
4483   fi
4484 else
4485   ac_cpp_err=yes
4486 fi
4487 if test -z "$ac_cpp_err"; then
4488   gcc_cv_header_memcheck_h=yes
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493   gcc_cv_header_memcheck_h=no
4494 fi
4495 rm -f conftest.err conftest.$ac_ext
4496   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4497 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4498
4499 # Prepare PATH_SEPARATOR.
4500 # The user is always right.
4501 if test "${PATH_SEPARATOR+set}" != set; then
4502   echo "#! /bin/sh" >conf$$.sh
4503   echo  "exit 0"   >>conf$$.sh
4504   chmod +x conf$$.sh
4505   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4506     PATH_SEPARATOR=';'
4507   else
4508     PATH_SEPARATOR=:
4509   fi
4510   rm -f conf$$.sh
4511 fi
4512
4513 # Find out how to test for executable files. Don't use a zero-byte file,
4514 # as systems may use methods other than mode bits to determine executability.
4515 cat >conf$$.file <<_ASEOF
4516 #! /bin/sh
4517 exit 0
4518 _ASEOF
4519 chmod +x conf$$.file
4520 if test -x conf$$.file >/dev/null 2>&1; then
4521   ac_executable_p="test -x"
4522 else
4523   ac_executable_p="test -f"
4524 fi
4525 rm -f conf$$.file
4526
4527 # Extract the first word of "valgrind", so it can be a program name with args.
4528 set dummy valgrind; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_path_valgrind_path+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   case "$valgrind_path" in
4535   [\\/]* | ?:[\\/]*)
4536     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4537     ;;
4538   *)
4539     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4540     for ac_dir in $PATH; do
4541       IFS="$ac_save_IFS"
4542       test -z "$ac_dir" && ac_dir=.
4543       for ac_exec_ext in '' $ac_executable_extensions; do
4544         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4545           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4546             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4547             break 2
4548           fi
4549         fi
4550       done
4551     done
4552     IFS="$ac_save_IFS"
4553     ;;
4554 esac
4555 fi
4556 valgrind_path="$ac_cv_path_valgrind_path"
4557 if test -n "$valgrind_path"; then
4558   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4559 echo "${ECHO_T}$valgrind_path" >&6
4560 else
4561   echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4563 fi
4564
4565   if test "x$valgrind_path" = "x" \
4566     || (test $have_valgrind_h = no \
4567         && test $gcc_cv_header_memcheck_h = no \
4568         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4569         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4570 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4571    { (exit 1); exit 1; }; }
4572   fi
4573   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4574   valgrind_command="$valgrind_path -q"
4575
4576 cat >>confdefs.h <<\_ACEOF
4577 #define ENABLE_VALGRIND_CHECKING 1
4578 _ACEOF
4579
4580   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4581
4582 cat >>confdefs.h <<\_ACEOF
4583 #define HAVE_VALGRIND_MEMCHECK_H 1
4584 _ACEOF
4585
4586   fi
4587   if test $gcc_cv_header_memcheck_h = yes; then
4588
4589 cat >>confdefs.h <<\_ACEOF
4590 #define HAVE_MEMCHECK_H 1
4591 _ACEOF
4592
4593   fi
4594 fi
4595
4596
4597
4598 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4599 if test "${enable_mapped_location+set}" = set; then
4600   enableval="$enable_mapped_location"
4601
4602 else
4603   enable_mapped_location=no
4604 fi;
4605
4606 if test "$enable_mapped_location" = yes ; then
4607
4608 cat >>confdefs.h <<\_ACEOF
4609 #define USE_MAPPED_LOCATION 1
4610 _ACEOF
4611
4612 fi
4613
4614 # Enable code coverage collection
4615 # Check whether --enable-coverage or --disable-coverage was given.
4616 if test "${enable_coverage+set}" = set; then
4617   enableval="$enable_coverage"
4618   case "${enableval}" in
4619   yes|noopt)
4620     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4621     ;;
4622   opt)
4623     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4624     ;;
4625   no)
4626     # a.k.a. --disable-coverage
4627     coverage_flags=""
4628     ;;
4629   *)
4630     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4631 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4632    { (exit 1); exit 1; }; }
4633     ;;
4634 esac
4635 else
4636   coverage_flags=""
4637 fi;
4638
4639
4640 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4641 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4642   enableval="$enable_gather_detailed_mem_stats"
4643
4644 else
4645   enable_gather_detailed_mem_stats=no
4646 fi;
4647 if test x$enable_gather_detailed_mem_stats = xyes ; then
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define GATHER_STATISTICS 1
4651 _ACEOF
4652
4653 fi
4654
4655 # -------------------------------
4656 # Miscenalleous configure options
4657 # -------------------------------
4658
4659 # With stabs
4660
4661 # Check whether --with-stabs or --without-stabs was given.
4662 if test "${with_stabs+set}" = set; then
4663   withval="$with_stabs"
4664   stabs="$with_stabs"
4665 else
4666   stabs=no
4667 fi;
4668
4669 # Determine whether or not multilibs are enabled.
4670 # Check whether --enable-multilib or --disable-multilib was given.
4671 if test "${enable_multilib+set}" = set; then
4672   enableval="$enable_multilib"
4673
4674 else
4675   enable_multilib=yes
4676 fi;
4677
4678
4679 # Enable __cxa_atexit for C++.
4680 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4681 if test "${enable___cxa_atexit+set}" = set; then
4682   enableval="$enable___cxa_atexit"
4683
4684 fi;
4685
4686 # Enable threads
4687 # Pass with no value to take the default
4688 # Pass with a value to specify a thread package
4689 # Check whether --enable-threads or --disable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691   enableval="$enable_threads"
4692
4693 else
4694   enable_threads=''
4695 fi;
4696
4697 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4698 if test "${enable_objc_gc+set}" = set; then
4699   enableval="$enable_objc_gc"
4700   if test x$enable_objc_gc = xno; then
4701         objc_boehm_gc=''
4702 else
4703         objc_boehm_gc=1
4704 fi
4705 else
4706   objc_boehm_gc=''
4707 fi;
4708
4709
4710 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4711 if test "${with_dwarf2+set}" = set; then
4712   withval="$with_dwarf2"
4713   dwarf2="$with_dwarf2"
4714 else
4715   dwarf2=no
4716 fi;
4717
4718 # Check whether --enable-shared or --disable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720   enableval="$enable_shared"
4721
4722   case $enable_shared in
4723   yes | no) ;;
4724   *)
4725     enable_shared=no
4726     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4727     for pkg in $enableval; do
4728       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4729         enable_shared=yes
4730       fi
4731     done
4732     IFS="$ac_save_ifs"
4733     ;;
4734   esac
4735
4736 else
4737   enable_shared=yes
4738 fi;
4739
4740
4741
4742 # Check whether --with-sysroot or --without-sysroot was given.
4743 if test "${with_sysroot+set}" = set; then
4744   withval="$with_sysroot"
4745
4746  case ${with_sysroot} in
4747  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4748  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4749  esac
4750
4751  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4752  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4753
4754  if test "x$exec_prefix" = xNONE; then
4755   if test "x$prefix" = xNONE; then
4756    test_prefix=/usr/local
4757   else
4758    test_prefix=$prefix
4759   fi
4760  else
4761   test_prefix=$exec_prefix
4762  fi
4763  case ${TARGET_SYSTEM_ROOT} in
4764  "${test_prefix}"|"${test_prefix}/"*|\
4765  '${exec_prefix}'|'${exec_prefix}/'*)
4766    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4767    TARGET_SYSTEM_ROOT_DEFINE="$t"
4768    ;;
4769  esac
4770
4771 else
4772
4773  TARGET_SYSTEM_ROOT=
4774  TARGET_SYSTEM_ROOT_DEFINE=
4775  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4776
4777 fi;
4778
4779
4780
4781
4782 # Build with intermodule optimisations
4783 # Check whether --enable-intermodule or --disable-intermodule was given.
4784 if test "${enable_intermodule+set}" = set; then
4785   enableval="$enable_intermodule"
4786   case ${enable_intermodule} in
4787   yes) onestep="-onestep";;
4788   *) onestep="";;
4789 esac
4790 else
4791   onestep=""
4792 fi;
4793
4794
4795 # Sanity check enable_languages in case someone does not run the toplevel
4796 # configure # script.
4797 # Check whether --enable-languages or --disable-languages was given.
4798 if test "${enable_languages+set}" = set; then
4799   enableval="$enable_languages"
4800   case ,${enable_languages}, in
4801        ,,|,yes,)
4802                 # go safe -- we cannot be much sure without the toplevel
4803                 # configure's
4804                 # analysis of which target libs are present and usable
4805                 enable_languages=c
4806                 ;;
4807          *,all,*)
4808                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4809 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4810    { (exit 1); exit 1; }; }
4811                 ;;
4812         *,c,*)
4813                 ;;
4814         *)
4815                 enable_languages=c,${enable_languages}
4816                 ;;
4817 esac
4818 else
4819   enable_languages=c
4820 fi;
4821
4822 subdirs=
4823 for lang in ${srcdir}/*/config-lang.in
4824 do
4825         case $lang in
4826         # The odd quoting in the next line works around
4827         # an apparent bug in bash 1.12 on linux.
4828         ${srcdir}/[*]/config-lang.in) ;;
4829         *)
4830           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4831           if test "x$lang_alias" = x
4832           then
4833                 echo "$lang doesn't set \$language." 1>&2
4834                 exit 1
4835           fi
4836           case ",$enable_languages," in
4837           *,$lang_alias,*)
4838             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4839           esac
4840           ;;
4841         esac
4842 done
4843
4844
4845 # -------------------------
4846 # Checks for other programs
4847 # -------------------------
4848
4849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   cat >conftest.make <<\_ACEOF
4856 all:
4857         @echo 'ac_maketemp="$(MAKE)"'
4858 _ACEOF
4859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4861 if test -n "$ac_maketemp"; then
4862   eval ac_cv_prog_make_${ac_make}_set=yes
4863 else
4864   eval ac_cv_prog_make_${ac_make}_set=no
4865 fi
4866 rm -f conftest.make
4867 fi
4868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4869   echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6
4871   SET_MAKE=
4872 else
4873   echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875   SET_MAKE="MAKE=${MAKE-make}"
4876 fi
4877
4878
4879 # Find some useful tools
4880 for ac_prog in gawk mawk nawk awk
4881 do
4882   # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AWK+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$AWK"; then
4890   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_prog_AWK="$ac_prog"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905
4906 fi
4907 fi
4908 AWK=$ac_cv_prog_AWK
4909 if test -n "$AWK"; then
4910   echo "$as_me:$LINENO: result: $AWK" >&5
4911 echo "${ECHO_T}$AWK" >&6
4912 else
4913   echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917   test -n "$AWK" && break
4918 done
4919
4920 # We need awk to create options.c and options.h.
4921 # Bail out if it's missing.
4922 case ${AWK} in
4923   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4924 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4925    { (exit 1); exit 1; }; } ;;
4926 esac
4927
4928 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4929 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4930 if test "${gcc_cv_prog_LN_S+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   rm -f conftestdata_t
4934 echo >conftestdata_f
4935 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4936 then
4937   gcc_cv_prog_LN_S="ln -s"
4938 else
4939   if ln conftestdata_f conftestdata_t 2>/dev/null
4940   then
4941     gcc_cv_prog_LN_S=ln
4942   else
4943     gcc_cv_prog_LN_S=cp
4944   fi
4945 fi
4946 rm -f conftestdata_f conftestdata_t
4947
4948 fi
4949 LN_S="$gcc_cv_prog_LN_S"
4950 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4951   echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4953 else
4954   if test "$gcc_cv_prog_LN_S" = "ln"; then
4955     echo "$as_me:$LINENO: result: no, using ln" >&5
4956 echo "${ECHO_T}no, using ln" >&6
4957   else
4958     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4959 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4960   fi
4961 fi
4962
4963 ACX_PROG_LN($LN_S)
4964 if test -n "$ac_tool_prefix"; then
4965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_prog_RANLIB+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   if test -n "$RANLIB"; then
4973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980   for ac_exec_ext in '' $ac_executable_extensions; do
4981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987 done
4988
4989 fi
4990 fi
4991 RANLIB=$ac_cv_prog_RANLIB
4992 if test -n "$RANLIB"; then
4993   echo "$as_me:$LINENO: result: $RANLIB" >&5
4994 echo "${ECHO_T}$RANLIB" >&6
4995 else
4996   echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998 fi
4999
5000 fi
5001 if test -z "$ac_cv_prog_RANLIB"; then
5002   ac_ct_RANLIB=$RANLIB
5003   # Extract the first word of "ranlib", so it can be a program name with args.
5004 set dummy ranlib; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   if test -n "$ac_ct_RANLIB"; then
5011   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018   for ac_exec_ext in '' $ac_executable_extensions; do
5019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020     ac_cv_prog_ac_ct_RANLIB="ranlib"
5021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025 done
5026
5027   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5028 fi
5029 fi
5030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5031 if test -n "$ac_ct_RANLIB"; then
5032   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5034 else
5035   echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039   RANLIB=$ac_ct_RANLIB
5040 else
5041   RANLIB="$ac_cv_prog_RANLIB"
5042 fi
5043
5044 case "${host}" in
5045 *-*-darwin*)
5046   # By default, the Darwin ranlib will not treat common symbols as
5047   # definitions when  building the archive table of contents.  Other
5048   # ranlibs do that; pass an option to the Darwin ranlib that makes
5049   # it behave similarly.
5050   ranlib_flags="-c"
5051   ;;
5052 *)
5053   ranlib_flags=""
5054 esac
5055
5056
5057 # Find a good install program.  We prefer a C program (faster),
5058 # so one script is as good as another.  But avoid the broken or
5059 # incompatible versions:
5060 # SysV /etc/install, /usr/sbin/install
5061 # SunOS /usr/etc/install
5062 # IRIX /sbin/install
5063 # AIX /bin/install
5064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5066 # ./install, which can be erroneously created by make from ./install.sh.
5067 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5068 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5069 if test -z "$INSTALL"; then
5070 if test "${ac_cv_path_install+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5074   for ac_dir in $PATH; do
5075     # Account for people who put trailing slashes in PATH elements.
5076     case "$ac_dir/" in
5077     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5078     *)
5079       # OSF1 and SCO ODT 3.0 have their own names for install.
5080       for ac_prog in ginstall scoinst install; do
5081         if test -f $ac_dir/$ac_prog; then
5082           if test $ac_prog = install &&
5083             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5084             # AIX install.  It has an incompatible calling convention.
5085             # OSF/1 installbsd also uses dspmsg, but is usable.
5086             :
5087           else
5088             ac_cv_path_install="$ac_dir/$ac_prog -c"
5089             break 2
5090           fi
5091         fi
5092       done
5093       ;;
5094     esac
5095   done
5096   IFS="$ac_save_IFS"
5097
5098 fi
5099   if test "${ac_cv_path_install+set}" = set; then
5100     INSTALL="$ac_cv_path_install"
5101   else
5102     # As a last resort, use the slow shell script.  We don't cache a
5103     # path for INSTALL within a source directory, because that will
5104     # break other packages using the cache if that directory is
5105     # removed, or if the path is relative.
5106     INSTALL="$ac_install_sh"
5107   fi
5108 fi
5109 echo "$as_me:$LINENO: result: $INSTALL" >&5
5110 echo "${ECHO_T}$INSTALL" >&6
5111
5112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5113 # It thinks the first close brace ends the variable substitution.
5114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5115
5116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5117
5118
5119 # See if cmp has --ignore-initial.
5120 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5121 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5122 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125    echo abfoo >t1
5126   echo cdfoo >t2
5127   gcc_cv_prog_cmp_skip=slowcompare
5128   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5129     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5130       :
5131     else
5132       gcc_cv_prog_cmp_skip=gnucompare
5133     fi
5134   fi
5135   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5136     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5137       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5138         :
5139       else
5140         gcc_cv_prog_cmp_skip=fastcompare
5141       fi
5142     fi
5143   fi
5144   rm t1 t2
5145
5146 fi
5147 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5148 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5149 make_compare_target=$gcc_cv_prog_cmp_skip
5150
5151
5152
5153 # See if we have the mktemp command.
5154 # Extract the first word of "mktemp", so it can be a program name with args.
5155 set dummy mktemp; ac_word=$2
5156 echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   if test -n "$have_mktemp_command"; then
5162   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_exec_ext in '' $ac_executable_extensions; do
5170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171     ac_cv_prog_have_mktemp_command="yes"
5172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176 done
5177
5178   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5179 fi
5180 fi
5181 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5182 if test -n "$have_mktemp_command"; then
5183   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5184 echo "${ECHO_T}$have_mktemp_command" >&6
5185 else
5186   echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5188 fi
5189
5190
5191 # Do we have a single-tree copy of texinfo?
5192 if test -f $srcdir/../texinfo/Makefile.in; then
5193   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5194   gcc_cv_prog_makeinfo_modern=yes
5195   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5196 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5197 else
5198   # See if makeinfo has been installed and is modern enough
5199   # that we can use it.
5200   # Extract the first word of "makeinfo", so it can be a program name with args.
5201 set dummy makeinfo; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$MAKEINFO"; then
5208   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_MAKEINFO="makeinfo"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223
5224 fi
5225 fi
5226 MAKEINFO=$ac_cv_prog_MAKEINFO
5227 if test -n "$MAKEINFO"; then
5228   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5229 echo "${ECHO_T}$MAKEINFO" >&6
5230 else
5231   echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5233 fi
5234
5235 if test -n "$MAKEINFO"; then
5236   # Found it, now check the version.
5237   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5238 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5239 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242     ac_prog_version=`$MAKEINFO --version 2>&1 |
5243                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5244   echo "configure:5244: version of makeinfo is $ac_prog_version" >&5
5245   case $ac_prog_version in
5246     '')     gcc_cv_prog_makeinfo_modern=no;;
5247     4.[2-9]*)
5248             gcc_cv_prog_makeinfo_modern=yes;;
5249     *)      gcc_cv_prog_makeinfo_modern=no;;
5250   esac
5251
5252 fi
5253 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5254 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5255 else
5256   gcc_cv_prog_makeinfo_modern=no
5257 fi
5258
5259 fi
5260
5261 if test $gcc_cv_prog_makeinfo_modern = no; then
5262   { echo "$as_me:$LINENO: WARNING:
5263 *** Makeinfo is missing or too old.
5264 *** Info documentation will not be built." >&5
5265 echo "$as_me: WARNING:
5266 *** Makeinfo is missing or too old.
5267 *** Info documentation will not be built." >&2;}
5268   BUILD_INFO=
5269 else
5270   BUILD_INFO=info
5271 fi
5272
5273 # Is pod2man recent enough to regenerate manpages?
5274 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5275 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5276 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5277   echo "$as_me:$LINENO: result: yes" >&5
5278 echo "${ECHO_T}yes" >&6
5279   GENERATED_MANPAGES=generated-manpages
5280 else
5281   echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6
5283   GENERATED_MANPAGES=
5284 fi
5285
5286 # How about lex?
5287 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5288   FLEX='$(objdir)/../flex/flex'
5289 else
5290   # Extract the first word of "flex", so it can be a program name with args.
5291 set dummy flex; ac_word=$2
5292 echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5294 if test "${ac_cv_prog_FLEX+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   if test -n "$FLEX"; then
5298   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305   for ac_exec_ext in '' $ac_executable_extensions; do
5306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_FLEX="flex"
5308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312 done
5313
5314   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5315 fi
5316 fi
5317 FLEX=$ac_cv_prog_FLEX
5318 if test -n "$FLEX"; then
5319   echo "$as_me:$LINENO: result: $FLEX" >&5
5320 echo "${ECHO_T}$FLEX" >&6
5321 else
5322   echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5324 fi
5325
5326 fi
5327
5328 # Bison?
5329 # The -L switch is so bison can find its skeleton file.
5330 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5331   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5332 else
5333   # Extract the first word of "bison", so it can be a program name with args.
5334 set dummy bison; ac_word=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_BISON+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   if test -n "$BISON"; then
5341   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_prog_BISON="bison"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356
5357   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5358 fi
5359 fi
5360 BISON=$ac_cv_prog_BISON
5361 if test -n "$BISON"; then
5362   echo "$as_me:$LINENO: result: $BISON" >&5
5363 echo "${ECHO_T}$BISON" >&6
5364 else
5365   echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5367 fi
5368
5369 fi
5370
5371 # --------------------
5372 # Checks for C headers
5373 # --------------------
5374
5375 echo "$as_me:$LINENO: checking for GNU C library" >&5
5376 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5377 if test "${gcc_cv_glibc+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 #include <features.h>
5387 int
5388 main ()
5389 {
5390
5391 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5392 #error Not a GNU C library system
5393 #endif
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -z "$ac_c_werror_flag"
5408                          || test ! -s conftest.err'
5409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410   (eval $ac_try) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); }; } &&
5414          { ac_try='test -s conftest.$ac_objext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   gcc_cv_glibc=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 gcc_cv_glibc=no
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429
5430 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5431 echo "${ECHO_T}$gcc_cv_glibc" >&6
5432 if test $gcc_cv_glibc = yes; then
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define _GNU_SOURCE 1
5436 _ACEOF
5437
5438 fi
5439
5440 # Need to reject headers which give warnings, so that the -Werror bootstrap
5441 # works later. *sigh*  This needs to come before all header checks.
5442
5443 ac_c_preproc_warn_flag=yes
5444
5445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5447 if test "${ac_cv_header_stdc+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456 #include <stdlib.h>
5457 #include <stdarg.h>
5458 #include <string.h>
5459 #include <float.h>
5460
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471   (eval $ac_compile) 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -z "$ac_c_werror_flag"
5479                          || test ! -s conftest.err'
5480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481   (eval $ac_try) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); }; } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_header_stdc=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_cv_header_stdc=no
5497 fi
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5499
5500 if test $ac_cv_header_stdc = yes; then
5501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502   cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 #include <string.h>
5509
5510 _ACEOF
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512   $EGREP "memchr" >/dev/null 2>&1; then
5513   :
5514 else
5515   ac_cv_header_stdc=no
5516 fi
5517 rm -f conftest*
5518
5519 fi
5520
5521 if test $ac_cv_header_stdc = yes; then
5522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5523   cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529 #include <stdlib.h>
5530
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533   $EGREP "free" >/dev/null 2>&1; then
5534   :
5535 else
5536   ac_cv_header_stdc=no
5537 fi
5538 rm -f conftest*
5539
5540 fi
5541
5542 if test $ac_cv_header_stdc = yes; then
5543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5544   if test "$cross_compiling" = yes; then
5545   :
5546 else
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 #include <ctype.h>
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 #else
5558 # define ISLOWER(c) \
5559                    (('a' <= (c) && (c) <= 'i') \
5560                      || ('j' <= (c) && (c) <= 'r') \
5561                      || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563 #endif
5564
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5566 int
5567 main ()
5568 {
5569   int i;
5570   for (i = 0; i < 256; i++)
5571     if (XOR (islower (i), ISLOWER (i))
5572         || toupper (i) != TOUPPER (i))
5573       exit(2);
5574   exit (0);
5575 }
5576 _ACEOF
5577 rm -f conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579   (eval $ac_link) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   :
5589 else
5590   echo "$as_me: program exited with status $ac_status" >&5
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ( exit $ac_status )
5595 ac_cv_header_stdc=no
5596 fi
5597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5598 fi
5599 fi
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5602 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5603 if test $ac_cv_header_stdc = yes; then
5604
5605 cat >>confdefs.h <<\_ACEOF
5606 #define STDC_HEADERS 1
5607 _ACEOF
5608
5609 fi
5610
5611 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5612 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5613 if test "${ac_cv_header_time+set}" = set; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h.  */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h.  */
5622 #include <sys/types.h>
5623 #include <sys/time.h>
5624 #include <time.h>
5625
5626 int
5627 main ()
5628 {
5629 if ((struct tm *) 0)
5630 return 0;
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637   (eval $ac_compile) 2>conftest.er1
5638   ac_status=$?
5639   grep -v '^ *+' conftest.er1 >conftest.err
5640   rm -f conftest.er1
5641   cat conftest.err >&5
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); } &&
5644          { ac_try='test -z "$ac_c_werror_flag"
5645                          || test ! -s conftest.err'
5646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647   (eval $ac_try) 2>&5
5648   ac_status=$?
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); }; } &&
5651          { ac_try='test -s conftest.$ac_objext'
5652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653   (eval $ac_try) 2>&5
5654   ac_status=$?
5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); }; }; then
5657   ac_cv_header_time=yes
5658 else
5659   echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5661
5662 ac_cv_header_time=no
5663 fi
5664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5667 echo "${ECHO_T}$ac_cv_header_time" >&6
5668 if test $ac_cv_header_time = yes; then
5669
5670 cat >>confdefs.h <<\_ACEOF
5671 #define TIME_WITH_SYS_TIME 1
5672 _ACEOF
5673
5674 fi
5675
5676 ACX_HEADER_STRING
5677 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5678 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5679 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h.  */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h.  */
5688 #include <sys/types.h>
5689 #include <sys/wait.h>
5690 #ifndef WEXITSTATUS
5691 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5692 #endif
5693 #ifndef WIFEXITED
5694 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5695 #endif
5696
5697 int
5698 main ()
5699 {
5700   int s;
5701   wait (&s);
5702   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709   (eval $ac_compile) 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -z "$ac_c_werror_flag"
5717                          || test ! -s conftest.err'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_header_sys_wait_h=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_cv_header_sys_wait_h=no
5735 fi
5736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5739 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5740 if test $ac_cv_header_sys_wait_h = yes; then
5741
5742 cat >>confdefs.h <<\_ACEOF
5743 #define HAVE_SYS_WAIT_H 1
5744 _ACEOF
5745
5746 fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5770                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5771                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5772                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5773 do
5774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5775 echo "$as_me:$LINENO: checking for $ac_header" >&5
5776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h.  */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h.  */
5786 #include <$ac_header>
5787 _ACEOF
5788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5790   ac_status=$?
5791   grep -v '^ *+' conftest.er1 >conftest.err
5792   rm -f conftest.er1
5793   cat conftest.err >&5
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } >/dev/null; then
5796   if test -s conftest.err; then
5797     ac_cpp_err=$ac_c_preproc_warn_flag
5798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5799   else
5800     ac_cpp_err=
5801   fi
5802 else
5803   ac_cpp_err=yes
5804 fi
5805 if test -z "$ac_cpp_err"; then
5806   eval "$as_ac_Header=yes"
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811   eval "$as_ac_Header=no"
5812 fi
5813 rm -f conftest.err conftest.$ac_ext
5814 fi
5815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5818   cat >>confdefs.h <<_ACEOF
5819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5820 _ACEOF
5821
5822 fi
5823 done
5824
5825
5826 # Check for thread headers.
5827 echo "$as_me:$LINENO: checking for thread.h" >&5
5828 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5829 if test "${ac_cv_header_thread_h+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h.  */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h.  */
5838 #include <thread.h>
5839 _ACEOF
5840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5842   ac_status=$?
5843   grep -v '^ *+' conftest.er1 >conftest.err
5844   rm -f conftest.er1
5845   cat conftest.err >&5
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); } >/dev/null; then
5848   if test -s conftest.err; then
5849     ac_cpp_err=$ac_c_preproc_warn_flag
5850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5851   else
5852     ac_cpp_err=
5853   fi
5854 else
5855   ac_cpp_err=yes
5856 fi
5857 if test -z "$ac_cpp_err"; then
5858   ac_cv_header_thread_h=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863   ac_cv_header_thread_h=no
5864 fi
5865 rm -f conftest.err conftest.$ac_ext
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5869 if test $ac_cv_header_thread_h = yes; then
5870   have_thread_h=yes
5871 else
5872   have_thread_h=
5873 fi
5874
5875 echo "$as_me:$LINENO: checking for pthread.h" >&5
5876 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5877 if test "${ac_cv_header_pthread_h+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #include <pthread.h>
5887 _ACEOF
5888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5890   ac_status=$?
5891   grep -v '^ *+' conftest.er1 >conftest.err
5892   rm -f conftest.er1
5893   cat conftest.err >&5
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); } >/dev/null; then
5896   if test -s conftest.err; then
5897     ac_cpp_err=$ac_c_preproc_warn_flag
5898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5899   else
5900     ac_cpp_err=
5901   fi
5902 else
5903   ac_cpp_err=yes
5904 fi
5905 if test -z "$ac_cpp_err"; then
5906   ac_cv_header_pthread_h=yes
5907 else
5908   echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911   ac_cv_header_pthread_h=no
5912 fi
5913 rm -f conftest.err conftest.$ac_ext
5914 fi
5915 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5916 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5917 if test $ac_cv_header_pthread_h = yes; then
5918   have_pthread_h=yes
5919 else
5920   have_pthread_h=
5921 fi
5922
5923
5924 # These tests can't be done till we know if we have limits.h.
5925 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5926 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5927 if test "${gcc_cv_decl_char_bit+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 #ifdef HAVE_LIMITS_H
5937 #include <limits.h>
5938 #endif
5939 #ifdef CHAR_BIT
5940 found
5941 #endif
5942 _ACEOF
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944   $EGREP "found" >/dev/null 2>&1; then
5945   gcc_cv_decl_char_bit=yes
5946 else
5947   gcc_cv_decl_char_bit=no
5948 fi
5949 rm -f conftest*
5950
5951
5952 fi
5953 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5954 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5955 if test $gcc_cv_decl_char_bit = no; then
5956   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5957 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5958 if test "${gcc_cv_c_nbby+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   i=8
5962  gcc_cv_c_nbby=
5963  while test $i -lt 65; do
5964    cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970
5971 int
5972 main ()
5973 {
5974 switch(0) {
5975   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5976   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5977   ; }
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984   (eval $ac_compile) 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -z "$ac_c_werror_flag"
5992                          || test ! -s conftest.err'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest.$ac_objext'
5999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   gcc_cv_c_nbby=$i; break
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 fi
6010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011    i=`expr $i + 1`
6012  done
6013  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6014
6015 fi
6016 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6017 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6018 if test $gcc_cv_c_nbby = failed; then
6019   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6020 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6021    { (exit 1); exit 1; }; }
6022 else
6023
6024 cat >>confdefs.h <<_ACEOF
6025 #define CHAR_BIT $gcc_cv_c_nbby
6026 _ACEOF
6027
6028 fi
6029 fi
6030 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6032 if test "${ac_cv_c_bigendian+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   ac_cv_c_bigendian=unknown
6036 # See if sys/param.h defines the BYTE_ORDER macro.
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 #include <sys/types.h>
6044 #include <sys/param.h>
6045 int
6046 main ()
6047 {
6048
6049 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6050  bogus endian macros
6051 #endif
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058   (eval $ac_compile) 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } &&
6065          { ac_try='test -z "$ac_c_werror_flag"
6066                          || test ! -s conftest.err'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; } &&
6072          { ac_try='test -s conftest.$ac_objext'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; }; then
6078   # It does; now see whether it defined to BIG_ENDIAN or not.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085 #include <sys/types.h>
6086 #include <sys/param.h>
6087 int
6088 main ()
6089 {
6090
6091 #if BYTE_ORDER != BIG_ENDIAN
6092  not big endian
6093 #endif
6094   ;
6095   return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100   (eval $ac_compile) 2>conftest.er1
6101   ac_status=$?
6102   grep -v '^ *+' conftest.er1 >conftest.err
6103   rm -f conftest.er1
6104   cat conftest.err >&5
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); } &&
6107          { ac_try='test -z "$ac_c_werror_flag"
6108                          || test ! -s conftest.err'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; } &&
6114          { ac_try='test -s conftest.$ac_objext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_c_bigendian=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_cv_c_bigendian=no
6126 fi
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 fi
6133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134 if test $ac_cv_c_bigendian = unknown; then
6135 if test "$cross_compiling" = yes; then
6136    echo $ac_n "cross-compiling... " 2>&6
6137 else
6138   cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 main () {
6145   /* Are we little or big endian?  From Harbison&Steele.  */
6146   union
6147   {
6148     long l;
6149     char c[sizeof (long)];
6150   } u;
6151   u.l = 1;
6152   exit (u.c[sizeof (long) - 1] == 1);
6153 }
6154 _ACEOF
6155 rm -f conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157   (eval $ac_link) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162   (eval $ac_try) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }; }; then
6166   ac_cv_c_bigendian=no
6167 else
6168   echo "$as_me: program exited with status $ac_status" >&5
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ( exit $ac_status )
6173 ac_cv_c_bigendian=yes
6174 fi
6175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6176 fi
6177 fi
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6181 if test $ac_cv_c_bigendian = unknown; then
6182 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6183 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6184
6185 cat >conftest.c <<EOF
6186 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6187 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6188 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6189 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6190 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6191 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6192 int main() { _ascii (); _ebcdic (); return 0; }
6193 EOF
6194  if test -f conftest.c ; then
6195      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6196         if test `grep -l BIGenDianSyS conftest.o` ; then
6197            echo $ac_n ' big endian probe OK, ' 1>&6
6198            ac_cv_c_bigendian=yes
6199         fi
6200         if test `grep -l LiTTleEnDian conftest.o` ; then
6201            echo $ac_n ' little endian probe OK, ' 1>&6
6202            if test $ac_cv_c_bigendian = yes ; then
6203             ac_cv_c_bigendian=unknown;
6204            else
6205             ac_cv_c_bigendian=no
6206            fi
6207         fi
6208         echo $ac_n 'guessing bigendian ...  ' >&6
6209      fi
6210   fi
6211 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6213 fi
6214 if test $ac_cv_c_bigendian = yes; then
6215
6216 cat >>confdefs.h <<\_ACEOF
6217 #define WORDS_BIGENDIAN 1
6218 _ACEOF
6219
6220
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HOST_WORDS_BIG_ENDIAN 1
6223 _ACEOF
6224
6225   BYTEORDER=4321
6226 else
6227   BYTEORDER=1234
6228 fi
6229
6230 cat >>confdefs.h <<_ACEOF
6231 #define BYTEORDER $BYTEORDER
6232 _ACEOF
6233
6234 if test $ac_cv_c_bigendian = unknown; then
6235   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6236 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6237    { (exit 1); exit 1; }; }
6238 fi
6239
6240
6241 # --------
6242 # UNSORTED
6243 # --------
6244
6245 # Stage specific cflags for build.
6246 stage1_cflags=
6247 case $build in
6248 vax-*-*)
6249   if test x$GCC = xyes
6250   then
6251     stage1_cflags="-Wa,-J"
6252   else
6253     stage1_cflags="-J"
6254   fi
6255   ;;
6256 powerpc-*-darwin*)
6257   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6258   # sources; use -no-cpp-precomp to get to GNU cpp.
6259   # Apple's GCC has bugs in designated initializer handling, so disable
6260   # that too.
6261   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6262   ;;
6263 esac
6264
6265
6266 # These libraries may be used by collect2.
6267 # We may need a special search path to get them linked.
6268 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6269 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6270 if test "${gcc_cv_collect2_libs+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   save_LIBS="$LIBS"
6274 for libs in '' -lld -lmld \
6275                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6276                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6277 do
6278         LIBS="$libs"
6279         cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h.  */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h.  */
6285
6286 /* Override any gcc2 internal prototype to avoid an error.  */
6287 #ifdef __cplusplus
6288 extern "C"
6289 #endif
6290 /* We use char because int might match the return type of a gcc2
6291    builtin and then its argument prototype would still apply.  */
6292 char ldopen ();
6293 int
6294 main ()
6295 {
6296 ldopen ();
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 rm -f conftest.$ac_objext conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303   (eval $ac_link) 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -z "$ac_c_werror_flag"
6311                          || test ! -s conftest.err'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; } &&
6317          { ac_try='test -s conftest$ac_exeext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   gcc_cv_collect2_libs="$libs"; break
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 fi
6329 rm -f conftest.err conftest.$ac_objext \
6330       conftest$ac_exeext conftest.$ac_ext
6331 done
6332 LIBS="$save_LIBS"
6333 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6334 fi
6335 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6336 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6337 case $gcc_cv_collect2_libs in
6338         "none required")        ;;
6339         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6340 esac
6341
6342
6343 # When building Ada code on Alpha, we need exc_resume which is usually in
6344 # -lexc.  So test for it.
6345 save_LIBS="$LIBS"
6346 LIBS=
6347 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6348 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6349 if test "${ac_cv_search_exc_resume+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   ac_func_search_save_LIBS=$LIBS
6353 ac_cv_search_exc_resume=no
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h.  */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h.  */
6360
6361 /* Override any gcc2 internal prototype to avoid an error.  */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366    builtin and then its argument prototype would still apply.  */
6367 char exc_resume ();
6368 int
6369 main ()
6370 {
6371 exc_resume ();
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378   (eval $ac_link) 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -z "$ac_c_werror_flag"
6386                          || test ! -s conftest.err'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; } &&
6392          { ac_try='test -s conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   ac_cv_search_exc_resume="none required"
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 fi
6404 rm -f conftest.err conftest.$ac_objext \
6405       conftest$ac_exeext conftest.$ac_ext
6406 if test "$ac_cv_search_exc_resume" = no; then
6407   for ac_lib in exc; do
6408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6409     cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421    builtin and then its argument prototype would still apply.  */
6422 char exc_resume ();
6423 int
6424 main ()
6425 {
6426 exc_resume ();
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433   (eval $ac_link) 2>conftest.er1
6434   ac_status=$?
6435   grep -v '^ *+' conftest.er1 >conftest.err
6436   rm -f conftest.er1
6437   cat conftest.err >&5
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -z "$ac_c_werror_flag"
6441                          || test ! -s conftest.err'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; } &&
6447          { ac_try='test -s conftest$ac_exeext'
6448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449   (eval $ac_try) 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; }; then
6453   ac_cv_search_exc_resume="-l$ac_lib"
6454 break
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 fi
6460 rm -f conftest.err conftest.$ac_objext \
6461       conftest$ac_exeext conftest.$ac_ext
6462   done
6463 fi
6464 LIBS=$ac_func_search_save_LIBS
6465 fi
6466 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6467 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6468 if test "$ac_cv_search_exc_resume" != no; then
6469   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6470
6471 fi
6472
6473 GNAT_LIBEXC="$LIBS"
6474 LIBS="$save_LIBS"
6475
6476
6477 # Some systems put ldexp and frexp in libm instead of libc; assume
6478 # they're both in the same place.  jcf-dump needs them.
6479 save_LIBS="$LIBS"
6480 LIBS=
6481 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6482 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6483 if test "${ac_cv_search_ldexp+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   ac_func_search_save_LIBS=$LIBS
6487 ac_cv_search_ldexp=no
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494
6495 /* Override any gcc2 internal prototype to avoid an error.  */
6496 #ifdef __cplusplus
6497 extern "C"
6498 #endif
6499 /* We use char because int might match the return type of a gcc2
6500    builtin and then its argument prototype would still apply.  */
6501 char ldexp ();
6502 int
6503 main ()
6504 {
6505 ldexp ();
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512   (eval $ac_link) 2>conftest.er1
6513   ac_status=$?
6514   grep -v '^ *+' conftest.er1 >conftest.err
6515   rm -f conftest.er1
6516   cat conftest.err >&5
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } &&
6519          { ac_try='test -z "$ac_c_werror_flag"
6520                          || test ! -s conftest.err'
6521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522   (eval $ac_try) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }; } &&
6526          { ac_try='test -s conftest$ac_exeext'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; }; then
6532   ac_cv_search_ldexp="none required"
6533 else
6534   echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 fi
6538 rm -f conftest.err conftest.$ac_objext \
6539       conftest$ac_exeext conftest.$ac_ext
6540 if test "$ac_cv_search_ldexp" = no; then
6541   for ac_lib in m; do
6542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6543     cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h.  */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h.  */
6549
6550 /* Override any gcc2 internal prototype to avoid an error.  */
6551 #ifdef __cplusplus
6552 extern "C"
6553 #endif
6554 /* We use char because int might match the return type of a gcc2
6555    builtin and then its argument prototype would still apply.  */
6556 char ldexp ();
6557 int
6558 main ()
6559 {
6560 ldexp ();
6561   ;
6562   return 0;
6563 }
6564 _ACEOF
6565 rm -f conftest.$ac_objext conftest$ac_exeext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567   (eval $ac_link) 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } &&
6574          { ac_try='test -z "$ac_c_werror_flag"
6575                          || test ! -s conftest.err'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; } &&
6581          { ac_try='test -s conftest$ac_exeext'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; }; then
6587   ac_cv_search_ldexp="-l$ac_lib"
6588 break
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 fi
6594 rm -f conftest.err conftest.$ac_objext \
6595       conftest$ac_exeext conftest.$ac_ext
6596   done
6597 fi
6598 LIBS=$ac_func_search_save_LIBS
6599 fi
6600 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6601 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6602 if test "$ac_cv_search_ldexp" != no; then
6603   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6604
6605 fi
6606
6607 LDEXP_LIB="$LIBS"
6608 LIBS="$save_LIBS"
6609
6610
6611 # Use <inttypes.h> only if it exists,
6612 # doesn't clash with <sys/types.h>, and declares intmax_t.
6613 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6614 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6615 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 #include <sys/types.h>
6625 #include <inttypes.h>
6626 int
6627 main ()
6628 {
6629 intmax_t i = -1;
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636   (eval $ac_compile) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } &&
6643          { ac_try='test -z "$ac_c_werror_flag"
6644                          || test ! -s conftest.err'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; } &&
6650          { ac_try='test -s conftest.$ac_objext'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; }; then
6656   gcc_cv_header_inttypes_h=yes
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 gcc_cv_header_inttypes_h=no
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665
6666 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6667 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6668 if test $gcc_cv_header_inttypes_h = yes; then
6669
6670 cat >>confdefs.h <<\_ACEOF
6671 #define HAVE_INTTYPES_H 1
6672 _ACEOF
6673
6674 fi
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6703         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6704         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6705         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6706         setlocale
6707 do
6708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6709 echo "$as_me:$LINENO: checking for $ac_func" >&5
6710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6711 if eval "test \"\${$as_ac_var+set}\" = set"; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6722 #define $ac_func innocuous_$ac_func
6723
6724 /* System header to define __stub macros and hopefully few prototypes,
6725     which can conflict with char $ac_func (); below.
6726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6727     <limits.h> exists even on freestanding compilers.  */
6728
6729 #ifdef __STDC__
6730 # include <limits.h>
6731 #else
6732 # include <assert.h>
6733 #endif
6734
6735 #undef $ac_func
6736
6737 /* Override any gcc2 internal prototype to avoid an error.  */
6738 #ifdef __cplusplus
6739 extern "C"
6740 {
6741 #endif
6742 /* We use char because int might match the return type of a gcc2
6743    builtin and then its argument prototype would still apply.  */
6744 char $ac_func ();
6745 /* The GNU C library defines this for functions which it implements
6746     to always fail with ENOSYS.  Some functions are actually named
6747     something starting with __ and the normal name is an alias.  */
6748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6749 choke me
6750 #else
6751 char (*f) () = $ac_func;
6752 #endif
6753 #ifdef __cplusplus
6754 }
6755 #endif
6756
6757 int
6758 main ()
6759 {
6760 return f != $ac_func;
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767   (eval $ac_link) 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } &&
6774          { ac_try='test -z "$ac_c_werror_flag"
6775                          || test ! -s conftest.err'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; } &&
6781          { ac_try='test -s conftest$ac_exeext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   eval "$as_ac_var=yes"
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 eval "$as_ac_var=no"
6793 fi
6794 rm -f conftest.err conftest.$ac_objext \
6795       conftest$ac_exeext conftest.$ac_ext
6796 fi
6797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6799 if test `eval echo '${'$as_ac_var'}'` = yes; then
6800   cat >>confdefs.h <<_ACEOF
6801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6802 _ACEOF
6803
6804 fi
6805 done
6806
6807
6808 if test x$ac_cv_func_mbstowcs = xyes; then
6809   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6810 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6811 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814       if test "$cross_compiling" = yes; then
6815   gcc_cv_func_mbstowcs_works=yes
6816 else
6817   cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h.  */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h.  */
6823 #include <stdlib.h>
6824 int main()
6825 {
6826   mbstowcs(0, "", 0);
6827   return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832   (eval $ac_link) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837   (eval $ac_try) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); }; }; then
6841   gcc_cv_func_mbstowcs_works=yes
6842 else
6843   echo "$as_me: program exited with status $ac_status" >&5
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ( exit $ac_status )
6848 gcc_cv_func_mbstowcs_works=no
6849 fi
6850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6851 fi
6852 fi
6853 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6854 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6855   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6856
6857 cat >>confdefs.h <<\_ACEOF
6858 #define HAVE_WORKING_MBSTOWCS 1
6859 _ACEOF
6860
6861   fi
6862 fi
6863
6864 echo "$as_me:$LINENO: checking for ssize_t" >&5
6865 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6866 if test "${ac_cv_type_ssize_t+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875 $ac_includes_default
6876 int
6877 main ()
6878 {
6879 if ((ssize_t *) 0)
6880   return 0;
6881 if (sizeof (ssize_t))
6882   return 0;
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889   (eval $ac_compile) 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } &&
6896          { ac_try='test -z "$ac_c_werror_flag"
6897                          || test ! -s conftest.err'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; } &&
6903          { ac_try='test -s conftest.$ac_objext'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; }; then
6909   ac_cv_type_ssize_t=yes
6910 else
6911   echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 ac_cv_type_ssize_t=no
6915 fi
6916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6917 fi
6918 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6919 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6920 if test $ac_cv_type_ssize_t = yes; then
6921   :
6922 else
6923
6924 cat >>confdefs.h <<_ACEOF
6925 #define ssize_t int
6926 _ACEOF
6927
6928 fi
6929
6930
6931 # Try to determine the array type of the second argument of getgroups
6932 # for the target system (int or gid_t).
6933 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6934 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6935 if test "${ac_cv_type_uid_t+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 #include <sys/types.h>
6945
6946 _ACEOF
6947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948   $EGREP "uid_t" >/dev/null 2>&1; then
6949   ac_cv_type_uid_t=yes
6950 else
6951   ac_cv_type_uid_t=no
6952 fi
6953 rm -f conftest*
6954
6955 fi
6956 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6957 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6958 if test $ac_cv_type_uid_t = no; then
6959
6960 cat >>confdefs.h <<\_ACEOF
6961 #define uid_t int
6962 _ACEOF
6963
6964
6965 cat >>confdefs.h <<\_ACEOF
6966 #define gid_t int
6967 _ACEOF
6968
6969 fi
6970
6971 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6972 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6973 if test "${ac_cv_type_getgroups+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   if test "$cross_compiling" = yes; then
6977   ac_cv_type_getgroups=cross
6978 else
6979   cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985 /* Thanks to Mike Rendell for this test.  */
6986 #include <sys/types.h>
6987 #define NGID 256
6988 #undef MAX
6989 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6990
6991 int
6992 main ()
6993 {
6994   gid_t gidset[NGID];
6995   int i, n;
6996   union { gid_t gval; long lval; }  val;
6997
6998   val.lval = -1;
6999   for (i = 0; i < NGID; i++)
7000     gidset[i] = val.gval;
7001   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7002                  gidset);
7003   /* Exit non-zero if getgroups seems to require an array of ints.  This
7004      happens when gid_t is short but getgroups modifies an array of ints.  */
7005   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7006 }
7007 _ACEOF
7008 rm -f conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010   (eval $ac_link) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   ac_cv_type_getgroups=gid_t
7020 else
7021   echo "$as_me: program exited with status $ac_status" >&5
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 ( exit $ac_status )
7026 ac_cv_type_getgroups=int
7027 fi
7028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 if test $ac_cv_type_getgroups = cross; then
7031         cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037 #include <unistd.h>
7038
7039 _ACEOF
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7042   ac_cv_type_getgroups=gid_t
7043 else
7044   ac_cv_type_getgroups=int
7045 fi
7046 rm -f conftest*
7047
7048 fi
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7051 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7052
7053 cat >>confdefs.h <<_ACEOF
7054 #define GETGROUPS_T $ac_cv_type_getgroups
7055 _ACEOF
7056
7057
7058 if test "${target}" = "${build}"; then
7059   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7060 else
7061   case "${target}" in
7062         # This condition may need some tweaking.  It should include all
7063         # targets where the array type of the second argument of getgroups
7064         # is int and the type of gid_t is not equivalent to int.
7065         *-*-sunos* | *-*-ultrix*)
7066                 TARGET_GETGROUPS_T=int
7067                 ;;
7068         *)
7069                 TARGET_GETGROUPS_T=gid_t
7070                 ;;
7071   esac
7072 fi
7073
7074
7075 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7076 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7077 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7078   echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080   if test "$cross_compiling" = yes; then
7081   gcc_cv_func_printf_ptr=no
7082 else
7083   cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h.  */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h.  */
7089 #include <stdio.h>
7090
7091 int main()
7092 {
7093   char buf[64];
7094   char *p = buf, *q = NULL;
7095   sprintf(buf, "%p", p);
7096   sscanf(buf, "%p", &q);
7097   return (p != q);
7098 }
7099 _ACEOF
7100 rm -f conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102   (eval $ac_link) 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   gcc_cv_func_printf_ptr=yes
7112 else
7113   echo "$as_me: program exited with status $ac_status" >&5
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 ( exit $ac_status )
7118 gcc_cv_func_printf_ptr=no
7119 fi
7120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 rm -f core core.* *.core
7123 fi
7124 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7125 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7126 if test $gcc_cv_func_printf_ptr = yes ; then
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_PRINTF_PTR 1
7130 _ACEOF
7131
7132 fi
7133
7134 if test $ac_cv_header_sys_mman_h != yes \
7135  || test $ac_cv_func_mmap != yes; then
7136    gcc_cv_func_mmap_file=no
7137    gcc_cv_func_mmap_dev_zero=no
7138    gcc_cv_func_mmap_anon=no
7139 else
7140    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7141 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7142 if test "${gcc_cv_func_mmap_file+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   # Add a system to this blacklist if
7146    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7147    # memory area containing the same data that you'd get if you applied
7148    # read() to the same fd.  The only system known to have a problem here
7149    # is VMS, where text files have record structure.
7150    case "$host_os" in
7151      vms* | ultrix*)
7152         gcc_cv_func_mmap_file=no ;;
7153      *)
7154         gcc_cv_func_mmap_file=yes;;
7155    esac
7156 fi
7157 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7158 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7159    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7160 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7161 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   # Add a system to this blacklist if it has mmap() but /dev/zero
7165    # does not exist, or if mmapping /dev/zero does not give anonymous
7166    # zeroed pages with both the following properties:
7167    # 1. If you map N consecutive pages in with one call, and then
7168    #    unmap any subset of those pages, the pages that were not
7169    #    explicitly unmapped remain accessible.
7170    # 2. If you map two adjacent blocks of memory and then unmap them
7171    #    both at once, they must both go away.
7172    # Systems known to be in this category are Windows (all variants),
7173    # VMS, and Darwin.
7174    case "$host_os" in
7175      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7176         gcc_cv_func_mmap_dev_zero=no ;;
7177      *)
7178         gcc_cv_func_mmap_dev_zero=yes;;
7179    esac
7180 fi
7181 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7182 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7183
7184    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7185    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7186 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7187 if test "${gcc_cv_decl_map_anon+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196 #include <sys/types.h>
7197 #include <sys/mman.h>
7198 #include <unistd.h>
7199
7200 #ifndef MAP_ANONYMOUS
7201 #define MAP_ANONYMOUS MAP_ANON
7202 #endif
7203
7204 int
7205 main ()
7206 {
7207 int n = MAP_ANONYMOUS;
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214   (eval $ac_compile) 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -z "$ac_c_werror_flag"
7222                          || test ! -s conftest.err'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; } &&
7228          { ac_try='test -s conftest.$ac_objext'
7229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230   (eval $ac_try) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; }; then
7234   gcc_cv_decl_map_anon=yes
7235 else
7236   echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 gcc_cv_decl_map_anon=no
7240 fi
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 fi
7243 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7244 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7245
7246    if test $gcc_cv_decl_map_anon = no; then
7247      gcc_cv_func_mmap_anon=no
7248    else
7249      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7250 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7251 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7255    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7256    # doesn't give anonymous zeroed pages with the same properties listed
7257    # above for use of /dev/zero.
7258    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7259    case "$host_os" in
7260      vms* | cygwin* | pe | mingw* | sco* | udk* )
7261         gcc_cv_func_mmap_anon=no ;;
7262      *)
7263         gcc_cv_func_mmap_anon=yes;;
7264    esac
7265 fi
7266 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7267 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7268    fi
7269 fi
7270
7271 if test $gcc_cv_func_mmap_file = yes; then
7272
7273 cat >>confdefs.h <<\_ACEOF
7274 #define HAVE_MMAP_FILE 1
7275 _ACEOF
7276
7277 fi
7278 if test $gcc_cv_func_mmap_dev_zero = yes; then
7279
7280 cat >>confdefs.h <<\_ACEOF
7281 #define HAVE_MMAP_DEV_ZERO 1
7282 _ACEOF
7283
7284 fi
7285 if test $gcc_cv_func_mmap_anon = yes; then
7286
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_MMAP_ANON 1
7289 _ACEOF
7290
7291 fi
7292
7293
7294 case "${host}" in
7295 *-*-*vms*)
7296   # Under VMS, vfork works very differently than on Unix. The standard test
7297   # won't work, and it isn't easily adaptable. It makes more sense to
7298   # just force it.
7299   ac_cv_func_vfork_works=yes
7300   ;;
7301 esac
7302 echo "$as_me:$LINENO: checking for pid_t" >&5
7303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7304 if test "${ac_cv_type_pid_t+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h.  */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h.  */
7313 $ac_includes_default
7314 int
7315 main ()
7316 {
7317 if ((pid_t *) 0)
7318   return 0;
7319 if (sizeof (pid_t))
7320   return 0;
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327   (eval $ac_compile) 2>conftest.er1
7328   ac_status=$?
7329   grep -v '^ *+' conftest.er1 >conftest.err
7330   rm -f conftest.er1
7331   cat conftest.err >&5
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } &&
7334          { ac_try='test -z "$ac_c_werror_flag"
7335                          || test ! -s conftest.err'
7336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337   (eval $ac_try) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); }; } &&
7341          { ac_try='test -s conftest.$ac_objext'
7342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343   (eval $ac_try) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; }; then
7347   ac_cv_type_pid_t=yes
7348 else
7349   echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352 ac_cv_type_pid_t=no
7353 fi
7354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7358 if test $ac_cv_type_pid_t = yes; then
7359   :
7360 else
7361
7362 cat >>confdefs.h <<_ACEOF
7363 #define pid_t int
7364 _ACEOF
7365
7366 fi
7367
7368
7369
7370 for ac_header in unistd.h vfork.h
7371 do
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 #include <$ac_header>
7385 _ACEOF
7386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7388   ac_status=$?
7389   grep -v '^ *+' conftest.er1 >conftest.err
7390   rm -f conftest.er1
7391   cat conftest.err >&5
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); } >/dev/null; then
7394   if test -s conftest.err; then
7395     ac_cpp_err=$ac_c_preproc_warn_flag
7396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7397   else
7398     ac_cpp_err=
7399   fi
7400 else
7401   ac_cpp_err=yes
7402 fi
7403 if test -z "$ac_cpp_err"; then
7404   eval "$as_ac_Header=yes"
7405 else
7406   echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409   eval "$as_ac_Header=no"
7410 fi
7411 rm -f conftest.err conftest.$ac_ext
7412 fi
7413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7416   cat >>confdefs.h <<_ACEOF
7417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 _ACEOF
7419
7420 fi
7421 done
7422
7423
7424
7425 for ac_func in fork vfork
7426 do
7427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_func" >&5
7429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_var+set}\" = set"; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7441 #define $ac_func innocuous_$ac_func
7442
7443 /* System header to define __stub macros and hopefully few prototypes,
7444     which can conflict with char $ac_func (); below.
7445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7446     <limits.h> exists even on freestanding compilers.  */
7447
7448 #ifdef __STDC__
7449 # include <limits.h>
7450 #else
7451 # include <assert.h>
7452 #endif
7453
7454 #undef $ac_func
7455
7456 /* Override any gcc2 internal prototype to avoid an error.  */
7457 #ifdef __cplusplus
7458 extern "C"
7459 {
7460 #endif
7461 /* We use char because int might match the return type of a gcc2
7462    builtin and then its argument prototype would still apply.  */
7463 char $ac_func ();
7464 /* The GNU C library defines this for functions which it implements
7465     to always fail with ENOSYS.  Some functions are actually named
7466     something starting with __ and the normal name is an alias.  */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7468 choke me
7469 #else
7470 char (*f) () = $ac_func;
7471 #endif
7472 #ifdef __cplusplus
7473 }
7474 #endif
7475
7476 int
7477 main ()
7478 {
7479 return f != $ac_func;
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486   (eval $ac_link) 2>conftest.er1
7487   ac_status=$?
7488   grep -v '^ *+' conftest.er1 >conftest.err
7489   rm -f conftest.er1
7490   cat conftest.err >&5
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); } &&
7493          { ac_try='test -z "$ac_c_werror_flag"
7494                          || test ! -s conftest.err'
7495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496   (eval $ac_try) 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); }; } &&
7500          { ac_try='test -s conftest$ac_exeext'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; }; then
7506   eval "$as_ac_var=yes"
7507 else
7508   echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7510
7511 eval "$as_ac_var=no"
7512 fi
7513 rm -f conftest.err conftest.$ac_objext \
7514       conftest$ac_exeext conftest.$ac_ext
7515 fi
7516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7518 if test `eval echo '${'$as_ac_var'}'` = yes; then
7519   cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 fi
7524 done
7525
7526 if test "x$ac_cv_func_fork" = xyes; then
7527   echo "$as_me:$LINENO: checking for working fork" >&5
7528 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7529 if test "${ac_cv_func_fork_works+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   if test "$cross_compiling" = yes; then
7533   ac_cv_func_fork_works=cross
7534 else
7535   cat >conftest.$ac_ext <<_ACEOF
7536 /* By Ruediger Kuhlmann. */
7537       #include <sys/types.h>
7538       #if HAVE_UNISTD_H
7539       # include <unistd.h>
7540       #endif
7541       /* Some systems only have a dummy stub for fork() */
7542       int main ()
7543       {
7544         if (fork() < 0)
7545           exit (1);
7546         exit (0);
7547       }
7548 _ACEOF
7549 rm -f conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551   (eval $ac_link) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556   (eval $ac_try) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); }; }; then
7560   ac_cv_func_fork_works=yes
7561 else
7562   echo "$as_me: program exited with status $ac_status" >&5
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ( exit $ac_status )
7567 ac_cv_func_fork_works=no
7568 fi
7569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7570 fi
7571 fi
7572 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7573 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7574
7575 else
7576   ac_cv_func_fork_works=$ac_cv_func_fork
7577 fi
7578 if test "x$ac_cv_func_fork_works" = xcross; then
7579   case $host in
7580     *-*-amigaos* | *-*-msdosdjgpp*)
7581       # Override, as these systems have only a dummy fork() stub
7582       ac_cv_func_fork_works=no
7583       ;;
7584     *)
7585       ac_cv_func_fork_works=yes
7586       ;;
7587   esac
7588   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7589 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7590 fi
7591 ac_cv_func_vfork_works=$ac_cv_func_vfork
7592 if test "x$ac_cv_func_vfork" = xyes; then
7593   echo "$as_me:$LINENO: checking for working vfork" >&5
7594 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7595 if test "${ac_cv_func_vfork_works+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   if test "$cross_compiling" = yes; then
7599   ac_cv_func_vfork_works=cross
7600 else
7601   cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607 /* Thanks to Paul Eggert for this test.  */
7608 #include <stdio.h>
7609 #include <stdlib.h>
7610 #include <sys/types.h>
7611 #include <sys/stat.h>
7612 #include <sys/wait.h>
7613 #if HAVE_UNISTD_H
7614 # include <unistd.h>
7615 #endif
7616 #if HAVE_VFORK_H
7617 # include <vfork.h>
7618 #endif
7619 /* On some sparc systems, changes by the child to local and incoming
7620    argument registers are propagated back to the parent.  The compiler
7621    is told about this with #include <vfork.h>, but some compilers
7622    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7623    static variable whose address is put into a register that is
7624    clobbered by the vfork.  */
7625 static void
7626 #ifdef __cplusplus
7627 sparc_address_test (int arg)
7628 # else
7629 sparc_address_test (arg) int arg;
7630 #endif
7631 {
7632   static pid_t child;
7633   if (!child) {
7634     child = vfork ();
7635     if (child < 0) {
7636       perror ("vfork");
7637       _exit(2);
7638     }
7639     if (!child) {
7640       arg = getpid();
7641       write(-1, "", 0);
7642       _exit (arg);
7643     }
7644   }
7645 }
7646
7647 int
7648 main ()
7649 {
7650   pid_t parent = getpid ();
7651   pid_t child;
7652
7653   sparc_address_test (0);
7654
7655   child = vfork ();
7656
7657   if (child == 0) {
7658     /* Here is another test for sparc vfork register problems.  This
7659        test uses lots of local variables, at least as many local
7660        variables as main has allocated so far including compiler
7661        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7662        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7663        reuse the register of parent for one of the local variables,
7664        since it will think that parent can't possibly be used any more
7665        in this routine.  Assigning to the local variable will thus
7666        munge parent in the parent process.  */
7667     pid_t
7668       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7669       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7670     /* Convince the compiler that p..p7 are live; otherwise, it might
7671        use the same hardware register for all 8 local variables.  */
7672     if (p != p1 || p != p2 || p != p3 || p != p4
7673         || p != p5 || p != p6 || p != p7)
7674       _exit(1);
7675
7676     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7677        from child file descriptors.  If the child closes a descriptor
7678        before it execs or exits, this munges the parent's descriptor
7679        as well.  Test for this by closing stdout in the child.  */
7680     _exit(close(fileno(stdout)) != 0);
7681   } else {
7682     int status;
7683     struct stat st;
7684
7685     while (wait(&status) != child)
7686       ;
7687     exit(
7688          /* Was there some problem with vforking?  */
7689          child < 0
7690
7691          /* Did the child fail?  (This shouldn't happen.)  */
7692          || status
7693
7694          /* Did the vfork/compiler bug occur?  */
7695          || parent != getpid()
7696
7697          /* Did the file descriptor bug occur?  */
7698          || fstat(fileno(stdout), &st) != 0
7699          );
7700   }
7701 }
7702 _ACEOF
7703 rm -f conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705   (eval $ac_link) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710   (eval $ac_try) 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; }; then
7714   ac_cv_func_vfork_works=yes
7715 else
7716   echo "$as_me: program exited with status $ac_status" >&5
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ( exit $ac_status )
7721 ac_cv_func_vfork_works=no
7722 fi
7723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7724 fi
7725 fi
7726 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7727 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7728
7729 fi;
7730 if test "x$ac_cv_func_fork_works" = xcross; then
7731   ac_cv_func_vfork_works=$ac_cv_func_vfork
7732   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7733 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7734 fi
7735
7736 if test "x$ac_cv_func_vfork_works" = xyes; then
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_WORKING_VFORK 1
7740 _ACEOF
7741
7742 else
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define vfork fork
7746 _ACEOF
7747
7748 fi
7749 if test "x$ac_cv_func_fork_works" = xyes; then
7750
7751 cat >>confdefs.h <<\_ACEOF
7752 #define HAVE_WORKING_FORK 1
7753 _ACEOF
7754
7755 fi
7756
7757
7758
7759
7760   am_cv_lib_iconv_ldpath=
7761
7762 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7763 if test "${with_libiconv_prefix+set}" = set; then
7764   withval="$with_libiconv_prefix"
7765
7766     for dir in `echo "$withval" | tr : ' '`; do
7767       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7768       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7769     done
7770
7771 fi;
7772
7773
7774 for ac_header in iconv.h
7775 do
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h.  */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h.  */
7788 #include <$ac_header>
7789 _ACEOF
7790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } >/dev/null; then
7798   if test -s conftest.err; then
7799     ac_cpp_err=$ac_c_preproc_warn_flag
7800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7801   else
7802     ac_cpp_err=
7803   fi
7804 else
7805   ac_cpp_err=yes
7806 fi
7807 if test -z "$ac_cpp_err"; then
7808   eval "$as_ac_Header=yes"
7809 else
7810   echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813   eval "$as_ac_Header=no"
7814 fi
7815 rm -f conftest.err conftest.$ac_ext
7816 fi
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7820   cat >>confdefs.h <<_ACEOF
7821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7822 _ACEOF
7823
7824 fi
7825 done
7826
7827
7828   echo "$as_me:$LINENO: checking for iconv" >&5
7829 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7830 if test "${am_cv_func_iconv+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833
7834     am_cv_func_iconv="no, consider installing GNU libiconv"
7835     am_cv_lib_iconv=no
7836     cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 #include <stdlib.h>
7843 #include <iconv.h>
7844 int
7845 main ()
7846 {
7847 iconv_t cd = iconv_open("","");
7848        iconv(cd,NULL,NULL,NULL,NULL);
7849        iconv_close(cd);
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856   (eval $ac_link) 2>conftest.er1
7857   ac_status=$?
7858   grep -v '^ *+' conftest.er1 >conftest.err
7859   rm -f conftest.er1
7860   cat conftest.err >&5
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); } &&
7863          { ac_try='test -z "$ac_c_werror_flag"
7864                          || test ! -s conftest.err'
7865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866   (eval $ac_try) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); }; } &&
7870          { ac_try='test -s conftest$ac_exeext'
7871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872   (eval $ac_try) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; }; then
7876   am_cv_func_iconv=yes
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 fi
7882 rm -f conftest.err conftest.$ac_objext \
7883       conftest$ac_exeext conftest.$ac_ext
7884     if test "$am_cv_func_iconv" != yes; then
7885       am_save_LIBS="$LIBS"
7886       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7887       cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893 #include <stdlib.h>
7894 #include <iconv.h>
7895 int
7896 main ()
7897 {
7898 iconv_t cd = iconv_open("","");
7899          iconv(cd,NULL,NULL,NULL,NULL);
7900          iconv_close(cd);
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907   (eval $ac_link) 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag"
7915                          || test ! -s conftest.err'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest$ac_exeext'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927   am_cv_lib_iconv=yes
7928         am_cv_func_iconv=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 fi
7934 rm -f conftest.err conftest.$ac_objext \
7935       conftest$ac_exeext conftest.$ac_ext
7936       LIBS="$am_save_LIBS"
7937     fi
7938
7939 fi
7940 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7941 echo "${ECHO_T}$am_cv_func_iconv" >&6
7942   if test "$am_cv_func_iconv" = yes; then
7943
7944 cat >>confdefs.h <<\_ACEOF
7945 #define HAVE_ICONV 1
7946 _ACEOF
7947
7948     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7949 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7950     if test "${am_cv_proto_iconv+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953
7954       cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 #include <stdlib.h>
7962 #include <iconv.h>
7963 extern
7964 #ifdef __cplusplus
7965 "C"
7966 #endif
7967 #if defined(__STDC__) || defined(__cplusplus)
7968 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7969 #else
7970 size_t iconv();
7971 #endif
7972
7973 int
7974 main ()
7975 {
7976
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983   (eval $ac_compile) 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -z "$ac_c_werror_flag"
7991                          || test ! -s conftest.err'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   am_cv_proto_iconv_arg1=""
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 am_cv_proto_iconv_arg1="const"
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011       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);"
8012 fi
8013
8014     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8015     echo "$as_me:$LINENO: result: ${ac_t:-
8016          }$am_cv_proto_iconv" >&5
8017 echo "${ECHO_T}${ac_t:-
8018          }$am_cv_proto_iconv" >&6
8019
8020 cat >>confdefs.h <<_ACEOF
8021 #define ICONV_CONST $am_cv_proto_iconv_arg1
8022 _ACEOF
8023
8024   fi
8025   LIBICONV=
8026   if test "$am_cv_lib_iconv" = yes; then
8027     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8028   fi
8029
8030
8031 # Until we have in-tree GNU iconv:
8032 LIBICONV_DEP=
8033
8034
8035
8036   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8037 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8038 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047 #include <locale.h>
8048 int
8049 main ()
8050 {
8051 return LC_MESSAGES
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   am_cv_val_LC_MESSAGES=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 am_cv_val_LC_MESSAGES=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087 fi
8088 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8089 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8090   if test $am_cv_val_LC_MESSAGES = yes; then
8091
8092 cat >>confdefs.h <<\_ACEOF
8093 #define HAVE_LC_MESSAGES 1
8094 _ACEOF
8095
8096   fi
8097
8098
8099 # We will need to find libiberty.h and ansidecl.h
8100 saved_CFLAGS="$CFLAGS"
8101 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8126         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8127         fprintf_unlocked strstr errno snprintf vasprintf \
8128         malloc realloc calloc free basename getopt clock
8129 do
8130   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8131 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8132 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8133 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 #undef $ac_tr_decl
8143 #define $ac_tr_decl 1
8144
8145 #include "ansidecl.h"
8146 #include "system.h"
8147
8148 int
8149 main ()
8150 {
8151 #ifndef $ac_func
8152 char *(*pfn) = (char *(*)) $ac_func ;
8153 #endif
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160   (eval $ac_compile) 2>conftest.er1
8161   ac_status=$?
8162   grep -v '^ *+' conftest.er1 >conftest.err
8163   rm -f conftest.er1
8164   cat conftest.err >&5
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -z "$ac_c_werror_flag"
8168                          || test ! -s conftest.err'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; } &&
8174          { ac_try='test -s conftest.$ac_objext'
8175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176   (eval $ac_try) 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; }; then
8180   eval "gcc_cv_have_decl_$ac_func=yes"
8181 else
8182   echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 eval "gcc_cv_have_decl_$ac_func=no"
8186 fi
8187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188 fi
8189
8190 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8191   echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8193 #define $ac_tr_decl 1
8194 _ACEOF
8195
8196 else
8197   echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8199 #define $ac_tr_decl 0
8200 _ACEOF
8201
8202 fi
8203
8204 done
8205
8206
8207
8208
8209
8210 for ac_func in getrlimit setrlimit getrusage
8211 do
8212   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8213 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8214 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8215 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224 #undef $ac_tr_decl
8225 #define $ac_tr_decl 1
8226
8227 #include "ansidecl.h"
8228 #include "system.h"
8229 #ifdef HAVE_SYS_RESOURCE_H
8230 #include <sys/resource.h>
8231 #endif
8232
8233
8234 int
8235 main ()
8236 {
8237 #ifndef $ac_func
8238 char *(*pfn) = (char *(*)) $ac_func ;
8239 #endif
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246   (eval $ac_compile) 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } &&
8253          { ac_try='test -z "$ac_c_werror_flag"
8254                          || test ! -s conftest.err'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; } &&
8260          { ac_try='test -s conftest.$ac_objext'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; }; then
8266   eval "gcc_cv_have_decl_$ac_func=yes"
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 eval "gcc_cv_have_decl_$ac_func=no"
8272 fi
8273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275
8276 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8277   echo "$as_me:$LINENO: result: yes" >&5
8278 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8279 #define $ac_tr_decl 1
8280 _ACEOF
8281
8282 else
8283   echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8285 #define $ac_tr_decl 0
8286 _ACEOF
8287
8288 fi
8289
8290 done
8291
8292
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299
8300 #include "ansidecl.h"
8301 #include "system.h"
8302 #ifdef HAVE_SYS_RESOURCE_H
8303 #include <sys/resource.h>
8304 #endif
8305
8306 int
8307 main ()
8308 {
8309 rlim_t l = 0;
8310   ;
8311   return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316   (eval $ac_compile) 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -z "$ac_c_werror_flag"
8324                          || test ! -s conftest.err'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; } &&
8330          { ac_try='test -s conftest.$ac_objext'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; }; then
8336   :
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341
8342 cat >>confdefs.h <<\_ACEOF
8343 #define rlim_t long
8344 _ACEOF
8345
8346 fi
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348
8349
8350 for ac_func in ldgetname
8351 do
8352   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8353 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8354 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8355 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 #undef $ac_tr_decl
8365 #define $ac_tr_decl 1
8366
8367 #include "ansidecl.h"
8368 #include "system.h"
8369 #ifdef HAVE_LDFCN_H
8370 #include <ldfcn.h>
8371 #endif
8372
8373
8374 int
8375 main ()
8376 {
8377 #ifndef $ac_func
8378 char *(*pfn) = (char *(*)) $ac_func ;
8379 #endif
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386   (eval $ac_compile) 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -z "$ac_c_werror_flag"
8394                          || test ! -s conftest.err'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest.$ac_objext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   eval "gcc_cv_have_decl_$ac_func=yes"
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 eval "gcc_cv_have_decl_$ac_func=no"
8412 fi
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 fi
8415
8416 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8417   echo "$as_me:$LINENO: result: yes" >&5
8418 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8419 #define $ac_tr_decl 1
8420 _ACEOF
8421
8422 else
8423   echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8425 #define $ac_tr_decl 0
8426 _ACEOF
8427
8428 fi
8429
8430 done
8431
8432
8433
8434 for ac_func in times
8435 do
8436   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8437 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8438 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8439 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h.  */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h.  */
8448 #undef $ac_tr_decl
8449 #define $ac_tr_decl 1
8450
8451 #include "ansidecl.h"
8452 #include "system.h"
8453 #ifdef HAVE_SYS_TIMES_H
8454 #include <sys/times.h>
8455 #endif
8456
8457
8458 int
8459 main ()
8460 {
8461 #ifndef $ac_func
8462 char *(*pfn) = (char *(*)) $ac_func ;
8463 #endif
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -z "$ac_c_werror_flag"
8478                          || test ! -s conftest.err'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest.$ac_objext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   eval "gcc_cv_have_decl_$ac_func=yes"
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 eval "gcc_cv_have_decl_$ac_func=no"
8496 fi
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 fi
8499
8500 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8501   echo "$as_me:$LINENO: result: yes" >&5
8502 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8503 #define $ac_tr_decl 1
8504 _ACEOF
8505
8506 else
8507   echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8509 #define $ac_tr_decl 0
8510 _ACEOF
8511
8512 fi
8513
8514 done
8515
8516
8517 # More time-related stuff.
8518 echo "$as_me:$LINENO: checking for struct tms" >&5
8519 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8520 if test "${ac_cv_struct_tms+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 #include "ansidecl.h"
8532 #include "system.h"
8533 #ifdef HAVE_SYS_TIMES_H
8534 #include <sys/times.h>
8535 #endif
8536
8537 int
8538 main ()
8539 {
8540 struct tms tms;
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547   (eval $ac_compile) 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag"
8555                          || test ! -s conftest.err'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; } &&
8561          { ac_try='test -s conftest.$ac_objext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_cv_struct_tms=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_struct_tms=no
8573 fi
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8577 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8578 if test $ac_cv_struct_tms = yes; then
8579
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE_STRUCT_TMS 1
8582 _ACEOF
8583
8584 fi
8585
8586 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8587 # revisit after autoconf 2.50.
8588 echo "$as_me:$LINENO: checking for clock_t" >&5
8589 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8590 if test "${gcc_cv_type_clock_t+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600
8601 #include "ansidecl.h"
8602 #include "system.h"
8603
8604 int
8605 main ()
8606 {
8607 clock_t x;
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614   (eval $ac_compile) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"
8622                          || test ! -s conftest.err'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest.$ac_objext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   gcc_cv_type_clock_t=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 gcc_cv_type_clock_t=no
8640 fi
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8644 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8645 if test $gcc_cv_type_clock_t = yes; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define HAVE_CLOCK_T 1
8649 _ACEOF
8650
8651 fi
8652
8653 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8654 CFLAGS="$saved_CFLAGS"
8655
8656 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8657 if test "${enable_initfini_array+set}" = set; then
8658   enableval="$enable_initfini_array"
8659
8660 else
8661
8662 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8663 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8664 if test "${gcc_cv_initfini_array+set}" = set; then
8665   echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667     if test "$cross_compiling" = yes; then
8668   gcc_cv_initfini_array=no
8669 else
8670   cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676
8677 static int x = -1;
8678 int main (void) { return x; }
8679 int foo (void) { x = 0; }
8680 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8681 _ACEOF
8682 rm -f conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684   (eval $ac_link) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   gcc_cv_initfini_array=yes
8694 else
8695   echo "$as_me: program exited with status $ac_status" >&5
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ( exit $ac_status )
8700 gcc_cv_initfini_array=no
8701 fi
8702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8703 fi
8704 fi
8705 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8706 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8707   enable_initfini_array=$gcc_cv_initfini_array
8708
8709 fi;
8710 if test $enable_initfini_array = yes; then
8711
8712 cat >>confdefs.h <<\_ACEOF
8713 #define HAVE_INITFINI_ARRAY 1
8714 _ACEOF
8715
8716 fi
8717
8718 # mkdir takes a single argument on some systems.
8719 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8720 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8721 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730
8731 #include <sys/types.h>
8732 #ifdef HAVE_SYS_STAT_H
8733 # include <sys/stat.h>
8734 #endif
8735 #ifdef HAVE_UNISTD_H
8736 # include <unistd.h>
8737 #endif
8738 #ifdef HAVE_DIRECT_H
8739 # include <direct.h>
8740 #endif
8741 int
8742 main ()
8743 {
8744 mkdir ("foo", 0);
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751   (eval $ac_compile) 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -z "$ac_c_werror_flag"
8759                          || test ! -s conftest.err'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; } &&
8765          { ac_try='test -s conftest.$ac_objext'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   gcc_cv_mkdir_takes_one_arg=no
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 gcc_cv_mkdir_takes_one_arg=yes
8777 fi
8778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8781 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8782 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8783
8784 cat >>confdefs.h <<\_ACEOF
8785 #define MKDIR_TAKES_ONE_ARG 1
8786 _ACEOF
8787
8788 fi
8789
8790
8791 # File extensions
8792 manext='.1'
8793 objext='.o'
8794
8795
8796
8797 # With Setjmp/Longjmp based exception handling.
8798 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8799 if test "${enable_sjlj_exceptions+set}" = set; then
8800   enableval="$enable_sjlj_exceptions"
8801   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8802
8803 cat >>confdefs.h <<_ACEOF
8804 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8805 _ACEOF
8806
8807 fi;
8808
8809 if test x$host = x$target; then
8810    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8811 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8812 if test "${ac_cv_lib_unwind_main+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   ac_check_lib_save_LIBS=$LIBS
8816 LIBS="-lunwind  $LIBS"
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h.  */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h.  */
8823
8824
8825 int
8826 main ()
8827 {
8828 main ();
8829   ;
8830   return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835   (eval $ac_link) 2>conftest.er1
8836   ac_status=$?
8837   grep -v '^ *+' conftest.er1 >conftest.err
8838   rm -f conftest.er1
8839   cat conftest.err >&5
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } &&
8842          { ac_try='test -z "$ac_c_werror_flag"
8843                          || test ! -s conftest.err'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; } &&
8849          { ac_try='test -s conftest$ac_exeext'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_cv_lib_unwind_main=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ac_cv_lib_unwind_main=no
8861 fi
8862 rm -f conftest.err conftest.$ac_objext \
8863       conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8865 fi
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8867 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8868 if test $ac_cv_lib_unwind_main = yes; then
8869   use_libunwind_default=yes
8870 else
8871   use_libunwind_default=no
8872 fi
8873
8874 else
8875    use_libunwind_default=no
8876 fi
8877 # Use libunwind based exception handling.
8878 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8879 if test "${enable_libunwind_exceptions+set}" = set; then
8880   enableval="$enable_libunwind_exceptions"
8881   use_libunwind_exceptions=$enableval
8882 else
8883   use_libunwind_exceptions=$use_libunwind_default
8884 fi;
8885 if test x"$use_libunwind_exceptions" = xyes; then
8886
8887 cat >>confdefs.h <<\_ACEOF
8888 #define USE_LIBUNWIND_EXCEPTIONS 1
8889 _ACEOF
8890
8891 fi
8892
8893 # --------------------------------------------------------
8894 # Build, host, and target specific configuration fragments
8895 # --------------------------------------------------------
8896
8897 # Collect build-machine-specific information.
8898 . ${srcdir}/config.build
8899
8900 # Collect host-machine-specific information.
8901 . ${srcdir}/config.host
8902
8903 target_gtfiles=
8904
8905 # Collect target-machine-specific information.
8906 . ${srcdir}/config.gcc
8907
8908 extra_objs="${host_extra_objs} ${extra_objs}"
8909 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8910
8911 # Default the target-machine variables that were not explicitly set.
8912 if test x"$tm_file" = x
8913 then tm_file=$cpu_type/$cpu_type.h; fi
8914
8915 if test x"$extra_headers" = x
8916 then extra_headers=; fi
8917
8918 if test x$md_file = x
8919 then md_file=$cpu_type/$cpu_type.md; fi
8920
8921 if test x$out_file = x
8922 then out_file=$cpu_type/$cpu_type.c; fi
8923
8924 if test x"$tmake_file" = x
8925 then tmake_file=$cpu_type/t-$cpu_type
8926 fi
8927
8928 if test x"$dwarf2" = xyes
8929 then tm_file="$tm_file tm-dwarf2.h"
8930 fi
8931
8932 # Say what files are being used for the output code and MD file.
8933 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8934 echo "Using \`$srcdir/config/$md_file' as machine description file."
8935
8936 # If any of the xm_file variables contain nonexistent files, warn
8937 # about them and drop them.
8938
8939 bx=
8940 for x in $build_xm_file; do
8941   if    test -f $srcdir/config/$x
8942   then      bx="$bx $x"
8943   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8944 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8945   fi
8946 done
8947 build_xm_file="$bx"
8948
8949 hx=
8950 for x in $host_xm_file; do
8951   if    test -f $srcdir/config/$x
8952   then      hx="$hx $x"
8953   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8954 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8955   fi
8956 done
8957 host_xm_file="$hx"
8958
8959 tx=
8960 for x in $xm_file; do
8961   if    test -f $srcdir/config/$x
8962   then      tx="$tx $x"
8963   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8964 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8965   fi
8966 done
8967 xm_file="$tx"
8968
8969 count=a
8970 for f in $tm_file; do
8971         count=${count}x
8972 done
8973 if test $count = ax; then
8974         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8975 else
8976         echo "Using the following target machine macro files:"
8977         for f in $tm_file; do
8978                 echo "  $srcdir/config/$f"
8979         done
8980 fi
8981
8982 if test x$need_64bit_hwint = xyes; then
8983
8984 cat >>confdefs.h <<\_ACEOF
8985 #define NEED_64BIT_HOST_WIDE_INT 1
8986 _ACEOF
8987
8988 fi
8989
8990 count=a
8991 for f in $host_xm_file; do
8992         count=${count}x
8993 done
8994 if test $count = a; then
8995         :
8996 elif test $count = ax; then
8997         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8998 else
8999         echo "Using the following host machine macro files:"
9000         for f in $host_xm_file; do
9001                 echo "  $srcdir/config/$f"
9002         done
9003 fi
9004 echo "Using ${out_host_hook_obj} for host machine hooks."
9005
9006 if test "$host_xm_file" != "$build_xm_file"; then
9007         count=a
9008         for f in $build_xm_file; do
9009                 count=${count}x
9010         done
9011         if test $count = a; then
9012                 :
9013         elif test $count = ax; then
9014                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9015         else
9016                 echo "Using the following build machine macro files:"
9017                 for f in $build_xm_file; do
9018                         echo "  $srcdir/config/$f"
9019                 done
9020         fi
9021 fi
9022
9023 # ---------
9024 # Threading
9025 # ---------
9026
9027 # Check if a valid thread package
9028 case ${enable_threads} in
9029   "" | no)
9030     # No threads
9031     target_thread_file='single'
9032     ;;
9033   yes)
9034     # default
9035     target_thread_file='single'
9036     ;;
9037   aix | dce | gnat | irix | posix | rtems | \
9038   single | solaris | vxworks | win32 )
9039     target_thread_file=${enable_threads}
9040     ;;
9041   *)
9042     echo "${enable_threads} is an unknown thread package" 1>&2
9043     exit 1
9044     ;;
9045 esac
9046
9047 if test x${thread_file} = x; then
9048   # No thread file set by target-specific clauses in config.gcc,
9049   # so use file chosen by default logic above
9050   thread_file=${target_thread_file}
9051 fi
9052
9053 # Make gthr-default.h if we have a thread file.
9054 gthread_flags=
9055 if test $thread_file != single; then
9056   rm -f gthr-default.h
9057   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9058   gthread_flags=-DHAVE_GTHR_DEFAULT
9059 fi
9060
9061
9062 # --------
9063 # UNSORTED
9064 # --------
9065
9066 if test x$enable___cxa_atexit = xyes || \
9067    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9068    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9069 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9070 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9081 #define __cxa_atexit innocuous___cxa_atexit
9082
9083 /* System header to define __stub macros and hopefully few prototypes,
9084     which can conflict with char __cxa_atexit (); below.
9085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9086     <limits.h> exists even on freestanding compilers.  */
9087
9088 #ifdef __STDC__
9089 # include <limits.h>
9090 #else
9091 # include <assert.h>
9092 #endif
9093
9094 #undef __cxa_atexit
9095
9096 /* Override any gcc2 internal prototype to avoid an error.  */
9097 #ifdef __cplusplus
9098 extern "C"
9099 {
9100 #endif
9101 /* We use char because int might match the return type of a gcc2
9102    builtin and then its argument prototype would still apply.  */
9103 char __cxa_atexit ();
9104 /* The GNU C library defines this for functions which it implements
9105     to always fail with ENOSYS.  Some functions are actually named
9106     something starting with __ and the normal name is an alias.  */
9107 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9108 choke me
9109 #else
9110 char (*f) () = __cxa_atexit;
9111 #endif
9112 #ifdef __cplusplus
9113 }
9114 #endif
9115
9116 int
9117 main ()
9118 {
9119 return f != __cxa_atexit;
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126   (eval $ac_link) 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag"
9134                          || test ! -s conftest.err'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; } &&
9140          { ac_try='test -s conftest$ac_exeext'
9141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142   (eval $ac_try) 2>&5
9143   ac_status=$?
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); }; }; then
9146   ac_cv_func___cxa_atexit=yes
9147 else
9148   echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 ac_cv_func___cxa_atexit=no
9152 fi
9153 rm -f conftest.err conftest.$ac_objext \
9154       conftest$ac_exeext conftest.$ac_ext
9155 fi
9156 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9157 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9158 if test $ac_cv_func___cxa_atexit = yes; then
9159
9160 cat >>confdefs.h <<\_ACEOF
9161 #define DEFAULT_USE_CXA_ATEXIT 1
9162 _ACEOF
9163
9164 else
9165   echo "__cxa_atexit can't be enabled on this target"
9166 fi
9167
9168 fi
9169
9170 # Look for a file containing extra machine modes.
9171 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9172   extra_modes_file='$(srcdir)'/config/${extra_modes}
9173
9174
9175 cat >>confdefs.h <<_ACEOF
9176 #define EXTRA_MODES_FILE "config/$extra_modes"
9177 _ACEOF
9178
9179 fi
9180
9181 # auto-host.h is the file containing items generated by autoconf and is
9182 # the first file included by config.h.
9183 # If host=build, it is correct to have bconfig include auto-host.h
9184 # as well.  If host!=build, we are in error and need to do more
9185 # work to find out the build config parameters.
9186 if test x$host = x$build
9187 then
9188         build_auto=auto-host.h
9189         FORBUILD=..
9190 else
9191         # We create a subdir, then run autoconf in the subdir.
9192         # To prevent recursion we set host and build for the new
9193         # invocation of configure to the build for this invocation
9194         # of configure.
9195         tempdir=build.$$
9196         rm -rf $tempdir
9197         mkdir $tempdir
9198         cd $tempdir
9199         case ${srcdir} in
9200         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9201         *) realsrcdir=../${srcdir};;
9202         esac
9203         saved_CFLAGS="${CFLAGS}"
9204         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9205         ${realsrcdir}/configure \
9206                 --enable-languages=${enable_languages-all} \
9207                 --target=$target_alias --host=$build_alias --build=$build_alias
9208         CFLAGS="${saved_CFLAGS}"
9209
9210         # We just finished tests for the build machine, so rename
9211         # the file auto-build.h in the gcc directory.
9212         mv auto-host.h ../auto-build.h
9213         cd ..
9214         rm -rf $tempdir
9215         build_auto=auto-build.h
9216         FORBUILD=../${build_subdir}
9217 fi
9218
9219
9220 tm_file="${tm_file} defaults.h"
9221 tm_p_file="${tm_p_file} tm-preds.h"
9222 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9223 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9224 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9225 # put this back in temporarily.
9226 xm_file="ansidecl.h ${xm_file}"
9227
9228 # --------
9229 # UNSORTED
9230 # --------
9231
9232 # Get the version trigger filename from the toplevel
9233 if test "${with_gcc_version_trigger+set}" = set; then
9234         gcc_version_trigger=$with_gcc_version_trigger
9235 else
9236         gcc_version_trigger=${srcdir}/version.c
9237 fi
9238 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9239 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9240
9241 # Compile in configure arguments.
9242 if test -f configargs.h ; then
9243         # Being re-configured.
9244         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9245         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9246 else
9247         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9248 fi
9249
9250 # Double all backslashes and backslash all quotes to turn
9251 # gcc_config_arguments into a C string.
9252 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9253 $gcc_config_arguments
9254 EOF
9255 gcc_config_arguments_str=`cat conftest.out`
9256 rm -f conftest.out
9257
9258 cat > configargs.h <<EOF
9259 /* Generated automatically. */
9260 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9261 static const char thread_model[] = "$thread_file";
9262
9263 static const struct {
9264   const char *name, *value;
9265 } configure_default_options[] = $configure_default_options;
9266 EOF
9267
9268 # Internationalization
9269 PACKAGE=gcc
9270 VERSION="$gcc_version"
9271
9272
9273
9274 # If we haven't got the data from the intl directory,
9275 # assume NLS is disabled.
9276 USE_NLS=no
9277 LIBINTL=
9278 LIBINTL_DEP=
9279 INCINTL=
9280 XGETTEXT=
9281 GMSGFMT=
9282 POSUB=
9283 if test -f ../intl/config.intl; then
9284   . ../intl/config.intl
9285 fi
9286 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9287 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9288 if test x"$USE_NLS" != xyes; then
9289   echo "$as_me:$LINENO: result: no" >&5
9290 echo "${ECHO_T}no" >&6
9291 else
9292   echo "$as_me:$LINENO: result: yes" >&5
9293 echo "${ECHO_T}yes" >&6
9294
9295 cat >>confdefs.h <<\_ACEOF
9296 #define ENABLE_NLS 1
9297 _ACEOF
9298
9299
9300   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9301 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9302   # Look for .po and .gmo files in the source directory.
9303   CATALOGS=
9304   XLINGUAS=
9305   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9306     # If there aren't any .gmo files the shell will give us the
9307     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9308     # weeded out.
9309     case "$cat" in *\**)
9310       continue;;
9311     esac
9312     # The quadruple backslash is collapsed to a double backslash
9313     # by the backticks, then collapsed again by the double quotes,
9314     # leaving us with one backslash in the sed expression (right
9315     # before the dot that mustn't act as a wildcard).
9316     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9317     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9318     # The user is allowed to set LINGUAS to a list of languages to
9319     # install catalogs for.  If it's empty that means "all of them."
9320     if test "x$LINGUAS" = x; then
9321       CATALOGS="$CATALOGS $cat"
9322       XLINGUAS="$XLINGUAS $lang"
9323     else
9324       case "$LINGUAS" in *$lang*)
9325         CATALOGS="$CATALOGS $cat"
9326         XLINGUAS="$XLINGUAS $lang"
9327         ;;
9328       esac
9329     fi
9330   done
9331   LINGUAS="$XLINGUAS"
9332   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9333 echo "${ECHO_T}$LINGUAS" >&6
9334 fi
9335
9336 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9337 # -liconv on the link line twice.
9338 case "$LIBINTL" in *$LIBICONV*)
9339         LIBICONV= ;;
9340 esac
9341
9342 # Windows32 Registry support for specifying GCC installation paths.
9343 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9344 if test "${enable_win32_registry+set}" = set; then
9345   enableval="$enable_win32_registry"
9346
9347 fi;
9348 case $host_os in
9349         win32 | pe | cygwin* | mingw32* | uwin*)
9350 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9351 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9352 if test "x$enable_win32_registry" != xno; then
9353
9354 cat >>confdefs.h <<\_ACEOF
9355 #define ENABLE_WIN32_REGISTRY 1
9356 _ACEOF
9357
9358   echo "$as_me:$LINENO: result: yes" >&5
9359 echo "${ECHO_T}yes" >&6
9360   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9361 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9362 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   ac_func_search_save_LIBS=$LIBS
9366 ac_cv_search_RegOpenKeyExA=no
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373
9374 /* Override any gcc2 internal prototype to avoid an error.  */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 /* We use char because int might match the return type of a gcc2
9379    builtin and then its argument prototype would still apply.  */
9380 char RegOpenKeyExA ();
9381 int
9382 main ()
9383 {
9384 RegOpenKeyExA ();
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391   (eval $ac_link) 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -z "$ac_c_werror_flag"
9399                          || test ! -s conftest.err'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; } &&
9405          { ac_try='test -s conftest$ac_exeext'
9406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407   (eval $ac_try) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); }; }; then
9411   ac_cv_search_RegOpenKeyExA="none required"
9412 else
9413   echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 fi
9417 rm -f conftest.err conftest.$ac_objext \
9418       conftest$ac_exeext conftest.$ac_ext
9419 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9420   for ac_lib in advapi32; do
9421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9422     cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428
9429 /* Override any gcc2 internal prototype to avoid an error.  */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434    builtin and then its argument prototype would still apply.  */
9435 char RegOpenKeyExA ();
9436 int
9437 main ()
9438 {
9439 RegOpenKeyExA ();
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446   (eval $ac_link) 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -z "$ac_c_werror_flag"
9454                          || test ! -s conftest.err'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; } &&
9460          { ac_try='test -s conftest$ac_exeext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9467 break
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472 fi
9473 rm -f conftest.err conftest.$ac_objext \
9474       conftest$ac_exeext conftest.$ac_ext
9475   done
9476 fi
9477 LIBS=$ac_func_search_save_LIBS
9478 fi
9479 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9480 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9481 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9482   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9483
9484 fi
9485
9486 else
9487   echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6
9489 fi
9490
9491 # Check if user specified a different registry key.
9492 case "x${enable_win32_registry}" in
9493 x | xyes)
9494   # default.
9495   gcc_cv_win32_registry_key="$VERSION"
9496   ;;
9497 xno)
9498   # no registry lookup.
9499   gcc_cv_win32_registry_key=''
9500   ;;
9501 *)
9502   # user-specified key.
9503   gcc_cv_win32_registry_key="$enable_win32_registry"
9504   ;;
9505 esac
9506
9507 if test "x$enable_win32_registry" != xno; then
9508   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9509 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9510
9511 cat >>confdefs.h <<_ACEOF
9512 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9513 _ACEOF
9514
9515   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9516 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9517 fi
9518 ;;
9519 esac
9520
9521 # Get an absolute path to the GCC top-level source directory
9522 holddir=`${PWDCMD-pwd}`
9523 cd $srcdir
9524 topdir=`${PWDCMD-pwd}`
9525 cd $holddir
9526
9527 # Conditionalize the makefile for this host machine.
9528 xmake_file=
9529 for f in ${host_xmake_file}
9530 do
9531         if test -f ${srcdir}/config/$f
9532         then
9533                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9534         fi
9535 done
9536
9537 # Conditionalize the makefile for this target machine.
9538 tmake_file_=
9539 for f in ${tmake_file}
9540 do
9541         if test -f ${srcdir}/config/$f
9542         then
9543                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9544         fi
9545 done
9546 tmake_file="${tmake_file_}"
9547
9548 symbolic_link='ln -s'
9549
9550 # If the host doesn't support symlinks, modify CC in
9551 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9552 # Otherwise, we can use "CC=$(CC)".
9553 rm -f symtest.tem
9554 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9555 then
9556         cc_set_by_configure="\$(CC)"
9557         quoted_cc_set_by_configure="\$(CC)"
9558         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9559         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9560 else
9561         rm -f symtest.tem
9562         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9563         then
9564                 symbolic_link="cp -p"
9565         else
9566                 symbolic_link="cp"
9567         fi
9568         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9569         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9570         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9571         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9572 fi
9573 rm -f symtest.tem
9574
9575 out_object_file=`basename $out_file .c`.o
9576
9577 tm_file_list=
9578 tm_include_list=
9579 for f in $tm_file; do
9580   case $f in
9581     defaults.h )
9582        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9583        tm_include_list="${tm_include_list} $f"
9584        ;;
9585     * )
9586        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9587        tm_include_list="${tm_include_list} config/$f"
9588        ;;
9589   esac
9590 done
9591
9592 tm_p_file_list=
9593 tm_p_include_list=
9594 for f in $tm_p_file; do
9595   case $f in
9596     tm-preds.h )
9597        tm_p_file_list="${tm_p_file_list} $f"
9598        tm_p_include_list="${tm_p_include_list} $f"
9599        ;;
9600     * )
9601        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9602        tm_p_include_list="${tm_p_include_list} config/$f"
9603   esac
9604 done
9605
9606 xm_file_list=
9607 xm_include_list=
9608 for f in $xm_file; do
9609   case $f in
9610     ansidecl.h )
9611        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9612        xm_include_list="${xm_include_list} $f"
9613        ;;
9614     auto-host.h )
9615        xm_file_list="${xm_file_list} $f"
9616        xm_include_list="${xm_include_list} $f"
9617        ;;
9618     * )
9619        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9620        xm_include_list="${xm_include_list} config/$f"
9621        ;;
9622   esac
9623 done
9624
9625 host_xm_file_list=
9626 host_xm_include_list=
9627 for f in $host_xm_file; do
9628   case $f in
9629     ansidecl.h )
9630        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9631        host_xm_include_list="${host_xm_include_list} $f"
9632        ;;
9633     auto-host.h )
9634        host_xm_file_list="${host_xm_file_list} $f"
9635        host_xm_include_list="${host_xm_include_list} $f"
9636        ;;
9637     * )
9638        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9639        host_xm_include_list="${host_xm_include_list} config/$f"
9640        ;;
9641   esac
9642 done
9643
9644 build_xm_file_list=
9645 for f in $build_xm_file; do
9646   case $f in
9647     ansidecl.h )
9648        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9649        build_xm_include_list="${build_xm_include_list} $f"
9650        ;;
9651     auto-build.h | auto-host.h )
9652        build_xm_file_list="${build_xm_file_list} $f"
9653        build_xm_include_list="${build_xm_include_list} $f"
9654        ;;
9655     * )
9656        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9657        build_xm_include_list="${build_xm_include_list} config/$f"
9658        ;;
9659   esac
9660 done
9661
9662 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9663 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9664 CROSS=
9665 ALL=all.internal
9666 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9667 if test x$host != x$target
9668 then
9669         CROSS="-DCROSS_COMPILE"
9670         ALL=all.cross
9671         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9672         case "$host","$target" in
9673         # Darwin crosses can use the host system's libraries and headers,
9674         # because of the fat library support.  Of course, it must be the
9675         # same version of Darwin on both sides.  Allow the user to
9676         # just say --target=foo-darwin without a version number to mean
9677         # "the version on this system".
9678             *-*-darwin*,*-*-darwin*)
9679                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9680                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9681                 if test $hostos = $targetos -o $targetos = darwin ; then
9682                     CROSS=
9683                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9684                     with_headers=yes
9685                 fi
9686                 ;;
9687
9688             i?86-*-*,x86_64-*-* \
9689             | powerpc*-*-*,powerpc64*-*-*)
9690                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9691         esac
9692 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9693         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9694         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9695 fi
9696
9697 # If this is a cross-compiler that does not
9698 # have its own set of headers then define
9699 # inhibit_libc
9700
9701 # If this is using newlib, without having the headers available now,
9702 # then define inhibit_libc in LIBGCC2_CFLAGS.
9703 # This prevents libgcc2 from containing any code which requires libc
9704 # support.
9705 inhibit_libc=
9706 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9707        test x$with_newlib = xyes ; } &&
9708      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9709        inhibit_libc=-Dinhibit_libc
9710 fi
9711
9712
9713 # When building gcc with a cross-compiler, we need to adjust things so
9714 # that the generator programs are still built with the native compiler.
9715 # Also, we cannot run fixincludes or fix-header.
9716
9717 # These are the normal (build=host) settings:
9718 BUILD_PREFIX=
9719 BUILD_PREFIX_1=ignore-
9720 CC_FOR_BUILD='$(CC)'
9721 BUILD_CFLAGS='$(ALL_CFLAGS)'
9722
9723 STMP_FIXINC=stmp-fixinc
9724
9725 # Possibly disable fixproto, on a per-target basis.
9726 case ${use_fixproto} in
9727   no)
9728     STMP_FIXPROTO=
9729     ;;
9730   yes)
9731     STMP_FIXPROTO=stmp-fixproto
9732     ;;
9733 esac
9734
9735
9736 # And these apply if build != host, or we are generating coverage data
9737 if test x$build != x$host || test "x$coverage_flags" != x
9738 then
9739     BUILD_PREFIX=build-
9740     BUILD_PREFIX_1=build-
9741     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9742
9743     if test "x$TARGET_SYSTEM_ROOT" = x; then
9744         STMP_FIXINC=
9745         STMP_FIXPROTO=
9746     fi
9747 fi
9748
9749 # Expand extra_headers to include complete path.
9750 # This substitutes for lots of t-* files.
9751 extra_headers_list=
9752 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9753 for file in ${extra_headers} ; do
9754   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9755 done
9756
9757 # Define collect2 in Makefile.
9758 case $host_can_use_collect2 in
9759   no) collect2= ;;
9760   *) collect2='collect2$(exeext)' ;;
9761 esac
9762
9763
9764 # Add a definition of USE_COLLECT2 if system wants one.
9765 case $use_collect2 in
9766   no) use_collect2= ;;
9767   "") ;;
9768   *)
9769     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9770     xm_defines="${xm_defines} USE_COLLECT2"
9771     case $host_can_use_collect2 in
9772       no)
9773         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9774 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9775    { (exit 1); exit 1; }; }
9776         ;;
9777     esac
9778     ;;
9779 esac
9780
9781 # ---------------------------
9782 # Assembler & linker features
9783 # ---------------------------
9784
9785 # Identify the assembler which will work hand-in-glove with the newly
9786 # built GCC, so that we can examine its features.  This is the assembler
9787 # which will be driven by the driver program.
9788 #
9789 # If build != host, and we aren't building gas in-tree, we identify a
9790 # build->target assembler and hope that it will have the same features
9791 # as the host->target assembler we'll be using.
9792 echo "$as_me:$LINENO: checking what assembler to use" >&5
9793 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9794 in_tree_gas=no
9795 gcc_cv_as=
9796 gcc_cv_gas_major_version=
9797 gcc_cv_gas_minor_version=
9798 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9799 if test -x "$DEFAULT_ASSEMBLER"; then
9800         gcc_cv_as="$DEFAULT_ASSEMBLER"
9801 elif test -x as$host_exeext; then
9802         # Build using assembler in the current directory.
9803         gcc_cv_as=./as$host_exeext
9804 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9805      && test -f ../gas/Makefile \
9806      && test x$build = x$host; then
9807   # Single tree build which includes gas.  We want to prefer it
9808   # over whatever linker top-level may have detected, since
9809   # we'll use what we're building after installation anyway.
9810   in_tree_gas=yes
9811   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9812 for f in $gcc_cv_as_bfd_srcdir/configure \
9813          $gcc_cv_as_gas_srcdir/configure \
9814          $gcc_cv_as_gas_srcdir/configure.in \
9815          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9816   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9817   if test x$gcc_cv_gas_version != x; then
9818     break
9819   fi
9820 done
9821 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9822 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9823 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9824 case $gcc_cv_gas_patch_version in
9825   "") gcc_cv_gas_patch_version="0" ;;
9826 esac
9827 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9828                             + $gcc_cv_gas_minor_version \) \* 1000 \
9829                             + $gcc_cv_gas_patch_version`
9830
9831   rm -f as$host_exeext
9832   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9833   in_tree_gas_is_elf=no
9834   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9835      || (grep 'obj_format = multi' ../gas/Makefile \
9836          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9837   then
9838     in_tree_gas_is_elf=yes
9839   fi
9840 elif test -x "$AS_FOR_TARGET"; then
9841         gcc_cv_as="$AS_FOR_TARGET"
9842 elif test -x "$AS" && test x$host = x$target; then
9843         gcc_cv_as="$AS"
9844 fi
9845
9846 if test "x$gcc_cv_as" = x; then
9847         # Search the same directories that the installed compiler will
9848         # search.  Else we may find the wrong assembler and lose.  If we
9849         # do not find a suitable assembler binary, then try the user's
9850         # path.
9851         #
9852         # Also note we have to check MD_EXEC_PREFIX before checking the
9853         # user's path.  Unfortunately, there is no good way to get at the
9854         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9855         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9856         # to be fixed as part of the make/configure rewrite too.
9857
9858         if test "x$exec_prefix" = xNONE; then
9859                 if test "x$prefix" = xNONE; then
9860                         test_prefix=/usr/local
9861                 else
9862                         test_prefix=$prefix
9863                 fi
9864         else
9865                 test_prefix=$exec_prefix
9866         fi
9867
9868         # If the loop below does not find an assembler, then use whatever
9869         # one we can find in the users's path.
9870         # user's path.
9871         if test "x$program_prefix" != xNONE; then
9872                 gcc_cv_as=${program_prefix}as$host_exeext
9873         else
9874                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9875         fi
9876
9877         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9878                    $test_prefix/libexec/gcc/$target_noncanonical \
9879                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9880                    /usr/lib/gcc/$target_noncanonical \
9881                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9882                    $test_prefix/$target_noncanonical/bin"
9883
9884         if test x$host = x$target; then
9885             test_dirs="$test_dirs \
9886                    /usr/libexec \
9887                    /usr/ccs/gcc \
9888                    /usr/ccs/bin \
9889                    /udk/usr/ccs/bin \
9890                    /bsd43/usr/lib/cmplrs/cc \
9891                    /usr/cross64/usr/bin \
9892                    /usr/lib/cmplrs/cc \
9893                    /sysv/usr/lib/cmplrs/cc \
9894                    /svr4/usr/lib/cmplrs/cc \
9895                    /usr/bin"
9896         fi
9897
9898         for dir in $test_dirs; do
9899                 if test -x $dir/as$host_exeext; then
9900                         gcc_cv_as=$dir/as$host_exeext
9901                         break;
9902                 fi
9903         done
9904 fi
9905 case $in_tree_gas in
9906   yes)
9907     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9908 echo "${ECHO_T}\"newly built gas\"" >&6
9909     ;;
9910   no)
9911     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9912 echo "${ECHO_T}$gcc_cv_as" >&6
9913     ;;
9914 esac
9915
9916 # Identify the linker which will work hand-in-glove with the newly
9917 # built GCC, so that we can examine its features.  This is the linker
9918 # which will be driven by the driver program.
9919 #
9920 # If build != host, and we aren't building gas in-tree, we identify a
9921 # build->target linker and hope that it will have the same features
9922 # as the host->target linker we'll be using.
9923 echo "$as_me:$LINENO: checking what linker to use" >&5
9924 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9925 in_tree_ld=no
9926 gcc_cv_ld=
9927 gcc_cv_gld_major_version=
9928 gcc_cv_gld_minor_version=
9929 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9930 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9931 if test -x "$DEFAULT_LINKER"; then
9932         gcc_cv_ld="$DEFAULT_LINKER"
9933 elif test -x collect-ld$host_exeext; then
9934         # Build using linker in the current directory.
9935         gcc_cv_ld=./collect-ld$host_exeext
9936 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9937      && test -f ../ld/Makefile \
9938      && test x$build = x$host; then
9939         # Single tree build which includes ld.  We want to prefer it
9940         # over whatever linker top-level may have detected, since
9941         # we'll use what we're building after installation anyway.
9942         in_tree_ld=yes
9943         in_tree_ld_is_elf=no
9944         if (grep 'EMUL = .*elf' ../ld/Makefile \
9945             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9946           in_tree_ld_is_elf=yes
9947         fi
9948         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
9949         do
9950                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9951                 if test x$gcc_cv_gld_version != x; then
9952                         break
9953                 fi
9954         done
9955         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9956         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9957         rm -f collect-ld$host_exeext
9958         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9959                 2>/dev/null
9960 elif test -x "$LD_FOR_TARGET"; then
9961         gcc_cv_ld="$LD_FOR_TARGET"
9962 elif test -x "$LD" && test x$host = x$target; then
9963         gcc_cv_ld="$LD"
9964 fi
9965
9966 if test "x$gcc_cv_ld" = x; then
9967         # Search the same directories that the installed compiler will
9968         # search.  Else we may find the wrong linker and lose.  If we
9969         # do not find a suitable linker binary, then try the user's
9970         # path.
9971         #
9972         # Also note we have to check MD_EXEC_PREFIX before checking the
9973         # user's path.  Unfortunately, there is no good way to get at the
9974         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9975         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9976         # to be fixed as part of the make/configure rewrite too.
9977
9978         if test "x$exec_prefix" = xNONE; then
9979                 if test "x$prefix" = xNONE; then
9980                         test_prefix=/usr/local
9981                 else
9982                         test_prefix=$prefix
9983                 fi
9984         else
9985                 test_prefix=$exec_prefix
9986         fi
9987
9988         # If the loop below does not find an linker, then use whatever
9989         # one we can find in the users's path.
9990         # user's path.
9991         if test "x$program_prefix" != xNONE; then
9992                 gcc_cv_ld=${program_prefix}ld$host_exeext
9993         else
9994                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
9995         fi
9996
9997         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9998                    $test_prefix/libexec/gcc/$target_noncanonical \
9999                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10000                    /usr/lib/gcc/$target_noncanonical \
10001                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10002                    $test_prefix/$target_noncanonical/bin"
10003
10004         if test x$host = x$target; then
10005             test_dirs="$test_dirs \
10006                    /usr/libexec \
10007                    /usr/ccs/gcc \
10008                    /usr/ccs/bin \
10009                    /udk/usr/ccs/bin \
10010                    /bsd43/usr/lib/cmplrs/cc \
10011                    /usr/cross64/usr/bin \
10012                    /usr/lib/cmplrs/cc \
10013                    /sysv/usr/lib/cmplrs/cc \
10014                    /svr4/usr/lib/cmplrs/cc \
10015                    /usr/bin"
10016         fi
10017
10018         for dir in $test_dirs; do
10019                 if test -x $dir/ld$host_exeext; then
10020                         gcc_cv_ld=$dir/ld$host_exeext
10021                         break;
10022                 fi
10023         done
10024 fi
10025 case $in_tree_ld in
10026   yes)
10027     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10028 echo "${ECHO_T}\"newly built ld\"" >&6
10029     ;;
10030   no)
10031     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10032 echo "${ECHO_T}$gcc_cv_ld" >&6
10033     ;;
10034 esac
10035
10036 # Figure out what nm we will be using.
10037 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10038 echo "$as_me:$LINENO: checking what nm to use" >&5
10039 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10040 in_tree_nm=no
10041 if test -x nm$host_exeext; then
10042         gcc_cv_nm=./nm$host_exeext
10043 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10044      && test -f ../binutils/Makefile; then
10045         # Single tree build which includes binutils.
10046         in_tree_nm=yes
10047         gcc_cv_nm=./nm$host_exeext
10048         rm -f nm$host_exeext
10049         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10050 elif test "x$program_prefix" != xNONE; then
10051         gcc_cv_nm=${program_prefix}nm$host_exeext
10052 else
10053         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10054 fi
10055 case $in_tree_nm in
10056   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10057 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10058   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10059 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10060 esac
10061
10062 # Figure out what objdump we will be using.
10063 echo "$as_me:$LINENO: checking what objdump to use" >&5
10064 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10065 in_tree_objdump=no
10066 if test -x objdump$host_exeext; then
10067         gcc_cv_objdump=./objdump$host_exeext
10068 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10069      && test -f ../binutils/Makefile; then
10070         # Single tree build which includes binutils.
10071         in_tree_objdump=yes
10072         gcc_cv_objdump=./objdump$host_exeext
10073         rm -f objdump$host_exeext
10074         $symbolic_link ../binutils/objdump$host_exeext \
10075                 objdump$host_exeext 2>/dev/null
10076 elif test "x$program_prefix" != xNONE; then
10077         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10078 else
10079         gcc_cv_objdump=`echo objdump | \
10080                 sed "${program_transform_name}"`$host_exeext
10081 fi
10082 case $in_tree_objdump in
10083   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10084 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10085   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10086 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10087 esac
10088
10089 # Figure out what assembler alignment features are present.
10090 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10091 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10092 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   gcc_cv_as_balign_and_p2align=no
10096     if test $in_tree_gas = yes; then
10097     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10098   then gcc_cv_as_balign_and_p2align=yes
10099 fi
10100   elif test x$gcc_cv_as != x; then
10101     echo '.balign 4
10102 .p2align 2' > conftest.s
10103     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }
10109     then
10110         gcc_cv_as_balign_and_p2align=yes
10111     else
10112       echo "configure: failed program was" >&5
10113       cat conftest.s >&5
10114     fi
10115     rm -f conftest.o conftest.s
10116   fi
10117 fi
10118 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10119 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10120 if test $gcc_cv_as_balign_and_p2align = yes; then
10121
10122 cat >>confdefs.h <<\_ACEOF
10123 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10124 _ACEOF
10125
10126 fi
10127
10128 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10129 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10130 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   gcc_cv_as_max_skip_p2align=no
10134     if test $in_tree_gas = yes; then
10135     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10136   then gcc_cv_as_max_skip_p2align=yes
10137 fi
10138   elif test x$gcc_cv_as != x; then
10139     echo '.p2align 4,,7' > conftest.s
10140     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; }
10146     then
10147         gcc_cv_as_max_skip_p2align=yes
10148     else
10149       echo "configure: failed program was" >&5
10150       cat conftest.s >&5
10151     fi
10152     rm -f conftest.o conftest.s
10153   fi
10154 fi
10155 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10156 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10157 if test $gcc_cv_as_max_skip_p2align = yes; then
10158
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10161 _ACEOF
10162
10163 fi
10164
10165 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10166 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10167 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   gcc_cv_as_subsection_m1=no
10171     if test $in_tree_gas = yes; then
10172     if test $in_tree_gas_is_elf = yes \
10173   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10174   then gcc_cv_as_subsection_m1=yes
10175 fi
10176   elif test x$gcc_cv_as != x; then
10177     echo 'conftest_label1: .word 0
10178 .subsection -1
10179 conftest_label2: .word 0
10180 .previous' > conftest.s
10181     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183   (eval $ac_try) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; }
10187     then
10188         if test x$gcc_cv_nm != x; then
10189     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10190     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10191     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10192     then :
10193     else gcc_cv_as_subsection_m1=yes
10194     fi
10195     rm -f conftest.nm1 conftest.nm2
10196   fi
10197     else
10198       echo "configure: failed program was" >&5
10199       cat conftest.s >&5
10200     fi
10201     rm -f conftest.o conftest.s
10202   fi
10203 fi
10204 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10205 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10206 if test $gcc_cv_as_subsection_m1 = yes; then
10207
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_GAS_SUBSECTION_ORDERING 1
10210 _ACEOF
10211
10212 fi
10213
10214 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10215 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10216 if test "${gcc_cv_as_weak+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   gcc_cv_as_weak=no
10220     if test $in_tree_gas = yes; then
10221     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10222   then gcc_cv_as_weak=yes
10223 fi
10224   elif test x$gcc_cv_as != x; then
10225     echo '      .weak foobar' > conftest.s
10226     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }
10232     then
10233         gcc_cv_as_weak=yes
10234     else
10235       echo "configure: failed program was" >&5
10236       cat conftest.s >&5
10237     fi
10238     rm -f conftest.o conftest.s
10239   fi
10240 fi
10241 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10242 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10243 if test $gcc_cv_as_weak = yes; then
10244
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_GAS_WEAK 1
10247 _ACEOF
10248
10249 fi
10250
10251 # .hidden needs to be supported in both the assembler and the linker,
10252 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10253 # This is irritatingly difficult to feature test for; we have to check the
10254 # date string after the version number.  If we've got an in-tree
10255 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10256 # to be safe.
10257 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10258 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10259 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10260 if test "${gcc_cv_as_hidden+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   gcc_cv_as_hidden=no
10264     if test $in_tree_gas = yes; then
10265     if test $in_tree_gas_is_elf = yes \
10266   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10267   then gcc_cv_as_hidden=yes
10268 fi
10269   elif test x$gcc_cv_as != x; then
10270     echo '      .hidden foobar
10271 foobar:' > conftest.s
10272     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }
10278     then
10279         gcc_cv_as_hidden=yes
10280     else
10281       echo "configure: failed program was" >&5
10282       cat conftest.s >&5
10283     fi
10284     rm -f conftest.o conftest.s
10285   fi
10286 fi
10287 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10288 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10289
10290
10291 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10292 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10293 if test "${gcc_cv_ld_hidden+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   if test $in_tree_ld = yes ; then
10297   gcc_cv_ld_hidden=no
10298   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 \
10299      && test $in_tree_ld_is_elf = yes; then
10300      gcc_cv_ld_hidden=yes
10301   fi
10302 else
10303   gcc_cv_ld_hidden=yes
10304   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10305   if echo "$ld_ver" | grep GNU > /dev/null; then
10306     ld_vers=`echo $ld_ver | sed -n \
10307         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10308         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10309         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10310         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10311         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10312         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10313     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'`
10314     if test 0"$ld_date" -lt 20020404; then
10315       if test -n "$ld_date"; then
10316         # If there was date string, but was earlier than 2002-04-04, fail
10317         gcc_cv_ld_hidden=no
10318       elif test -z "$ld_vers"; then
10319         # If there was no date string nor ld version number, something is wrong
10320         gcc_cv_ld_hidden=no
10321       else
10322         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10323         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10324         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10325         test -z "$ld_vers_patch" && ld_vers_patch=0
10326         if test "$ld_vers_major" -lt 2; then
10327           gcc_cv_ld_hidden=no
10328         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10329           gcc_cv_ld_hidden="no"
10330         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10331           gcc_cv_ld_hidden=no
10332         fi
10333       fi
10334     fi
10335   else
10336     case "${target}" in
10337       hppa64*-*-hpux* | ia64*-*-hpux*)
10338         gcc_cv_ld_hidden=yes
10339         ;;
10340       *)
10341         gcc_cv_ld_hidden=no
10342         ;;
10343     esac
10344   fi
10345 fi
10346 fi
10347 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10348 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10349 libgcc_visibility=no
10350
10351 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10352   libgcc_visibility=yes
10353
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_GAS_HIDDEN 1
10356 _ACEOF
10357
10358 fi
10359
10360 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10361 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10362 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10363 if test "${gcc_cv_as_leb128+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   gcc_cv_as_leb128=no
10367     if test $in_tree_gas = yes; then
10368     if test $in_tree_gas_is_elf = yes \
10369   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10370   then gcc_cv_as_leb128=yes
10371 fi
10372   elif test x$gcc_cv_as != x; then
10373     echo '      .data
10374         .uleb128 L2 - L1
10375 L1:
10376         .uleb128 1280
10377         .sleb128 -1010
10378 L2:' > conftest.s
10379     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381   (eval $ac_try) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }
10385     then
10386         # GAS versions before 2.11 do not support uleb128,
10387   # despite appearing to.
10388   # ??? There exists an elf-specific test that will crash
10389   # the assembler.  Perhaps it's better to figure out whether
10390   # arbitrary sections are supported and try the test.
10391   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10392   if echo "$as_ver" | grep GNU > /dev/null; then
10393     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10394     as_major=`echo $as_ver | sed 's/\..*//'`
10395     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10396     if test $as_major -eq 2 && test $as_minor -lt 11
10397     then :
10398     else gcc_cv_as_leb128=yes
10399     fi
10400   fi
10401     else
10402       echo "configure: failed program was" >&5
10403       cat conftest.s >&5
10404     fi
10405     rm -f conftest.o conftest.s
10406   fi
10407 fi
10408 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10409 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10410 if test $gcc_cv_as_leb128 = yes; then
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_AS_LEB128 1
10414 _ACEOF
10415
10416 fi
10417
10418 # GAS versions up to and including 2.11.0 may mis-optimize
10419 # .eh_frame data.
10420 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10421 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10422 if test "${gcc_cv_as_eh_frame+set}" = set; then
10423   echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425   gcc_cv_as_eh_frame=no
10426     if test $in_tree_gas = yes; then
10427     if test $in_tree_gas_is_elf = yes \
10428   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10429   then gcc_cv_as_eh_frame=yes
10430 fi
10431   elif test x$gcc_cv_as != x; then
10432     echo '      .text
10433 .LFB1:
10434         .4byte  0
10435 .L1:
10436         .4byte  0
10437 .LFE1:
10438         .section        .eh_frame,"aw",@progbits
10439 __FRAME_BEGIN__:
10440         .4byte  .LECIE1-.LSCIE1
10441 .LSCIE1:
10442         .4byte  0x0
10443         .byte   0x1
10444         .ascii "z\0"
10445         .byte   0x1
10446         .byte   0x78
10447         .byte   0x1a
10448         .byte   0x0
10449         .byte   0x4
10450         .4byte  1
10451         .p2align 1
10452 .LECIE1:
10453 .LSFDE1:
10454         .4byte  .LEFDE1-.LASFDE1
10455 .LASFDE1:
10456         .4byte  .LASFDE1-__FRAME_BEGIN__
10457         .4byte  .LFB1
10458         .4byte  .LFE1-.LFB1
10459         .byte   0x4
10460         .4byte  .LFE1-.LFB1
10461         .byte   0x4
10462         .4byte  .L1-.LFB1
10463 .LEFDE1:' > conftest.s
10464     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }
10470     then
10471           cat > conftest.lit <<EOF
10472  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10473  0010 01000000 12000000 18000000 00000000  ................
10474  0020 08000000 04080000 0044               .........D      
10475 EOF
10476 cat > conftest.big <<EOF
10477  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10478  0010 00000001 00000012 00000018 00000000  ................
10479  0020 00000008 04000000 0844               .........D      
10480 EOF
10481   # If the assembler didn't choke, and we can objdump,
10482   # and we got the correct data, then succeed.
10483   if test x$gcc_cv_objdump != x \
10484   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10485      | tail -3 > conftest.got \
10486   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10487     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10488   then
10489     gcc_cv_as_eh_frame=yes
10490   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496     gcc_cv_as_eh_frame=buggy
10497   else
10498     # Uh oh, what do we do now?
10499     gcc_cv_as_eh_frame=no
10500   fi
10501     else
10502       echo "configure: failed program was" >&5
10503       cat conftest.s >&5
10504     fi
10505     rm -f conftest.o conftest.s
10506   fi
10507 fi
10508 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10509 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10510
10511
10512 if test $gcc_cv_as_eh_frame = buggy; then
10513
10514 cat >>confdefs.h <<\_ACEOF
10515 #define USE_AS_TRADITIONAL_FORMAT 1
10516 _ACEOF
10517
10518 fi
10519
10520 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10521 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10522 if test "${gcc_cv_as_shf_merge+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   gcc_cv_as_shf_merge=no
10526     if test $in_tree_gas = yes; then
10527     if test $in_tree_gas_is_elf = yes \
10528   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10529   then gcc_cv_as_shf_merge=yes
10530 fi
10531   elif test x$gcc_cv_as != x; then
10532     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10533     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535   (eval $ac_try) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; }
10539     then
10540         gcc_cv_as_shf_merge=yes
10541     else
10542       echo "configure: failed program was" >&5
10543       cat conftest.s >&5
10544     fi
10545     rm -f conftest.o conftest.s
10546   fi
10547 fi
10548 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10549 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10550
10551
10552 cat >>confdefs.h <<_ACEOF
10553 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10554 _ACEOF
10555
10556
10557 # Thread-local storage - the check is heavily parametrized.
10558 conftest_s=
10559 tls_first_major=
10560 tls_first_minor=
10561 tls_as_opt=
10562 case "$target" in
10563   alpha*-*-*)
10564     conftest_s='
10565         .section ".tdata","awT",@progbits
10566 foo:    .long   25
10567         .text
10568         ldq     $27,__tls_get_addr($29)         !literal!1
10569         lda     $16,foo($29)                    !tlsgd!1
10570         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10571         ldq     $27,__tls_get_addr($29)         !literal!2
10572         lda     $16,foo($29)                    !tlsldm!2
10573         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10574         ldq     $1,foo($29)                     !gotdtprel
10575         ldah    $2,foo($29)                     !dtprelhi
10576         lda     $3,foo($2)                      !dtprello
10577         lda     $4,foo($29)                     !dtprel
10578         ldq     $1,foo($29)                     !gottprel
10579         ldah    $2,foo($29)                     !tprelhi
10580         lda     $3,foo($2)                      !tprello
10581         lda     $4,foo($29)                     !tprel'
10582         tls_first_major=2
10583         tls_first_minor=13
10584         tls_as_opt=--fatal-warnings
10585         ;;
10586   i[34567]86-*-*)
10587     conftest_s='
10588         .section ".tdata","awT",@progbits
10589 foo:    .long   25
10590         .text
10591         movl    %gs:0, %eax
10592         leal    foo@TLSGD(,%ebx,1), %eax
10593         leal    foo@TLSLDM(%ebx), %eax
10594         leal    foo@DTPOFF(%eax), %edx
10595         movl    foo@GOTTPOFF(%ebx), %eax
10596         subl    foo@GOTTPOFF(%ebx), %eax
10597         addl    foo@GOTNTPOFF(%ebx), %eax
10598         movl    foo@INDNTPOFF, %eax
10599         movl    $foo@TPOFF, %eax
10600         subl    $foo@TPOFF, %eax
10601         leal    foo@NTPOFF(%ecx), %eax'
10602         tls_first_major=2
10603         tls_first_minor=14
10604         tls_as_opt=--fatal-warnings
10605         ;;
10606   x86_64-*-*)
10607     conftest_s='
10608         .section ".tdata","awT",@progbits
10609 foo:    .long   25
10610         .text
10611         movq    %fs:0, %rax
10612         leaq    foo@TLSGD(%rip), %rdi
10613         leaq    foo@TLSLD(%rip), %rdi
10614         leaq    foo@DTPOFF(%rax), %rdx
10615         movq    foo@GOTTPOFF(%rip), %rax
10616         movq    $foo@TPOFF, %rax'
10617         tls_first_major=2
10618         tls_first_minor=14
10619         tls_as_opt=--fatal-warnings
10620         ;;
10621   ia64-*-*)
10622     conftest_s='
10623         .section ".tdata","awT",@progbits
10624 foo:    data8   25
10625         .text
10626         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10627         addl    r17 = @ltoff(@dtprel(foo#)), gp
10628         addl    r18 = @ltoff(@tprel(foo#)), gp
10629         addl    r19 = @dtprel(foo#), gp
10630         adds    r21 = @dtprel(foo#), r13
10631         movl    r23 = @dtprel(foo#)
10632         addl    r20 = @tprel(foo#), gp
10633         adds    r22 = @tprel(foo#), r13
10634         movl    r24 = @tprel(foo#)'
10635         tls_first_major=2
10636         tls_first_minor=13
10637         tls_as_opt=--fatal-warnings
10638         ;;
10639   powerpc-*-*)
10640     conftest_s='
10641         .section ".tdata","awT",@progbits
10642         .align 2
10643 ld0:    .space 4
10644 ld1:    .space 4
10645 x1:     .space 4
10646 x2:     .space 4
10647 x3:     .space 4
10648         .text
10649         addi 3,31,ld0@got@tlsgd
10650         bl __tls_get_addr
10651         addi 3,31,x1@got@tlsld
10652         bl __tls_get_addr
10653         addi 9,3,x1@dtprel
10654         addis 9,3,x2@dtprel@ha
10655         addi 9,9,x2@dtprel@l
10656         lwz 9,x3@got@tprel(31)
10657         add 9,9,x@tls
10658         addi 9,2,x1@tprel
10659         addis 9,2,x2@tprel@ha
10660         addi 9,9,x2@tprel@l'
10661         tls_first_major=2
10662         tls_first_minor=14
10663         tls_as_opt="-a32 --fatal-warnings"
10664         ;;
10665   powerpc64-*-*)
10666     conftest_s='
10667         .section ".tdata","awT",@progbits
10668         .align 3
10669 ld0:    .space 8
10670 ld1:    .space 8
10671 x1:     .space 8
10672 x2:     .space 8
10673 x3:     .space 8
10674         .text
10675         addi 3,2,ld0@got@tlsgd
10676         bl .__tls_get_addr
10677         nop
10678         addi 3,2,ld1@toc
10679         bl .__tls_get_addr
10680         nop
10681         addi 3,2,x1@got@tlsld
10682         bl .__tls_get_addr
10683         nop
10684         addi 9,3,x1@dtprel
10685         bl .__tls_get_addr
10686         nop
10687         addis 9,3,x2@dtprel@ha
10688         addi 9,9,x2@dtprel@l
10689         bl .__tls_get_addr
10690         nop
10691         ld 9,x3@got@dtprel(2)
10692         add 9,9,3
10693         bl .__tls_get_addr
10694         nop'
10695         tls_first_major=2
10696         tls_first_minor=14
10697         tls_as_opt="-a64 --fatal-warnings"
10698         ;;
10699   s390-*-*)
10700     conftest_s='
10701         .section ".tdata","awT",@progbits
10702 foo:    .long   25
10703         .text
10704         .long   foo@TLSGD
10705         .long   foo@TLSLDM
10706         .long   foo@DTPOFF
10707         .long   foo@NTPOFF
10708         .long   foo@GOTNTPOFF
10709         .long   foo@INDNTPOFF
10710         l       %r1,foo@GOTNTPOFF(%r12)
10711         l       %r1,0(%r1):tls_load:foo
10712         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10713         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10714         tls_first_major=2
10715         tls_first_minor=14
10716         tls_as_opt="-m31 --fatal-warnings"
10717         ;;
10718   s390x-*-*)
10719     conftest_s='
10720         .section ".tdata","awT",@progbits
10721 foo:    .long   25
10722         .text
10723         .quad   foo@TLSGD
10724         .quad   foo@TLSLDM
10725         .quad   foo@DTPOFF
10726         .quad   foo@NTPOFF
10727         .quad   foo@GOTNTPOFF
10728         lg      %r1,foo@GOTNTPOFF(%r12)
10729         larl    %r1,foo@INDNTPOFF
10730         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10731         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10732         tls_first_major=2
10733         tls_first_minor=14
10734         tls_as_opt="-m64 -Aesame --fatal-warnings"
10735         ;;
10736   sh-*-* | sh[34]-*-*)
10737     conftest_s='
10738         .section ".tdata","awT",@progbits
10739 foo:    .long   25
10740         .text
10741         .long   foo@TLSGD
10742         .long   foo@TLSLDM
10743         .long   foo@DTPOFF
10744         .long   foo@GOTTPOFF
10745         .long   foo@TPOFF'
10746         tls_first_major=2
10747         tls_first_minor=13
10748         tls_as_opt=--fatal-warnings
10749         ;;
10750   sparc*-*-*)
10751     case "$target" in
10752       sparc*-sun-solaris2.*)
10753         on_solaris=yes
10754         ;;
10755       *)
10756         on_solaris=no
10757         ;;
10758     esac
10759     if test x$on_solaris = xyes && test x$gas_flag = xno; then
10760       conftest_s='
10761         .section ".tdata",#alloc,#write,#tls
10762 foo:    .long   25
10763         .text
10764         sethi   %tgd_hi22(foo), %o0
10765         add     %o0, %tgd_lo10(foo), %o1
10766         add     %l7, %o1, %o0, %tgd_add(foo)
10767         call    __tls_get_addr, %tgd_call(foo)
10768         sethi   %tldm_hi22(foo), %l1
10769         add     %l1, %tldm_lo10(foo), %l2
10770         add     %l7, %l2, %o0, %tldm_add(foo)
10771         call    __tls_get_addr, %tldm_call(foo)
10772         sethi   %tldo_hix22(foo), %l3
10773         xor     %l3, %tldo_lox10(foo), %l4
10774         add     %o0, %l4, %l5, %tldo_add(foo)
10775         sethi   %tie_hi22(foo), %o3
10776         add     %o3, %tie_lo10(foo), %o3
10777         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10778         add     %g7, %o2, %o4, %tie_add(foo)
10779         sethi   %tle_hix22(foo), %l1
10780         xor     %l1, %tle_lox10(foo), %o5
10781         ld      [%g7 + %o5], %o1'
10782         tls_first_major=0
10783         tls_first_minor=0
10784     else
10785       conftest_s='
10786         .section ".tdata","awT",@progbits
10787 foo:    .long   25
10788         .text
10789         sethi   %tgd_hi22(foo), %o0
10790         add     %o0, %tgd_lo10(foo), %o1
10791         add     %l7, %o1, %o0, %tgd_add(foo)
10792         call    __tls_get_addr, %tgd_call(foo)
10793         sethi   %tldm_hi22(foo), %l1
10794         add     %l1, %tldm_lo10(foo), %l2
10795         add     %l7, %l2, %o0, %tldm_add(foo)
10796         call    __tls_get_addr, %tldm_call(foo)
10797         sethi   %tldo_hix22(foo), %l3
10798         xor     %l3, %tldo_lox10(foo), %l4
10799         add     %o0, %l4, %l5, %tldo_add(foo)
10800         sethi   %tie_hi22(foo), %o3
10801         add     %o3, %tie_lo10(foo), %o3
10802         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10803         add     %g7, %o2, %o4, %tie_add(foo)
10804         sethi   %tle_hix22(foo), %l1
10805         xor     %l1, %tle_lox10(foo), %o5
10806         ld      [%g7 + %o5], %o1'
10807         tls_first_major=2
10808         tls_first_minor=14
10809         tls_as_opt="-32 --fatal-warnings"
10810       fi
10811         ;;
10812 esac
10813 if test -z "$tls_first_major"; then
10814   : # If we don't have a check, assume no support.
10815 else
10816   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10817 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10818 if test "${gcc_cv_as_tls+set}" = set; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   gcc_cv_as_tls=no
10822     if test $in_tree_gas = yes; then
10823     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10824   then gcc_cv_as_tls=yes
10825 fi
10826   elif test x$gcc_cv_as != x; then
10827     echo "$conftest_s" > conftest.s
10828     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830   (eval $ac_try) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }
10834     then
10835         gcc_cv_as_tls=yes
10836     else
10837       echo "configure: failed program was" >&5
10838       cat conftest.s >&5
10839     fi
10840     rm -f conftest.o conftest.s
10841   fi
10842 fi
10843 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10844 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10845 if test $gcc_cv_as_tls = yes; then
10846
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_AS_TLS 1
10849 _ACEOF
10850
10851 fi
10852 fi
10853
10854 # Target-specific assembler checks.
10855
10856 if test x"$demangler_in_ld" = xyes; then
10857   echo "$as_me:$LINENO: checking linker --demangle support" >&5
10858 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
10859   gcc_cv_ld_demangle=no
10860   if test $in_tree_ld = yes; then
10861     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 \
10862       gcc_cv_ld_demangle=yes
10863     fi
10864   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
10865     # Check if the GNU linker supports --demangle option
10866     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
10867       gcc_cv_ld_demangle=yes
10868     fi
10869   fi
10870   if test x"$gcc_cv_ld_demangle" = xyes; then
10871
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_LD_DEMANGLE 1
10874 _ACEOF
10875
10876   fi
10877   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
10878 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
10879 fi
10880
10881 case "$target" in
10882   # All TARGET_ABI_OSF targets.
10883   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10884     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10885 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10886 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10887   echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889   gcc_cv_as_alpha_explicit_relocs=no
10890     if test $in_tree_gas = yes; then
10891     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10892   then gcc_cv_as_alpha_explicit_relocs=yes
10893 fi
10894   elif test x$gcc_cv_as != x; then
10895     echo '      .set nomacro
10896         .text
10897         extbl   $3, $2, $3      !lituse_bytoff!1
10898         ldq     $2, a($29)      !literal!1
10899         ldq     $4, b($29)      !literal!2
10900         ldq_u   $3, 0($2)       !lituse_base!1
10901         ldq     $27, f($29)     !literal!5
10902         jsr     $26, ($27), f   !lituse_jsr!5
10903         ldah    $29, 0($26)     !gpdisp!3
10904         lda     $0, c($29)      !gprel
10905         ldah    $1, d($29)      !gprelhigh
10906         lda     $1, d($1)       !gprellow
10907         lda     $29, 0($29)     !gpdisp!3' > conftest.s
10908     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910   (eval $ac_try) 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; }
10914     then
10915         gcc_cv_as_alpha_explicit_relocs=yes
10916     else
10917       echo "configure: failed program was" >&5
10918       cat conftest.s >&5
10919     fi
10920     rm -f conftest.o conftest.s
10921   fi
10922 fi
10923 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10924 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10925 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10926
10927 cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_AS_EXPLICIT_RELOCS 1
10929 _ACEOF
10930
10931 fi
10932     ;;
10933
10934   cris-*-*)
10935     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
10936 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
10937 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   gcc_cv_as_cris_no_mul_bug=no
10941     if test $in_tree_gas = yes; then
10942     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10943   then gcc_cv_as_cris_no_mul_bug=yes
10944 fi
10945   elif test x$gcc_cv_as != x; then
10946     echo '.text' > conftest.s
10947     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
10948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949   (eval $ac_try) 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; }
10953     then
10954         gcc_cv_as_cris_no_mul_bug=yes
10955     else
10956       echo "configure: failed program was" >&5
10957       cat conftest.s >&5
10958     fi
10959     rm -f conftest.o conftest.s
10960   fi
10961 fi
10962 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
10963 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
10964 if test $gcc_cv_as_cris_no_mul_bug = yes; then
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
10968 _ACEOF
10969
10970 fi
10971     ;;
10972
10973   sparc*-*-*)
10974     echo "$as_me:$LINENO: checking assembler for .register" >&5
10975 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10976 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   gcc_cv_as_sparc_register_op=no
10980   if test x$gcc_cv_as != x; then
10981     echo '.register %g2, #scratch' > conftest.s
10982     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984   (eval $ac_try) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); }; }
10988     then
10989         gcc_cv_as_sparc_register_op=yes
10990     else
10991       echo "configure: failed program was" >&5
10992       cat conftest.s >&5
10993     fi
10994     rm -f conftest.o conftest.s
10995   fi
10996 fi
10997 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10998 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10999 if test $gcc_cv_as_sparc_register_op = yes; then
11000
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11003 _ACEOF
11004
11005 fi
11006
11007     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11008 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11009 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012   gcc_cv_as_sparc_relax=no
11013   if test x$gcc_cv_as != x; then
11014     echo '.text' > conftest.s
11015     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; }
11021     then
11022         gcc_cv_as_sparc_relax=yes
11023     else
11024       echo "configure: failed program was" >&5
11025       cat conftest.s >&5
11026     fi
11027     rm -f conftest.o conftest.s
11028   fi
11029 fi
11030 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11031 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11032 if test $gcc_cv_as_sparc_relax = yes; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_AS_RELAX_OPTION 1
11036 _ACEOF
11037
11038 fi
11039
11040     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11041 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11042 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   gcc_cv_as_sparc_ua_pcrel=no
11046   if test x$gcc_cv_as != x; then
11047     echo '.text
11048 foo:
11049         nop
11050 .data
11051 .align 4
11052 .byte 0
11053 .uaword %r_disp32(foo)' > conftest.s
11054     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }
11060     then
11061         if test x$gcc_cv_ld != x \
11062        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11063          gcc_cv_as_sparc_ua_pcrel=yes
11064        fi
11065        rm -f conftest
11066     else
11067       echo "configure: failed program was" >&5
11068       cat conftest.s >&5
11069     fi
11070     rm -f conftest.o conftest.s
11071   fi
11072 fi
11073 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11074 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11075 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11076
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_AS_SPARC_UA_PCREL 1
11079 _ACEOF
11080
11081
11082       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11083 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11084 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   gcc_cv_as_sparc_ua_pcrel_hidden=no
11088   if test x$gcc_cv_as != x; then
11089     echo '.data
11090 .align 4
11091 .byte 0x31
11092 .uaword %r_disp32(foo)
11093 .byte 0x32, 0x33, 0x34
11094 .global foo
11095 .hidden foo
11096 foo:
11097 .skip 4' > conftest.s
11098     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }
11104     then
11105         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11106          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11107          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11108             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11109             if $gcc_cv_objdump -R conftest 2> /dev/null \
11110                | grep 'DISP32' > /dev/null 2>&1; then
11111                 :
11112             else
11113                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11114             fi
11115          fi
11116          rm -f conftest
11117     else
11118       echo "configure: failed program was" >&5
11119       cat conftest.s >&5
11120     fi
11121     rm -f conftest.o conftest.s
11122   fi
11123 fi
11124 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11125 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11126 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11127
11128 cat >>confdefs.h <<\_ACEOF
11129 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11130 _ACEOF
11131
11132 fi
11133
11134 fi # unaligned pcrel relocs
11135
11136     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11137 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11138 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   gcc_cv_as_sparc_offsetable_lo10=no
11142   if test x$gcc_cv_as != x; then
11143     echo '.text
11144         or %g1, %lo(ab) + 12, %g1
11145         or %g1, %lo(ab + 12), %g1' > conftest.s
11146     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }
11152     then
11153         if test x$gcc_cv_objdump != x \
11154        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11155           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11156          gcc_cv_as_offsetable_lo10=yes
11157        fi
11158     else
11159       echo "configure: failed program was" >&5
11160       cat conftest.s >&5
11161     fi
11162     rm -f conftest.o conftest.s
11163   fi
11164 fi
11165 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11166 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11167 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11168
11169 cat >>confdefs.h <<\_ACEOF
11170 #define HAVE_AS_OFFSETABLE_LO10 1
11171 _ACEOF
11172
11173 fi
11174     ;;
11175
11176   i[34567]86-*-* | x86_64-*-*)
11177     case $target_os in
11178       cygwin* | pe | mingw32*)
11179         # Used for DWARF 2 in PE
11180         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11181 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11182 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11183   echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185   gcc_cv_as_ix86_pe_secrel32=no
11186     if test $in_tree_gas = yes; then
11187     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11188   then gcc_cv_as_ix86_pe_secrel32=yes
11189 fi
11190   elif test x$gcc_cv_as != x; then
11191     echo '.text
11192 foo:    nop
11193 .data
11194         .secrel32 foo' > conftest.s
11195     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197   (eval $ac_try) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }
11201     then
11202         if test x$gcc_cv_ld != x \
11203            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11204              gcc_cv_as_ix86_pe_secrel32=yes
11205            fi
11206            rm -f conftest
11207     else
11208       echo "configure: failed program was" >&5
11209       cat conftest.s >&5
11210     fi
11211     rm -f conftest.o conftest.s
11212   fi
11213 fi
11214 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11215 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11216 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11217
11218 cat >>confdefs.h <<\_ACEOF
11219 #define HAVE_GAS_PE_SECREL32_RELOC 1
11220 _ACEOF
11221
11222 fi
11223         ;;
11224     esac
11225
11226     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11227 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11228 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   gcc_cv_as_ix86_filds_fists=no
11232     if test $in_tree_gas = yes; then
11233     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11234   then gcc_cv_as_ix86_filds_fists=yes
11235 fi
11236   elif test x$gcc_cv_as != x; then
11237     echo 'filds mem; fists mem' > conftest.s
11238     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; }
11244     then
11245         gcc_cv_as_ix86_filds_fists=yes
11246     else
11247       echo "configure: failed program was" >&5
11248       cat conftest.s >&5
11249     fi
11250     rm -f conftest.o conftest.s
11251   fi
11252 fi
11253 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11254 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11255 if test $gcc_cv_as_ix86_filds_fists = yes; then
11256
11257 cat >>confdefs.h <<\_ACEOF
11258 #define HAVE_GAS_FILDS_FISTS 1
11259 _ACEOF
11260
11261 fi
11262
11263     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11264 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11265 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268   gcc_cv_as_ix86_cmov_sun_syntax=no
11269   if test x$gcc_cv_as != x; then
11270     echo 'cmovl.l %edx, %eax' > conftest.s
11271     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; }
11277     then
11278         gcc_cv_as_ix86_cmov_sun_syntax=yes
11279     else
11280       echo "configure: failed program was" >&5
11281       cat conftest.s >&5
11282     fi
11283     rm -f conftest.o conftest.s
11284   fi
11285 fi
11286 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11287 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11288 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11292 _ACEOF
11293
11294 fi
11295
11296     # This one is used unconditionally by i386.[ch]; it is to be defined
11297     # to 1 if the feature is present, 0 otherwise.
11298     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11299 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11300 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   gcc_cv_as_ix86_gotoff_in_data=no
11304     if test $in_tree_gas = yes; then
11305     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11306   then gcc_cv_as_ix86_gotoff_in_data=yes
11307 fi
11308   elif test x$gcc_cv_as != x; then
11309     echo '      .text
11310 .L0:
11311         nop
11312         .data
11313         .long .L0@GOTOFF' > conftest.s
11314     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; }
11320     then
11321         gcc_cv_as_ix86_gotoff_in_data=yes
11322     else
11323       echo "configure: failed program was" >&5
11324       cat conftest.s >&5
11325     fi
11326     rm -f conftest.o conftest.s
11327   fi
11328 fi
11329 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11330 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11331
11332
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11335 _ACEOF
11336
11337     ;;
11338
11339   ia64*-*-*)
11340     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11341 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11342 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11346     if test $in_tree_gas = yes; then
11347     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11348   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11349 fi
11350   elif test x$gcc_cv_as != x; then
11351     echo '      .text
11352         addl r15 = @ltoffx(x#), gp
11353         ;;
11354         ld8.mov r16 = [r15], x#' > conftest.s
11355     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357   (eval $ac_try) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }
11361     then
11362         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11363     else
11364       echo "configure: failed program was" >&5
11365       cat conftest.s >&5
11366     fi
11367     rm -f conftest.o conftest.s
11368   fi
11369 fi
11370 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11371 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11372 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11373
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11376 _ACEOF
11377
11378 fi
11379
11380     ;;
11381
11382   powerpc*-*-*)
11383     case $target in
11384       *-*-aix*) conftest_s='    .csect .text[PR]
11385         mfcr 3,128';;
11386       *-*-darwin*) conftest_s=' .text
11387         mfcr r3,128';;
11388       *)       conftest_s='     .text
11389         mfcr 3,128';;
11390     esac
11391
11392     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11393 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11394 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   gcc_cv_as_powerpc_mfcrf=no
11398     if test $in_tree_gas = yes; then
11399     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11400   then gcc_cv_as_powerpc_mfcrf=yes
11401 fi
11402   elif test x$gcc_cv_as != x; then
11403     echo "$conftest_s" > conftest.s
11404     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406   (eval $ac_try) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; }
11410     then
11411         gcc_cv_as_powerpc_mfcrf=yes
11412     else
11413       echo "configure: failed program was" >&5
11414       cat conftest.s >&5
11415     fi
11416     rm -f conftest.o conftest.s
11417   fi
11418 fi
11419 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11420 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11421 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11422
11423 cat >>confdefs.h <<\_ACEOF
11424 #define HAVE_AS_MFCRF 1
11425 _ACEOF
11426
11427 fi
11428     ;;
11429
11430   mips*-*-*)
11431     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11432 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11433 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   gcc_cv_as_mips_explicit_relocs=no
11437     if test $in_tree_gas = yes; then
11438     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11439   then gcc_cv_as_mips_explicit_relocs=yes
11440 fi
11441   elif test x$gcc_cv_as != x; then
11442     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11443     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445   (eval $ac_try) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; }
11449     then
11450         gcc_cv_as_mips_explicit_relocs=yes
11451     else
11452       echo "configure: failed program was" >&5
11453       cat conftest.s >&5
11454     fi
11455     rm -f conftest.o conftest.s
11456   fi
11457 fi
11458 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11459 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11460 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11461   if test x$target_cpu_default = x
11462        then target_cpu_default=MASK_EXPLICIT_RELOCS
11463        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11464        fi
11465 fi
11466
11467     ;;
11468 esac
11469 # ??? Not all targets support dwarf2 debug_line, even within a version
11470 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11471 # info to the output file.  So, as supported targets are added to gas 2.11,
11472 # add some instruction here to (also) show we expect this might work.
11473 # ??? Once 2.11 is released, probably need to add first known working
11474 # version to the per-target configury.
11475 case "$target" in
11476   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11477   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11478   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11479     insn="nop"
11480     ;;
11481   ia64*-*-* | s390*-*-*)
11482     insn="nop 0"
11483     ;;
11484   mmix-*-*)
11485     insn="swym 0"
11486     ;;
11487 esac
11488 if test x"$insn" != x; then
11489  conftest_s="\
11490         .file 1 \"conftest.s\"
11491         .loc 1 3 0
11492         $insn"
11493  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11494 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11495 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   gcc_cv_as_dwarf2_debug_line=no
11499     if test $in_tree_gas = yes; then
11500     if test $in_tree_gas_is_elf = yes \
11501   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11502   then gcc_cv_as_dwarf2_debug_line=yes
11503 fi
11504   elif test x$gcc_cv_as != x; then
11505     echo "$conftest_s" > conftest.s
11506     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }
11512     then
11513         # ??? This fails with non-gnu grep.  Maybe use objdump?
11514    if grep debug_line conftest.o > /dev/null 2>&1; then
11515      gcc_cv_as_dwarf2_debug_line=yes
11516    fi
11517     else
11518       echo "configure: failed program was" >&5
11519       cat conftest.s >&5
11520     fi
11521     rm -f conftest.o conftest.s
11522   fi
11523 fi
11524 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11525 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11526
11527
11528 # The .debug_line file table must be in the exact order that
11529 # we specified the files, since these indices are also used
11530 # by DW_AT_decl_file.  Approximate this test by testing if
11531 # the assembler bitches if the same index is assigned twice.
11532  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11533 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11534 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11535   echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537   gcc_cv_as_dwarf2_file_buggy=no
11538   if test x$gcc_cv_as != x; then
11539     echo '      .file 1 "foo.s"
11540         .file 1 "bar.s"' > conftest.s
11541     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543   (eval $ac_try) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; }
11547     then
11548         gcc_cv_as_dwarf2_file_buggy=yes
11549     else
11550       echo "configure: failed program was" >&5
11551       cat conftest.s >&5
11552     fi
11553     rm -f conftest.o conftest.s
11554   fi
11555 fi
11556 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11557 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11558
11559
11560  if test $gcc_cv_as_dwarf2_debug_line = yes \
11561  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11562
11563 cat >>confdefs.h <<\_ACEOF
11564 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11565 _ACEOF
11566
11567  fi
11568
11569  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11570 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11571 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   gcc_cv_as_gdwarf2_flag=no
11575     if test $in_tree_gas = yes; then
11576     if test $in_tree_gas_is_elf = yes \
11577   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11578   then gcc_cv_as_gdwarf2_flag=yes
11579 fi
11580   elif test x$gcc_cv_as != x; then
11581     echo "$insn" > conftest.s
11582     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; }
11588     then
11589         gcc_cv_as_gdwarf2_flag=yes
11590     else
11591       echo "configure: failed program was" >&5
11592       cat conftest.s >&5
11593     fi
11594     rm -f conftest.o conftest.s
11595   fi
11596 fi
11597 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11598 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11599 if test $gcc_cv_as_gdwarf2_flag = yes; then
11600
11601 cat >>confdefs.h <<\_ACEOF
11602 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11603 _ACEOF
11604
11605 fi
11606
11607  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11608 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11609 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   gcc_cv_as_gstabs_flag=no
11613     if test $in_tree_gas = yes; then
11614     if test $in_tree_gas_is_elf = yes \
11615   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11616   then gcc_cv_as_gstabs_flag=yes
11617 fi
11618   elif test x$gcc_cv_as != x; then
11619     echo "$insn" > conftest.s
11620     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }
11626     then
11627         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11628    # and warns about it, but still exits successfully.  So check for
11629    # this.
11630    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
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    else gcc_cv_as_gstabs_flag=yes
11638    fi
11639     else
11640       echo "configure: failed program was" >&5
11641       cat conftest.s >&5
11642     fi
11643     rm -f conftest.o conftest.s
11644   fi
11645 fi
11646 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11647 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11648 if test $gcc_cv_as_gstabs_flag = yes; then
11649
11650 cat >>confdefs.h <<\_ACEOF
11651 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11652 _ACEOF
11653
11654 fi
11655 fi
11656
11657 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11658 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11659 gcc_cv_ld_ro_rw_mix=unknown
11660 if test $in_tree_ld = yes ; then
11661   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 \
11662      && test $in_tree_ld_is_elf = yes; then
11663     gcc_cv_ld_ro_rw_mix=read-write
11664   fi
11665 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11666   echo '.section myfoosect, "a"' > conftest1.s
11667   echo '.section myfoosect, "aw"' > conftest2.s
11668   echo '.byte 1' >> conftest2.s
11669   echo '.section myfoosect, "a"' > conftest3.s
11670   echo '.byte 0' >> conftest3.s
11671   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11672      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11673      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11674      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11675         conftest2.o conftest3.o > /dev/null 2>&1; then
11676     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11677                          | sed -e '/myfoosect/!d' -e N`
11678     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11679       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11680         gcc_cv_ld_ro_rw_mix=read-only
11681       else
11682         gcc_cv_ld_ro_rw_mix=read-write
11683       fi
11684     fi
11685   fi
11686   rm -f conftest.* conftest[123].*
11687 fi
11688 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11689
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11692 _ACEOF
11693
11694 fi
11695 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11696 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11697
11698 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11699 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11700 gcc_cv_ld_eh_frame_hdr=no
11701 if test $in_tree_ld = yes ; then
11702   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 \
11703      && test $in_tree_ld_is_elf = yes; then
11704     gcc_cv_ld_eh_frame_hdr=yes
11705   fi
11706 elif test x$gcc_cv_ld != x; then
11707         # Check if linker supports --eh-frame-hdr option
11708         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11709                 gcc_cv_ld_eh_frame_hdr=yes
11710         fi
11711 fi
11712 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11713
11714 cat >>confdefs.h <<\_ACEOF
11715 #define HAVE_LD_EH_FRAME_HDR 1
11716 _ACEOF
11717
11718 fi
11719 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11720 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11721
11722 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11723 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11724 gcc_cv_ld_pie=no
11725 if test $in_tree_ld = yes ; then
11726   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 \
11727      && test $in_tree_ld_is_elf = yes; then
11728     gcc_cv_ld_pie=yes
11729   fi
11730 elif test x$gcc_cv_ld != x; then
11731         # Check if linker supports -pie option
11732         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11733                 gcc_cv_ld_pie=yes
11734         fi
11735 fi
11736 if test x"$gcc_cv_ld_pie" = xyes; then
11737
11738 cat >>confdefs.h <<\_ACEOF
11739 #define HAVE_LD_PIE 1
11740 _ACEOF
11741
11742 fi
11743 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11744 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11745
11746 # --------
11747 # UNSORTED
11748 # --------
11749
11750 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11751 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11752 if test "${gcc_cv_ld_as_needed+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   gcc_cv_ld_as_needed=no
11756 if test $in_tree_ld = yes ; then
11757   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 \
11758      && test $in_tree_ld_is_elf = yes; then
11759     gcc_cv_ld_as_needed=yes
11760   fi
11761 elif test x$gcc_cv_ld != x; then
11762         # Check if linker supports --as-needed and --no-as-needed options
11763         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11764                 gcc_cv_ld_as_needed=yes
11765         fi
11766 fi
11767
11768 fi
11769 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11770 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11771 if test x"$gcc_cv_ld_as_needed" = xyes; then
11772
11773 cat >>confdefs.h <<\_ACEOF
11774 #define HAVE_LD_AS_NEEDED 1
11775 _ACEOF
11776
11777 fi
11778
11779 if test x$with_sysroot = x && test x$host = x$target \
11780    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11781
11782 cat >>confdefs.h <<_ACEOF
11783 #define PREFIX_INCLUDE_DIR "$prefix/include"
11784 _ACEOF
11785
11786 fi
11787
11788 # Find out what GC implementation we want, or may, use.
11789
11790 # Check whether --with-gc or --without-gc was given.
11791 if test "${with_gc+set}" = set; then
11792   withval="$with_gc"
11793   case "$withval" in
11794   page | zone)
11795     GGC=ggc-$withval
11796     ;;
11797   *)
11798     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11799 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11800    { (exit 1); exit 1; }; }
11801     ;;
11802 esac
11803 else
11804   GGC=ggc-page
11805 fi;
11806
11807 echo "Using $GGC for garbage collection."
11808
11809 # Use the system's zlib library.
11810 zlibdir=-L../zlib
11811 zlibinc="-I\$(srcdir)/../zlib"
11812
11813 # Check whether --with-system-zlib or --without-system-zlib was given.
11814 if test "${with_system_zlib+set}" = set; then
11815   withval="$with_system_zlib"
11816   zlibdir=
11817 zlibinc=
11818
11819 fi;
11820
11821
11822
11823
11824 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11825 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11826     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11827 if test "${enable_maintainer_mode+set}" = set; then
11828   enableval="$enable_maintainer_mode"
11829   maintainer_mode=$enableval
11830 else
11831   maintainer_mode=no
11832 fi;
11833
11834 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11835 echo "${ECHO_T}$maintainer_mode" >&6
11836
11837 if test "$maintainer_mode" = "yes"; then
11838   MAINT=''
11839 else
11840   MAINT='#'
11841 fi
11842
11843 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11844 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11845
11846 # Check whether --with-libbanshee or --without-libbanshee was given.
11847 if test "${with_libbanshee+set}" = set; then
11848   withval="$with_libbanshee"
11849   libbanshee="$with_libbanshee"
11850 else
11851   libbanshee=no
11852 fi;
11853
11854 if test x"$libbanshee" = xyes; then
11855         BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11856         BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11857         ANDER="tree-alias-ander.o"
11858
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_BANSHEE 1
11861 _ACEOF
11862
11863 else
11864         BANSHEELIB=""
11865         BANSHEEINC=""
11866         ANDER=""
11867 fi
11868 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11869 echo "${ECHO_T}$with_libbanshee" >&6
11870
11871
11872
11873
11874
11875 # --------------
11876 # Language hooks
11877 # --------------
11878
11879 # Make empty files to contain the specs and options for each language.
11880 # Then add #include lines to for a compiler that has specs and/or options.
11881
11882 lang_opt_files=
11883 lang_specs_files=
11884 lang_tree_files=
11885 for subdir in . $subdirs
11886 do
11887         if test -f $srcdir/$subdir/lang.opt; then
11888             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11889         fi
11890         if test -f $srcdir/$subdir/lang-specs.h; then
11891             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11892         fi
11893         if test -f $srcdir/$subdir/$subdir-tree.def; then
11894             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11895         fi
11896 done
11897
11898 # These (without "all_") are set in each config-lang.in.
11899 # `language' must be a single word so is spelled singularly.
11900 all_languages=
11901 all_boot_languages=
11902 all_compilers=
11903 all_stagestuff=
11904 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11905 # List of language makefile fragments.
11906 all_lang_makefrags=
11907 # List of language subdirectory makefiles.  Deprecated.
11908 all_lang_makefiles=
11909 # Files for gengtype
11910 all_gtfiles="$target_gtfiles"
11911 # Files for gengtype with language
11912 all_gtfiles_files_langs=
11913 all_gtfiles_files_files=
11914
11915 # Add the language fragments.
11916 # Languages are added via two mechanisms.  Some information must be
11917 # recorded in makefile variables, these are defined in config-lang.in.
11918 # We accumulate them and plug them into the main Makefile.
11919 # The other mechanism is a set of hooks for each of the main targets
11920 # like `clean', `install', etc.
11921
11922 language_hooks="Make-hooks"
11923
11924 for s in $subdirs
11925 do
11926                 language=
11927                 boot_language=
11928                 compilers=
11929                 stagestuff=
11930                 outputs=
11931                 gtfiles=
11932                 . ${srcdir}/$s/config-lang.in
11933                 if test "x$language" = x
11934                 then
11935                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11936                         exit 1
11937                 fi
11938                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11939                 if test -f ${srcdir}/$s/Makefile.in
11940                 then all_lang_makefiles="$s/Makefile"
11941                 fi
11942                 all_languages="$all_languages $language"
11943                 if test "x$boot_language" = xyes
11944                 then
11945                         all_boot_languages="$all_boot_languages $language"
11946                 fi
11947                 all_compilers="$all_compilers $compilers"
11948                 all_stagestuff="$all_stagestuff $stagestuff"
11949                 all_outputs="$all_outputs $outputs"
11950                 all_gtfiles="$all_gtfiles $gtfiles"
11951                 for f in $gtfiles
11952                 do
11953                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11954                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11955                 done
11956 done
11957
11958 # Pick up gtfiles for c
11959 gtfiles=
11960 s="c"
11961 . ${srcdir}/c-config-lang.in
11962 all_gtfiles="$all_gtfiles $gtfiles"
11963 for f in $gtfiles
11964 do
11965         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11966         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11967 done
11968
11969 check_languages=
11970 for language in $all_languages
11971 do
11972                 check_languages="$check_languages check-$language"
11973 done
11974
11975 # We link each language in with a set of hooks, reached indirectly via
11976 # lang.${target}.
11977
11978 rm -f Make-hooks
11979 touch Make-hooks
11980 target_list="all.build all.cross start.encap rest.encap tags \
11981         install-normal install-common install-man \
11982         uninstall info man srcextra srcman srcinfo \
11983         mostlyclean clean distclean maintainer-clean \
11984         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11985 for t in $target_list
11986 do
11987         x=
11988         for lang in $all_languages
11989         do
11990                         x="$x $lang.$t"
11991         done
11992         echo "lang.$t: $x" >> Make-hooks
11993 done
11994
11995 # --------
11996 # UNSORTED
11997 # --------
11998
11999 # Create .gdbinit.
12000
12001 echo "dir ." > .gdbinit
12002 echo "dir ${srcdir}" >> .gdbinit
12003 if test x$gdb_needs_out_file_path = xyes
12004 then
12005         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12006 fi
12007 if test "x$subdirs" != x; then
12008         for s in $subdirs
12009         do
12010                 echo "dir ${srcdir}/$s" >> .gdbinit
12011         done
12012 fi
12013 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12014
12015 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12016 # absolute path for gcc_tooldir based on inserting the number of up-directory
12017 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12018 # $(libsubdir)/@(unlibsubdir) based path.
12019 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12020 # make and thus we'd get different behavior depending on where we built the
12021 # sources.
12022 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12023     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12024 else
12025 # An explanation of the sed strings:
12026 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12027 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12028 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12029 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12030 #
12031 # (*) Note this pattern overwrites the first character of the string
12032 # with a forward slash if one is not already present.  This is not a
12033 # problem because the exact names of the sub-directories concerned is
12034 # unimportant, just the number of them matters.
12035 #
12036 # The practical upshot of these patterns is like this:
12037 #
12038 #  prefix     exec_prefix        result
12039 #  ------     -----------        ------
12040 #   /foo        /foo/bar          ../
12041 #   /foo/       /foo/bar          ../
12042 #   /foo        /foo/bar/         ../
12043 #   /foo/       /foo/bar/         ../
12044 #   /foo        /foo/bar/ugg      ../../
12045 #
12046     dollar='$$'
12047     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12048 fi
12049
12050
12051
12052 # Find a directory in which to install a shared libgcc.
12053
12054 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12055 if test "${enable_version_specific_runtime_libs+set}" = set; then
12056   enableval="$enable_version_specific_runtime_libs"
12057
12058 fi;
12059
12060
12061 # Check whether --with-slibdir or --without-slibdir was given.
12062 if test "${with_slibdir+set}" = set; then
12063   withval="$with_slibdir"
12064   slibdir="$with_slibdir"
12065 else
12066   if test "${enable_version_specific_runtime_libs+set}" = set; then
12067   slibdir='$(libsubdir)'
12068 elif test "$host" != "$target"; then
12069   slibdir='$(build_tooldir)/lib'
12070 else
12071   slibdir='$(libdir)'
12072 fi
12073 fi;
12074
12075
12076 objdir=`${PWDCMD-pwd}`
12077
12078
12079 # Substitute configuration variables
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148 # If it doesn't already exist, create document directory
12149 echo "checking for the document directory." 1>&2
12150 if test -d doc ; then
12151   true
12152 else
12153   mkdir doc
12154 fi
12155
12156 # Echo link setup.
12157 if test x${build} = x${host} ; then
12158   if test x${host} = x${target} ; then
12159     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12160   else
12161     echo "Links are now set up to build a cross-compiler" 1>&2
12162     echo " from ${host} to ${target}." 1>&2
12163   fi
12164 else
12165   if test x${host} = x${target} ; then
12166     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12167     echo " for ${target}." 1>&2
12168   else
12169     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12170     echo " from ${host} to ${target}." 1>&2
12171   fi
12172 fi
12173
12174
12175
12176
12177 # Configure the subdirectories
12178 # AC_CONFIG_SUBDIRS($subdirs)
12179
12180 # Create the Makefile
12181 # and configure language subdirectories
12182           ac_config_files="$ac_config_files $all_outputs"
12183
12184
12185           ac_config_commands="$ac_config_commands default"
12186
12187 cat >confcache <<\_ACEOF
12188 # This file is a shell script that caches the results of configure
12189 # tests run on this system so they can be shared between configure
12190 # scripts and configure runs, see configure's option --config-cache.
12191 # It is not useful on other systems.  If it contains results you don't
12192 # want to keep, you may remove or edit it.
12193 #
12194 # config.status only pays attention to the cache file if you give it
12195 # the --recheck option to rerun configure.
12196 #
12197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12199 # following values.
12200
12201 _ACEOF
12202
12203 # The following way of writing the cache mishandles newlines in values,
12204 # but we know of no workaround that is simple, portable, and efficient.
12205 # So, don't put newlines in cache variables' values.
12206 # Ultrix sh set writes to stderr and can't be redirected directly,
12207 # and sets the high bit in the cache file unless we assign to the vars.
12208 {
12209   (set) 2>&1 |
12210     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12211     *ac_space=\ *)
12212       # `set' does not quote correctly, so add quotes (double-quote
12213       # substitution turns \\\\ into \\, and sed turns \\ into \).
12214       sed -n \
12215         "s/'/'\\\\''/g;
12216           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12217       ;;
12218     *)
12219       # `set' quotes correctly as required by POSIX, so do not add quotes.
12220       sed -n \
12221         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12222       ;;
12223     esac;
12224 } |
12225   sed '
12226      t clear
12227      : clear
12228      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12229      t end
12230      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12231      : end' >>confcache
12232 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12233   if test -w $cache_file; then
12234     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12235     cat confcache >$cache_file
12236   else
12237     echo "not updating unwritable cache $cache_file"
12238   fi
12239 fi
12240 rm -f confcache
12241
12242 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12243 # Let make expand exec_prefix.
12244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12245
12246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12248 # trailing colons and then remove the whole line if VPATH becomes empty
12249 # (actually we leave an empty line to preserve line numbers).
12250 if test "x$srcdir" = x.; then
12251   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12252 s/:*\$(srcdir):*/:/;
12253 s/:*\${srcdir}:*/:/;
12254 s/:*@srcdir@:*/:/;
12255 s/^\([^=]*=[     ]*\):*/\1/;
12256 s/:*$//;
12257 s/^[^=]*=[       ]*$//;
12258 }'
12259 fi
12260
12261 DEFS=-DHAVE_CONFIG_H
12262
12263 ac_libobjs=
12264 ac_ltlibobjs=
12265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12266   # 1. Remove the extension, and $U if already installed.
12267   ac_i=`echo "$ac_i" |
12268          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12269   # 2. Add them.
12270   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12271   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12272 done
12273 LIBOBJS=$ac_libobjs
12274
12275 LTLIBOBJS=$ac_ltlibobjs
12276
12277
12278
12279 : ${CONFIG_STATUS=./config.status}
12280 ac_clean_files_save=$ac_clean_files
12281 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12282 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12283 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12284 cat >$CONFIG_STATUS <<_ACEOF
12285 #! $SHELL
12286 # Generated by $as_me.
12287 # Run this file to recreate the current configuration.
12288 # Compiler output produced by configure, useful for debugging
12289 # configure, is in config.log if it exists.
12290
12291 debug=false
12292 ac_cs_recheck=false
12293 ac_cs_silent=false
12294 SHELL=\${CONFIG_SHELL-$SHELL}
12295 _ACEOF
12296
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12298 ## --------------------- ##
12299 ## M4sh Initialization.  ##
12300 ## --------------------- ##
12301
12302 # Be Bourne compatible
12303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12304   emulate sh
12305   NULLCMD=:
12306   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12307   # is contrary to our usage.  Disable this feature.
12308   alias -g '${1+"$@"}'='"$@"'
12309 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12310   set -o posix
12311 fi
12312 DUALCASE=1; export DUALCASE # for MKS sh
12313
12314 # Support unset when possible.
12315 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12316   as_unset=unset
12317 else
12318   as_unset=false
12319 fi
12320
12321
12322 # Work around bugs in pre-3.0 UWIN ksh.
12323 $as_unset ENV MAIL MAILPATH
12324 PS1='$ '
12325 PS2='> '
12326 PS4='+ '
12327
12328 # NLS nuisances.
12329 for as_var in \
12330   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12331   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12332   LC_TELEPHONE LC_TIME
12333 do
12334   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12335     eval $as_var=C; export $as_var
12336   else
12337     $as_unset $as_var
12338   fi
12339 done
12340
12341 # Required to use basename.
12342 if expr a : '\(a\)' >/dev/null 2>&1; then
12343   as_expr=expr
12344 else
12345   as_expr=false
12346 fi
12347
12348 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12349   as_basename=basename
12350 else
12351   as_basename=false
12352 fi
12353
12354
12355 # Name of the executable.
12356 as_me=`$as_basename "$0" ||
12357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12358          X"$0" : 'X\(//\)$' \| \
12359          X"$0" : 'X\(/\)$' \| \
12360          .     : '\(.\)' 2>/dev/null ||
12361 echo X/"$0" |
12362     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12363           /^X\/\(\/\/\)$/{ s//\1/; q; }
12364           /^X\/\(\/\).*/{ s//\1/; q; }
12365           s/.*/./; q'`
12366
12367
12368 # PATH needs CR, and LINENO needs CR and PATH.
12369 # Avoid depending upon Character Ranges.
12370 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12371 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12372 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12373 as_cr_digits='0123456789'
12374 as_cr_alnum=$as_cr_Letters$as_cr_digits
12375
12376 # The user is always right.
12377 if test "${PATH_SEPARATOR+set}" != set; then
12378   echo "#! /bin/sh" >conf$$.sh
12379   echo  "exit 0"   >>conf$$.sh
12380   chmod +x conf$$.sh
12381   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12382     PATH_SEPARATOR=';'
12383   else
12384     PATH_SEPARATOR=:
12385   fi
12386   rm -f conf$$.sh
12387 fi
12388
12389
12390   as_lineno_1=$LINENO
12391   as_lineno_2=$LINENO
12392   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12393   test "x$as_lineno_1" != "x$as_lineno_2" &&
12394   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12395   # Find who we are.  Look in the path if we contain no path at all
12396   # relative or not.
12397   case $0 in
12398     *[\\/]* ) as_myself=$0 ;;
12399     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12405 done
12406
12407        ;;
12408   esac
12409   # We did not find ourselves, most probably we were run as `sh COMMAND'
12410   # in which case we are not to be found in the path.
12411   if test "x$as_myself" = x; then
12412     as_myself=$0
12413   fi
12414   if test ! -f "$as_myself"; then
12415     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12416 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12417    { (exit 1); exit 1; }; }
12418   fi
12419   case $CONFIG_SHELL in
12420   '')
12421     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12423 do
12424   IFS=$as_save_IFS
12425   test -z "$as_dir" && as_dir=.
12426   for as_base in sh bash ksh sh5; do
12427          case $as_dir in
12428          /*)
12429            if ("$as_dir/$as_base" -c '
12430   as_lineno_1=$LINENO
12431   as_lineno_2=$LINENO
12432   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12433   test "x$as_lineno_1" != "x$as_lineno_2" &&
12434   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12435              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12436              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12437              CONFIG_SHELL=$as_dir/$as_base
12438              export CONFIG_SHELL
12439              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12440            fi;;
12441          esac
12442        done
12443 done
12444 ;;
12445   esac
12446
12447   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12448   # uniformly replaced by the line number.  The first 'sed' inserts a
12449   # line-number line before each line; the second 'sed' does the real
12450   # work.  The second script uses 'N' to pair each line-number line
12451   # with the numbered line, and appends trailing '-' during
12452   # substitution so that $LINENO is not a special case at line end.
12453   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12454   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12455   sed '=' <$as_myself |
12456     sed '
12457       N
12458       s,$,-,
12459       : loop
12460       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12461       t loop
12462       s,-$,,
12463       s,^['$as_cr_digits']*\n,,
12464     ' >$as_me.lineno &&
12465   chmod +x $as_me.lineno ||
12466     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12467 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12468    { (exit 1); exit 1; }; }
12469
12470   # Don't try to exec as it changes $[0], causing all sort of problems
12471   # (the dirname of $[0] is not the place where we might find the
12472   # original and so on.  Autoconf is especially sensible to this).
12473   . ./$as_me.lineno
12474   # Exit status is that of the last command.
12475   exit
12476 }
12477
12478
12479 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12480   *c*,-n*) ECHO_N= ECHO_C='
12481 ' ECHO_T='      ' ;;
12482   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12483   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12484 esac
12485
12486 if expr a : '\(a\)' >/dev/null 2>&1; then
12487   as_expr=expr
12488 else
12489   as_expr=false
12490 fi
12491
12492 rm -f conf$$ conf$$.exe conf$$.file
12493 echo >conf$$.file
12494 if ln -s conf$$.file conf$$ 2>/dev/null; then
12495   # We could just check for DJGPP; but this test a) works b) is more generic
12496   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12497   if test -f conf$$.exe; then
12498     # Don't use ln at all; we don't have any links
12499     as_ln_s='cp -p'
12500   else
12501     as_ln_s='ln -s'
12502   fi
12503 elif ln conf$$.file conf$$ 2>/dev/null; then
12504   as_ln_s=ln
12505 else
12506   as_ln_s='cp -p'
12507 fi
12508 rm -f conf$$ conf$$.exe conf$$.file
12509
12510 if mkdir -p . 2>/dev/null; then
12511   as_mkdir_p=:
12512 else
12513   test -d ./-p && rmdir ./-p
12514   as_mkdir_p=false
12515 fi
12516
12517 as_executable_p="test -f"
12518
12519 # Sed expression to map a string onto a valid CPP name.
12520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12521
12522 # Sed expression to map a string onto a valid variable name.
12523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12524
12525
12526 # IFS
12527 # We need space, tab and new line, in precisely that order.
12528 as_nl='
12529 '
12530 IFS="   $as_nl"
12531
12532 # CDPATH.
12533 $as_unset CDPATH
12534
12535 exec 6>&1
12536
12537 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12538 # report actual input values of CONFIG_FILES etc. instead of their
12539 # values after options handling.  Logging --version etc. is OK.
12540 exec 5>>config.log
12541 {
12542   echo
12543   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12544 ## Running $as_me. ##
12545 _ASBOX
12546 } >&5
12547 cat >&5 <<_CSEOF
12548
12549 This file was extended by $as_me, which was
12550 generated by GNU Autoconf 2.59.  Invocation command line was
12551
12552   CONFIG_FILES    = $CONFIG_FILES
12553   CONFIG_HEADERS  = $CONFIG_HEADERS
12554   CONFIG_LINKS    = $CONFIG_LINKS
12555   CONFIG_COMMANDS = $CONFIG_COMMANDS
12556   $ $0 $@
12557
12558 _CSEOF
12559 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12560 echo >&5
12561 _ACEOF
12562
12563 # Files that config.status was made for.
12564 if test -n "$ac_config_files"; then
12565   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12566 fi
12567
12568 if test -n "$ac_config_headers"; then
12569   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12570 fi
12571
12572 if test -n "$ac_config_links"; then
12573   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12574 fi
12575
12576 if test -n "$ac_config_commands"; then
12577   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12578 fi
12579
12580 cat >>$CONFIG_STATUS <<\_ACEOF
12581
12582 ac_cs_usage="\
12583 \`$as_me' instantiates files from templates according to the
12584 current configuration.
12585
12586 Usage: $0 [OPTIONS] [FILE]...
12587
12588   -h, --help       print this help, then exit
12589   -V, --version    print version number, then exit
12590   -q, --quiet      do not print progress messages
12591   -d, --debug      don't remove temporary files
12592       --recheck    update $as_me by reconfiguring in the same conditions
12593   --file=FILE[:TEMPLATE]
12594                    instantiate the configuration file FILE
12595   --header=FILE[:TEMPLATE]
12596                    instantiate the configuration header FILE
12597
12598 Configuration files:
12599 $config_files
12600
12601 Configuration headers:
12602 $config_headers
12603
12604 Configuration commands:
12605 $config_commands
12606
12607 Report bugs to <bug-autoconf@gnu.org>."
12608 _ACEOF
12609
12610 cat >>$CONFIG_STATUS <<_ACEOF
12611 ac_cs_version="\\
12612 config.status
12613 configured by $0, generated by GNU Autoconf 2.59,
12614   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12615
12616 Copyright (C) 2003 Free Software Foundation, Inc.
12617 This config.status script is free software; the Free Software Foundation
12618 gives unlimited permission to copy, distribute and modify it."
12619 srcdir=$srcdir
12620 _ACEOF
12621
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12623 # If no file are specified by the user, then we need to provide default
12624 # value.  By we need to know if files were specified by the user.
12625 ac_need_defaults=:
12626 while test $# != 0
12627 do
12628   case $1 in
12629   --*=*)
12630     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12631     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12632     ac_shift=:
12633     ;;
12634   -*)
12635     ac_option=$1
12636     ac_optarg=$2
12637     ac_shift=shift
12638     ;;
12639   *) # This is not an option, so the user has probably given explicit
12640      # arguments.
12641      ac_option=$1
12642      ac_need_defaults=false;;
12643   esac
12644
12645   case $ac_option in
12646   # Handling of the options.
12647 _ACEOF
12648 cat >>$CONFIG_STATUS <<\_ACEOF
12649   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12650     ac_cs_recheck=: ;;
12651   --version | --vers* | -V )
12652     echo "$ac_cs_version"; exit 0 ;;
12653   --he | --h)
12654     # Conflict between --help and --header
12655     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12656 Try \`$0 --help' for more information." >&5
12657 echo "$as_me: error: ambiguous option: $1
12658 Try \`$0 --help' for more information." >&2;}
12659    { (exit 1); exit 1; }; };;
12660   --help | --hel | -h )
12661     echo "$ac_cs_usage"; exit 0 ;;
12662   --debug | --d* | -d )
12663     debug=: ;;
12664   --file | --fil | --fi | --f )
12665     $ac_shift
12666     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12667     ac_need_defaults=false;;
12668   --header | --heade | --head | --hea )
12669     $ac_shift
12670     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12671     ac_need_defaults=false;;
12672   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12673   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12674     ac_cs_silent=: ;;
12675
12676   # This is an error.
12677   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12678 Try \`$0 --help' for more information." >&5
12679 echo "$as_me: error: unrecognized option: $1
12680 Try \`$0 --help' for more information." >&2;}
12681    { (exit 1); exit 1; }; } ;;
12682
12683   *) ac_config_targets="$ac_config_targets $1" ;;
12684
12685   esac
12686   shift
12687 done
12688
12689 ac_configure_extra_args=
12690
12691 if $ac_cs_silent; then
12692   exec 6>/dev/null
12693   ac_configure_extra_args="$ac_configure_extra_args --silent"
12694 fi
12695
12696 _ACEOF
12697 cat >>$CONFIG_STATUS <<_ACEOF
12698 if \$ac_cs_recheck; then
12699   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12700   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12701 fi
12702
12703 _ACEOF
12704
12705 cat >>$CONFIG_STATUS <<_ACEOF
12706 #
12707 # INIT-COMMANDS section.
12708 #
12709
12710 subdirs='$subdirs'
12711 symbolic_link='$symbolic_link'
12712
12713
12714 _ACEOF
12715
12716
12717
12718 cat >>$CONFIG_STATUS <<\_ACEOF
12719 for ac_config_target in $ac_config_targets
12720 do
12721   case "$ac_config_target" in
12722   # Handling of arguments.
12723   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12724   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12725   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12726   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12727 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12728    { (exit 1); exit 1; }; };;
12729   esac
12730 done
12731
12732 # If the user did not use the arguments to specify the items to instantiate,
12733 # then the envvar interface is used.  Set only those that are not.
12734 # We use the long form for the default assignment because of an extremely
12735 # bizarre bug on SunOS 4.1.3.
12736 if $ac_need_defaults; then
12737   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12738   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12739   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12740 fi
12741
12742 # Have a temporary directory for convenience.  Make it in the build tree
12743 # simply because there is no reason to put it here, and in addition,
12744 # creating and moving files from /tmp can sometimes cause problems.
12745 # Create a temporary directory, and hook for its removal unless debugging.
12746 $debug ||
12747 {
12748   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12749   trap '{ (exit 1); exit 1; }' 1 2 13 15
12750 }
12751
12752 # Create a (secure) tmp directory for tmp files.
12753
12754 {
12755   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12756   test -n "$tmp" && test -d "$tmp"
12757 }  ||
12758 {
12759   tmp=./confstat$$-$RANDOM
12760   (umask 077 && mkdir $tmp)
12761 } ||
12762 {
12763    echo "$me: cannot create a temporary directory in ." >&2
12764    { (exit 1); exit 1; }
12765 }
12766
12767 _ACEOF
12768
12769 cat >>$CONFIG_STATUS <<_ACEOF
12770
12771 #
12772 # CONFIG_FILES section.
12773 #
12774
12775 # No need to generate the scripts if there are no CONFIG_FILES.
12776 # This happens for instance when ./config.status config.h
12777 if test -n "\$CONFIG_FILES"; then
12778   # Protect against being on the right side of a sed subst in config.status.
12779   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12780    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12781 s,@SHELL@,$SHELL,;t t
12782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12788 s,@exec_prefix@,$exec_prefix,;t t
12789 s,@prefix@,$prefix,;t t
12790 s,@program_transform_name@,$program_transform_name,;t t
12791 s,@bindir@,$bindir,;t t
12792 s,@sbindir@,$sbindir,;t t
12793 s,@libexecdir@,$libexecdir,;t t
12794 s,@datadir@,$datadir,;t t
12795 s,@sysconfdir@,$sysconfdir,;t t
12796 s,@sharedstatedir@,$sharedstatedir,;t t
12797 s,@localstatedir@,$localstatedir,;t t
12798 s,@libdir@,$libdir,;t t
12799 s,@includedir@,$includedir,;t t
12800 s,@oldincludedir@,$oldincludedir,;t t
12801 s,@infodir@,$infodir,;t t
12802 s,@mandir@,$mandir,;t t
12803 s,@build_alias@,$build_alias,;t t
12804 s,@host_alias@,$host_alias,;t t
12805 s,@target_alias@,$target_alias,;t t
12806 s,@DEFS@,$DEFS,;t t
12807 s,@ECHO_C@,$ECHO_C,;t t
12808 s,@ECHO_N@,$ECHO_N,;t t
12809 s,@ECHO_T@,$ECHO_T,;t t
12810 s,@LIBS@,$LIBS,;t t
12811 s,@build@,$build,;t t
12812 s,@build_cpu@,$build_cpu,;t t
12813 s,@build_vendor@,$build_vendor,;t t
12814 s,@build_os@,$build_os,;t t
12815 s,@host@,$host,;t t
12816 s,@host_cpu@,$host_cpu,;t t
12817 s,@host_vendor@,$host_vendor,;t t
12818 s,@host_os@,$host_os,;t t
12819 s,@target@,$target,;t t
12820 s,@target_cpu@,$target_cpu,;t t
12821 s,@target_vendor@,$target_vendor,;t t
12822 s,@target_os@,$target_os,;t t
12823 s,@build_subdir@,$build_subdir,;t t
12824 s,@host_subdir@,$host_subdir,;t t
12825 s,@target_subdir@,$target_subdir,;t t
12826 s,@GENINSRC@,$GENINSRC,;t t
12827 s,@CC@,$CC,;t t
12828 s,@CFLAGS@,$CFLAGS,;t t
12829 s,@LDFLAGS@,$LDFLAGS,;t t
12830 s,@CPPFLAGS@,$CPPFLAGS,;t t
12831 s,@ac_ct_CC@,$ac_ct_CC,;t t
12832 s,@EXEEXT@,$EXEEXT,;t t
12833 s,@OBJEXT@,$OBJEXT,;t t
12834 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12835 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12836 s,@CPP@,$CPP,;t t
12837 s,@strict1_warn@,$strict1_warn,;t t
12838 s,@warn_cflags@,$warn_cflags,;t t
12839 s,@WERROR@,$WERROR,;t t
12840 s,@nocommon_flag@,$nocommon_flag,;t t
12841 s,@TREEBROWSER@,$TREEBROWSER,;t t
12842 s,@EGREP@,$EGREP,;t t
12843 s,@valgrind_path@,$valgrind_path,;t t
12844 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12845 s,@valgrind_command@,$valgrind_command,;t t
12846 s,@coverage_flags@,$coverage_flags,;t t
12847 s,@enable_multilib@,$enable_multilib,;t t
12848 s,@enable_shared@,$enable_shared,;t t
12849 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12850 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12851 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12852 s,@onestep@,$onestep,;t t
12853 s,@SET_MAKE@,$SET_MAKE,;t t
12854 s,@AWK@,$AWK,;t t
12855 s,@LN_S@,$LN_S,;t t
12856 s,@RANLIB@,$RANLIB,;t t
12857 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12858 s,@ranlib_flags@,$ranlib_flags,;t t
12859 s,@INSTALL@,$INSTALL,;t t
12860 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12861 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12862 s,@make_compare_target@,$make_compare_target,;t t
12863 s,@have_mktemp_command@,$have_mktemp_command,;t t
12864 s,@MAKEINFO@,$MAKEINFO,;t t
12865 s,@BUILD_INFO@,$BUILD_INFO,;t t
12866 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12867 s,@FLEX@,$FLEX,;t t
12868 s,@BISON@,$BISON,;t t
12869 s,@stage1_cflags@,$stage1_cflags,;t t
12870 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12871 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12872 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12873 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12874 s,@LIBICONV@,$LIBICONV,;t t
12875 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12876 s,@manext@,$manext,;t t
12877 s,@objext@,$objext,;t t
12878 s,@gthread_flags@,$gthread_flags,;t t
12879 s,@extra_modes_file@,$extra_modes_file,;t t
12880 s,@FORBUILD@,$FORBUILD,;t t
12881 s,@PACKAGE@,$PACKAGE,;t t
12882 s,@VERSION@,$VERSION,;t t
12883 s,@USE_NLS@,$USE_NLS,;t t
12884 s,@LIBINTL@,$LIBINTL,;t t
12885 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12886 s,@INCINTL@,$INCINTL,;t t
12887 s,@XGETTEXT@,$XGETTEXT,;t t
12888 s,@GMSGFMT@,$GMSGFMT,;t t
12889 s,@POSUB@,$POSUB,;t t
12890 s,@CATALOGS@,$CATALOGS,;t t
12891 s,@CROSS@,$CROSS,;t t
12892 s,@ALL@,$ALL,;t t
12893 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12894 s,@inhibit_libc@,$inhibit_libc,;t t
12895 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12896 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12897 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12898 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12899 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12900 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12901 s,@collect2@,$collect2,;t t
12902 s,@libgcc_visibility@,$libgcc_visibility,;t t
12903 s,@GGC@,$GGC,;t t
12904 s,@zlibdir@,$zlibdir,;t t
12905 s,@zlibinc@,$zlibinc,;t t
12906 s,@MAINT@,$MAINT,;t t
12907 s,@ANDER@,$ANDER,;t t
12908 s,@BANSHEEINC@,$BANSHEEINC,;t t
12909 s,@BANSHEELIB@,$BANSHEELIB,;t t
12910 s,@gcc_tooldir@,$gcc_tooldir,;t t
12911 s,@dollar@,$dollar,;t t
12912 s,@slibdir@,$slibdir,;t t
12913 s,@objdir@,$objdir,;t t
12914 s,@subdirs@,$subdirs,;t t
12915 s,@srcdir@,$srcdir,;t t
12916 s,@all_boot_languages@,$all_boot_languages,;t t
12917 s,@all_compilers@,$all_compilers,;t t
12918 s,@all_gtfiles@,$all_gtfiles,;t t
12919 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12920 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12921 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12922 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12923 s,@all_languages@,$all_languages,;t t
12924 s,@all_stagestuff@,$all_stagestuff,;t t
12925 s,@build_exeext@,$build_exeext,;t t
12926 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12927 s,@build_xm_file_list@,$build_xm_file_list,;t t
12928 s,@build_xm_include_list@,$build_xm_include_list,;t t
12929 s,@build_xm_defines@,$build_xm_defines,;t t
12930 s,@check_languages@,$check_languages,;t t
12931 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12932 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12933 s,@cpp_install_dir@,$cpp_install_dir,;t t
12934 s,@xmake_file@,$xmake_file,;t t
12935 s,@tmake_file@,$tmake_file,;t t
12936 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12937 s,@extra_headers_list@,$extra_headers_list,;t t
12938 s,@extra_objs@,$extra_objs,;t t
12939 s,@extra_parts@,$extra_parts,;t t
12940 s,@extra_passes@,$extra_passes,;t t
12941 s,@extra_programs@,$extra_programs,;t t
12942 s,@float_h_file@,$float_h_file,;t t
12943 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12944 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12945 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12946 s,@gcc_version@,$gcc_version,;t t
12947 s,@gcc_version_full@,$gcc_version_full,;t t
12948 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12949 s,@host_exeext@,$host_exeext,;t t
12950 s,@host_xm_file_list@,$host_xm_file_list,;t t
12951 s,@host_xm_include_list@,$host_xm_include_list,;t t
12952 s,@host_xm_defines@,$host_xm_defines,;t t
12953 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12954 s,@install@,$install,;t t
12955 s,@lang_opt_files@,$lang_opt_files,;t t
12956 s,@lang_specs_files@,$lang_specs_files,;t t
12957 s,@lang_tree_files@,$lang_tree_files,;t t
12958 s,@local_prefix@,$local_prefix,;t t
12959 s,@md_file@,$md_file,;t t
12960 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12961 s,@out_file@,$out_file,;t t
12962 s,@out_object_file@,$out_object_file,;t t
12963 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12964 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12965 s,@symbolic_link@,$symbolic_link,;t t
12966 s,@thread_file@,$thread_file,;t t
12967 s,@tm_file_list@,$tm_file_list,;t t
12968 s,@tm_include_list@,$tm_include_list,;t t
12969 s,@tm_defines@,$tm_defines,;t t
12970 s,@tm_p_file_list@,$tm_p_file_list,;t t
12971 s,@tm_p_include_list@,$tm_p_include_list,;t t
12972 s,@xm_file_list@,$xm_file_list,;t t
12973 s,@xm_include_list@,$xm_include_list,;t t
12974 s,@xm_defines@,$xm_defines,;t t
12975 s,@target_noncanonical@,$target_noncanonical,;t t
12976 s,@c_target_objs@,$c_target_objs,;t t
12977 s,@cxx_target_objs@,$cxx_target_objs,;t t
12978 s,@target_cpu_default@,$target_cpu_default,;t t
12979 s,@GMPLIBS@,$GMPLIBS,;t t
12980 s,@GMPINC@,$GMPINC,;t t
12981 s,@LIBOBJS@,$LIBOBJS,;t t
12982 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12983 /@language_hooks@/r $language_hooks
12984 s,@language_hooks@,,;t t
12985 CEOF
12986
12987 _ACEOF
12988
12989   cat >>$CONFIG_STATUS <<\_ACEOF
12990   # Split the substitutions into bite-sized pieces for seds with
12991   # small command number limits, like on Digital OSF/1 and HP-UX.
12992   ac_max_sed_lines=48
12993   ac_sed_frag=1 # Number of current file.
12994   ac_beg=1 # First line for current file.
12995   ac_end=$ac_max_sed_lines # Line after last line for current file.
12996   ac_more_lines=:
12997   ac_sed_cmds=
12998   while $ac_more_lines; do
12999     if test $ac_beg -gt 1; then
13000       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13001     else
13002       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13003     fi
13004     if test ! -s $tmp/subs.frag; then
13005       ac_more_lines=false
13006     else
13007       # The purpose of the label and of the branching condition is to
13008       # speed up the sed processing (if there are no `@' at all, there
13009       # is no need to browse any of the substitutions).
13010       # These are the two extra sed commands mentioned above.
13011       (echo ':t
13012   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13013       if test -z "$ac_sed_cmds"; then
13014         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13015       else
13016         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13017       fi
13018       ac_sed_frag=`expr $ac_sed_frag + 1`
13019       ac_beg=$ac_end
13020       ac_end=`expr $ac_end + $ac_max_sed_lines`
13021     fi
13022   done
13023   if test -z "$ac_sed_cmds"; then
13024     ac_sed_cmds=cat
13025   fi
13026 fi # test -n "$CONFIG_FILES"
13027
13028 _ACEOF
13029 cat >>$CONFIG_STATUS <<\_ACEOF
13030 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13031   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13032   case $ac_file in
13033   - | *:- | *:-:* ) # input from stdin
13034         cat >$tmp/stdin
13035         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13036         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13037   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13038         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13039   * )   ac_file_in=$ac_file.in ;;
13040   esac
13041
13042   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13043   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13045          X"$ac_file" : 'X\(//\)[^/]' \| \
13046          X"$ac_file" : 'X\(//\)$' \| \
13047          X"$ac_file" : 'X\(/\)' \| \
13048          .     : '\(.\)' 2>/dev/null ||
13049 echo X"$ac_file" |
13050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13052           /^X\(\/\/\)$/{ s//\1/; q; }
13053           /^X\(\/\).*/{ s//\1/; q; }
13054           s/.*/./; q'`
13055   { if $as_mkdir_p; then
13056     mkdir -p "$ac_dir"
13057   else
13058     as_dir="$ac_dir"
13059     as_dirs=
13060     while test ! -d "$as_dir"; do
13061       as_dirs="$as_dir $as_dirs"
13062       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13064          X"$as_dir" : 'X\(//\)[^/]' \| \
13065          X"$as_dir" : 'X\(//\)$' \| \
13066          X"$as_dir" : 'X\(/\)' \| \
13067          .     : '\(.\)' 2>/dev/null ||
13068 echo X"$as_dir" |
13069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13070           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13071           /^X\(\/\/\)$/{ s//\1/; q; }
13072           /^X\(\/\).*/{ s//\1/; q; }
13073           s/.*/./; q'`
13074     done
13075     test ! -n "$as_dirs" || mkdir $as_dirs
13076   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13078    { (exit 1); exit 1; }; }; }
13079
13080   ac_builddir=.
13081
13082 if test "$ac_dir" != .; then
13083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13084   # A "../" for each directory in $ac_dir_suffix.
13085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13086 else
13087   ac_dir_suffix= ac_top_builddir=
13088 fi
13089
13090 case $srcdir in
13091   .)  # No --srcdir option.  We are building in place.
13092     ac_srcdir=.
13093     if test -z "$ac_top_builddir"; then
13094        ac_top_srcdir=.
13095     else
13096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13097     fi ;;
13098   [\\/]* | ?:[\\/]* )  # Absolute path.
13099     ac_srcdir=$srcdir$ac_dir_suffix;
13100     ac_top_srcdir=$srcdir ;;
13101   *) # Relative path.
13102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13104 esac
13105
13106 # Do not use `cd foo && pwd` to compute absolute paths, because
13107 # the directories may not exist.
13108 case `pwd` in
13109 .) ac_abs_builddir="$ac_dir";;
13110 *)
13111   case "$ac_dir" in
13112   .) ac_abs_builddir=`pwd`;;
13113   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13114   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13115   esac;;
13116 esac
13117 case $ac_abs_builddir in
13118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13119 *)
13120   case ${ac_top_builddir}. in
13121   .) ac_abs_top_builddir=$ac_abs_builddir;;
13122   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13123   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13124   esac;;
13125 esac
13126 case $ac_abs_builddir in
13127 .) ac_abs_srcdir=$ac_srcdir;;
13128 *)
13129   case $ac_srcdir in
13130   .) ac_abs_srcdir=$ac_abs_builddir;;
13131   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13132   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13133   esac;;
13134 esac
13135 case $ac_abs_builddir in
13136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13137 *)
13138   case $ac_top_srcdir in
13139   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13140   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13141   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13142   esac;;
13143 esac
13144
13145
13146
13147   if test x"$ac_file" != x-; then
13148     { echo "$as_me:$LINENO: creating $ac_file" >&5
13149 echo "$as_me: creating $ac_file" >&6;}
13150     rm -f "$ac_file"
13151   fi
13152   # Let's still pretend it is `configure' which instantiates (i.e., don't
13153   # use $as_me), people would be surprised to read:
13154   #    /* config.h.  Generated by config.status.  */
13155   if test x"$ac_file" = x-; then
13156     configure_input=
13157   else
13158     configure_input="$ac_file.  "
13159   fi
13160   configure_input=$configure_input"Generated from `echo $ac_file_in |
13161                                      sed 's,.*/,,'` by configure."
13162
13163   # First look for the input files in the build tree, otherwise in the
13164   # src tree.
13165   ac_file_inputs=`IFS=:
13166     for f in $ac_file_in; do
13167       case $f in
13168       -) echo $tmp/stdin ;;
13169       [\\/$]*)
13170          # Absolute (can't be DOS-style, as IFS=:)
13171          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13172 echo "$as_me: error: cannot find input file: $f" >&2;}
13173    { (exit 1); exit 1; }; }
13174          echo "$f";;
13175       *) # Relative
13176          if test -f "$f"; then
13177            # Build tree
13178            echo "$f"
13179          elif test -f "$srcdir/$f"; then
13180            # Source tree
13181            echo "$srcdir/$f"
13182          else
13183            # /dev/null tree
13184            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13185 echo "$as_me: error: cannot find input file: $f" >&2;}
13186    { (exit 1); exit 1; }; }
13187          fi;;
13188       esac
13189     done` || { (exit 1); exit 1; }
13190 _ACEOF
13191 cat >>$CONFIG_STATUS <<_ACEOF
13192   sed "$ac_vpsub
13193 $extrasub
13194 _ACEOF
13195 cat >>$CONFIG_STATUS <<\_ACEOF
13196 :t
13197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13198 s,@configure_input@,$configure_input,;t t
13199 s,@srcdir@,$ac_srcdir,;t t
13200 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13201 s,@top_srcdir@,$ac_top_srcdir,;t t
13202 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13203 s,@builddir@,$ac_builddir,;t t
13204 s,@abs_builddir@,$ac_abs_builddir,;t t
13205 s,@top_builddir@,$ac_top_builddir,;t t
13206 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13207 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13208   rm -f $tmp/stdin
13209   if test x"$ac_file" != x-; then
13210     mv $tmp/out $ac_file
13211   else
13212     cat $tmp/out
13213     rm -f $tmp/out
13214   fi
13215
13216 done
13217 _ACEOF
13218 cat >>$CONFIG_STATUS <<\_ACEOF
13219
13220 #
13221 # CONFIG_HEADER section.
13222 #
13223
13224 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13225 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13226 #
13227 # ac_d sets the value in "#define NAME VALUE" lines.
13228 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13229 ac_dB='[         ].*$,\1#\2'
13230 ac_dC=' '
13231 ac_dD=',;t'
13232 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13233 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13234 ac_uB='$,\1#\2define\3'
13235 ac_uC=' '
13236 ac_uD=',;t'
13237
13238 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13239   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13240   case $ac_file in
13241   - | *:- | *:-:* ) # input from stdin
13242         cat >$tmp/stdin
13243         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13244         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13245   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13246         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13247   * )   ac_file_in=$ac_file.in ;;
13248   esac
13249
13250   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13251 echo "$as_me: creating $ac_file" >&6;}
13252
13253   # First look for the input files in the build tree, otherwise in the
13254   # src tree.
13255   ac_file_inputs=`IFS=:
13256     for f in $ac_file_in; do
13257       case $f in
13258       -) echo $tmp/stdin ;;
13259       [\\/$]*)
13260          # Absolute (can't be DOS-style, as IFS=:)
13261          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13262 echo "$as_me: error: cannot find input file: $f" >&2;}
13263    { (exit 1); exit 1; }; }
13264          # Do quote $f, to prevent DOS paths from being IFS'd.
13265          echo "$f";;
13266       *) # Relative
13267          if test -f "$f"; then
13268            # Build tree
13269            echo "$f"
13270          elif test -f "$srcdir/$f"; then
13271            # Source tree
13272            echo "$srcdir/$f"
13273          else
13274            # /dev/null tree
13275            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13276 echo "$as_me: error: cannot find input file: $f" >&2;}
13277    { (exit 1); exit 1; }; }
13278          fi;;
13279       esac
13280     done` || { (exit 1); exit 1; }
13281   # Remove the trailing spaces.
13282   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13283
13284 _ACEOF
13285
13286 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13287 # `conftest.undefs', that substitutes the proper values into
13288 # config.h.in to produce config.h.  The first handles `#define'
13289 # templates, and the second `#undef' templates.
13290 # And first: Protect against being on the right side of a sed subst in
13291 # config.status.  Protect against being in an unquoted here document
13292 # in config.status.
13293 rm -f conftest.defines conftest.undefs
13294 # Using a here document instead of a string reduces the quoting nightmare.
13295 # Putting comments in sed scripts is not portable.
13296 #
13297 # `end' is used to avoid that the second main sed command (meant for
13298 # 0-ary CPP macros) applies to n-ary macro definitions.
13299 # See the Autoconf documentation for `clear'.
13300 cat >confdef2sed.sed <<\_ACEOF
13301 s/[\\&,]/\\&/g
13302 s,[\\$`],\\&,g
13303 t clear
13304 : clear
13305 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13306 t end
13307 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13308 : end
13309 _ACEOF
13310 # If some macros were called several times there might be several times
13311 # the same #defines, which is useless.  Nevertheless, we may not want to
13312 # sort them, since we want the *last* AC-DEFINE to be honored.
13313 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13314 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13315 rm -f confdef2sed.sed
13316
13317 # This sed command replaces #undef with comments.  This is necessary, for
13318 # example, in the case of _POSIX_SOURCE, which is predefined and required
13319 # on some systems where configure will not decide to define it.
13320 cat >>conftest.undefs <<\_ACEOF
13321 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13322 _ACEOF
13323
13324 # Break up conftest.defines because some shells have a limit on the size
13325 # of here documents, and old seds have small limits too (100 cmds).
13326 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13327 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13328 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13329 echo '  :' >>$CONFIG_STATUS
13330 rm -f conftest.tail
13331 while grep . conftest.defines >/dev/null
13332 do
13333   # Write a limited-size here document to $tmp/defines.sed.
13334   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13335   # Speed up: don't consider the non `#define' lines.
13336   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13337   # Work around the forget-to-reset-the-flag bug.
13338   echo 't clr' >>$CONFIG_STATUS
13339   echo ': clr' >>$CONFIG_STATUS
13340   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13341   echo 'CEOF
13342   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13343   rm -f $tmp/in
13344   mv $tmp/out $tmp/in
13345 ' >>$CONFIG_STATUS
13346   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13347   rm -f conftest.defines
13348   mv conftest.tail conftest.defines
13349 done
13350 rm -f conftest.defines
13351 echo '  fi # grep' >>$CONFIG_STATUS
13352 echo >>$CONFIG_STATUS
13353
13354 # Break up conftest.undefs because some shells have a limit on the size
13355 # of here documents, and old seds have small limits too (100 cmds).
13356 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13357 rm -f conftest.tail
13358 while grep . conftest.undefs >/dev/null
13359 do
13360   # Write a limited-size here document to $tmp/undefs.sed.
13361   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13362   # Speed up: don't consider the non `#undef'
13363   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13364   # Work around the forget-to-reset-the-flag bug.
13365   echo 't clr' >>$CONFIG_STATUS
13366   echo ': clr' >>$CONFIG_STATUS
13367   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13368   echo 'CEOF
13369   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13370   rm -f $tmp/in
13371   mv $tmp/out $tmp/in
13372 ' >>$CONFIG_STATUS
13373   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13374   rm -f conftest.undefs
13375   mv conftest.tail conftest.undefs
13376 done
13377 rm -f conftest.undefs
13378
13379 cat >>$CONFIG_STATUS <<\_ACEOF
13380   # Let's still pretend it is `configure' which instantiates (i.e., don't
13381   # use $as_me), people would be surprised to read:
13382   #    /* config.h.  Generated by config.status.  */
13383   if test x"$ac_file" = x-; then
13384     echo "/* Generated by configure.  */" >$tmp/config.h
13385   else
13386     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13387   fi
13388   cat $tmp/in >>$tmp/config.h
13389   rm -f $tmp/in
13390   if test x"$ac_file" != x-; then
13391     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13392       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13393 echo "$as_me: $ac_file is unchanged" >&6;}
13394     else
13395       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13397          X"$ac_file" : 'X\(//\)[^/]' \| \
13398          X"$ac_file" : 'X\(//\)$' \| \
13399          X"$ac_file" : 'X\(/\)' \| \
13400          .     : '\(.\)' 2>/dev/null ||
13401 echo X"$ac_file" |
13402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13404           /^X\(\/\/\)$/{ s//\1/; q; }
13405           /^X\(\/\).*/{ s//\1/; q; }
13406           s/.*/./; q'`
13407       { if $as_mkdir_p; then
13408     mkdir -p "$ac_dir"
13409   else
13410     as_dir="$ac_dir"
13411     as_dirs=
13412     while test ! -d "$as_dir"; do
13413       as_dirs="$as_dir $as_dirs"
13414       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13416          X"$as_dir" : 'X\(//\)[^/]' \| \
13417          X"$as_dir" : 'X\(//\)$' \| \
13418          X"$as_dir" : 'X\(/\)' \| \
13419          .     : '\(.\)' 2>/dev/null ||
13420 echo X"$as_dir" |
13421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13422           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13423           /^X\(\/\/\)$/{ s//\1/; q; }
13424           /^X\(\/\).*/{ s//\1/; q; }
13425           s/.*/./; q'`
13426     done
13427     test ! -n "$as_dirs" || mkdir $as_dirs
13428   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13430    { (exit 1); exit 1; }; }; }
13431
13432       rm -f $ac_file
13433       mv $tmp/config.h $ac_file
13434     fi
13435   else
13436     cat $tmp/config.h
13437     rm -f $tmp/config.h
13438   fi
13439 done
13440 _ACEOF
13441 cat >>$CONFIG_STATUS <<\_ACEOF
13442
13443 #
13444 # CONFIG_COMMANDS section.
13445 #
13446 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13447   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13448   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13449   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13450 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13451          X"$ac_dest" : 'X\(//\)[^/]' \| \
13452          X"$ac_dest" : 'X\(//\)$' \| \
13453          X"$ac_dest" : 'X\(/\)' \| \
13454          .     : '\(.\)' 2>/dev/null ||
13455 echo X"$ac_dest" |
13456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13457           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13458           /^X\(\/\/\)$/{ s//\1/; q; }
13459           /^X\(\/\).*/{ s//\1/; q; }
13460           s/.*/./; q'`
13461   { if $as_mkdir_p; then
13462     mkdir -p "$ac_dir"
13463   else
13464     as_dir="$ac_dir"
13465     as_dirs=
13466     while test ! -d "$as_dir"; do
13467       as_dirs="$as_dir $as_dirs"
13468       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13470          X"$as_dir" : 'X\(//\)[^/]' \| \
13471          X"$as_dir" : 'X\(//\)$' \| \
13472          X"$as_dir" : 'X\(/\)' \| \
13473          .     : '\(.\)' 2>/dev/null ||
13474 echo X"$as_dir" |
13475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13476           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13477           /^X\(\/\/\)$/{ s//\1/; q; }
13478           /^X\(\/\).*/{ s//\1/; q; }
13479           s/.*/./; q'`
13480     done
13481     test ! -n "$as_dirs" || mkdir $as_dirs
13482   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13484    { (exit 1); exit 1; }; }; }
13485
13486   ac_builddir=.
13487
13488 if test "$ac_dir" != .; then
13489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13490   # A "../" for each directory in $ac_dir_suffix.
13491   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13492 else
13493   ac_dir_suffix= ac_top_builddir=
13494 fi
13495
13496 case $srcdir in
13497   .)  # No --srcdir option.  We are building in place.
13498     ac_srcdir=.
13499     if test -z "$ac_top_builddir"; then
13500        ac_top_srcdir=.
13501     else
13502        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13503     fi ;;
13504   [\\/]* | ?:[\\/]* )  # Absolute path.
13505     ac_srcdir=$srcdir$ac_dir_suffix;
13506     ac_top_srcdir=$srcdir ;;
13507   *) # Relative path.
13508     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13509     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13510 esac
13511
13512 # Do not use `cd foo && pwd` to compute absolute paths, because
13513 # the directories may not exist.
13514 case `pwd` in
13515 .) ac_abs_builddir="$ac_dir";;
13516 *)
13517   case "$ac_dir" in
13518   .) ac_abs_builddir=`pwd`;;
13519   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13520   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13521   esac;;
13522 esac
13523 case $ac_abs_builddir in
13524 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13525 *)
13526   case ${ac_top_builddir}. in
13527   .) ac_abs_top_builddir=$ac_abs_builddir;;
13528   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13529   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13530   esac;;
13531 esac
13532 case $ac_abs_builddir in
13533 .) ac_abs_srcdir=$ac_srcdir;;
13534 *)
13535   case $ac_srcdir in
13536   .) ac_abs_srcdir=$ac_abs_builddir;;
13537   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13538   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13539   esac;;
13540 esac
13541 case $ac_abs_builddir in
13542 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13543 *)
13544   case $ac_top_srcdir in
13545   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13546   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13547   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13548   esac;;
13549 esac
13550
13551
13552   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13553 echo "$as_me: executing $ac_dest commands" >&6;}
13554   case $ac_dest in
13555     default )
13556 case ${CONFIG_HEADERS} in
13557   *auto-host.h:config.in*)
13558   echo > cstamp-h ;;
13559 esac
13560 # Make sure all the subdirs exist.
13561 for d in $subdirs
13562 do
13563     test -d $d || mkdir $d
13564 done
13565 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13566 # bootstrapping and the installation procedure can still use
13567 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13568 # FLAGS_TO_PASS has been modified to solve the problem there.
13569 # This is virtually a duplicate of what happens in configure.lang; we do
13570 # an extra check to make sure this only happens if ln -s can be used.
13571 if test "$symbolic_link" = "ln -s"; then
13572  for d in ${subdirs} fixinc ; do
13573         STARTDIR=`${PWDCMD-pwd}`
13574         cd $d
13575         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13576         do
13577                 rm -f $t
13578                 $symbolic_link ../$t $t 2>/dev/null
13579         done
13580         cd $STARTDIR
13581  done
13582 else true ; fi
13583  ;;
13584   esac
13585 done
13586 _ACEOF
13587
13588 cat >>$CONFIG_STATUS <<\_ACEOF
13589
13590 { (exit 0); exit 0; }
13591 _ACEOF
13592 chmod +x $CONFIG_STATUS
13593 ac_clean_files=$ac_clean_files_save
13594
13595
13596 # configure is writing to config.log, and then calls config.status.
13597 # config.status does its own redirection, appending to config.log.
13598 # Unfortunately, on DOS this fails, as config.log is still kept open
13599 # by configure, so config.status won't be able to write to it; its
13600 # output is simply discarded.  So we exec the FD to /dev/null,
13601 # effectively closing config.log, so it can be properly (re)opened and
13602 # appended to by config.status.  When coming back to configure, we
13603 # need to make the FD available again.
13604 if test "$no_create" != yes; then
13605   ac_cs_success=:
13606   ac_config_status_args=
13607   test "$silent" = yes &&
13608     ac_config_status_args="$ac_config_status_args --quiet"
13609   exec 5>/dev/null
13610   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13611   exec 5>>config.log
13612   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13613   # would make configure fail if this is the last instruction.
13614   $ac_cs_success || { (exit 1); exit 1; }
13615 fi
13616