OSDN Git Service

617d8af55ee10fbadc5577561f5f7980614969bc
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: assert,fold,gc,gcac,misc,
871                           rtlflag,rtl,tree,valgrind,release,yes,all;
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler's code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-threads        enable thread usage for target GCC
883   --enable-threads=LIB    use LIB thread package for target GCC
884   --enable-objc-gc        enable the use of Boehm's garbage collector with
885                           the GNU Objective-C runtime
886   --disable-shared        don't provide a shared libgcc
887   --enable-intermodule    build the compiler in one step
888   --enable-languages=LIST specify which front-ends to build
889   --enable-initfini-array       use .init_array/.fini_array sections
890   --enable-sjlj-exceptions
891                           arrange to use setjmp/longjmp exception handling
892   --disable-win32-registry
893                           disable lookup of installation paths in the
894                           Registry on Windows hosts
895   --enable-win32-registry enable registry lookup (default)
896   --enable-win32-registry=KEY
897                           use KEY instead of GCC version as the last portion
898                           of the registry key
899   --enable-maintainer-mode
900                           enable make rules and dependencies not useful
901                           (and sometimes confusing) to the casual installer
902   --enable-version-specific-runtime-libs
903                           specify that runtime libraries should be
904                           installed in a compiler-specific directory
905
906 Optional Packages:
907   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
908   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
909   --with-local-prefix=DIR specifies directory to put local include
910   --with-gxx-include-dir=DIR
911                           specifies directory to put g++ header files
912   --with-cpp-install-dir=DIR
913                           install the user visible C preprocessor in DIR
914                           (relative to PREFIX) as well as PREFIX/bin
915   --with-gnu-ld           arrange to work with GNU ld.
916   --with-ld               arrange to use the specified ld (full pathname)
917   --with-demangler-in-ld  try to use demangler in GNU ld.
918   --with-gnu-as           arrange to work with GNU as
919   --with-as               arrange to use the specified as (full pathname)
920   --with-stabs            arrange to use stabs instead of host debug format
921   --with-dwarf2           force the default debug format to be DWARF 2
922   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
924   --with-system-libunwind use installed libunwind
925   --with-gc={page,zone}   choose the garbage collection mechanism to use
926                           with the compiler
927   --with-system-zlib      use installed libz
928   --with-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 #Set to 1 on a release branch
1385 is_release=
1386
1387 # Determine the host, build, and target systems
1388 ac_aux_dir=
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390   if test -f $ac_dir/install-sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install-sh -c"
1393     break
1394   elif test -f $ac_dir/install.sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install.sh -c"
1397     break
1398   elif test -f $ac_dir/shtool; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/shtool install -c"
1401     break
1402   fi
1403 done
1404 if test -z "$ac_aux_dir"; then
1405   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407    { (exit 1); exit 1; }; }
1408 fi
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426   ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430    { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434    { (exit 1); exit 1; }; }
1435
1436 fi
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1439 build=$ac_cv_build
1440 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443
1444
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448   echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450   ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452   ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456    { (exit 1); exit 1; }; }
1457
1458 fi
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1461 host=$ac_cv_host
1462 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465
1466
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470   echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472   ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474   ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478    { (exit 1); exit 1; }; }
1479
1480 fi
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487
1488
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492   test "$program_prefix$program_suffix$program_transform_name" = \
1493     NONENONEs,x,x, &&
1494   program_prefix=${target_alias}-
1495
1496 # Determine the noncanonical target name, for directory use.
1497  case ${build_alias} in
1498   "") build_noncanonical=${build} ;;
1499   *) build_noncanonical=${build_alias} ;;
1500 esac
1501
1502  case ${host_alias} in
1503   "") host_noncanonical=${build_noncanonical} ;;
1504   *) host_noncanonical=${host_alias} ;;
1505 esac
1506
1507  case ${target_alias} in
1508   "") target_noncanonical=${host_noncanonical} ;;
1509   *) target_noncanonical=${target_alias} ;;
1510 esac
1511
1512
1513
1514
1515 # Determine the target- and build-specific subdirectories
1516   # Prefix 'build-' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # Not really a subdirectory, but here for completeness.
1519 host_subdir=.
1520 # No prefix.
1521 target_subdir=${target_noncanonical}
1522
1523
1524 # Set program_transform_name
1525 test "$program_prefix" != NONE &&
1526   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1527 # Use a double $ so make ignores it.
1528 test "$program_suffix" != NONE &&
1529   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1530 # Double any \ or $.  echo might interpret backslashes.
1531 # By default was `s,x,x', remove it if useless.
1532 cat <<\_ACEOF >conftest.sed
1533 s/[\\$]/&&/g;s/;s,x,x,$//
1534 _ACEOF
1535 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1536 rm conftest.sed
1537
1538
1539 # Check for bogus environment variables.
1540 # Test if LIBRARY_PATH contains the notation for the current directory
1541 # since this would lead to problems installing/building glibc.
1542 # LIBRARY_PATH contains the current directory if one of the following
1543 # is true:
1544 # - one of the terminals (":" and ";") is the first or last sign
1545 # - two terminals occur directly after each other
1546 # - the path contains an element with a dot in it
1547 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1548 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1549 case ${LIBRARY_PATH} in
1550   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1551     library_path_setting="contains current directory"
1552     ;;
1553   *)
1554     library_path_setting="ok"
1555     ;;
1556 esac
1557 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1558 echo "${ECHO_T}$library_path_setting" >&6
1559 if test "$library_path_setting" != "ok"; then
1560 { { echo "$as_me:$LINENO: error:
1561 *** LIBRARY_PATH shouldn't contain the current directory when
1562 *** building gcc. Please change the environment variable
1563 *** and run configure again." >&5
1564 echo "$as_me: error:
1565 *** LIBRARY_PATH shouldn't contain the current directory when
1566 *** building gcc. Please change the environment variable
1567 *** and run configure again." >&2;}
1568    { (exit 1); exit 1; }; }
1569 fi
1570
1571 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1572 # since this would lead to problems installing/building glibc.
1573 # GCC_EXEC_PREFIX contains the current directory if one of the following
1574 # is true:
1575 # - one of the terminals (":" and ";") is the first or last sign
1576 # - two terminals occur directly after each other
1577 # - the path contains an element with a dot in it
1578 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1579 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1580 case ${GCC_EXEC_PREFIX} in
1581   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1582     gcc_exec_prefix_setting="contains current directory"
1583     ;;
1584   *)
1585     gcc_exec_prefix_setting="ok"
1586     ;;
1587 esac
1588 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1589 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1590 if test "$gcc_exec_prefix_setting" != "ok"; then
1591 { { echo "$as_me:$LINENO: error:
1592 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1593 *** building gcc. Please change the environment variable
1594 *** and run configure again." >&5
1595 echo "$as_me: error:
1596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&2;}
1599    { (exit 1); exit 1; }; }
1600 fi
1601
1602 # -----------
1603 # Directories
1604 # -----------
1605
1606 # Specify the local prefix
1607 local_prefix=
1608
1609 # Check whether --with-local-prefix or --without-local-prefix was given.
1610 if test "${with_local_prefix+set}" = set; then
1611   withval="$with_local_prefix"
1612   case "${withval}" in
1613 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1614 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1615    { (exit 1); exit 1; }; } ;;
1616 no)     ;;
1617 *)      local_prefix=$with_local_prefix ;;
1618 esac
1619 fi;
1620
1621 # Default local prefix if it is empty
1622 if test x$local_prefix = x; then
1623         local_prefix=/usr/local
1624 fi
1625
1626 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1627 # passed in by the toplevel make and thus we'd get different behavior
1628 # depending on where we built the sources.
1629 gcc_gxx_include_dir=
1630 # Specify the g++ header file directory
1631
1632 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1633 if test "${with_gxx_include_dir+set}" = set; then
1634   withval="$with_gxx_include_dir"
1635   case "${withval}" in
1636 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1637 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1638    { (exit 1); exit 1; }; } ;;
1639 no)     ;;
1640 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1641 esac
1642 fi;
1643
1644 if test x${gcc_gxx_include_dir} = x; then
1645   if test x${enable_version_specific_runtime_libs} = xyes; then
1646     gcc_gxx_include_dir='${libsubdir}/include/c++'
1647   else
1648     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1649     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1650   fi
1651 fi
1652
1653
1654 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1655 if test "${with_cpp_install_dir+set}" = set; then
1656   withval="$with_cpp_install_dir"
1657   if test x$withval = xyes; then
1658   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1659 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1660    { (exit 1); exit 1; }; }
1661 elif test x$withval != xno; then
1662   cpp_install_dir=$withval
1663 fi
1664 fi;
1665
1666 # We would like to our source tree to be readonly.  However when releases or
1667 # pre-releases are generated, the flex/bison generated files as well as the
1668 # various formats of manuals need to be included along with the rest of the
1669 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1670 # just that.
1671
1672 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1673 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1674     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1675 if test "${enable_generated_files_in_srcdir+set}" = set; then
1676   enableval="$enable_generated_files_in_srcdir"
1677   generated_files_in_srcdir=$enableval
1678 else
1679   generated_files_in_srcdir=no
1680 fi;
1681
1682 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1683 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1684
1685 if test "$generated_files_in_srcdir" = "yes"; then
1686   GENINSRC=''
1687 else
1688   GENINSRC='#'
1689 fi
1690
1691
1692 # -------------------
1693 # Find default linker
1694 # -------------------
1695
1696 # With GNU ld
1697
1698 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1699 if test "${with_gnu_ld+set}" = set; then
1700   withval="$with_gnu_ld"
1701   gnu_ld_flag="$with_gnu_ld"
1702 else
1703   gnu_ld_flag=no
1704 fi;
1705
1706 # With pre-defined ld
1707
1708 # Check whether --with-ld or --without-ld was given.
1709 if test "${with_ld+set}" = set; then
1710   withval="$with_ld"
1711   DEFAULT_LINKER="$with_ld"
1712 fi;
1713 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1714   if test ! -x "$DEFAULT_LINKER"; then
1715     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1716 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1717    { (exit 1); exit 1; }; }
1718   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1719     gnu_ld_flag=yes
1720   fi
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1724 _ACEOF
1725
1726 fi
1727
1728 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1729 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1730 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1731   if test x"$gnu_ld_flag" = x"no"; then
1732     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1733 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1734   else
1735     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1736 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1737   fi
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 # With demangler in GNU ld
1744
1745 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1746 if test "${with_demangler_in_ld+set}" = set; then
1747   withval="$with_demangler_in_ld"
1748   demangler_in_ld="$with_demangler_in_ld"
1749 else
1750   demangler_in_ld=no
1751 fi;
1752
1753 # ----------------------
1754 # Find default assembler
1755 # ----------------------
1756
1757 # With GNU as
1758
1759 # Check whether --with-gnu-as or --without-gnu-as was given.
1760 if test "${with_gnu_as+set}" = set; then
1761   withval="$with_gnu_as"
1762   gas_flag="$with_gnu_as"
1763 else
1764   gas_flag=no
1765 fi;
1766
1767
1768 # Check whether --with-as or --without-as was given.
1769 if test "${with_as+set}" = set; then
1770   withval="$with_as"
1771   DEFAULT_ASSEMBLER="$with_as"
1772 fi;
1773 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1774   if test ! -x "$DEFAULT_ASSEMBLER"; then
1775     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1776 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1777    { (exit 1); exit 1; }; }
1778   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1779     gas_flag=yes
1780   fi
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1784 _ACEOF
1785
1786 fi
1787
1788 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1789 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1790 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1791   if test x"$gas_flag" = x"no"; then
1792     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1793 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1794   else
1795     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1796 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1797   fi
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803 # ---------------
1804 # Find C compiler
1805 # ---------------
1806
1807 # If a non-executable a.out is present (e.g. created by GNU as above even if
1808 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1809 # file, even when creating an executable, so an execution test fails.
1810 # Remove possible default executable files to avoid this.
1811 #
1812 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1813 # Autoconf includes it.
1814 rm -f a.out a.exe b.out
1815
1816 # Find the native compiler
1817 ac_ext=c
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 if test -n "$ac_tool_prefix"; then
1823   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   if test -n "$CC"; then
1831   ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836   IFS=$as_save_IFS
1837   test -z "$as_dir" && as_dir=.
1838   for ac_exec_ext in '' $ac_executable_extensions; do
1839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842     break 2
1843   fi
1844 done
1845 done
1846
1847 fi
1848 fi
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851   echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854   echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
1858 fi
1859 if test -z "$ac_cv_prog_CC"; then
1860   ac_ct_CC=$CC
1861   # Extract the first word of "gcc", so it can be a program name with args.
1862 set dummy gcc; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   if test -n "$ac_ct_CC"; then
1869   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876   for ac_exec_ext in '' $ac_executable_extensions; do
1877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878     ac_cv_prog_ac_ct_CC="gcc"
1879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880     break 2
1881   fi
1882 done
1883 done
1884
1885 fi
1886 fi
1887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888 if test -n "$ac_ct_CC"; then
1889   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890 echo "${ECHO_T}$ac_ct_CC" >&6
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1895
1896   CC=$ac_ct_CC
1897 else
1898   CC="$ac_cv_prog_CC"
1899 fi
1900
1901 if test -z "$CC"; then
1902   if test -n "$ac_tool_prefix"; then
1903   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1904 set dummy ${ac_tool_prefix}cc; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$CC"; then
1911   ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920     ac_cv_prog_CC="${ac_tool_prefix}cc"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926
1927 fi
1928 fi
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931   echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938 fi
1939 if test -z "$ac_cv_prog_CC"; then
1940   ac_ct_CC=$CC
1941   # Extract the first word of "cc", so it can be a program name with args.
1942 set dummy cc; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   if test -n "$ac_ct_CC"; then
1949   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954   IFS=$as_save_IFS
1955   test -z "$as_dir" && as_dir=.
1956   for ac_exec_ext in '' $ac_executable_extensions; do
1957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958     ac_cv_prog_ac_ct_CC="cc"
1959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960     break 2
1961   fi
1962 done
1963 done
1964
1965 fi
1966 fi
1967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1968 if test -n "$ac_ct_CC"; then
1969   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1970 echo "${ECHO_T}$ac_ct_CC" >&6
1971 else
1972   echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1974 fi
1975
1976   CC=$ac_ct_CC
1977 else
1978   CC="$ac_cv_prog_CC"
1979 fi
1980
1981 fi
1982 if test -z "$CC"; then
1983   # Extract the first word of "cc", so it can be a program name with args.
1984 set dummy cc; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   if test -n "$CC"; then
1991   ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993   ac_prog_rejected=no
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2002        ac_prog_rejected=yes
2003        continue
2004      fi
2005     ac_cv_prog_CC="cc"
2006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007     break 2
2008   fi
2009 done
2010 done
2011
2012 if test $ac_prog_rejected = yes; then
2013   # We found a bogon in the path, so make sure we never use it.
2014   set dummy $ac_cv_prog_CC
2015   shift
2016   if test $# != 0; then
2017     # We chose a different compiler from the bogus one.
2018     # However, it has the same basename, so the bogon will be chosen
2019     # first if we set CC to just the basename; use the full file name.
2020     shift
2021     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2022   fi
2023 fi
2024 fi
2025 fi
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028   echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$CC"; then
2037   if test -n "$ac_tool_prefix"; then
2038   for ac_prog in cl
2039   do
2040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$CC"; then
2048   ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068   echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075     test -n "$CC" && break
2076   done
2077 fi
2078 if test -z "$CC"; then
2079   ac_ct_CC=$CC
2080   for ac_prog in cl
2081 do
2082   # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test -n "$ac_ct_CC"; then
2090   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095   IFS=$as_save_IFS
2096   test -z "$as_dir" && as_dir=.
2097   for ac_exec_ext in '' $ac_executable_extensions; do
2098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099     ac_cv_prog_ac_ct_CC="$ac_prog"
2100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101     break 2
2102   fi
2103 done
2104 done
2105
2106 fi
2107 fi
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6
2112 else
2113   echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117   test -n "$ac_ct_CC" && break
2118 done
2119
2120   CC=$ac_ct_CC
2121 fi
2122
2123 fi
2124
2125
2126 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 # Provide some information about the compiler.
2133 echo "$as_me:$LINENO:" \
2134      "checking for C compiler version" >&5
2135 ac_compiler=`set X $ac_compile; echo $2`
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2137   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2147   (eval $ac_compiler -V </dev/null >&5) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }
2151
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h.  */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h.  */
2158
2159 int
2160 main ()
2161 {
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 ac_clean_files_save=$ac_clean_files
2168 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2169 # Try to create an executable without -o first, disregard a.out.
2170 # It will help us diagnose broken compilers, and finding out an intuition
2171 # of exeext.
2172 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2173 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2174 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2175 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2176   (eval $ac_link_default) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); }; then
2180   # Find the output, starting from the most likely.  This scheme is
2181 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2182 # resort.
2183
2184 # Be careful to initialize this variable, since it used to be cached.
2185 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2186 ac_cv_exeext=
2187 # b.out is created by i960 compilers.
2188 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2189 do
2190   test -f "$ac_file" || continue
2191   case $ac_file in
2192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2193         ;;
2194     conftest.$ac_ext )
2195         # This is the source file.
2196         ;;
2197     [ab].out )
2198         # We found the default executable, but exeext='' is most
2199         # certainly right.
2200         break;;
2201     *.* )
2202         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203         # FIXME: I believe we export ac_cv_exeext for Libtool,
2204         # but it would be cool to find out if it's true.  Does anybody
2205         # maintain Libtool? --akim.
2206         export ac_cv_exeext
2207         break;;
2208     * )
2209         break;;
2210   esac
2211 done
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&2;}
2220    { (exit 77); exit 77; }; }
2221 fi
2222
2223 ac_exeext=$ac_cv_exeext
2224 echo "$as_me:$LINENO: result: $ac_file" >&5
2225 echo "${ECHO_T}$ac_file" >&6
2226
2227 # Check the compiler produces executables we can run.  If not, either
2228 # the compiler is broken, or we cross compile.
2229 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2230 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2231 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2232 # If not cross compiling, check that we can run a simple program.
2233 if test "$cross_compiling" != yes; then
2234   if { ac_try='./$ac_file'
2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236   (eval $ac_try) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240     cross_compiling=no
2241   else
2242     if test "$cross_compiling" = maybe; then
2243         cross_compiling=yes
2244     else
2245         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252     fi
2253   fi
2254 fi
2255 echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6
2257
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check the compiler produces executables we can run.  If not, either
2261 # the compiler is broken, or we cross compile.
2262 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2264 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6
2266
2267 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2270   (eval $ac_link) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 # `rm'.
2278 for ac_file in conftest.exe conftest conftest.*; do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2282     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283           export ac_cv_exeext
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest$ac_cv_exeext
2297 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6
2299
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2302 ac_exeext=$EXEEXT
2303 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2305 if test "${ac_cv_objext+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; then
2329   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2332     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333        break;;
2334   esac
2335 done
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&2;}
2344    { (exit 1); exit 1; }; }
2345 fi
2346
2347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 fi
2349 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350 echo "${ECHO_T}$ac_cv_objext" >&6
2351 OBJEXT=$ac_cv_objext
2352 ac_objext=$OBJEXT
2353 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   cat >conftest.$ac_ext <<_ACEOF
2359 /* confdefs.h.  */
2360 _ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h.  */
2364
2365 int
2366 main ()
2367 {
2368 #ifndef __GNUC__
2369        choke me
2370 #endif
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378   (eval $ac_compile) 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag"
2386                          || test ! -s conftest.err'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_compiler_gnu=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_compiler_gnu=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 CFLAGS="-g"
2415 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h.  */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h.  */
2426
2427 int
2428 main ()
2429 {
2430
2431   ;
2432   return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437   (eval $ac_compile) 2>conftest.er1
2438   ac_status=$?
2439   grep -v '^ *+' conftest.er1 >conftest.err
2440   rm -f conftest.er1
2441   cat conftest.err >&5
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); } &&
2444          { ac_try='test -z "$ac_c_werror_flag"
2445                          || test ! -s conftest.err'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; } &&
2451          { ac_try='test -s conftest.$ac_objext'
2452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453   (eval $ac_try) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; }; then
2457   ac_cv_prog_cc_g=yes
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 ac_cv_prog_cc_g=no
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2467 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2468 if test "$ac_test_CFLAGS" = set; then
2469   CFLAGS=$ac_save_CFLAGS
2470 elif test $ac_cv_prog_cc_g = yes; then
2471   if test "$GCC" = yes; then
2472     CFLAGS="-g -O2"
2473   else
2474     CFLAGS="-g"
2475   fi
2476 else
2477   if test "$GCC" = yes; then
2478     CFLAGS="-O2"
2479   else
2480     CFLAGS=
2481   fi
2482 fi
2483 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2484 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2485 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   ac_cv_prog_cc_stdc=no
2489 ac_save_CC=$CC
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496 #include <stdarg.h>
2497 #include <stdio.h>
2498 #include <sys/types.h>
2499 #include <sys/stat.h>
2500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2501 struct buf { int x; };
2502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503 static char *e (p, i)
2504      char **p;
2505      int i;
2506 {
2507   return p[i];
2508 }
2509 static char *f (char * (*g) (char **, int), char **p, ...)
2510 {
2511   char *s;
2512   va_list v;
2513   va_start (v,p);
2514   s = g (p, va_arg (v,int));
2515   va_end (v);
2516   return s;
2517 }
2518
2519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2520    function prototypes and stuff, but not '\xHH' hex character constants.
2521    These don't provoke an error unfortunately, instead are silently treated
2522    as 'x'.  The following induces an error, until -std1 is added to get
2523    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2524    array size at least.  It's necessary to write '\x00'==0 to get something
2525    that's true only with -std1.  */
2526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527
2528 int test (int i, double x);
2529 struct s1 {int (*f) (int a);};
2530 struct s2 {int (*f) (double a);};
2531 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532 int argc;
2533 char **argv;
2534 int
2535 main ()
2536 {
2537 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 # Don't try gcc -ansi; that turns off useful extensions and
2543 # breaks some systems' header files.
2544 # AIX                   -qlanglvl=ansi
2545 # Ultrix and OSF/1      -std1
2546 # HP-UX 10.20 and later -Ae
2547 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2548 # SVR4                  -Xc -D__EXTENSIONS__
2549 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 do
2551   CC="$ac_save_CC $ac_arg"
2552   rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>conftest.er1
2555   ac_status=$?
2556   grep -v '^ *+' conftest.er1 >conftest.err
2557   rm -f conftest.er1
2558   cat conftest.err >&5
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); } &&
2561          { ac_try='test -z "$ac_c_werror_flag"
2562                          || test ! -s conftest.err'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570   (eval $ac_try) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   ac_cv_prog_cc_stdc=$ac_arg
2575 break
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 fi
2581 rm -f conftest.err conftest.$ac_objext
2582 done
2583 rm -f conftest.$ac_ext conftest.$ac_objext
2584 CC=$ac_save_CC
2585
2586 fi
2587
2588 case "x$ac_cv_prog_cc_stdc" in
2589   x|xno)
2590     echo "$as_me:$LINENO: result: none needed" >&5
2591 echo "${ECHO_T}none needed" >&6 ;;
2592   *)
2593     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2594 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2595     CC="$CC $ac_cv_prog_cc_stdc" ;;
2596 esac
2597
2598 # Some people use a C++ compiler to compile C.  Since we use `exit',
2599 # in C++ we need to declare it.  In case someone uses the same compiler
2600 # for both compiling C and C++ we need to have the C++ compiler decide
2601 # the declaration of exit, since it's the most demanding environment.
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #ifndef __cplusplus
2604   choke me
2605 #endif
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_c_werror_flag"
2617                          || test ! -s conftest.err'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   for ac_declaration in \
2630    '' \
2631    'extern "C" void std::exit (int) throw (); using std::exit;' \
2632    'extern "C" void std::exit (int); using std::exit;' \
2633    'extern "C" void exit (int) throw ();' \
2634    'extern "C" void exit (int);' \
2635    'void exit (int);'
2636 do
2637   cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643 $ac_declaration
2644 #include <stdlib.h>
2645 int
2646 main ()
2647 {
2648 exit (42);
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>conftest.er1
2656   ac_status=$?
2657   grep -v '^ *+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } &&
2662          { ac_try='test -z "$ac_c_werror_flag"
2663                          || test ! -s conftest.err'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; } &&
2669          { ac_try='test -s conftest.$ac_objext'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675   :
2676 else
2677   echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 continue
2681 fi
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689 $ac_declaration
2690 int
2691 main ()
2692 {
2693 exit (42);
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700   (eval $ac_compile) 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_c_werror_flag"
2708                          || test ! -s conftest.err'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   break
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 fi
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 done
2728 rm -f conftest*
2729 if test -n "$ac_declaration"; then
2730   echo '#ifdef __cplusplus' >>confdefs.h
2731   echo $ac_declaration      >>confdefs.h
2732   echo '#endif'             >>confdefs.h
2733 fi
2734
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746
2747 if test "x$CC" != xcc; then
2748   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2749 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2750 else
2751   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2752 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2753 fi
2754 set dummy $CC; ac_cc=`echo $2 |
2755                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2756 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 int
2767 main ()
2768 {
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 # Make sure it works both with $CC and with simple cc.
2775 # We do the test twice because some compilers refuse to overwrite an
2776 # existing .o file with -o, though they will create one.
2777 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2778 if { (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    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); };
2788 then
2789   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2790   if test "x$CC" != xcc; then
2791     # Test first that cc exists at all.
2792     if { ac_try='cc -c conftest.$ac_ext >&5'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2799       if { (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          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); };
2809       then
2810         # cc works too.
2811         :
2812       else
2813         # cc exists but doesn't like -o.
2814         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815       fi
2816     fi
2817   fi
2818 else
2819   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820 fi
2821 rm -f conftest*
2822
2823 fi
2824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2825   echo "$as_me:$LINENO: result: yes" >&5
2826 echo "${ECHO_T}yes" >&6
2827 else
2828   echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6
2830
2831 cat >>confdefs.h <<\_ACEOF
2832 #define NO_MINUS_C_MINUS_O 1
2833 _ACEOF
2834
2835 fi
2836
2837 # autoconf is lame and doesn't give us any substitution variable for this.
2838 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2839   NO_MINUS_C_MINUS_O=yes
2840 else
2841   OUTPUT_OPTION='-o $@'
2842 fi
2843
2844
2845
2846 # -------------------------
2847 # Check C compiler features
2848 # -------------------------
2849
2850 ac_ext=c
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2856 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2857 # On Suns, sometimes $CPP names a directory.
2858 if test -n "$CPP" && test -d "$CPP"; then
2859   CPP=
2860 fi
2861 if test -z "$CPP"; then
2862   if test "${ac_cv_prog_CPP+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865       # Double quotes because CPP needs to be expanded
2866     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2867     do
2868       ac_preproc_ok=false
2869 for ac_c_preproc_warn_flag in '' yes
2870 do
2871   # Use a header file that comes with gcc, so configuring glibc
2872   # with a fresh cross-compiler works.
2873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874   # <limits.h> exists even on freestanding compilers.
2875   # On the NeXT, cc -E runs the code through the compiler's parser,
2876   # not just through cpp. "Syntax error" is here to catch this case.
2877   cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h.  */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883 #ifdef __STDC__
2884 # include <limits.h>
2885 #else
2886 # include <assert.h>
2887 #endif
2888                      Syntax error
2889 _ACEOF
2890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892   ac_status=$?
2893   grep -v '^ *+' conftest.er1 >conftest.err
2894   rm -f conftest.er1
2895   cat conftest.err >&5
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); } >/dev/null; then
2898   if test -s conftest.err; then
2899     ac_cpp_err=$ac_c_preproc_warn_flag
2900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2901   else
2902     ac_cpp_err=
2903   fi
2904 else
2905   ac_cpp_err=yes
2906 fi
2907 if test -z "$ac_cpp_err"; then
2908   :
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913   # Broken: fails on valid input.
2914 continue
2915 fi
2916 rm -f conftest.err conftest.$ac_ext
2917
2918   # OK, works on sane cases.  Now check whether non-existent headers
2919   # can be detected and how.
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926 #include <ac_nonexistent.h>
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } >/dev/null; then
2936   if test -s conftest.err; then
2937     ac_cpp_err=$ac_c_preproc_warn_flag
2938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939   else
2940     ac_cpp_err=
2941   fi
2942 else
2943   ac_cpp_err=yes
2944 fi
2945 if test -z "$ac_cpp_err"; then
2946   # Broken: success on invalid input.
2947 continue
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952   # Passes both tests.
2953 ac_preproc_ok=:
2954 break
2955 fi
2956 rm -f conftest.err conftest.$ac_ext
2957
2958 done
2959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960 rm -f conftest.err conftest.$ac_ext
2961 if $ac_preproc_ok; then
2962   break
2963 fi
2964
2965     done
2966     ac_cv_prog_CPP=$CPP
2967
2968 fi
2969   CPP=$ac_cv_prog_CPP
2970 else
2971   ac_cv_prog_CPP=$CPP
2972 fi
2973 echo "$as_me:$LINENO: result: $CPP" >&5
2974 echo "${ECHO_T}$CPP" >&6
2975 ac_preproc_ok=false
2976 for ac_c_preproc_warn_flag in '' yes
2977 do
2978   # Use a header file that comes with gcc, so configuring glibc
2979   # with a fresh cross-compiler works.
2980   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981   # <limits.h> exists even on freestanding compilers.
2982   # On the NeXT, cc -E runs the code through the compiler's parser,
2983   # not just through cpp. "Syntax error" is here to catch this case.
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 #ifdef __STDC__
2991 # include <limits.h>
2992 #else
2993 # include <assert.h>
2994 #endif
2995                      Syntax error
2996 _ACEOF
2997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } >/dev/null; then
3005   if test -s conftest.err; then
3006     ac_cpp_err=$ac_c_preproc_warn_flag
3007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008   else
3009     ac_cpp_err=
3010   fi
3011 else
3012   ac_cpp_err=yes
3013 fi
3014 if test -z "$ac_cpp_err"; then
3015   :
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020   # Broken: fails on valid input.
3021 continue
3022 fi
3023 rm -f conftest.err conftest.$ac_ext
3024
3025   # OK, works on sane cases.  Now check whether non-existent headers
3026   # can be detected and how.
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 #include <ac_nonexistent.h>
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } >/dev/null; then
3043   if test -s conftest.err; then
3044     ac_cpp_err=$ac_c_preproc_warn_flag
3045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046   else
3047     ac_cpp_err=
3048   fi
3049 else
3050   ac_cpp_err=yes
3051 fi
3052 if test -z "$ac_cpp_err"; then
3053   # Broken: success on invalid input.
3054 continue
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059   # Passes both tests.
3060 ac_preproc_ok=:
3061 break
3062 fi
3063 rm -f conftest.err conftest.$ac_ext
3064
3065 done
3066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067 rm -f conftest.err conftest.$ac_ext
3068 if $ac_preproc_ok; then
3069   :
3070 else
3071   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3072 See \`config.log' for more details." >&5
3073 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3074 See \`config.log' for more details." >&2;}
3075    { (exit 1); exit 1; }; }
3076 fi
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083
3084
3085 echo "$as_me:$LINENO: checking for inline" >&5
3086 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3087 if test "${ac_cv_c_inline+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   ac_cv_c_inline=no
3091 for ac_kw in inline __inline__ __inline; do
3092   cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 #ifndef __cplusplus
3099 typedef int foo_t;
3100 static $ac_kw foo_t static_foo () {return 0; }
3101 $ac_kw foo_t foo () {return 0; }
3102 #endif
3103
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107   (eval $ac_compile) 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } &&
3114          { ac_try='test -z "$ac_c_werror_flag"
3115                          || test ! -s conftest.err'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   ac_cv_c_inline=$ac_kw; break
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 fi
3133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134 done
3135
3136 fi
3137 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3138 echo "${ECHO_T}$ac_cv_c_inline" >&6
3139
3140
3141 case $ac_cv_c_inline in
3142   inline | yes) ;;
3143   *)
3144     case $ac_cv_c_inline in
3145       no) ac_val=;;
3146       *) ac_val=$ac_cv_c_inline;;
3147     esac
3148     cat >>confdefs.h <<_ACEOF
3149 #ifndef __cplusplus
3150 #define inline $ac_val
3151 #endif
3152 _ACEOF
3153     ;;
3154 esac
3155
3156
3157 echo "$as_me:$LINENO: checking for long long int" >&5
3158 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3159 if test "${ac_cv_c_long_long+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172 long long int i;
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179   (eval $ac_compile) 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag"
3187                          || test ! -s conftest.err'
3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189   (eval $ac_try) 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; } &&
3193          { ac_try='test -s conftest.$ac_objext'
3194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195   (eval $ac_try) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   ac_cv_c_long_long=yes
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 ac_cv_c_long_long=no
3205 fi
3206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3209 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3210   if test $ac_cv_c_long_long = yes; then
3211
3212 cat >>confdefs.h <<\_ACEOF
3213 #define HAVE_LONG_LONG 1
3214 _ACEOF
3215
3216   fi
3217 echo "$as_me:$LINENO: checking for __int64" >&5
3218 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3219 if test "${ac_cv_c___int64+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228
3229 int
3230 main ()
3231 {
3232 __int64 i;
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239   (eval $ac_compile) 2>conftest.er1
3240   ac_status=$?
3241   grep -v '^ *+' conftest.er1 >conftest.err
3242   rm -f conftest.er1
3243   cat conftest.err >&5
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); } &&
3246          { ac_try='test -z "$ac_c_werror_flag"
3247                          || test ! -s conftest.err'
3248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249   (eval $ac_try) 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; } &&
3253          { ac_try='test -s conftest.$ac_objext'
3254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255   (eval $ac_try) 2>&5
3256   ac_status=$?
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }; }; then
3259   ac_cv_c___int64=yes
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 ac_cv_c___int64=no
3265 fi
3266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3269 echo "${ECHO_T}$ac_cv_c___int64" >&6
3270   if test $ac_cv_c___int64 = yes; then
3271
3272 cat >>confdefs.h <<\_ACEOF
3273 #define HAVE___INT64 1
3274 _ACEOF
3275
3276   fi
3277
3278
3279 # sizeof(char) is 1 by definition.
3280 echo "$as_me:$LINENO: checking size of void *" >&5
3281 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3282 if test "${ac_cv_sizeof_void_p+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3286   cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292 #include "confdefs.h"
3293 #include <sys/types.h>
3294
3295
3296 int
3297 main ()
3298 {
3299 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306   (eval $ac_compile) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -z "$ac_c_werror_flag"
3314                          || test ! -s conftest.err'
3315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316   (eval $ac_try) 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; } &&
3320          { ac_try='test -s conftest.$ac_objext'
3321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; }; then
3326   ac_cv_sizeof_void_p=$ac_size
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 fi
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3333   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3334 done
3335
3336 fi
3337
3338 if test x$ac_cv_sizeof_void_p = x ; then
3339   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3340 echo "$as_me: error: cannot determine a size for void *" >&2;}
3341    { (exit 1); exit 1; }; }
3342 fi
3343 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3344 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3345
3346 cat >>confdefs.h <<_ACEOF
3347 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3348 _ACEOF
3349
3350
3351 echo "$as_me:$LINENO: checking size of short" >&5
3352 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3353 if test "${ac_cv_sizeof_short+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include "confdefs.h"
3364 #include <sys/types.h>
3365
3366
3367 int
3368 main ()
3369 {
3370 switch (0) case 0: case (sizeof (short) == $ac_size):;
3371   ;
3372   return 0;
3373 }
3374 _ACEOF
3375 rm -f conftest.$ac_objext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3377   (eval $ac_compile) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } &&
3384          { ac_try='test -z "$ac_c_werror_flag"
3385                          || test ! -s conftest.err'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; } &&
3391          { ac_try='test -s conftest.$ac_objext'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; }; then
3397   ac_cv_sizeof_short=$ac_size
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 fi
3403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404   if test x$ac_cv_sizeof_short != x ; then break; fi
3405 done
3406
3407 fi
3408
3409 if test x$ac_cv_sizeof_short = x ; then
3410   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3411 echo "$as_me: error: cannot determine a size for short" >&2;}
3412    { (exit 1); exit 1; }; }
3413 fi
3414 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3415 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3416
3417 cat >>confdefs.h <<_ACEOF
3418 #define SIZEOF_SHORT $ac_cv_sizeof_short
3419 _ACEOF
3420
3421
3422 echo "$as_me:$LINENO: checking size of int" >&5
3423 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3424 if test "${ac_cv_sizeof_int+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #include "confdefs.h"
3435 #include <sys/types.h>
3436
3437
3438 int
3439 main ()
3440 {
3441 switch (0) case 0: case (sizeof (int) == $ac_size):;
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448   (eval $ac_compile) 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } &&
3455          { ac_try='test -z "$ac_c_werror_flag"
3456                          || test ! -s conftest.err'
3457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458   (eval $ac_try) 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); }; } &&
3462          { ac_try='test -s conftest.$ac_objext'
3463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464   (eval $ac_try) 2>&5
3465   ac_status=$?
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); }; }; then
3468   ac_cv_sizeof_int=$ac_size
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 fi
3474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475   if test x$ac_cv_sizeof_int != x ; then break; fi
3476 done
3477
3478 fi
3479
3480 if test x$ac_cv_sizeof_int = x ; then
3481   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3482 echo "$as_me: error: cannot determine a size for int" >&2;}
3483    { (exit 1); exit 1; }; }
3484 fi
3485 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3486 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3487
3488 cat >>confdefs.h <<_ACEOF
3489 #define SIZEOF_INT $ac_cv_sizeof_int
3490 _ACEOF
3491
3492
3493 echo "$as_me:$LINENO: checking size of long" >&5
3494 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3495 if test "${ac_cv_sizeof_long+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include "confdefs.h"
3506 #include <sys/types.h>
3507
3508
3509 int
3510 main ()
3511 {
3512 switch (0) case 0: case (sizeof (long) == $ac_size):;
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519   (eval $ac_compile) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag"
3527                          || test ! -s conftest.err'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; } &&
3533          { ac_try='test -s conftest.$ac_objext'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; }; then
3539   ac_cv_sizeof_long=$ac_size
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 fi
3545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546   if test x$ac_cv_sizeof_long != x ; then break; fi
3547 done
3548
3549 fi
3550
3551 if test x$ac_cv_sizeof_long = x ; then
3552   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3553 echo "$as_me: error: cannot determine a size for long" >&2;}
3554    { (exit 1); exit 1; }; }
3555 fi
3556 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3557 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3558
3559 cat >>confdefs.h <<_ACEOF
3560 #define SIZEOF_LONG $ac_cv_sizeof_long
3561 _ACEOF
3562
3563
3564 if test $ac_cv_c_long_long = yes; then
3565   echo "$as_me:$LINENO: checking size of long long" >&5
3566 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3567 if test "${ac_cv_sizeof_long_long+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3579
3580
3581 int
3582 main ()
3583 {
3584 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591   (eval $ac_compile) 2>conftest.er1
3592   ac_status=$?
3593   grep -v '^ *+' conftest.er1 >conftest.err
3594   rm -f conftest.er1
3595   cat conftest.err >&5
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); } &&
3598          { ac_try='test -z "$ac_c_werror_flag"
3599                          || test ! -s conftest.err'
3600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601   (eval $ac_try) 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; } &&
3605          { ac_try='test -s conftest.$ac_objext'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; }; then
3611   ac_cv_sizeof_long_long=$ac_size
3612 else
3613   echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 fi
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3619 done
3620
3621 fi
3622
3623 if test x$ac_cv_sizeof_long_long = x ; then
3624   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3625 echo "$as_me: error: cannot determine a size for long long" >&2;}
3626    { (exit 1); exit 1; }; }
3627 fi
3628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3629 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3630
3631 cat >>confdefs.h <<_ACEOF
3632 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3633 _ACEOF
3634
3635
3636 fi
3637 if test $ac_cv_c___int64 = yes; then
3638   echo "$as_me:$LINENO: checking size of __int64" >&5
3639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3640 if test "${ac_cv_sizeof___int64+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include "confdefs.h"
3651 #include <sys/types.h>
3652
3653
3654 int
3655 main ()
3656 {
3657 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664   (eval $ac_compile) 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671          { ac_try='test -z "$ac_c_werror_flag"
3672                          || test ! -s conftest.err'
3673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674   (eval $ac_try) 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; } &&
3678          { ac_try='test -s conftest.$ac_objext'
3679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680   (eval $ac_try) 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; }; then
3684   ac_cv_sizeof___int64=$ac_size
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 fi
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3692 done
3693
3694 fi
3695
3696 if test x$ac_cv_sizeof___int64 = x ; then
3697   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3698 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3699    { (exit 1); exit 1; }; }
3700 fi
3701 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3702 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3703
3704 cat >>confdefs.h <<_ACEOF
3705 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3706 _ACEOF
3707
3708
3709 fi
3710
3711 # ---------------------
3712 # Warnings and checking
3713 # ---------------------
3714
3715 # Check $CC warning features (if it's GCC).
3716 # We want to use -pedantic, but we don't want warnings about
3717 # * 'long long'
3718 # * variadic macros
3719 # So, we only use -pedantic if we can disable those warnings.
3720
3721 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3722 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3723 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   save_CFLAGS="$CFLAGS"
3727   CFLAGS="-Wno-long-long"
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738   (eval $ac_compile) 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -z "$ac_c_werror_flag"
3746                          || test ! -s conftest.err'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; } &&
3752          { ac_try='test -s conftest.$ac_objext'
3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754   (eval $ac_try) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; }; then
3758   ac_cv_prog_cc_w_no_long_long=yes
3759 else
3760   echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ac_cv_prog_cc_w_no_long_long=no
3764 fi
3765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3766   CFLAGS="$save_CFLAGS"
3767
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3770 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3771
3772 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3773 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3774 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   save_CFLAGS="$CFLAGS"
3778   CFLAGS="-Wno-variadic-macros"
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789   (eval $ac_compile) 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } &&
3796          { ac_try='test -z "$ac_c_werror_flag"
3797                          || test ! -s conftest.err'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; } &&
3803          { ac_try='test -s conftest.$ac_objext'
3804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805   (eval $ac_try) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); }; }; then
3809   ac_cv_prog_cc_w_no_variadic_macros=yes
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 ac_cv_prog_cc_w_no_variadic_macros=no
3815 fi
3816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817   CFLAGS="$save_CFLAGS"
3818
3819 fi
3820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3821 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3822
3823 strict1_warn=
3824 if test $ac_cv_prog_cc_w_no_long_long = yes \
3825    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3826   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3827 fi
3828
3829
3830 # Add -Wold-style-definition if it's accepted
3831 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3832 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3833 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   save_CFLAGS="$CFLAGS"
3837   CFLAGS="-Wold-style-definition"
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848   (eval $ac_compile) 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } &&
3855          { ac_try='test -z "$ac_c_werror_flag"
3856                          || test ! -s conftest.err'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; } &&
3862          { ac_try='test -s conftest.$ac_objext'
3863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864   (eval $ac_try) 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }; }; then
3868   ac_cv_prog_cc_w_old_style_definition=yes
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 ac_cv_prog_cc_w_old_style_definition=no
3874 fi
3875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876   CFLAGS="$save_CFLAGS"
3877
3878 fi
3879 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3880 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3881 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3882   strict1_warn="${strict1_warn} -Wold-style-definition"
3883 fi
3884
3885 # Enable -Werror, period.
3886 # Check whether --enable-werror_always or --disable-werror_always was given.
3887 if test "${enable_werror_always+set}" = set; then
3888   enableval="$enable_werror_always"
3889
3890 else
3891   enable_werror_always=no
3892 fi;
3893 if test x${enable_werror_always} = xyes ; then
3894   strict1_warn="${strict1_warn} -Werror"
3895   WERROR=-Werror
3896 fi
3897
3898 # If the native compiler is GCC, we can enable warnings even in stage1.
3899 # That's useful for people building cross-compilers, or just running a
3900 # quick `make'.
3901 warn_cflags=
3902 if test "x$GCC" = "xyes"; then
3903   warn_cflags='$(GCC_WARN_CFLAGS)'
3904 fi
3905
3906
3907 # Enable -Werror in bootstrap stage2 and later.
3908 # Check whether --enable-werror or --disable-werror was given.
3909 if test "${enable_werror+set}" = set; then
3910   enableval="$enable_werror"
3911
3912 else
3913   if test x$is_release = x ; then
3914   # Default to "yes" on development branches.
3915   enable_werror=yes
3916 else
3917   # Default to "no" on release branches.
3918   enable_werror=no
3919 fi
3920 fi;
3921 if test x$enable_werror = xyes ; then
3922   WERROR=-Werror
3923 fi
3924
3925
3926 # Enable expensive internal checks
3927 # Check whether --enable-checking or --disable-checking was given.
3928 if test "${enable_checking+set}" = set; then
3929   enableval="$enable_checking"
3930   ac_checking_flags="${enableval}"
3931 else
3932
3933 # Determine the default checks.
3934 if test x$is_release = x ; then
3935   ac_checking_flags=yes
3936 else
3937   ac_checking_flags=release
3938 fi
3939 fi;
3940 ac_assert_checking=1
3941 ac_checking=
3942 ac_tree_checking=
3943 ac_rtl_checking=
3944 ac_rtlflag_checking=
3945 ac_gc_checking=
3946 ac_gc_always_collect=
3947 ac_fold_checking=
3948 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3949 for check in $ac_checking_flags
3950 do
3951         case $check in
3952         yes)            ac_assert_checking=1 ; ac_checking=1 ;
3953                         ac_tree_checking=1 ; ac_gc_checking=1 ;
3954                         ac_rtlflag_checking=1 ;;
3955         no)             ac_assert_checking= ; ac_checking= ;
3956                         ac_tree_checking= ; ac_rtl_checking= ;
3957                         ac_rtlflag_checking= ; ac_gc_checking= ;
3958                         ac_gc_always_collect= ; ac_fold_checking= ;;
3959         all)            ac_assert_checking=1 ; ac_checking=1 ;
3960                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
3961                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
3962                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
3963         release)        ac_assert_checking=1 ;;
3964         assert)         ac_assert_checking=1 ;;
3965         fold)           ac_fold_checking=1 ;;
3966         gc)             ac_gc_checking=1 ;;
3967         gcac)           ac_gc_always_collect=1 ;;
3968         misc)           ac_checking=1 ;;
3969         rtlflag)        ac_rtlflag_checking=1 ;;
3970         rtl)            ac_rtl_checking=1 ;;
3971         tree)           ac_tree_checking=1 ;;
3972         valgrind)       ac_checking_valgrind=1 ;;
3973         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3974 echo "$as_me: error: unknown check category $check" >&2;}
3975    { (exit 1); exit 1; }; } ;;
3976         esac
3977 done
3978 IFS="$ac_save_IFS"
3979
3980 nocommon_flag=""
3981 if test x$ac_checking != x ; then
3982
3983 cat >>confdefs.h <<\_ACEOF
3984 #define ENABLE_CHECKING 1
3985 _ACEOF
3986
3987   nocommon_flag=-fno-common
3988 fi
3989
3990 if test x$ac_assert_checking != x ; then
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_ASSERT_CHECKING 1
3994 _ACEOF
3995
3996 fi
3997 if test x$ac_tree_checking != x ; then
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define ENABLE_TREE_CHECKING 1
4001 _ACEOF
4002
4003   TREEBROWSER=tree-browser.o
4004 fi
4005
4006 if test x$ac_rtl_checking != x ; then
4007
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_RTL_CHECKING 1
4010 _ACEOF
4011
4012 fi
4013 if test x$ac_rtlflag_checking != x ; then
4014
4015 cat >>confdefs.h <<\_ACEOF
4016 #define ENABLE_RTL_FLAG_CHECKING 1
4017 _ACEOF
4018
4019 fi
4020 if test x$ac_gc_checking != x ; then
4021
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_GC_CHECKING 1
4024 _ACEOF
4025
4026 fi
4027 if test x$ac_gc_always_collect != x ; then
4028
4029 cat >>confdefs.h <<\_ACEOF
4030 #define ENABLE_GC_ALWAYS_COLLECT 1
4031 _ACEOF
4032
4033 fi
4034 if test x$ac_fold_checking != x ; then
4035
4036 cat >>confdefs.h <<\_ACEOF
4037 #define ENABLE_FOLD_CHECKING 1
4038 _ACEOF
4039
4040 fi
4041 valgrind_path_defines=
4042 valgrind_command=
4043
4044
4045 echo "$as_me:$LINENO: checking for egrep" >&5
4046 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4047 if test "${ac_cv_prog_egrep+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4051     then ac_cv_prog_egrep='grep -E'
4052     else ac_cv_prog_egrep='egrep'
4053     fi
4054 fi
4055 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4056 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4057  EGREP=$ac_cv_prog_egrep
4058
4059
4060 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4061 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4062 if test "${ac_cv_header_stdc+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #include <stdlib.h>
4072 #include <stdarg.h>
4073 #include <string.h>
4074 #include <float.h>
4075
4076 int
4077 main ()
4078 {
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086   (eval $ac_compile) 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } &&
4093          { ac_try='test -z "$ac_c_werror_flag"
4094                          || test ! -s conftest.err'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; } &&
4100          { ac_try='test -s conftest.$ac_objext'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   ac_cv_header_stdc=yes
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114
4115 if test $ac_cv_header_stdc = yes; then
4116   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4117   cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #include <string.h>
4124
4125 _ACEOF
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127   $EGREP "memchr" >/dev/null 2>&1; then
4128   :
4129 else
4130   ac_cv_header_stdc=no
4131 fi
4132 rm -f conftest*
4133
4134 fi
4135
4136 if test $ac_cv_header_stdc = yes; then
4137   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4138   cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 #include <stdlib.h>
4145
4146 _ACEOF
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148   $EGREP "free" >/dev/null 2>&1; then
4149   :
4150 else
4151   ac_cv_header_stdc=no
4152 fi
4153 rm -f conftest*
4154
4155 fi
4156
4157 if test $ac_cv_header_stdc = yes; then
4158   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4159   if test "$cross_compiling" = yes; then
4160   :
4161 else
4162   cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168 #include <ctype.h>
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 #else
4173 # define ISLOWER(c) \
4174                    (('a' <= (c) && (c) <= 'i') \
4175                      || ('j' <= (c) && (c) <= 'r') \
4176                      || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4178 #endif
4179
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 int
4182 main ()
4183 {
4184   int i;
4185   for (i = 0; i < 256; i++)
4186     if (XOR (islower (i), ISLOWER (i))
4187         || toupper (i) != TOUPPER (i))
4188       exit(2);
4189   exit (0);
4190 }
4191 _ACEOF
4192 rm -f conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194   (eval $ac_link) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; }; then
4203   :
4204 else
4205   echo "$as_me: program exited with status $ac_status" >&5
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 ( exit $ac_status )
4210 ac_cv_header_stdc=no
4211 fi
4212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 fi
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4218 if test $ac_cv_header_stdc = yes; then
4219
4220 cat >>confdefs.h <<\_ACEOF
4221 #define STDC_HEADERS 1
4222 _ACEOF
4223
4224 fi
4225
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237                   inttypes.h stdint.h unistd.h
4238 do
4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 echo "$as_me:$LINENO: checking for $ac_header" >&5
4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 $ac_includes_default
4252
4253 #include <$ac_header>
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257   (eval $ac_compile) 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag"
4265                          || test ! -s conftest.err'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   eval "$as_ac_Header=yes"
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 eval "$as_ac_Header=no"
4283 fi
4284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289   cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 _ACEOF
4292
4293 fi
4294
4295 done
4296
4297
4298 if test "${ac_cv_header_valgrind_h+set}" = set; then
4299   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4300 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4301 if test "${ac_cv_header_valgrind_h+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 fi
4304 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4305 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4306 else
4307   # Is the header compilable?
4308 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4309 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 $ac_includes_default
4317 #include <valgrind.h>
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321   (eval $ac_compile) 2>conftest.er1
4322   ac_status=$?
4323   grep -v '^ *+' conftest.er1 >conftest.err
4324   rm -f conftest.er1
4325   cat conftest.err >&5
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } &&
4328          { ac_try='test -z "$ac_c_werror_flag"
4329                          || test ! -s conftest.err'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; } &&
4335          { ac_try='test -s conftest.$ac_objext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   ac_header_compiler=yes
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ac_header_compiler=no
4347 fi
4348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4350 echo "${ECHO_T}$ac_header_compiler" >&6
4351
4352 # Is the header present?
4353 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4354 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h.  */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h.  */
4361 #include <valgrind.h>
4362 _ACEOF
4363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } >/dev/null; then
4371   if test -s conftest.err; then
4372     ac_cpp_err=$ac_c_preproc_warn_flag
4373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4374   else
4375     ac_cpp_err=
4376   fi
4377 else
4378   ac_cpp_err=yes
4379 fi
4380 if test -z "$ac_cpp_err"; then
4381   ac_header_preproc=yes
4382 else
4383   echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386   ac_header_preproc=no
4387 fi
4388 rm -f conftest.err conftest.$ac_ext
4389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4390 echo "${ECHO_T}$ac_header_preproc" >&6
4391
4392 # So?  What about this header?
4393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4394   yes:no: )
4395     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4396 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4397     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4398 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4399     ac_header_preproc=yes
4400     ;;
4401   no:yes:* )
4402     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4403 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4404     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4405 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4406     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4407 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4408     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4409 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4410     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4411 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4412     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4413 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4414     (
4415       cat <<\_ASBOX
4416 ## ------------------------------------------ ##
4417 ## Report this to the AC_PACKAGE_NAME lists.  ##
4418 ## ------------------------------------------ ##
4419 _ASBOX
4420     ) |
4421       sed "s/^/$as_me: WARNING:     /" >&2
4422     ;;
4423 esac
4424 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4425 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4426 if test "${ac_cv_header_valgrind_h+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   ac_cv_header_valgrind_h=$ac_header_preproc
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4432 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4433
4434 fi
4435 if test $ac_cv_header_valgrind_h = yes; then
4436   have_valgrind_h=yes
4437 else
4438   have_valgrind_h=no
4439 fi
4440
4441
4442
4443 if test x$ac_checking_valgrind != x ; then
4444   # It is certainly possible that there's valgrind but no valgrind.h.
4445   # GCC relies on making annotations so we must have both.
4446   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4447 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <valgrind/memcheck.h>
4455 #ifndef VALGRIND_DISCARD
4456 #error VALGRIND_DISCARD not defined
4457 #endif
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } >/dev/null; then
4467   if test -s conftest.err; then
4468     ac_cpp_err=$ac_c_preproc_warn_flag
4469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470   else
4471     ac_cpp_err=
4472   fi
4473 else
4474   ac_cpp_err=yes
4475 fi
4476 if test -z "$ac_cpp_err"; then
4477   gcc_cv_header_valgrind_memcheck_h=yes
4478 else
4479   echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482   gcc_cv_header_valgrind_memcheck_h=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4486 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4487   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4488 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4489   cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 #include <memcheck.h>
4496 #ifndef VALGRIND_DISCARD
4497 #error VALGRIND_DISCARD not defined
4498 #endif
4499 _ACEOF
4500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } >/dev/null; then
4508   if test -s conftest.err; then
4509     ac_cpp_err=$ac_c_preproc_warn_flag
4510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4511   else
4512     ac_cpp_err=
4513   fi
4514 else
4515   ac_cpp_err=yes
4516 fi
4517 if test -z "$ac_cpp_err"; then
4518   gcc_cv_header_memcheck_h=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523   gcc_cv_header_memcheck_h=no
4524 fi
4525 rm -f conftest.err conftest.$ac_ext
4526   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4527 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4528
4529 # Prepare PATH_SEPARATOR.
4530 # The user is always right.
4531 if test "${PATH_SEPARATOR+set}" != set; then
4532   echo "#! /bin/sh" >conf$$.sh
4533   echo  "exit 0"   >>conf$$.sh
4534   chmod +x conf$$.sh
4535   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4536     PATH_SEPARATOR=';'
4537   else
4538     PATH_SEPARATOR=:
4539   fi
4540   rm -f conf$$.sh
4541 fi
4542
4543 # Find out how to test for executable files. Don't use a zero-byte file,
4544 # as systems may use methods other than mode bits to determine executability.
4545 cat >conf$$.file <<_ASEOF
4546 #! /bin/sh
4547 exit 0
4548 _ASEOF
4549 chmod +x conf$$.file
4550 if test -x conf$$.file >/dev/null 2>&1; then
4551   ac_executable_p="test -x"
4552 else
4553   ac_executable_p="test -f"
4554 fi
4555 rm -f conf$$.file
4556
4557 # Extract the first word of "valgrind", so it can be a program name with args.
4558 set dummy valgrind; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_valgrind_path+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   case "$valgrind_path" in
4565   [\\/]* | ?:[\\/]*)
4566     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4567     ;;
4568   *)
4569     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4570     for ac_dir in $PATH; do
4571       IFS="$ac_save_IFS"
4572       test -z "$ac_dir" && ac_dir=.
4573       for ac_exec_ext in '' $ac_executable_extensions; do
4574         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4575           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4576             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4577             break 2
4578           fi
4579         fi
4580       done
4581     done
4582     IFS="$ac_save_IFS"
4583     ;;
4584 esac
4585 fi
4586 valgrind_path="$ac_cv_path_valgrind_path"
4587 if test -n "$valgrind_path"; then
4588   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4589 echo "${ECHO_T}$valgrind_path" >&6
4590 else
4591   echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 fi
4594
4595   if test "x$valgrind_path" = "x" \
4596     || (test $have_valgrind_h = no \
4597         && test $gcc_cv_header_memcheck_h = no \
4598         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4599         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4600 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4601    { (exit 1); exit 1; }; }
4602   fi
4603   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4604   valgrind_command="$valgrind_path -q"
4605
4606 cat >>confdefs.h <<\_ACEOF
4607 #define ENABLE_VALGRIND_CHECKING 1
4608 _ACEOF
4609
4610   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4611
4612 cat >>confdefs.h <<\_ACEOF
4613 #define HAVE_VALGRIND_MEMCHECK_H 1
4614 _ACEOF
4615
4616   fi
4617   if test $gcc_cv_header_memcheck_h = yes; then
4618
4619 cat >>confdefs.h <<\_ACEOF
4620 #define HAVE_MEMCHECK_H 1
4621 _ACEOF
4622
4623   fi
4624 fi
4625
4626
4627
4628 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4629 if test "${enable_mapped_location+set}" = set; then
4630   enableval="$enable_mapped_location"
4631
4632 else
4633   enable_mapped_location=no
4634 fi;
4635
4636 if test "$enable_mapped_location" = yes ; then
4637
4638 cat >>confdefs.h <<\_ACEOF
4639 #define USE_MAPPED_LOCATION 1
4640 _ACEOF
4641
4642 fi
4643
4644 # Enable code coverage collection
4645 # Check whether --enable-coverage or --disable-coverage was given.
4646 if test "${enable_coverage+set}" = set; then
4647   enableval="$enable_coverage"
4648   case "${enableval}" in
4649   yes|noopt)
4650     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4651     ;;
4652   opt)
4653     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4654     ;;
4655   no)
4656     # a.k.a. --disable-coverage
4657     coverage_flags=""
4658     ;;
4659   *)
4660     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4661 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4662    { (exit 1); exit 1; }; }
4663     ;;
4664 esac
4665 else
4666   coverage_flags=""
4667 fi;
4668
4669
4670 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4671 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4672   enableval="$enable_gather_detailed_mem_stats"
4673
4674 else
4675   enable_gather_detailed_mem_stats=no
4676 fi;
4677 if test x$enable_gather_detailed_mem_stats = xyes ; then
4678
4679 cat >>confdefs.h <<\_ACEOF
4680 #define GATHER_STATISTICS 1
4681 _ACEOF
4682
4683 fi
4684
4685 # -------------------------------
4686 # Miscenalleous configure options
4687 # -------------------------------
4688
4689 # With stabs
4690
4691 # Check whether --with-stabs or --without-stabs was given.
4692 if test "${with_stabs+set}" = set; then
4693   withval="$with_stabs"
4694   stabs="$with_stabs"
4695 else
4696   stabs=no
4697 fi;
4698
4699 # Determine whether or not multilibs are enabled.
4700 # Check whether --enable-multilib or --disable-multilib was given.
4701 if test "${enable_multilib+set}" = set; then
4702   enableval="$enable_multilib"
4703
4704 else
4705   enable_multilib=yes
4706 fi;
4707
4708
4709 # Enable __cxa_atexit for C++.
4710 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4711 if test "${enable___cxa_atexit+set}" = set; then
4712   enableval="$enable___cxa_atexit"
4713
4714 fi;
4715
4716 # Enable threads
4717 # Pass with no value to take the default
4718 # Pass with a value to specify a thread package
4719 # Check whether --enable-threads or --disable-threads was given.
4720 if test "${enable_threads+set}" = set; then
4721   enableval="$enable_threads"
4722
4723 else
4724   enable_threads=''
4725 fi;
4726
4727 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4728 if test "${enable_objc_gc+set}" = set; then
4729   enableval="$enable_objc_gc"
4730   if test x$enable_objc_gc = xno; then
4731         objc_boehm_gc=''
4732 else
4733         objc_boehm_gc=1
4734 fi
4735 else
4736   objc_boehm_gc=''
4737 fi;
4738
4739
4740 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4741 if test "${with_dwarf2+set}" = set; then
4742   withval="$with_dwarf2"
4743   dwarf2="$with_dwarf2"
4744 else
4745   dwarf2=no
4746 fi;
4747
4748 # Check whether --enable-shared or --disable-shared was given.
4749 if test "${enable_shared+set}" = set; then
4750   enableval="$enable_shared"
4751
4752   case $enable_shared in
4753   yes | no) ;;
4754   *)
4755     enable_shared=no
4756     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4757     for pkg in $enableval; do
4758       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4759         enable_shared=yes
4760       fi
4761     done
4762     IFS="$ac_save_ifs"
4763     ;;
4764   esac
4765
4766 else
4767   enable_shared=yes
4768 fi;
4769
4770
4771
4772 # Check whether --with-sysroot or --without-sysroot was given.
4773 if test "${with_sysroot+set}" = set; then
4774   withval="$with_sysroot"
4775
4776  case ${with_sysroot} in
4777  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4778  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4779  esac
4780
4781  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4782  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4783
4784  if test "x$exec_prefix" = xNONE; then
4785   if test "x$prefix" = xNONE; then
4786    test_prefix=/usr/local
4787   else
4788    test_prefix=$prefix
4789   fi
4790  else
4791   test_prefix=$exec_prefix
4792  fi
4793  case ${TARGET_SYSTEM_ROOT} in
4794  "${test_prefix}"|"${test_prefix}/"*|\
4795  '${exec_prefix}'|'${exec_prefix}/'*)
4796    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4797    TARGET_SYSTEM_ROOT_DEFINE="$t"
4798    ;;
4799  esac
4800
4801 else
4802
4803  TARGET_SYSTEM_ROOT=
4804  TARGET_SYSTEM_ROOT_DEFINE=
4805  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4806
4807 fi;
4808
4809
4810
4811
4812 # Build with intermodule optimisations
4813 # Check whether --enable-intermodule or --disable-intermodule was given.
4814 if test "${enable_intermodule+set}" = set; then
4815   enableval="$enable_intermodule"
4816   case ${enable_intermodule} in
4817   yes) onestep="-onestep";;
4818   *) onestep="";;
4819 esac
4820 else
4821   onestep=""
4822 fi;
4823
4824
4825 # Sanity check enable_languages in case someone does not run the toplevel
4826 # configure # script.
4827 # Check whether --enable-languages or --disable-languages was given.
4828 if test "${enable_languages+set}" = set; then
4829   enableval="$enable_languages"
4830   case ,${enable_languages}, in
4831        ,,|,yes,)
4832                 # go safe -- we cannot be much sure without the toplevel
4833                 # configure's
4834                 # analysis of which target libs are present and usable
4835                 enable_languages=c
4836                 ;;
4837          *,all,*)
4838                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4839 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4840    { (exit 1); exit 1; }; }
4841                 ;;
4842         *,c,*)
4843                 ;;
4844         *)
4845                 enable_languages=c,${enable_languages}
4846                 ;;
4847 esac
4848 else
4849   enable_languages=c
4850 fi;
4851
4852 subdirs=
4853 for lang in ${srcdir}/*/config-lang.in
4854 do
4855         case $lang in
4856         # The odd quoting in the next line works around
4857         # an apparent bug in bash 1.12 on linux.
4858         ${srcdir}/[*]/config-lang.in) ;;
4859         *)
4860           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4861           if test "x$lang_alias" = x
4862           then
4863                 echo "$lang doesn't set \$language." 1>&2
4864                 exit 1
4865           fi
4866           case ",$enable_languages," in
4867           *,$lang_alias,*)
4868             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4869           esac
4870           ;;
4871         esac
4872 done
4873
4874
4875 # -------------------------
4876 # Checks for other programs
4877 # -------------------------
4878
4879 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4880 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4881 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4882 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   cat >conftest.make <<\_ACEOF
4886 all:
4887         @echo 'ac_maketemp="$(MAKE)"'
4888 _ACEOF
4889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4890 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4891 if test -n "$ac_maketemp"; then
4892   eval ac_cv_prog_make_${ac_make}_set=yes
4893 else
4894   eval ac_cv_prog_make_${ac_make}_set=no
4895 fi
4896 rm -f conftest.make
4897 fi
4898 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4899   echo "$as_me:$LINENO: result: yes" >&5
4900 echo "${ECHO_T}yes" >&6
4901   SET_MAKE=
4902 else
4903   echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6
4905   SET_MAKE="MAKE=${MAKE-make}"
4906 fi
4907
4908
4909 # Find some useful tools
4910 for ac_prog in gawk mawk nawk awk
4911 do
4912   # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_AWK+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   if test -n "$AWK"; then
4920   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_AWK="$ac_prog"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935
4936 fi
4937 fi
4938 AWK=$ac_cv_prog_AWK
4939 if test -n "$AWK"; then
4940   echo "$as_me:$LINENO: result: $AWK" >&5
4941 echo "${ECHO_T}$AWK" >&6
4942 else
4943   echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6
4945 fi
4946
4947   test -n "$AWK" && break
4948 done
4949
4950 # We need awk to create options.c and options.h.
4951 # Bail out if it's missing.
4952 case ${AWK} in
4953   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4954 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4955    { (exit 1); exit 1; }; } ;;
4956 esac
4957
4958 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4959 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4960 if test "${gcc_cv_prog_LN_S+set}" = set; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   rm -f conftestdata_t
4964 echo >conftestdata_f
4965 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4966 then
4967   gcc_cv_prog_LN_S="ln -s"
4968 else
4969   if ln conftestdata_f conftestdata_t 2>/dev/null
4970   then
4971     gcc_cv_prog_LN_S=ln
4972   else
4973     gcc_cv_prog_LN_S=cp
4974   fi
4975 fi
4976 rm -f conftestdata_f conftestdata_t
4977
4978 fi
4979 LN_S="$gcc_cv_prog_LN_S"
4980 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4981   echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6
4983 else
4984   if test "$gcc_cv_prog_LN_S" = "ln"; then
4985     echo "$as_me:$LINENO: result: no, using ln" >&5
4986 echo "${ECHO_T}no, using ln" >&6
4987   else
4988     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4989 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4990   fi
4991 fi
4992
4993 echo "$as_me:$LINENO: checking whether ln works" >&5
4994 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4995 if test "${acx_cv_prog_LN+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   rm -f conftestdata_t
4999 echo >conftestdata_f
5000 if ln conftestdata_f conftestdata_t 2>/dev/null
5001 then
5002   acx_cv_prog_LN=ln
5003 else
5004   acx_cv_prog_LN=no
5005 fi
5006 rm -f conftestdata_f conftestdata_t
5007
5008 fi
5009 if test $acx_cv_prog_LN = no; then
5010   LN="$LN_S"
5011   echo "$as_me:$LINENO: result: no, using $LN" >&5
5012 echo "${ECHO_T}no, using $LN" >&6
5013 else
5014   LN="$acx_cv_prog_LN"
5015   echo "$as_me:$LINENO: result: yes" >&5
5016 echo "${ECHO_T}yes" >&6
5017 fi
5018
5019 if test -n "$ac_tool_prefix"; then
5020   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5021 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_prog_RANLIB+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   if test -n "$RANLIB"; then
5028   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043
5044 fi
5045 fi
5046 RANLIB=$ac_cv_prog_RANLIB
5047 if test -n "$RANLIB"; then
5048   echo "$as_me:$LINENO: result: $RANLIB" >&5
5049 echo "${ECHO_T}$RANLIB" >&6
5050 else
5051   echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6
5053 fi
5054
5055 fi
5056 if test -z "$ac_cv_prog_RANLIB"; then
5057   ac_ct_RANLIB=$RANLIB
5058   # Extract the first word of "ranlib", so it can be a program name with args.
5059 set dummy ranlib; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$ac_ct_RANLIB"; then
5066   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075     ac_cv_prog_ac_ct_RANLIB="ranlib"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081
5082   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5083 fi
5084 fi
5085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5086 if test -n "$ac_ct_RANLIB"; then
5087   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5088 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5089 else
5090   echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5092 fi
5093
5094   RANLIB=$ac_ct_RANLIB
5095 else
5096   RANLIB="$ac_cv_prog_RANLIB"
5097 fi
5098
5099 case "${host}" in
5100 *-*-darwin*)
5101   # By default, the Darwin ranlib will not treat common symbols as
5102   # definitions when  building the archive table of contents.  Other
5103   # ranlibs do that; pass an option to the Darwin ranlib that makes
5104   # it behave similarly.
5105   ranlib_flags="-c"
5106   ;;
5107 *)
5108   ranlib_flags=""
5109 esac
5110
5111
5112 # Find a good install program.  We prefer a C program (faster),
5113 # so one script is as good as another.  But avoid the broken or
5114 # incompatible versions:
5115 # SysV /etc/install, /usr/sbin/install
5116 # SunOS /usr/etc/install
5117 # IRIX /sbin/install
5118 # AIX /bin/install
5119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5121 # ./install, which can be erroneously created by make from ./install.sh.
5122 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5123 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5124 if test -z "$INSTALL"; then
5125 if test "${ac_cv_path_install+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5129   for ac_dir in $PATH; do
5130     # Account for people who put trailing slashes in PATH elements.
5131     case "$ac_dir/" in
5132     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5133     *)
5134       # OSF1 and SCO ODT 3.0 have their own names for install.
5135       for ac_prog in ginstall scoinst install; do
5136         if test -f $ac_dir/$ac_prog; then
5137           if test $ac_prog = install &&
5138             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5139             # AIX install.  It has an incompatible calling convention.
5140             # OSF/1 installbsd also uses dspmsg, but is usable.
5141             :
5142           else
5143             ac_cv_path_install="$ac_dir/$ac_prog -c"
5144             break 2
5145           fi
5146         fi
5147       done
5148       ;;
5149     esac
5150   done
5151   IFS="$ac_save_IFS"
5152
5153 fi
5154   if test "${ac_cv_path_install+set}" = set; then
5155     INSTALL="$ac_cv_path_install"
5156   else
5157     # As a last resort, use the slow shell script.  We don't cache a
5158     # path for INSTALL within a source directory, because that will
5159     # break other packages using the cache if that directory is
5160     # removed, or if the path is relative.
5161     INSTALL="$ac_install_sh"
5162   fi
5163 fi
5164 echo "$as_me:$LINENO: result: $INSTALL" >&5
5165 echo "${ECHO_T}$INSTALL" >&6
5166
5167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5168 # It thinks the first close brace ends the variable substitution.
5169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5170
5171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5172
5173
5174 # See if cmp has --ignore-initial.
5175 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5176 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5177 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180    echo abfoo >t1
5181   echo cdfoo >t2
5182   gcc_cv_prog_cmp_skip=slowcompare
5183   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5184     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5185       :
5186     else
5187       gcc_cv_prog_cmp_skip=gnucompare
5188     fi
5189   fi
5190   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5191     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5192       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5193         :
5194       else
5195         gcc_cv_prog_cmp_skip=fastcompare
5196       fi
5197     fi
5198   fi
5199   rm t1 t2
5200
5201 fi
5202 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5203 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5204 make_compare_target=$gcc_cv_prog_cmp_skip
5205
5206
5207
5208 # See if we have the mktemp command.
5209 # Extract the first word of "mktemp", so it can be a program name with args.
5210 set dummy mktemp; ac_word=$2
5211 echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   if test -n "$have_mktemp_command"; then
5217   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222   IFS=$as_save_IFS
5223   test -z "$as_dir" && as_dir=.
5224   for ac_exec_ext in '' $ac_executable_extensions; do
5225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226     ac_cv_prog_have_mktemp_command="yes"
5227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228     break 2
5229   fi
5230 done
5231 done
5232
5233   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5234 fi
5235 fi
5236 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5237 if test -n "$have_mktemp_command"; then
5238   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5239 echo "${ECHO_T}$have_mktemp_command" >&6
5240 else
5241   echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6
5243 fi
5244
5245
5246 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5247
5248 # See if makeinfo has been installed and is modern enough
5249 # that we can use it.
5250 # Extract the first word of "makeinfo", so it can be a program name with args.
5251 set dummy makeinfo; ac_word=$2
5252 echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5254 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   if test -n "$MAKEINFO"; then
5258   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265   for ac_exec_ext in '' $ac_executable_extensions; do
5266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267     ac_cv_prog_MAKEINFO="makeinfo"
5268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272 done
5273
5274 fi
5275 fi
5276 MAKEINFO=$ac_cv_prog_MAKEINFO
5277 if test -n "$MAKEINFO"; then
5278   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5279 echo "${ECHO_T}$MAKEINFO" >&6
5280 else
5281   echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6
5283 fi
5284
5285 if test -n "$MAKEINFO"; then
5286   # Found it, now check the version.
5287   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5288 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5289 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292     ac_prog_version=`$MAKEINFO --version 2>&1 |
5293                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5294   echo "configure:5294: version of makeinfo is $ac_prog_version" >&5
5295   case $ac_prog_version in
5296     '')     gcc_cv_prog_makeinfo_modern=no;;
5297     4.[2-9]*)
5298             gcc_cv_prog_makeinfo_modern=yes;;
5299     *)      gcc_cv_prog_makeinfo_modern=no;;
5300   esac
5301
5302 fi
5303 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5304 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5305 else
5306   gcc_cv_prog_makeinfo_modern=no
5307 fi
5308
5309 if test $gcc_cv_prog_makeinfo_modern = no; then
5310   MAKEINFO="$MISSING makeinfo"
5311   { echo "$as_me:$LINENO: WARNING:
5312 *** Makeinfo is missing or too old.
5313 *** Info documentation will not be built." >&5
5314 echo "$as_me: WARNING:
5315 *** Makeinfo is missing or too old.
5316 *** Info documentation will not be built." >&2;}
5317   BUILD_INFO=
5318 else
5319   BUILD_INFO=info
5320 fi
5321
5322
5323 # Is pod2man recent enough to regenerate manpages?
5324 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5325 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5326 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5327   echo "$as_me:$LINENO: result: yes" >&5
5328 echo "${ECHO_T}yes" >&6
5329   GENERATED_MANPAGES=generated-manpages
5330 else
5331   echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333   GENERATED_MANPAGES=
5334 fi
5335
5336
5337 # How about lex?
5338 for ac_prog in flex
5339 do
5340   # Extract the first word of "$ac_prog", so it can be a program name with args.
5341 set dummy $ac_prog; ac_word=$2
5342 echo "$as_me:$LINENO: checking for $ac_word" >&5
5343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5344 if test "${ac_cv_prog_FLEX+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   if test -n "$FLEX"; then
5348   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355   for ac_exec_ext in '' $ac_executable_extensions; do
5356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_prog_FLEX="$ac_prog"
5358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362 done
5363
5364 fi
5365 fi
5366 FLEX=$ac_cv_prog_FLEX
5367 if test -n "$FLEX"; then
5368   echo "$as_me:$LINENO: result: $FLEX" >&5
5369 echo "${ECHO_T}$FLEX" >&6
5370 else
5371   echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5373 fi
5374
5375   test -n "$FLEX" && break
5376 done
5377 test -n "$FLEX" || FLEX="$MISSING flex"
5378
5379
5380 # Bison?
5381 for ac_prog in bison
5382 do
5383   # Extract the first word of "$ac_prog", so it can be a program name with args.
5384 set dummy $ac_prog; ac_word=$2
5385 echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387 if test "${ac_cv_prog_BISON+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   if test -n "$BISON"; then
5391   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for ac_exec_ext in '' $ac_executable_extensions; do
5399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_prog_BISON="$ac_prog"
5401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405 done
5406
5407 fi
5408 fi
5409 BISON=$ac_cv_prog_BISON
5410 if test -n "$BISON"; then
5411   echo "$as_me:$LINENO: result: $BISON" >&5
5412 echo "${ECHO_T}$BISON" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418   test -n "$BISON" && break
5419 done
5420 test -n "$BISON" || BISON="$MISSING bison"
5421
5422
5423 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
5424 # check for build == host before using them.
5425
5426 # NM
5427 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5428   && test -d ../binutils ; then
5429   NM='$(objdir)/../binutils/nm-new'
5430 else
5431   # Extract the first word of "nm", so it can be a program name with args.
5432 set dummy nm; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_prog_NM+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   if test -n "$NM"; then
5439   ac_cv_prog_NM="$NM" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446   for ac_exec_ext in '' $ac_executable_extensions; do
5447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_prog_NM="nm"
5449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453 done
5454
5455   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5456 fi
5457 fi
5458 NM=$ac_cv_prog_NM
5459 if test -n "$NM"; then
5460   echo "$as_me:$LINENO: result: $NM" >&5
5461 echo "${ECHO_T}$NM" >&6
5462 else
5463   echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5465 fi
5466
5467 fi
5468
5469 # AR
5470 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5471   && test -d ../binutils ; then
5472   AR='$(objdir)/../binutils/ar'
5473 else
5474   # Extract the first word of "ar", so it can be a program name with args.
5475 set dummy ar; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_prog_AR+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   if test -n "$AR"; then
5482   ac_cv_prog_AR="$AR" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489   for ac_exec_ext in '' $ac_executable_extensions; do
5490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_prog_AR="ar"
5492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496 done
5497
5498   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5499 fi
5500 fi
5501 AR=$ac_cv_prog_AR
5502 if test -n "$AR"; then
5503   echo "$as_me:$LINENO: result: $AR" >&5
5504 echo "${ECHO_T}$AR" >&6
5505 else
5506   echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 fi
5511
5512
5513 # --------------------
5514 # Checks for C headers
5515 # --------------------
5516
5517 echo "$as_me:$LINENO: checking for GNU C library" >&5
5518 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5519 if test "${gcc_cv_glibc+set}" = set; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528 #include <features.h>
5529 int
5530 main ()
5531 {
5532
5533 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5534 #error Not a GNU C library system
5535 #endif
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542   (eval $ac_compile) 2>conftest.er1
5543   ac_status=$?
5544   grep -v '^ *+' conftest.er1 >conftest.err
5545   rm -f conftest.er1
5546   cat conftest.err >&5
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } &&
5549          { ac_try='test -z "$ac_c_werror_flag"
5550                          || test ! -s conftest.err'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; } &&
5556          { ac_try='test -s conftest.$ac_objext'
5557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558   (eval $ac_try) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; }; then
5562   gcc_cv_glibc=yes
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 gcc_cv_glibc=no
5568 fi
5569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571
5572 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5573 echo "${ECHO_T}$gcc_cv_glibc" >&6
5574 if test $gcc_cv_glibc = yes; then
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define _GNU_SOURCE 1
5578 _ACEOF
5579
5580 fi
5581
5582 # Need to reject headers which give warnings, so that the -Werror bootstrap
5583 # works later. *sigh*  This needs to come before all header checks.
5584
5585 ac_c_preproc_warn_flag=yes
5586
5587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5589 if test "${ac_cv_header_stdc+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h.  */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h.  */
5598 #include <stdlib.h>
5599 #include <stdarg.h>
5600 #include <string.h>
5601 #include <float.h>
5602
5603 int
5604 main ()
5605 {
5606
5607   ;
5608   return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613   (eval $ac_compile) 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -z "$ac_c_werror_flag"
5621                          || test ! -s conftest.err'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; } &&
5627          { ac_try='test -s conftest.$ac_objext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_cv_header_stdc=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_header_stdc=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641
5642 if test $ac_cv_header_stdc = yes; then
5643   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 #include <string.h>
5651
5652 _ACEOF
5653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654   $EGREP "memchr" >/dev/null 2>&1; then
5655   :
5656 else
5657   ac_cv_header_stdc=no
5658 fi
5659 rm -f conftest*
5660
5661 fi
5662
5663 if test $ac_cv_header_stdc = yes; then
5664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5665   cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671 #include <stdlib.h>
5672
5673 _ACEOF
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675   $EGREP "free" >/dev/null 2>&1; then
5676   :
5677 else
5678   ac_cv_header_stdc=no
5679 fi
5680 rm -f conftest*
5681
5682 fi
5683
5684 if test $ac_cv_header_stdc = yes; then
5685   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5686   if test "$cross_compiling" = yes; then
5687   :
5688 else
5689   cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 #include <ctype.h>
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 #else
5700 # define ISLOWER(c) \
5701                    (('a' <= (c) && (c) <= 'i') \
5702                      || ('j' <= (c) && (c) <= 'r') \
5703                      || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5705 #endif
5706
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5708 int
5709 main ()
5710 {
5711   int i;
5712   for (i = 0; i < 256; i++)
5713     if (XOR (islower (i), ISLOWER (i))
5714         || toupper (i) != TOUPPER (i))
5715       exit(2);
5716   exit (0);
5717 }
5718 _ACEOF
5719 rm -f conftest$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721   (eval $ac_link) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   :
5731 else
5732   echo "$as_me: program exited with status $ac_status" >&5
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ( exit $ac_status )
5737 ac_cv_header_stdc=no
5738 fi
5739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5740 fi
5741 fi
5742 fi
5743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5745 if test $ac_cv_header_stdc = yes; then
5746
5747 cat >>confdefs.h <<\_ACEOF
5748 #define STDC_HEADERS 1
5749 _ACEOF
5750
5751 fi
5752
5753 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5754 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5755 if test "${ac_cv_header_time+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 #include <sys/types.h>
5765 #include <sys/time.h>
5766 #include <time.h>
5767
5768 int
5769 main ()
5770 {
5771 if ((struct tm *) 0)
5772 return 0;
5773   ;
5774   return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779   (eval $ac_compile) 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -z "$ac_c_werror_flag"
5787                          || test ! -s conftest.err'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; } &&
5793          { ac_try='test -s conftest.$ac_objext'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; }; then
5799   ac_cv_header_time=yes
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_header_time=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5809 echo "${ECHO_T}$ac_cv_header_time" >&6
5810 if test $ac_cv_header_time = yes; then
5811
5812 cat >>confdefs.h <<\_ACEOF
5813 #define TIME_WITH_SYS_TIME 1
5814 _ACEOF
5815
5816 fi
5817
5818 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5819 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5820 if test "${gcc_cv_header_string+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #include <string.h>
5830 #include <strings.h>
5831 int
5832 main ()
5833 {
5834
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841   (eval $ac_compile) 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); } &&
5848          { ac_try='test -z "$ac_c_werror_flag"
5849                          || test ! -s conftest.err'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; } &&
5855          { ac_try='test -s conftest.$ac_objext'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; }; then
5861   gcc_cv_header_string=yes
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866 gcc_cv_header_string=no
5867 fi
5868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5871 echo "${ECHO_T}$gcc_cv_header_string" >&6
5872 if test $gcc_cv_header_string = yes; then
5873
5874 cat >>confdefs.h <<\_ACEOF
5875 #define STRING_WITH_STRINGS 1
5876 _ACEOF
5877
5878 fi
5879
5880 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5881 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5882 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891 #include <sys/types.h>
5892 #include <sys/wait.h>
5893 #ifndef WEXITSTATUS
5894 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5895 #endif
5896 #ifndef WIFEXITED
5897 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5898 #endif
5899
5900 int
5901 main ()
5902 {
5903   int s;
5904   wait (&s);
5905   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912   (eval $ac_compile) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag"
5920                          || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_header_sys_wait_h=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_header_sys_wait_h=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5942 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5943 if test $ac_cv_header_sys_wait_h = yes; then
5944
5945 cat >>confdefs.h <<\_ACEOF
5946 #define HAVE_SYS_WAIT_H 1
5947 _ACEOF
5948
5949 fi
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5973                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5974                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5975                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5976 do
5977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5978 echo "$as_me:$LINENO: checking for $ac_header" >&5
5979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989 #include <$ac_header>
5990 _ACEOF
5991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } >/dev/null; then
5999   if test -s conftest.err; then
6000     ac_cpp_err=$ac_c_preproc_warn_flag
6001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6002   else
6003     ac_cpp_err=
6004   fi
6005 else
6006   ac_cpp_err=yes
6007 fi
6008 if test -z "$ac_cpp_err"; then
6009   eval "$as_ac_Header=yes"
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014   eval "$as_ac_Header=no"
6015 fi
6016 rm -f conftest.err conftest.$ac_ext
6017 fi
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021   cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023 _ACEOF
6024
6025 fi
6026 done
6027
6028
6029 # Check for thread headers.
6030 echo "$as_me:$LINENO: checking for thread.h" >&5
6031 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6032 if test "${ac_cv_header_thread_h+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041 #include <thread.h>
6042 _ACEOF
6043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } >/dev/null; then
6051   if test -s conftest.err; then
6052     ac_cpp_err=$ac_c_preproc_warn_flag
6053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6054   else
6055     ac_cpp_err=
6056   fi
6057 else
6058   ac_cpp_err=yes
6059 fi
6060 if test -z "$ac_cpp_err"; then
6061   ac_cv_header_thread_h=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066   ac_cv_header_thread_h=no
6067 fi
6068 rm -f conftest.err conftest.$ac_ext
6069 fi
6070 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6071 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6072 if test $ac_cv_header_thread_h = yes; then
6073   have_thread_h=yes
6074 else
6075   have_thread_h=
6076 fi
6077
6078 echo "$as_me:$LINENO: checking for pthread.h" >&5
6079 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6080 if test "${ac_cv_header_pthread_h+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 #include <pthread.h>
6090 _ACEOF
6091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } >/dev/null; then
6099   if test -s conftest.err; then
6100     ac_cpp_err=$ac_c_preproc_warn_flag
6101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6102   else
6103     ac_cpp_err=
6104   fi
6105 else
6106   ac_cpp_err=yes
6107 fi
6108 if test -z "$ac_cpp_err"; then
6109   ac_cv_header_pthread_h=yes
6110 else
6111   echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6113
6114   ac_cv_header_pthread_h=no
6115 fi
6116 rm -f conftest.err conftest.$ac_ext
6117 fi
6118 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6119 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6120 if test $ac_cv_header_pthread_h = yes; then
6121   have_pthread_h=yes
6122 else
6123   have_pthread_h=
6124 fi
6125
6126
6127 # These tests can't be done till we know if we have limits.h.
6128 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6129 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6130 if test "${gcc_cv_decl_char_bit+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 #ifdef HAVE_LIMITS_H
6140 #include <limits.h>
6141 #endif
6142 #ifdef CHAR_BIT
6143 found
6144 #endif
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147   $EGREP "found" >/dev/null 2>&1; then
6148   gcc_cv_decl_char_bit=yes
6149 else
6150   gcc_cv_decl_char_bit=no
6151 fi
6152 rm -f conftest*
6153
6154
6155 fi
6156 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6157 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6158 if test $gcc_cv_decl_char_bit = no; then
6159   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6160 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6161 if test "${gcc_cv_c_nbby+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   i=8
6165  gcc_cv_c_nbby=
6166  while test $i -lt 65; do
6167    cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h.  */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h.  */
6173
6174 int
6175 main ()
6176 {
6177 switch(0) {
6178   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6179   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6180   ; }
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6187   (eval $ac_compile) 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } &&
6194          { ac_try='test -z "$ac_c_werror_flag"
6195                          || test ! -s conftest.err'
6196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197   (eval $ac_try) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; } &&
6201          { ac_try='test -s conftest.$ac_objext'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; }; then
6207   gcc_cv_c_nbby=$i; break
6208 else
6209   echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 fi
6213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214    i=`expr $i + 1`
6215  done
6216  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6217
6218 fi
6219 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6220 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6221 if test $gcc_cv_c_nbby = failed; then
6222   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6223 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6224    { (exit 1); exit 1; }; }
6225 else
6226
6227 cat >>confdefs.h <<_ACEOF
6228 #define CHAR_BIT $gcc_cv_c_nbby
6229 _ACEOF
6230
6231 fi
6232 fi
6233 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6234 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6235 if test "${ac_cv_c_bigendian+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   ac_cv_c_bigendian=unknown
6239 # See if sys/param.h defines the BYTE_ORDER macro.
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 #include <sys/types.h>
6247 #include <sys/param.h>
6248 int
6249 main ()
6250 {
6251
6252 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6253  bogus endian macros
6254 #endif
6255   ;
6256   return 0;
6257 }
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261   (eval $ac_compile) 2>conftest.er1
6262   ac_status=$?
6263   grep -v '^ *+' conftest.er1 >conftest.err
6264   rm -f conftest.er1
6265   cat conftest.err >&5
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -z "$ac_c_werror_flag"
6269                          || test ! -s conftest.err'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; } &&
6275          { ac_try='test -s conftest.$ac_objext'
6276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277   (eval $ac_try) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; }; then
6281   # It does; now see whether it defined to BIG_ENDIAN or not.
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #include <sys/types.h>
6289 #include <sys/param.h>
6290 int
6291 main ()
6292 {
6293
6294 #if BYTE_ORDER != BIG_ENDIAN
6295  not big endian
6296 #endif
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303   (eval $ac_compile) 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_objext'
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   ac_cv_c_bigendian=yes
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_cv_c_bigendian=no
6329 fi
6330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 fi
6336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6337 if test $ac_cv_c_bigendian = unknown; then
6338 if test "$cross_compiling" = yes; then
6339    echo $ac_n "cross-compiling... " 2>&6
6340 else
6341   cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347 main () {
6348   /* Are we little or big endian?  From Harbison&Steele.  */
6349   union
6350   {
6351     long l;
6352     char c[sizeof (long)];
6353   } u;
6354   u.l = 1;
6355   exit (u.c[sizeof (long) - 1] == 1);
6356 }
6357 _ACEOF
6358 rm -f conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_c_bigendian=no
6370 else
6371   echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ( exit $ac_status )
6376 ac_cv_c_bigendian=yes
6377 fi
6378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6379 fi
6380 fi
6381 fi
6382 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6383 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6384 if test $ac_cv_c_bigendian = unknown; then
6385 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6386 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6387
6388 cat >conftest.c <<EOF
6389 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6390 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6391 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6392 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6393 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6394 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6395 int main() { _ascii (); _ebcdic (); return 0; }
6396 EOF
6397  if test -f conftest.c ; then
6398      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6399         if test `grep -l BIGenDianSyS conftest.o` ; then
6400            echo $ac_n ' big endian probe OK, ' 1>&6
6401            ac_cv_c_bigendian=yes
6402         fi
6403         if test `grep -l LiTTleEnDian conftest.o` ; then
6404            echo $ac_n ' little endian probe OK, ' 1>&6
6405            if test $ac_cv_c_bigendian = yes ; then
6406             ac_cv_c_bigendian=unknown;
6407            else
6408             ac_cv_c_bigendian=no
6409            fi
6410         fi
6411         echo $ac_n 'guessing bigendian ...  ' >&6
6412      fi
6413   fi
6414 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6415 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6416 fi
6417 if test $ac_cv_c_bigendian = yes; then
6418
6419 cat >>confdefs.h <<\_ACEOF
6420 #define WORDS_BIGENDIAN 1
6421 _ACEOF
6422
6423
6424 cat >>confdefs.h <<\_ACEOF
6425 #define HOST_WORDS_BIG_ENDIAN 1
6426 _ACEOF
6427
6428   BYTEORDER=4321
6429 else
6430   BYTEORDER=1234
6431 fi
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define BYTEORDER $BYTEORDER
6435 _ACEOF
6436
6437 if test $ac_cv_c_bigendian = unknown; then
6438   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6439 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6440    { (exit 1); exit 1; }; }
6441 fi
6442
6443
6444 # --------
6445 # UNSORTED
6446 # --------
6447
6448 # Stage specific cflags for build.
6449 stage1_cflags=
6450 case $build in
6451 vax-*-*)
6452   if test x$GCC = xyes
6453   then
6454     stage1_cflags="-Wa,-J"
6455   else
6456     stage1_cflags="-J"
6457   fi
6458   ;;
6459 powerpc-*-darwin*)
6460   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6461   # sources; use -no-cpp-precomp to get to GNU cpp.
6462   # Apple's GCC has bugs in designated initializer handling, so disable
6463   # that too.
6464   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6465   ;;
6466 esac
6467
6468
6469 # These libraries may be used by collect2.
6470 # We may need a special search path to get them linked.
6471 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6472 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6473 if test "${gcc_cv_collect2_libs+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   save_LIBS="$LIBS"
6477 for libs in '' -lld -lmld \
6478                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6479                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6480 do
6481         LIBS="$libs"
6482         cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488
6489 /* Override any gcc2 internal prototype to avoid an error.  */
6490 #ifdef __cplusplus
6491 extern "C"
6492 #endif
6493 /* We use char because int might match the return type of a gcc2
6494    builtin and then its argument prototype would still apply.  */
6495 char ldopen ();
6496 int
6497 main ()
6498 {
6499 ldopen ();
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506   (eval $ac_link) 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } &&
6513          { ac_try='test -z "$ac_c_werror_flag"
6514                          || test ! -s conftest.err'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; } &&
6520          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6526   gcc_cv_collect2_libs="$libs"; break
6527 else
6528   echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 fi
6532 rm -f conftest.err conftest.$ac_objext \
6533       conftest$ac_exeext conftest.$ac_ext
6534 done
6535 LIBS="$save_LIBS"
6536 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6537 fi
6538 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6539 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6540 case $gcc_cv_collect2_libs in
6541         "none required")        ;;
6542         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6543 esac
6544
6545
6546 # When building Ada code on Alpha, we need exc_resume which is usually in
6547 # -lexc.  So test for it.
6548 save_LIBS="$LIBS"
6549 LIBS=
6550 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6551 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6552 if test "${ac_cv_search_exc_resume+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_func_search_save_LIBS=$LIBS
6556 ac_cv_search_exc_resume=no
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563
6564 /* Override any gcc2 internal prototype to avoid an error.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569    builtin and then its argument prototype would still apply.  */
6570 char exc_resume ();
6571 int
6572 main ()
6573 {
6574 exc_resume ();
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581   (eval $ac_link) 2>conftest.er1
6582   ac_status=$?
6583   grep -v '^ *+' conftest.er1 >conftest.err
6584   rm -f conftest.er1
6585   cat conftest.err >&5
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -z "$ac_c_werror_flag"
6589                          || test ! -s conftest.err'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; } &&
6595          { ac_try='test -s conftest$ac_exeext'
6596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597   (eval $ac_try) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }; }; then
6601   ac_cv_search_exc_resume="none required"
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 fi
6607 rm -f conftest.err conftest.$ac_objext \
6608       conftest$ac_exeext conftest.$ac_ext
6609 if test "$ac_cv_search_exc_resume" = no; then
6610   for ac_lib in exc; do
6611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6612     cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h.  */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h.  */
6618
6619 /* Override any gcc2 internal prototype to avoid an error.  */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 /* We use char because int might match the return type of a gcc2
6624    builtin and then its argument prototype would still apply.  */
6625 char exc_resume ();
6626 int
6627 main ()
6628 {
6629 exc_resume ();
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636   (eval $ac_link) 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_exeext'
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   ac_cv_search_exc_resume="-l$ac_lib"
6657 break
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 fi
6663 rm -f conftest.err conftest.$ac_objext \
6664       conftest$ac_exeext conftest.$ac_ext
6665   done
6666 fi
6667 LIBS=$ac_func_search_save_LIBS
6668 fi
6669 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6670 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6671 if test "$ac_cv_search_exc_resume" != no; then
6672   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6673
6674 fi
6675
6676 GNAT_LIBEXC="$LIBS"
6677 LIBS="$save_LIBS"
6678
6679
6680 # Some systems put ldexp and frexp in libm instead of libc; assume
6681 # they're both in the same place.  jcf-dump needs them.
6682 save_LIBS="$LIBS"
6683 LIBS=
6684 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6685 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6686 if test "${ac_cv_search_ldexp+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   ac_func_search_save_LIBS=$LIBS
6690 ac_cv_search_ldexp=no
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h.  */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h.  */
6697
6698 /* Override any gcc2 internal prototype to avoid an error.  */
6699 #ifdef __cplusplus
6700 extern "C"
6701 #endif
6702 /* We use char because int might match the return type of a gcc2
6703    builtin and then its argument prototype would still apply.  */
6704 char ldexp ();
6705 int
6706 main ()
6707 {
6708 ldexp ();
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715   (eval $ac_link) 2>conftest.er1
6716   ac_status=$?
6717   grep -v '^ *+' conftest.er1 >conftest.err
6718   rm -f conftest.er1
6719   cat conftest.err >&5
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } &&
6722          { ac_try='test -z "$ac_c_werror_flag"
6723                          || test ! -s conftest.err'
6724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725   (eval $ac_try) 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }; } &&
6729          { ac_try='test -s conftest$ac_exeext'
6730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; }; then
6735   ac_cv_search_ldexp="none required"
6736 else
6737   echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 fi
6741 rm -f conftest.err conftest.$ac_objext \
6742       conftest$ac_exeext conftest.$ac_ext
6743 if test "$ac_cv_search_ldexp" = no; then
6744   for ac_lib in m; do
6745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6746     cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752
6753 /* Override any gcc2 internal prototype to avoid an error.  */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758    builtin and then its argument prototype would still apply.  */
6759 char ldexp ();
6760 int
6761 main ()
6762 {
6763 ldexp ();
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770   (eval $ac_link) 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } &&
6777          { ac_try='test -z "$ac_c_werror_flag"
6778                          || test ! -s conftest.err'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; } &&
6784          { ac_try='test -s conftest$ac_exeext'
6785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786   (eval $ac_try) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); }; }; then
6790   ac_cv_search_ldexp="-l$ac_lib"
6791 break
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 fi
6797 rm -f conftest.err conftest.$ac_objext \
6798       conftest$ac_exeext conftest.$ac_ext
6799   done
6800 fi
6801 LIBS=$ac_func_search_save_LIBS
6802 fi
6803 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6804 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6805 if test "$ac_cv_search_ldexp" != no; then
6806   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6807
6808 fi
6809
6810 LDEXP_LIB="$LIBS"
6811 LIBS="$save_LIBS"
6812
6813
6814 # Use <inttypes.h> only if it exists,
6815 # doesn't clash with <sys/types.h>, and declares intmax_t.
6816 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6817 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6818 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 #include <sys/types.h>
6828 #include <inttypes.h>
6829 int
6830 main ()
6831 {
6832 intmax_t i = -1;
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839   (eval $ac_compile) 2>conftest.er1
6840   ac_status=$?
6841   grep -v '^ *+' conftest.er1 >conftest.err
6842   rm -f conftest.er1
6843   cat conftest.err >&5
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); } &&
6846          { ac_try='test -z "$ac_c_werror_flag"
6847                          || test ! -s conftest.err'
6848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849   (eval $ac_try) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }; } &&
6853          { ac_try='test -s conftest.$ac_objext'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; }; then
6859   gcc_cv_header_inttypes_h=yes
6860 else
6861   echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 gcc_cv_header_inttypes_h=no
6865 fi
6866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6867 fi
6868
6869 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6870 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6871 if test $gcc_cv_header_inttypes_h = yes; then
6872
6873 cat >>confdefs.h <<\_ACEOF
6874 #define HAVE_INTTYPES_H 1
6875 _ACEOF
6876
6877 fi
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6906         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6907         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6908         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6909         setlocale
6910 do
6911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6912 echo "$as_me:$LINENO: checking for $ac_func" >&5
6913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6914 if eval "test \"\${$as_ac_var+set}\" = set"; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6925 #define $ac_func innocuous_$ac_func
6926
6927 /* System header to define __stub macros and hopefully few prototypes,
6928     which can conflict with char $ac_func (); below.
6929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930     <limits.h> exists even on freestanding compilers.  */
6931
6932 #ifdef __STDC__
6933 # include <limits.h>
6934 #else
6935 # include <assert.h>
6936 #endif
6937
6938 #undef $ac_func
6939
6940 /* Override any gcc2 internal prototype to avoid an error.  */
6941 #ifdef __cplusplus
6942 extern "C"
6943 {
6944 #endif
6945 /* We use char because int might match the return type of a gcc2
6946    builtin and then its argument prototype would still apply.  */
6947 char $ac_func ();
6948 /* The GNU C library defines this for functions which it implements
6949     to always fail with ENOSYS.  Some functions are actually named
6950     something starting with __ and the normal name is an alias.  */
6951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6952 choke me
6953 #else
6954 char (*f) () = $ac_func;
6955 #endif
6956 #ifdef __cplusplus
6957 }
6958 #endif
6959
6960 int
6961 main ()
6962 {
6963 return f != $ac_func;
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970   (eval $ac_link) 2>conftest.er1
6971   ac_status=$?
6972   grep -v '^ *+' conftest.er1 >conftest.err
6973   rm -f conftest.er1
6974   cat conftest.err >&5
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } &&
6977          { ac_try='test -z "$ac_c_werror_flag"
6978                          || test ! -s conftest.err'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; } &&
6984          { ac_try='test -s conftest$ac_exeext'
6985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986   (eval $ac_try) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; }; then
6990   eval "$as_ac_var=yes"
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 eval "$as_ac_var=no"
6996 fi
6997 rm -f conftest.err conftest.$ac_objext \
6998       conftest$ac_exeext conftest.$ac_ext
6999 fi
7000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7002 if test `eval echo '${'$as_ac_var'}'` = yes; then
7003   cat >>confdefs.h <<_ACEOF
7004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7005 _ACEOF
7006
7007 fi
7008 done
7009
7010
7011 if test x$ac_cv_func_mbstowcs = xyes; then
7012   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
7013 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
7014 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017       if test "$cross_compiling" = yes; then
7018   gcc_cv_func_mbstowcs_works=yes
7019 else
7020   cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 #include <stdlib.h>
7027 int main()
7028 {
7029   mbstowcs(0, "", 0);
7030   return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035   (eval $ac_link) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040   (eval $ac_try) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044   gcc_cv_func_mbstowcs_works=yes
7045 else
7046   echo "$as_me: program exited with status $ac_status" >&5
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ( exit $ac_status )
7051 gcc_cv_func_mbstowcs_works=no
7052 fi
7053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7054 fi
7055 fi
7056 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7057 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7058   if test x$gcc_cv_func_mbstowcs_works = xyes; then
7059
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE_WORKING_MBSTOWCS 1
7062 _ACEOF
7063
7064   fi
7065 fi
7066
7067 echo "$as_me:$LINENO: checking for ssize_t" >&5
7068 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7069 if test "${ac_cv_type_ssize_t+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h.  */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h.  */
7078 $ac_includes_default
7079 int
7080 main ()
7081 {
7082 if ((ssize_t *) 0)
7083   return 0;
7084 if (sizeof (ssize_t))
7085   return 0;
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092   (eval $ac_compile) 2>conftest.er1
7093   ac_status=$?
7094   grep -v '^ *+' conftest.er1 >conftest.err
7095   rm -f conftest.er1
7096   cat conftest.err >&5
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } &&
7099          { ac_try='test -z "$ac_c_werror_flag"
7100                          || test ! -s conftest.err'
7101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102   (eval $ac_try) 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); }; } &&
7106          { ac_try='test -s conftest.$ac_objext'
7107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108   (eval $ac_try) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); }; }; then
7112   ac_cv_type_ssize_t=yes
7113 else
7114   echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 ac_cv_type_ssize_t=no
7118 fi
7119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120 fi
7121 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7122 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7123 if test $ac_cv_type_ssize_t = yes; then
7124   :
7125 else
7126
7127 cat >>confdefs.h <<_ACEOF
7128 #define ssize_t int
7129 _ACEOF
7130
7131 fi
7132
7133
7134 # Try to determine the array type of the second argument of getgroups
7135 # for the target system (int or gid_t).
7136 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7137 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7138 if test "${ac_cv_type_uid_t+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <sys/types.h>
7148
7149 _ACEOF
7150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7151   $EGREP "uid_t" >/dev/null 2>&1; then
7152   ac_cv_type_uid_t=yes
7153 else
7154   ac_cv_type_uid_t=no
7155 fi
7156 rm -f conftest*
7157
7158 fi
7159 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7160 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7161 if test $ac_cv_type_uid_t = no; then
7162
7163 cat >>confdefs.h <<\_ACEOF
7164 #define uid_t int
7165 _ACEOF
7166
7167
7168 cat >>confdefs.h <<\_ACEOF
7169 #define gid_t int
7170 _ACEOF
7171
7172 fi
7173
7174 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7175 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7176 if test "${ac_cv_type_getgroups+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test "$cross_compiling" = yes; then
7180   ac_cv_type_getgroups=cross
7181 else
7182   cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 /* Thanks to Mike Rendell for this test.  */
7189 #include <sys/types.h>
7190 #define NGID 256
7191 #undef MAX
7192 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7193
7194 int
7195 main ()
7196 {
7197   gid_t gidset[NGID];
7198   int i, n;
7199   union { gid_t gval; long lval; }  val;
7200
7201   val.lval = -1;
7202   for (i = 0; i < NGID; i++)
7203     gidset[i] = val.gval;
7204   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7205                  gidset);
7206   /* Exit non-zero if getgroups seems to require an array of ints.  This
7207      happens when gid_t is short but getgroups modifies an array of ints.  */
7208   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7209 }
7210 _ACEOF
7211 rm -f conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213   (eval $ac_link) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218   (eval $ac_try) 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); }; }; then
7222   ac_cv_type_getgroups=gid_t
7223 else
7224   echo "$as_me: program exited with status $ac_status" >&5
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ( exit $ac_status )
7229 ac_cv_type_getgroups=int
7230 fi
7231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7232 fi
7233 if test $ac_cv_type_getgroups = cross; then
7234         cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 #include <unistd.h>
7241
7242 _ACEOF
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7245   ac_cv_type_getgroups=gid_t
7246 else
7247   ac_cv_type_getgroups=int
7248 fi
7249 rm -f conftest*
7250
7251 fi
7252 fi
7253 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7254 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7255
7256 cat >>confdefs.h <<_ACEOF
7257 #define GETGROUPS_T $ac_cv_type_getgroups
7258 _ACEOF
7259
7260
7261 if test "${target}" = "${build}"; then
7262   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7263 else
7264   case "${target}" in
7265         # This condition may need some tweaking.  It should include all
7266         # targets where the array type of the second argument of getgroups
7267         # is int and the type of gid_t is not equivalent to int.
7268         *-*-sunos* | *-*-ultrix*)
7269                 TARGET_GETGROUPS_T=int
7270                 ;;
7271         *)
7272                 TARGET_GETGROUPS_T=gid_t
7273                 ;;
7274   esac
7275 fi
7276
7277
7278 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7279 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7280 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   if test "$cross_compiling" = yes; then
7284   gcc_cv_func_printf_ptr=no
7285 else
7286   cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292 #include <stdio.h>
7293
7294 int main()
7295 {
7296   char buf[64];
7297   char *p = buf, *q = NULL;
7298   sprintf(buf, "%p", p);
7299   sscanf(buf, "%p", &q);
7300   return (p != q);
7301 }
7302 _ACEOF
7303 rm -f conftest$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305   (eval $ac_link) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310   (eval $ac_try) 2>&5
7311   ac_status=$?
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); }; }; then
7314   gcc_cv_func_printf_ptr=yes
7315 else
7316   echo "$as_me: program exited with status $ac_status" >&5
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 ( exit $ac_status )
7321 gcc_cv_func_printf_ptr=no
7322 fi
7323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 rm -f core core.* *.core
7326 fi
7327 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7328 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7329 if test $gcc_cv_func_printf_ptr = yes ; then
7330
7331 cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_PRINTF_PTR 1
7333 _ACEOF
7334
7335 fi
7336
7337
7338 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7339 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7340 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h.  */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h.  */
7349 #include <sys/mman.h>
7350 _ACEOF
7351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } >/dev/null; then
7359   if test -s conftest.err; then
7360     ac_cpp_err=$ac_c_preproc_warn_flag
7361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7362   else
7363     ac_cpp_err=
7364   fi
7365 else
7366   ac_cpp_err=yes
7367 fi
7368 if test -z "$ac_cpp_err"; then
7369   ac_cv_header_sys_mman_h=yes
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374   ac_cv_header_sys_mman_h=no
7375 fi
7376 rm -f conftest.err conftest.$ac_ext
7377 fi
7378 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7379 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7380 if test $ac_cv_header_sys_mman_h = yes; then
7381   gcc_header_sys_mman_h=yes
7382 else
7383   gcc_header_sys_mman_h=no
7384 fi
7385
7386 echo "$as_me:$LINENO: checking for mmap" >&5
7387 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7388 if test "${ac_cv_func_mmap+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7399 #define mmap innocuous_mmap
7400
7401 /* System header to define __stub macros and hopefully few prototypes,
7402     which can conflict with char mmap (); below.
7403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7404     <limits.h> exists even on freestanding compilers.  */
7405
7406 #ifdef __STDC__
7407 # include <limits.h>
7408 #else
7409 # include <assert.h>
7410 #endif
7411
7412 #undef mmap
7413
7414 /* Override any gcc2 internal prototype to avoid an error.  */
7415 #ifdef __cplusplus
7416 extern "C"
7417 {
7418 #endif
7419 /* We use char because int might match the return type of a gcc2
7420    builtin and then its argument prototype would still apply.  */
7421 char mmap ();
7422 /* The GNU C library defines this for functions which it implements
7423     to always fail with ENOSYS.  Some functions are actually named
7424     something starting with __ and the normal name is an alias.  */
7425 #if defined (__stub_mmap) || defined (__stub___mmap)
7426 choke me
7427 #else
7428 char (*f) () = mmap;
7429 #endif
7430 #ifdef __cplusplus
7431 }
7432 #endif
7433
7434 int
7435 main ()
7436 {
7437 return f != mmap;
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"
7452                          || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest$ac_exeext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   ac_cv_func_mmap=yes
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_cv_func_mmap=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext \
7472       conftest$ac_exeext conftest.$ac_ext
7473 fi
7474 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7475 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7476 if test $ac_cv_func_mmap = yes; then
7477   gcc_func_mmap=yes
7478 else
7479   gcc_func_mmap=no
7480 fi
7481
7482 if test "$gcc_header_sys_mman_h" != yes \
7483  || test "$gcc_func_mmap" != yes; then
7484    gcc_cv_func_mmap_file=no
7485    gcc_cv_func_mmap_dev_zero=no
7486    gcc_cv_func_mmap_anon=no
7487 else
7488    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7489 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7490 if test "${gcc_cv_func_mmap_file+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   # Add a system to this blacklist if
7494    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7495    # memory area containing the same data that you'd get if you applied
7496    # read() to the same fd.  The only system known to have a problem here
7497    # is VMS, where text files have record structure.
7498    case "$host_os" in
7499      vms* | ultrix*)
7500         gcc_cv_func_mmap_file=no ;;
7501      *)
7502         gcc_cv_func_mmap_file=yes;;
7503    esac
7504 fi
7505 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7506 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7507    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7508 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7509 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   # Add a system to this blacklist if it has mmap() but /dev/zero
7513    # does not exist, or if mmapping /dev/zero does not give anonymous
7514    # zeroed pages with both the following properties:
7515    # 1. If you map N consecutive pages in with one call, and then
7516    #    unmap any subset of those pages, the pages that were not
7517    #    explicitly unmapped remain accessible.
7518    # 2. If you map two adjacent blocks of memory and then unmap them
7519    #    both at once, they must both go away.
7520    # Systems known to be in this category are Windows (all variants),
7521    # VMS, and Darwin.
7522    case "$host_os" in
7523      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7524         gcc_cv_func_mmap_dev_zero=no ;;
7525      *)
7526         gcc_cv_func_mmap_dev_zero=yes;;
7527    esac
7528 fi
7529 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7530 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7531
7532    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7533    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7534 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7535 if test "${gcc_cv_decl_map_anon+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h.  */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h.  */
7544 #include <sys/types.h>
7545 #include <sys/mman.h>
7546 #include <unistd.h>
7547
7548 #ifndef MAP_ANONYMOUS
7549 #define MAP_ANONYMOUS MAP_ANON
7550 #endif
7551
7552 int
7553 main ()
7554 {
7555 int n = MAP_ANONYMOUS;
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562   (eval $ac_compile) 2>conftest.er1
7563   ac_status=$?
7564   grep -v '^ *+' conftest.er1 >conftest.err
7565   rm -f conftest.er1
7566   cat conftest.err >&5
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } &&
7569          { ac_try='test -z "$ac_c_werror_flag"
7570                          || test ! -s conftest.err'
7571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572   (eval $ac_try) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; } &&
7576          { ac_try='test -s conftest.$ac_objext'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; }; then
7582   gcc_cv_decl_map_anon=yes
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 gcc_cv_decl_map_anon=no
7588 fi
7589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7590 fi
7591 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7592 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7593
7594    if test $gcc_cv_decl_map_anon = no; then
7595      gcc_cv_func_mmap_anon=no
7596    else
7597      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7598 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7599 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7603    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7604    # doesn't give anonymous zeroed pages with the same properties listed
7605    # above for use of /dev/zero.
7606    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7607    case "$host_os" in
7608      vms* | cygwin* | pe | mingw* | sco* | udk* )
7609         gcc_cv_func_mmap_anon=no ;;
7610      *)
7611         gcc_cv_func_mmap_anon=yes;;
7612    esac
7613 fi
7614 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7615 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7616    fi
7617 fi
7618
7619 if test $gcc_cv_func_mmap_file = yes; then
7620
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_MMAP_FILE 1
7623 _ACEOF
7624
7625 fi
7626 if test $gcc_cv_func_mmap_dev_zero = yes; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_MMAP_DEV_ZERO 1
7630 _ACEOF
7631
7632 fi
7633 if test $gcc_cv_func_mmap_anon = yes; then
7634
7635 cat >>confdefs.h <<\_ACEOF
7636 #define HAVE_MMAP_ANON 1
7637 _ACEOF
7638
7639 fi
7640
7641
7642 case "${host}" in
7643 *-*-*vms*)
7644   # Under VMS, vfork works very differently than on Unix. The standard test
7645   # won't work, and it isn't easily adaptable. It makes more sense to
7646   # just force it.
7647   ac_cv_func_vfork_works=yes
7648   ;;
7649 esac
7650 echo "$as_me:$LINENO: checking for pid_t" >&5
7651 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7652 if test "${ac_cv_type_pid_t+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661 $ac_includes_default
7662 int
7663 main ()
7664 {
7665 if ((pid_t *) 0)
7666   return 0;
7667 if (sizeof (pid_t))
7668   return 0;
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675   (eval $ac_compile) 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -z "$ac_c_werror_flag"
7683                          || test ! -s conftest.err'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; } &&
7689          { ac_try='test -s conftest.$ac_objext'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; }; then
7695   ac_cv_type_pid_t=yes
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_cv_type_pid_t=no
7701 fi
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7705 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7706 if test $ac_cv_type_pid_t = yes; then
7707   :
7708 else
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define pid_t int
7712 _ACEOF
7713
7714 fi
7715
7716
7717
7718 for ac_header in unistd.h vfork.h
7719 do
7720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7721 echo "$as_me:$LINENO: checking for $ac_header" >&5
7722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h.  */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h.  */
7732 #include <$ac_header>
7733 _ACEOF
7734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } >/dev/null; then
7742   if test -s conftest.err; then
7743     ac_cpp_err=$ac_c_preproc_warn_flag
7744     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7745   else
7746     ac_cpp_err=
7747   fi
7748 else
7749   ac_cpp_err=yes
7750 fi
7751 if test -z "$ac_cpp_err"; then
7752   eval "$as_ac_Header=yes"
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757   eval "$as_ac_Header=no"
7758 fi
7759 rm -f conftest.err conftest.$ac_ext
7760 fi
7761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764   cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 _ACEOF
7767
7768 fi
7769 done
7770
7771
7772
7773 for ac_func in fork vfork
7774 do
7775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7776 echo "$as_me:$LINENO: checking for $ac_func" >&5
7777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7778 if eval "test \"\${$as_ac_var+set}\" = set"; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7789 #define $ac_func innocuous_$ac_func
7790
7791 /* System header to define __stub macros and hopefully few prototypes,
7792     which can conflict with char $ac_func (); below.
7793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7794     <limits.h> exists even on freestanding compilers.  */
7795
7796 #ifdef __STDC__
7797 # include <limits.h>
7798 #else
7799 # include <assert.h>
7800 #endif
7801
7802 #undef $ac_func
7803
7804 /* Override any gcc2 internal prototype to avoid an error.  */
7805 #ifdef __cplusplus
7806 extern "C"
7807 {
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char $ac_func ();
7812 /* The GNU C library defines this for functions which it implements
7813     to always fail with ENOSYS.  Some functions are actually named
7814     something starting with __ and the normal name is an alias.  */
7815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7816 choke me
7817 #else
7818 char (*f) () = $ac_func;
7819 #endif
7820 #ifdef __cplusplus
7821 }
7822 #endif
7823
7824 int
7825 main ()
7826 {
7827 return f != $ac_func;
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>conftest.er1
7835   ac_status=$?
7836   grep -v '^ *+' conftest.er1 >conftest.err
7837   rm -f conftest.er1
7838   cat conftest.err >&5
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); } &&
7841          { ac_try='test -z "$ac_c_werror_flag"
7842                          || test ! -s conftest.err'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; } &&
7848          { ac_try='test -s conftest$ac_exeext'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; }; then
7854   eval "$as_ac_var=yes"
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 eval "$as_ac_var=no"
7860 fi
7861 rm -f conftest.err conftest.$ac_objext \
7862       conftest$ac_exeext conftest.$ac_ext
7863 fi
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7866 if test `eval echo '${'$as_ac_var'}'` = yes; then
7867   cat >>confdefs.h <<_ACEOF
7868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7869 _ACEOF
7870
7871 fi
7872 done
7873
7874 if test "x$ac_cv_func_fork" = xyes; then
7875   echo "$as_me:$LINENO: checking for working fork" >&5
7876 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7877 if test "${ac_cv_func_fork_works+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   if test "$cross_compiling" = yes; then
7881   ac_cv_func_fork_works=cross
7882 else
7883   cat >conftest.$ac_ext <<_ACEOF
7884 /* By Ruediger Kuhlmann. */
7885       #include <sys/types.h>
7886       #if HAVE_UNISTD_H
7887       # include <unistd.h>
7888       #endif
7889       /* Some systems only have a dummy stub for fork() */
7890       int main ()
7891       {
7892         if (fork() < 0)
7893           exit (1);
7894         exit (0);
7895       }
7896 _ACEOF
7897 rm -f conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899   (eval $ac_link) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; }; then
7908   ac_cv_func_fork_works=yes
7909 else
7910   echo "$as_me: program exited with status $ac_status" >&5
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 ( exit $ac_status )
7915 ac_cv_func_fork_works=no
7916 fi
7917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 fi
7920 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7921 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7922
7923 else
7924   ac_cv_func_fork_works=$ac_cv_func_fork
7925 fi
7926 if test "x$ac_cv_func_fork_works" = xcross; then
7927   case $host in
7928     *-*-amigaos* | *-*-msdosdjgpp*)
7929       # Override, as these systems have only a dummy fork() stub
7930       ac_cv_func_fork_works=no
7931       ;;
7932     *)
7933       ac_cv_func_fork_works=yes
7934       ;;
7935   esac
7936   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7937 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7938 fi
7939 ac_cv_func_vfork_works=$ac_cv_func_vfork
7940 if test "x$ac_cv_func_vfork" = xyes; then
7941   echo "$as_me:$LINENO: checking for working vfork" >&5
7942 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7943 if test "${ac_cv_func_vfork_works+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   if test "$cross_compiling" = yes; then
7947   ac_cv_func_vfork_works=cross
7948 else
7949   cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955 /* Thanks to Paul Eggert for this test.  */
7956 #include <stdio.h>
7957 #include <stdlib.h>
7958 #include <sys/types.h>
7959 #include <sys/stat.h>
7960 #include <sys/wait.h>
7961 #if HAVE_UNISTD_H
7962 # include <unistd.h>
7963 #endif
7964 #if HAVE_VFORK_H
7965 # include <vfork.h>
7966 #endif
7967 /* On some sparc systems, changes by the child to local and incoming
7968    argument registers are propagated back to the parent.  The compiler
7969    is told about this with #include <vfork.h>, but some compilers
7970    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7971    static variable whose address is put into a register that is
7972    clobbered by the vfork.  */
7973 static void
7974 #ifdef __cplusplus
7975 sparc_address_test (int arg)
7976 # else
7977 sparc_address_test (arg) int arg;
7978 #endif
7979 {
7980   static pid_t child;
7981   if (!child) {
7982     child = vfork ();
7983     if (child < 0) {
7984       perror ("vfork");
7985       _exit(2);
7986     }
7987     if (!child) {
7988       arg = getpid();
7989       write(-1, "", 0);
7990       _exit (arg);
7991     }
7992   }
7993 }
7994
7995 int
7996 main ()
7997 {
7998   pid_t parent = getpid ();
7999   pid_t child;
8000
8001   sparc_address_test (0);
8002
8003   child = vfork ();
8004
8005   if (child == 0) {
8006     /* Here is another test for sparc vfork register problems.  This
8007        test uses lots of local variables, at least as many local
8008        variables as main has allocated so far including compiler
8009        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8010        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8011        reuse the register of parent for one of the local variables,
8012        since it will think that parent can't possibly be used any more
8013        in this routine.  Assigning to the local variable will thus
8014        munge parent in the parent process.  */
8015     pid_t
8016       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8017       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8018     /* Convince the compiler that p..p7 are live; otherwise, it might
8019        use the same hardware register for all 8 local variables.  */
8020     if (p != p1 || p != p2 || p != p3 || p != p4
8021         || p != p5 || p != p6 || p != p7)
8022       _exit(1);
8023
8024     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8025        from child file descriptors.  If the child closes a descriptor
8026        before it execs or exits, this munges the parent's descriptor
8027        as well.  Test for this by closing stdout in the child.  */
8028     _exit(close(fileno(stdout)) != 0);
8029   } else {
8030     int status;
8031     struct stat st;
8032
8033     while (wait(&status) != child)
8034       ;
8035     exit(
8036          /* Was there some problem with vforking?  */
8037          child < 0
8038
8039          /* Did the child fail?  (This shouldn't happen.)  */
8040          || status
8041
8042          /* Did the vfork/compiler bug occur?  */
8043          || parent != getpid()
8044
8045          /* Did the file descriptor bug occur?  */
8046          || fstat(fileno(stdout), &st) != 0
8047          );
8048   }
8049 }
8050 _ACEOF
8051 rm -f conftest$ac_exeext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053   (eval $ac_link) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_cv_func_vfork_works=yes
8063 else
8064   echo "$as_me: program exited with status $ac_status" >&5
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 ( exit $ac_status )
8069 ac_cv_func_vfork_works=no
8070 fi
8071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 fi
8074 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8075 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8076
8077 fi;
8078 if test "x$ac_cv_func_fork_works" = xcross; then
8079   ac_cv_func_vfork_works=$ac_cv_func_vfork
8080   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8081 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8082 fi
8083
8084 if test "x$ac_cv_func_vfork_works" = xyes; then
8085
8086 cat >>confdefs.h <<\_ACEOF
8087 #define HAVE_WORKING_VFORK 1
8088 _ACEOF
8089
8090 else
8091
8092 cat >>confdefs.h <<\_ACEOF
8093 #define vfork fork
8094 _ACEOF
8095
8096 fi
8097 if test "x$ac_cv_func_fork_works" = xyes; then
8098
8099 cat >>confdefs.h <<\_ACEOF
8100 #define HAVE_WORKING_FORK 1
8101 _ACEOF
8102
8103 fi
8104
8105
8106
8107
8108   am_cv_lib_iconv_ldpath=
8109
8110 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8111 if test "${with_libiconv_prefix+set}" = set; then
8112   withval="$with_libiconv_prefix"
8113
8114     for dir in `echo "$withval" | tr : ' '`; do
8115       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8116       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8117     done
8118
8119 fi;
8120
8121
8122 for ac_header in iconv.h
8123 do
8124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125 echo "$as_me:$LINENO: checking for $ac_header" >&5
8126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <$ac_header>
8137 _ACEOF
8138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } >/dev/null; then
8146   if test -s conftest.err; then
8147     ac_cpp_err=$ac_c_preproc_warn_flag
8148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8149   else
8150     ac_cpp_err=
8151   fi
8152 else
8153   ac_cpp_err=yes
8154 fi
8155 if test -z "$ac_cpp_err"; then
8156   eval "$as_ac_Header=yes"
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161   eval "$as_ac_Header=no"
8162 fi
8163 rm -f conftest.err conftest.$ac_ext
8164 fi
8165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8168   cat >>confdefs.h <<_ACEOF
8169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8170 _ACEOF
8171
8172 fi
8173 done
8174
8175
8176   echo "$as_me:$LINENO: checking for iconv" >&5
8177 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8178 if test "${am_cv_func_iconv+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181
8182     am_cv_func_iconv="no, consider installing GNU libiconv"
8183     am_cv_lib_iconv=no
8184     cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190 #include <stdlib.h>
8191 #include <iconv.h>
8192 int
8193 main ()
8194 {
8195 iconv_t cd = iconv_open("","");
8196        iconv(cd,NULL,NULL,NULL,NULL);
8197        iconv_close(cd);
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204   (eval $ac_link) 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -z "$ac_c_werror_flag"
8212                          || test ! -s conftest.err'
8213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214   (eval $ac_try) 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; } &&
8218          { ac_try='test -s conftest$ac_exeext'
8219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220   (eval $ac_try) 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   am_cv_func_iconv=yes
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229 fi
8230 rm -f conftest.err conftest.$ac_objext \
8231       conftest$ac_exeext conftest.$ac_ext
8232     if test "$am_cv_func_iconv" != yes; then
8233       am_save_LIBS="$LIBS"
8234       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8235       cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 #include <stdlib.h>
8242 #include <iconv.h>
8243 int
8244 main ()
8245 {
8246 iconv_t cd = iconv_open("","");
8247          iconv(cd,NULL,NULL,NULL,NULL);
8248          iconv_close(cd);
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 rm -f conftest.$ac_objext conftest$ac_exeext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255   (eval $ac_link) 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } &&
8262          { ac_try='test -z "$ac_c_werror_flag"
8263                          || test ! -s conftest.err'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest$ac_exeext'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   am_cv_lib_iconv=yes
8276         am_cv_func_iconv=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281 fi
8282 rm -f conftest.err conftest.$ac_objext \
8283       conftest$ac_exeext conftest.$ac_ext
8284       LIBS="$am_save_LIBS"
8285     fi
8286
8287 fi
8288 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8289 echo "${ECHO_T}$am_cv_func_iconv" >&6
8290   if test "$am_cv_func_iconv" = yes; then
8291
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_ICONV 1
8294 _ACEOF
8295
8296     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8297 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8298     if test "${am_cv_proto_iconv+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301
8302       cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h.  */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h.  */
8308
8309 #include <stdlib.h>
8310 #include <iconv.h>
8311 extern
8312 #ifdef __cplusplus
8313 "C"
8314 #endif
8315 #if defined(__STDC__) || defined(__cplusplus)
8316 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8317 #else
8318 size_t iconv();
8319 #endif
8320
8321 int
8322 main ()
8323 {
8324
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8331   (eval $ac_compile) 2>conftest.er1
8332   ac_status=$?
8333   grep -v '^ *+' conftest.er1 >conftest.err
8334   rm -f conftest.er1
8335   cat conftest.err >&5
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } &&
8338          { ac_try='test -z "$ac_c_werror_flag"
8339                          || test ! -s conftest.err'
8340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341   (eval $ac_try) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); }; } &&
8345          { ac_try='test -s conftest.$ac_objext'
8346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347   (eval $ac_try) 2>&5
8348   ac_status=$?
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); }; }; then
8351   am_cv_proto_iconv_arg1=""
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 am_cv_proto_iconv_arg1="const"
8357 fi
8358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359       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);"
8360 fi
8361
8362     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8363     echo "$as_me:$LINENO: result: ${ac_t:-
8364          }$am_cv_proto_iconv" >&5
8365 echo "${ECHO_T}${ac_t:-
8366          }$am_cv_proto_iconv" >&6
8367
8368 cat >>confdefs.h <<_ACEOF
8369 #define ICONV_CONST $am_cv_proto_iconv_arg1
8370 _ACEOF
8371
8372   fi
8373   LIBICONV=
8374   if test "$am_cv_lib_iconv" = yes; then
8375     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8376   fi
8377
8378
8379 # Until we have in-tree GNU iconv:
8380 LIBICONV_DEP=
8381
8382
8383
8384   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8385 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8386 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395 #include <locale.h>
8396 int
8397 main ()
8398 {
8399 return LC_MESSAGES
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406   (eval $ac_link) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag"
8414                          || test ! -s conftest.err'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   am_cv_val_LC_MESSAGES=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 am_cv_val_LC_MESSAGES=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8437 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8438   if test $am_cv_val_LC_MESSAGES = yes; then
8439
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_LC_MESSAGES 1
8442 _ACEOF
8443
8444   fi
8445
8446
8447 # We will need to find libiberty.h and ansidecl.h
8448 saved_CFLAGS="$CFLAGS"
8449 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8475         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8476         fprintf_unlocked strstr errno snprintf vasprintf \
8477         malloc realloc calloc free basename getopt clock getpagesize
8478 do
8479   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8480 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8481 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8482 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491 #undef $ac_tr_decl
8492 #define $ac_tr_decl 1
8493
8494 #include "ansidecl.h"
8495 #include "system.h"
8496
8497 int
8498 main ()
8499 {
8500 #ifndef $ac_func
8501 char *(*pfn) = (char *(*)) $ac_func ;
8502 #endif
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8509   (eval $ac_compile) 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } &&
8516          { ac_try='test -z "$ac_c_werror_flag"
8517                          || test ! -s conftest.err'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; } &&
8523          { ac_try='test -s conftest.$ac_objext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   eval "gcc_cv_have_decl_$ac_func=yes"
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 eval "gcc_cv_have_decl_$ac_func=no"
8535 fi
8536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8537 fi
8538
8539 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8540   echo "$as_me:$LINENO: result: yes" >&5
8541 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8542 #define $ac_tr_decl 1
8543 _ACEOF
8544
8545 else
8546   echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8548 #define $ac_tr_decl 0
8549 _ACEOF
8550
8551 fi
8552
8553 done
8554
8555
8556
8557
8558
8559 for ac_func in getrlimit setrlimit getrusage
8560 do
8561   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8562 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8563 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8564 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573 #undef $ac_tr_decl
8574 #define $ac_tr_decl 1
8575
8576 #include "ansidecl.h"
8577 #include "system.h"
8578 #ifdef HAVE_SYS_RESOURCE_H
8579 #include <sys/resource.h>
8580 #endif
8581
8582
8583 int
8584 main ()
8585 {
8586 #ifndef $ac_func
8587 char *(*pfn) = (char *(*)) $ac_func ;
8588 #endif
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595   (eval $ac_compile) 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } &&
8602          { ac_try='test -z "$ac_c_werror_flag"
8603                          || test ! -s conftest.err'
8604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605   (eval $ac_try) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; } &&
8609          { ac_try='test -s conftest.$ac_objext'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; }; then
8615   eval "gcc_cv_have_decl_$ac_func=yes"
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 eval "gcc_cv_have_decl_$ac_func=no"
8621 fi
8622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624
8625 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8626   echo "$as_me:$LINENO: result: yes" >&5
8627 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8628 #define $ac_tr_decl 1
8629 _ACEOF
8630
8631 else
8632   echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8634 #define $ac_tr_decl 0
8635 _ACEOF
8636
8637 fi
8638
8639 done
8640
8641
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648
8649 #include "ansidecl.h"
8650 #include "system.h"
8651 #ifdef HAVE_SYS_RESOURCE_H
8652 #include <sys/resource.h>
8653 #endif
8654
8655 int
8656 main ()
8657 {
8658 rlim_t l = 0;
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.$ac_objext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665   (eval $ac_compile) 2>conftest.er1
8666   ac_status=$?
8667   grep -v '^ *+' conftest.er1 >conftest.err
8668   rm -f conftest.er1
8669   cat conftest.err >&5
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } &&
8672          { ac_try='test -z "$ac_c_werror_flag"
8673                          || test ! -s conftest.err'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; } &&
8679          { ac_try='test -s conftest.$ac_objext'
8680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; }; then
8685   :
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690
8691 cat >>confdefs.h <<\_ACEOF
8692 #define rlim_t long
8693 _ACEOF
8694
8695 fi
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697
8698
8699 for ac_func in ldgetname
8700 do
8701   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8702 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8703 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8704 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713 #undef $ac_tr_decl
8714 #define $ac_tr_decl 1
8715
8716 #include "ansidecl.h"
8717 #include "system.h"
8718 #ifdef HAVE_LDFCN_H
8719 #include <ldfcn.h>
8720 #endif
8721
8722
8723 int
8724 main ()
8725 {
8726 #ifndef $ac_func
8727 char *(*pfn) = (char *(*)) $ac_func ;
8728 #endif
8729   ;
8730   return 0;
8731 }
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735   (eval $ac_compile) 2>conftest.er1
8736   ac_status=$?
8737   grep -v '^ *+' conftest.er1 >conftest.err
8738   rm -f conftest.er1
8739   cat conftest.err >&5
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } &&
8742          { ac_try='test -z "$ac_c_werror_flag"
8743                          || test ! -s conftest.err'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; } &&
8749          { ac_try='test -s conftest.$ac_objext'
8750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751   (eval $ac_try) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }; }; then
8755   eval "gcc_cv_have_decl_$ac_func=yes"
8756 else
8757   echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8759
8760 eval "gcc_cv_have_decl_$ac_func=no"
8761 fi
8762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8763 fi
8764
8765 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8766   echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8768 #define $ac_tr_decl 1
8769 _ACEOF
8770
8771 else
8772   echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8774 #define $ac_tr_decl 0
8775 _ACEOF
8776
8777 fi
8778
8779 done
8780
8781
8782
8783 for ac_func in times
8784 do
8785   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8786 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8787 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8788 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791   cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h.  */
8797 #undef $ac_tr_decl
8798 #define $ac_tr_decl 1
8799
8800 #include "ansidecl.h"
8801 #include "system.h"
8802 #ifdef HAVE_SYS_TIMES_H
8803 #include <sys/times.h>
8804 #endif
8805
8806
8807 int
8808 main ()
8809 {
8810 #ifndef $ac_func
8811 char *(*pfn) = (char *(*)) $ac_func ;
8812 #endif
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819   (eval $ac_compile) 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -z "$ac_c_werror_flag"
8827                          || test ! -s conftest.err'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; } &&
8833          { ac_try='test -s conftest.$ac_objext'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; }; then
8839   eval "gcc_cv_have_decl_$ac_func=yes"
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 eval "gcc_cv_have_decl_$ac_func=no"
8845 fi
8846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848
8849 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8850   echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8852 #define $ac_tr_decl 1
8853 _ACEOF
8854
8855 else
8856   echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8858 #define $ac_tr_decl 0
8859 _ACEOF
8860
8861 fi
8862
8863 done
8864
8865
8866 # More time-related stuff.
8867 echo "$as_me:$LINENO: checking for struct tms" >&5
8868 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8869 if test "${ac_cv_struct_tms+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879
8880 #include "ansidecl.h"
8881 #include "system.h"
8882 #ifdef HAVE_SYS_TIMES_H
8883 #include <sys/times.h>
8884 #endif
8885
8886 int
8887 main ()
8888 {
8889 struct tms tms;
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896   (eval $ac_compile) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_struct_tms=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_struct_tms=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8926 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8927 if test $ac_cv_struct_tms = yes; then
8928
8929 cat >>confdefs.h <<\_ACEOF
8930 #define HAVE_STRUCT_TMS 1
8931 _ACEOF
8932
8933 fi
8934
8935 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8936 # revisit after autoconf 2.50.
8937 echo "$as_me:$LINENO: checking for clock_t" >&5
8938 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8939 if test "${gcc_cv_type_clock_t+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949
8950 #include "ansidecl.h"
8951 #include "system.h"
8952
8953 int
8954 main ()
8955 {
8956 clock_t x;
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963   (eval $ac_compile) 2>conftest.er1
8964   ac_status=$?
8965   grep -v '^ *+' conftest.er1 >conftest.err
8966   rm -f conftest.er1
8967   cat conftest.err >&5
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); } &&
8970          { ac_try='test -z "$ac_c_werror_flag"
8971                          || test ! -s conftest.err'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; } &&
8977          { ac_try='test -s conftest.$ac_objext'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; }; then
8983   gcc_cv_type_clock_t=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 gcc_cv_type_clock_t=no
8989 fi
8990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991 fi
8992 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8993 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8994 if test $gcc_cv_type_clock_t = yes; then
8995
8996 cat >>confdefs.h <<\_ACEOF
8997 #define HAVE_CLOCK_T 1
8998 _ACEOF
8999
9000 fi
9001
9002 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9003 CFLAGS="$saved_CFLAGS"
9004
9005 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9006 if test "${enable_initfini_array+set}" = set; then
9007   enableval="$enable_initfini_array"
9008
9009 else
9010
9011 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9012 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9013 if test "${gcc_cv_initfini_array+set}" = set; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016     if test "$cross_compiling" = yes; then
9017   gcc_cv_initfini_array=no
9018 else
9019   cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025
9026 static int x = -1;
9027 int main (void) { return x; }
9028 int foo (void) { x = 0; }
9029 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9030 _ACEOF
9031 rm -f conftest$ac_exeext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033   (eval $ac_link) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; }; then
9042   gcc_cv_initfini_array=yes
9043 else
9044   echo "$as_me: program exited with status $ac_status" >&5
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9047
9048 ( exit $ac_status )
9049 gcc_cv_initfini_array=no
9050 fi
9051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9052 fi
9053 fi
9054 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9055 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9056   enable_initfini_array=$gcc_cv_initfini_array
9057
9058 fi;
9059 if test $enable_initfini_array = yes; then
9060
9061 cat >>confdefs.h <<\_ACEOF
9062 #define HAVE_INITFINI_ARRAY 1
9063 _ACEOF
9064
9065 fi
9066
9067 # mkdir takes a single argument on some systems.
9068 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9069 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9070 if test "${gcc_cv_mkdir_takes_one_arg+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
9080 #include <sys/types.h>
9081 #ifdef HAVE_SYS_STAT_H
9082 # include <sys/stat.h>
9083 #endif
9084 #ifdef HAVE_UNISTD_H
9085 # include <unistd.h>
9086 #endif
9087 #ifdef HAVE_DIRECT_H
9088 # include <direct.h>
9089 #endif
9090 int
9091 main ()
9092 {
9093 mkdir ("foo", 0);
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100   (eval $ac_compile) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -z "$ac_c_werror_flag"
9108                          || test ! -s conftest.err'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; } &&
9114          { ac_try='test -s conftest.$ac_objext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   gcc_cv_mkdir_takes_one_arg=no
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 gcc_cv_mkdir_takes_one_arg=yes
9126 fi
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 fi
9129 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9130 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9131 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9132
9133 cat >>confdefs.h <<\_ACEOF
9134 #define MKDIR_TAKES_ONE_ARG 1
9135 _ACEOF
9136
9137 fi
9138
9139
9140 # File extensions
9141 manext='.1'
9142 objext='.o'
9143
9144
9145
9146 # With Setjmp/Longjmp based exception handling.
9147 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9148 if test "${enable_sjlj_exceptions+set}" = set; then
9149   enableval="$enable_sjlj_exceptions"
9150   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9151
9152 cat >>confdefs.h <<_ACEOF
9153 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9154 _ACEOF
9155
9156 fi;
9157
9158 # For platforms with the unwind ABI which includes an unwind library,
9159 # libunwind, we can choose to use the system libunwind.
9160
9161 # Check whether --with-system-libunwind or --without-system-libunwind was given.
9162 if test "${with_system_libunwind+set}" = set; then
9163   withval="$with_system_libunwind"
9164
9165 fi;
9166
9167 # --------------------------------------------------------
9168 # Build, host, and target specific configuration fragments
9169 # --------------------------------------------------------
9170
9171 # Collect build-machine-specific information.
9172 . ${srcdir}/config.build
9173
9174 # Collect host-machine-specific information.
9175 . ${srcdir}/config.host
9176
9177 target_gtfiles=
9178
9179 # Collect target-machine-specific information.
9180 . ${srcdir}/config.gcc
9181
9182 extra_objs="${host_extra_objs} ${extra_objs}"
9183 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9184
9185 # Default the target-machine variables that were not explicitly set.
9186 if test x"$tm_file" = x
9187 then tm_file=$cpu_type/$cpu_type.h; fi
9188
9189 if test x"$extra_headers" = x
9190 then extra_headers=; fi
9191
9192 if test x$md_file = x
9193 then md_file=$cpu_type/$cpu_type.md; fi
9194
9195 if test x$out_file = x
9196 then out_file=$cpu_type/$cpu_type.c; fi
9197
9198 if test x"$tmake_file" = x
9199 then tmake_file=$cpu_type/t-$cpu_type
9200 fi
9201
9202 if test x"$dwarf2" = xyes
9203 then tm_file="$tm_file tm-dwarf2.h"
9204 fi
9205
9206 # Say what files are being used for the output code and MD file.
9207 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9208 echo "Using \`$srcdir/config/$md_file' as machine description file."
9209
9210 # If any of the xm_file variables contain nonexistent files, warn
9211 # about them and drop them.
9212
9213 bx=
9214 for x in $build_xm_file; do
9215   if    test -f $srcdir/config/$x
9216   then      bx="$bx $x"
9217   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9218 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9219   fi
9220 done
9221 build_xm_file="$bx"
9222
9223 hx=
9224 for x in $host_xm_file; do
9225   if    test -f $srcdir/config/$x
9226   then      hx="$hx $x"
9227   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9228 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9229   fi
9230 done
9231 host_xm_file="$hx"
9232
9233 tx=
9234 for x in $xm_file; do
9235   if    test -f $srcdir/config/$x
9236   then      tx="$tx $x"
9237   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9238 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9239   fi
9240 done
9241 xm_file="$tx"
9242
9243 count=a
9244 for f in $tm_file; do
9245         count=${count}x
9246 done
9247 if test $count = ax; then
9248         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9249 else
9250         echo "Using the following target machine macro files:"
9251         for f in $tm_file; do
9252                 echo "  $srcdir/config/$f"
9253         done
9254 fi
9255
9256 if test x$need_64bit_hwint = xyes; then
9257
9258 cat >>confdefs.h <<\_ACEOF
9259 #define NEED_64BIT_HOST_WIDE_INT 1
9260 _ACEOF
9261
9262 fi
9263
9264 if test x$use_long_long_for_widest_fast_int = xyes; then
9265
9266 cat >>confdefs.h <<\_ACEOF
9267 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
9268 _ACEOF
9269
9270 fi
9271
9272 count=a
9273 for f in $host_xm_file; do
9274         count=${count}x
9275 done
9276 if test $count = a; then
9277         :
9278 elif test $count = ax; then
9279         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9280 else
9281         echo "Using the following host machine macro files:"
9282         for f in $host_xm_file; do
9283                 echo "  $srcdir/config/$f"
9284         done
9285 fi
9286 echo "Using ${out_host_hook_obj} for host machine hooks."
9287
9288 if test "$host_xm_file" != "$build_xm_file"; then
9289         count=a
9290         for f in $build_xm_file; do
9291                 count=${count}x
9292         done
9293         if test $count = a; then
9294                 :
9295         elif test $count = ax; then
9296                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9297         else
9298                 echo "Using the following build machine macro files:"
9299                 for f in $build_xm_file; do
9300                         echo "  $srcdir/config/$f"
9301                 done
9302         fi
9303 fi
9304
9305 # ---------
9306 # Threading
9307 # ---------
9308
9309 # Check if a valid thread package
9310 case ${enable_threads} in
9311   "" | no)
9312     # No threads
9313     target_thread_file='single'
9314     ;;
9315   yes)
9316     # default
9317     target_thread_file='single'
9318     ;;
9319   aix | dce | gnat | irix | posix | rtems | \
9320   single | solaris | vxworks | win32 )
9321     target_thread_file=${enable_threads}
9322     ;;
9323   *)
9324     echo "${enable_threads} is an unknown thread package" 1>&2
9325     exit 1
9326     ;;
9327 esac
9328
9329 if test x${thread_file} = x; then
9330   # No thread file set by target-specific clauses in config.gcc,
9331   # so use file chosen by default logic above
9332   thread_file=${target_thread_file}
9333 fi
9334
9335 # Make gthr-default.h if we have a thread file.
9336 gthread_flags=
9337 if test $thread_file != single; then
9338   rm -f gthr-default.h
9339   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9340   gthread_flags=-DHAVE_GTHR_DEFAULT
9341 fi
9342
9343
9344 # --------
9345 # UNSORTED
9346 # --------
9347
9348 if test x$enable___cxa_atexit = xyes || \
9349    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9350    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9351 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9352 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9353   echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355   cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9363 #define __cxa_atexit innocuous___cxa_atexit
9364
9365 /* System header to define __stub macros and hopefully few prototypes,
9366     which can conflict with char __cxa_atexit (); below.
9367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9368     <limits.h> exists even on freestanding compilers.  */
9369
9370 #ifdef __STDC__
9371 # include <limits.h>
9372 #else
9373 # include <assert.h>
9374 #endif
9375
9376 #undef __cxa_atexit
9377
9378 /* Override any gcc2 internal prototype to avoid an error.  */
9379 #ifdef __cplusplus
9380 extern "C"
9381 {
9382 #endif
9383 /* We use char because int might match the return type of a gcc2
9384    builtin and then its argument prototype would still apply.  */
9385 char __cxa_atexit ();
9386 /* The GNU C library defines this for functions which it implements
9387     to always fail with ENOSYS.  Some functions are actually named
9388     something starting with __ and the normal name is an alias.  */
9389 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9390 choke me
9391 #else
9392 char (*f) () = __cxa_atexit;
9393 #endif
9394 #ifdef __cplusplus
9395 }
9396 #endif
9397
9398 int
9399 main ()
9400 {
9401 return f != __cxa_atexit;
9402   ;
9403   return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408   (eval $ac_link) 2>conftest.er1
9409   ac_status=$?
9410   grep -v '^ *+' conftest.er1 >conftest.err
9411   rm -f conftest.er1
9412   cat conftest.err >&5
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -z "$ac_c_werror_flag"
9416                          || test ! -s conftest.err'
9417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; } &&
9422          { ac_try='test -s conftest$ac_exeext'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; }; then
9428   ac_cv_func___cxa_atexit=yes
9429 else
9430   echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433 ac_cv_func___cxa_atexit=no
9434 fi
9435 rm -f conftest.err conftest.$ac_objext \
9436       conftest$ac_exeext conftest.$ac_ext
9437 fi
9438 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9439 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9440 if test $ac_cv_func___cxa_atexit = yes; then
9441
9442 cat >>confdefs.h <<\_ACEOF
9443 #define DEFAULT_USE_CXA_ATEXIT 1
9444 _ACEOF
9445
9446 else
9447   echo "__cxa_atexit can't be enabled on this target"
9448 fi
9449
9450 fi
9451
9452 # Look for a file containing extra machine modes.
9453 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9454   extra_modes_file='$(srcdir)'/config/${extra_modes}
9455
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define EXTRA_MODES_FILE "config/$extra_modes"
9459 _ACEOF
9460
9461 fi
9462
9463 # auto-host.h is the file containing items generated by autoconf and is
9464 # the first file included by config.h.
9465 # If host=build, it is correct to have bconfig include auto-host.h
9466 # as well.  If host!=build, we are in error and need to do more
9467 # work to find out the build config parameters.
9468 if test x$host = x$build
9469 then
9470         build_auto=auto-host.h
9471 else
9472         # We create a subdir, then run autoconf in the subdir.
9473         # To prevent recursion we set host and build for the new
9474         # invocation of configure to the build for this invocation
9475         # of configure.
9476         tempdir=build.$$
9477         rm -rf $tempdir
9478         mkdir $tempdir
9479         cd $tempdir
9480         case ${srcdir} in
9481         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9482         *) realsrcdir=../${srcdir};;
9483         esac
9484         saved_CFLAGS="${CFLAGS}"
9485         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9486         ${realsrcdir}/configure \
9487                 --enable-languages=${enable_languages-all} \
9488                 --target=$target_alias --host=$build_alias --build=$build_alias
9489         CFLAGS="${saved_CFLAGS}"
9490
9491         # We just finished tests for the build machine, so rename
9492         # the file auto-build.h in the gcc directory.
9493         mv auto-host.h ../auto-build.h
9494         cd ..
9495         rm -rf $tempdir
9496         build_auto=auto-build.h
9497 fi
9498
9499
9500 tm_file="${tm_file} defaults.h"
9501 tm_p_file="${tm_p_file} tm-preds.h"
9502 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9503 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9504 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9505 # put this back in temporarily.
9506 xm_file="ansidecl.h ${xm_file}"
9507
9508 # --------
9509 # UNSORTED
9510 # --------
9511
9512 # Get the version trigger filename from the toplevel
9513 if test "${with_gcc_version_trigger+set}" = set; then
9514         gcc_version_trigger=$with_gcc_version_trigger
9515 else
9516         gcc_version_trigger=${srcdir}/version.c
9517 fi
9518 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9519 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9520
9521 # Compile in configure arguments.
9522 if test -f configargs.h ; then
9523         # Being re-configured.
9524         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9525         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9526 else
9527         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9528 fi
9529
9530 # Double all backslashes and backslash all quotes to turn
9531 # gcc_config_arguments into a C string.
9532 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9533 $gcc_config_arguments
9534 EOF
9535 gcc_config_arguments_str=`cat conftest.out`
9536 rm -f conftest.out
9537
9538 cat > configargs.h <<EOF
9539 /* Generated automatically. */
9540 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9541 static const char thread_model[] = "$thread_file";
9542
9543 static const struct {
9544   const char *name, *value;
9545 } configure_default_options[] = $configure_default_options;
9546 EOF
9547
9548 # Internationalization
9549 PACKAGE=gcc
9550 VERSION="$gcc_version"
9551
9552 cat >>confdefs.h <<_ACEOF
9553 #define PACKAGE "$PACKAGE"
9554 _ACEOF
9555
9556
9557
9558
9559 # If we haven't got the data from the intl directory,
9560 # assume NLS is disabled.
9561 USE_NLS=no
9562 LIBINTL=
9563 LIBINTL_DEP=
9564 INCINTL=
9565 XGETTEXT=
9566 GMSGFMT=
9567 POSUB=
9568 if test -f ../intl/config.intl; then
9569   . ../intl/config.intl
9570 fi
9571 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9572 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9573 if test x"$USE_NLS" != xyes; then
9574   echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6
9576 else
9577   echo "$as_me:$LINENO: result: yes" >&5
9578 echo "${ECHO_T}yes" >&6
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define ENABLE_NLS 1
9582 _ACEOF
9583
9584
9585   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9586 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9587   # Look for .po and .gmo files in the source directory.
9588   CATALOGS=
9589   XLINGUAS=
9590   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9591     # If there aren't any .gmo files the shell will give us the
9592     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9593     # weeded out.
9594     case "$cat" in *\**)
9595       continue;;
9596     esac
9597     # The quadruple backslash is collapsed to a double backslash
9598     # by the backticks, then collapsed again by the double quotes,
9599     # leaving us with one backslash in the sed expression (right
9600     # before the dot that mustn't act as a wildcard).
9601     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9602     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9603     # The user is allowed to set LINGUAS to a list of languages to
9604     # install catalogs for.  If it's empty that means "all of them."
9605     if test "x$LINGUAS" = x; then
9606       CATALOGS="$CATALOGS $cat"
9607       XLINGUAS="$XLINGUAS $lang"
9608     else
9609       case "$LINGUAS" in *$lang*)
9610         CATALOGS="$CATALOGS $cat"
9611         XLINGUAS="$XLINGUAS $lang"
9612         ;;
9613       esac
9614     fi
9615   done
9616   LINGUAS="$XLINGUAS"
9617   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9618 echo "${ECHO_T}$LINGUAS" >&6
9619 fi
9620
9621 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9622 # -liconv on the link line twice.
9623 case "$LIBINTL" in *$LIBICONV*)
9624         LIBICONV= ;;
9625 esac
9626
9627 # Windows32 Registry support for specifying GCC installation paths.
9628 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9629 if test "${enable_win32_registry+set}" = set; then
9630   enableval="$enable_win32_registry"
9631
9632 fi;
9633 case $host_os in
9634         win32 | pe | cygwin* | mingw32* | uwin*)
9635 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9636 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9637 if test "x$enable_win32_registry" != xno; then
9638
9639 cat >>confdefs.h <<\_ACEOF
9640 #define ENABLE_WIN32_REGISTRY 1
9641 _ACEOF
9642
9643   echo "$as_me:$LINENO: result: yes" >&5
9644 echo "${ECHO_T}yes" >&6
9645   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9646 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9647 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   ac_func_search_save_LIBS=$LIBS
9651 ac_cv_search_RegOpenKeyExA=no
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658
9659 /* Override any gcc2 internal prototype to avoid an error.  */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664    builtin and then its argument prototype would still apply.  */
9665 char RegOpenKeyExA ();
9666 int
9667 main ()
9668 {
9669 RegOpenKeyExA ();
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"
9684                          || test ! -s conftest.err'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_search_RegOpenKeyExA="none required"
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 fi
9702 rm -f conftest.err conftest.$ac_objext \
9703       conftest$ac_exeext conftest.$ac_ext
9704 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9705   for ac_lib in advapi32; do
9706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9707     cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713
9714 /* Override any gcc2 internal prototype to avoid an error.  */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 /* We use char because int might match the return type of a gcc2
9719    builtin and then its argument prototype would still apply.  */
9720 char RegOpenKeyExA ();
9721 int
9722 main ()
9723 {
9724 RegOpenKeyExA ();
9725   ;
9726   return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731   (eval $ac_link) 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag"
9739                          || test ! -s conftest.err'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; } &&
9745          { ac_try='test -s conftest$ac_exeext'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; }; then
9751   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9752 break
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 fi
9758 rm -f conftest.err conftest.$ac_objext \
9759       conftest$ac_exeext conftest.$ac_ext
9760   done
9761 fi
9762 LIBS=$ac_func_search_save_LIBS
9763 fi
9764 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9765 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9766 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9767   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9768
9769 fi
9770
9771 else
9772   echo "$as_me:$LINENO: result: no" >&5
9773 echo "${ECHO_T}no" >&6
9774 fi
9775
9776 # Check if user specified a different registry key.
9777 case "x${enable_win32_registry}" in
9778 x | xyes)
9779   # default.
9780   gcc_cv_win32_registry_key="$VERSION"
9781   ;;
9782 xno)
9783   # no registry lookup.
9784   gcc_cv_win32_registry_key=''
9785   ;;
9786 *)
9787   # user-specified key.
9788   gcc_cv_win32_registry_key="$enable_win32_registry"
9789   ;;
9790 esac
9791
9792 if test "x$enable_win32_registry" != xno; then
9793   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9794 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9795
9796 cat >>confdefs.h <<_ACEOF
9797 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9798 _ACEOF
9799
9800   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9801 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9802 fi
9803 ;;
9804 esac
9805
9806 # Get an absolute path to the GCC top-level source directory
9807 holddir=`${PWDCMD-pwd}`
9808 cd $srcdir
9809 topdir=`${PWDCMD-pwd}`
9810 cd $holddir
9811
9812 # Conditionalize the makefile for this host machine.
9813 xmake_file=
9814 for f in ${host_xmake_file}
9815 do
9816         if test -f ${srcdir}/config/$f
9817         then
9818                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9819         fi
9820 done
9821
9822 # Conditionalize the makefile for this target machine.
9823 tmake_file_=
9824 for f in ${tmake_file}
9825 do
9826         if test -f ${srcdir}/config/$f
9827         then
9828                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9829         fi
9830 done
9831 tmake_file="${tmake_file_}"
9832
9833 symbolic_link='ln -s'
9834
9835 # If the host doesn't support symlinks, modify CC in
9836 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9837 # Otherwise, we can use "CC=$(CC)".
9838 rm -f symtest.tem
9839 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9840 then
9841         cc_set_by_configure="\$(CC)"
9842         quoted_cc_set_by_configure="\$(CC)"
9843         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9844         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9845 else
9846         rm -f symtest.tem
9847         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9848         then
9849                 symbolic_link="cp -p"
9850         else
9851                 symbolic_link="cp"
9852         fi
9853         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9854         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9855         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9856         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9857 fi
9858 rm -f symtest.tem
9859
9860 out_object_file=`basename $out_file .c`.o
9861
9862 tm_file_list=
9863 tm_include_list=
9864 for f in $tm_file; do
9865   case $f in
9866     defaults.h )
9867        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9868        tm_include_list="${tm_include_list} $f"
9869        ;;
9870     * )
9871        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9872        tm_include_list="${tm_include_list} config/$f"
9873        ;;
9874   esac
9875 done
9876
9877 tm_p_file_list=
9878 tm_p_include_list=
9879 for f in $tm_p_file; do
9880   case $f in
9881     tm-preds.h )
9882        tm_p_file_list="${tm_p_file_list} $f"
9883        tm_p_include_list="${tm_p_include_list} $f"
9884        ;;
9885     * )
9886        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9887        tm_p_include_list="${tm_p_include_list} config/$f"
9888   esac
9889 done
9890
9891 xm_file_list=
9892 xm_include_list=
9893 for f in $xm_file; do
9894   case $f in
9895     ansidecl.h )
9896        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9897        xm_include_list="${xm_include_list} $f"
9898        ;;
9899     auto-host.h )
9900        xm_file_list="${xm_file_list} $f"
9901        xm_include_list="${xm_include_list} $f"
9902        ;;
9903     * )
9904        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9905        xm_include_list="${xm_include_list} config/$f"
9906        ;;
9907   esac
9908 done
9909
9910 host_xm_file_list=
9911 host_xm_include_list=
9912 for f in $host_xm_file; do
9913   case $f in
9914     ansidecl.h )
9915        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9916        host_xm_include_list="${host_xm_include_list} $f"
9917        ;;
9918     auto-host.h )
9919        host_xm_file_list="${host_xm_file_list} $f"
9920        host_xm_include_list="${host_xm_include_list} $f"
9921        ;;
9922     * )
9923        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9924        host_xm_include_list="${host_xm_include_list} config/$f"
9925        ;;
9926   esac
9927 done
9928
9929 build_xm_file_list=
9930 for f in $build_xm_file; do
9931   case $f in
9932     ansidecl.h )
9933        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9934        build_xm_include_list="${build_xm_include_list} $f"
9935        ;;
9936     auto-build.h | auto-host.h )
9937        build_xm_file_list="${build_xm_file_list} $f"
9938        build_xm_include_list="${build_xm_include_list} $f"
9939        ;;
9940     * )
9941        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9942        build_xm_include_list="${build_xm_include_list} config/$f"
9943        ;;
9944   esac
9945 done
9946
9947 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9948 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9949 CROSS=
9950 ALL=all.internal
9951 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9952 if test x$host != x$target
9953 then
9954         CROSS="-DCROSS_COMPILE"
9955         ALL=all.cross
9956         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9957         case "$host","$target" in
9958         # Darwin crosses can use the host system's libraries and headers,
9959         # because of the fat library support.  Of course, it must be the
9960         # same version of Darwin on both sides.  Allow the user to
9961         # just say --target=foo-darwin without a version number to mean
9962         # "the version on this system".
9963             *-*-darwin*,*-*-darwin*)
9964                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9965                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9966                 if test $hostos = $targetos -o $targetos = darwin ; then
9967                     CROSS=
9968                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9969                     with_headers=yes
9970                 fi
9971                 ;;
9972
9973             i?86-*-*,x86_64-*-* \
9974             | powerpc*-*-*,powerpc64*-*-*)
9975                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9976         esac
9977 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9978         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9979         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9980 fi
9981
9982 # If this is a cross-compiler that does not
9983 # have its own set of headers then define
9984 # inhibit_libc
9985
9986 # If this is using newlib, without having the headers available now,
9987 # then define inhibit_libc in LIBGCC2_CFLAGS.
9988 # This prevents libgcc2 from containing any code which requires libc
9989 # support.
9990 inhibit_libc=
9991 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9992        test x$with_newlib = xyes ; } &&
9993      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9994        inhibit_libc=-Dinhibit_libc
9995 fi
9996
9997
9998 # When building gcc with a cross-compiler, we need to adjust things so
9999 # that the generator programs are still built with the native compiler.
10000 # Also, we cannot run fixincludes or fix-header.
10001
10002 # These are the normal (build=host) settings:
10003 CC_FOR_BUILD='$(CC)'
10004 BUILD_CFLAGS='$(ALL_CFLAGS)'
10005 STMP_FIXINC=stmp-fixinc
10006
10007 # Possibly disable fixproto, on a per-target basis.
10008 case ${use_fixproto} in
10009   no)
10010     STMP_FIXPROTO=
10011     ;;
10012   yes)
10013     STMP_FIXPROTO=stmp-fixproto
10014     ;;
10015 esac
10016
10017
10018 # And these apply if build != host, or we are generating coverage data
10019 if test x$build != x$host || test "x$coverage_flags" != x
10020 then
10021     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10022
10023     if test "x$TARGET_SYSTEM_ROOT" = x; then
10024         STMP_FIXINC=
10025         STMP_FIXPROTO=
10026     fi
10027 fi
10028
10029 # When bootstrapping from the toplevel, only run fixincludes during stage1
10030 if test -d ../prev-gcc
10031 then
10032     STMP_FIXINC=
10033     cp -R ../prev-gcc/include include
10034 fi
10035
10036 # Expand extra_headers to include complete path.
10037 # This substitutes for lots of t-* files.
10038 extra_headers_list=
10039 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10040 for file in ${extra_headers} ; do
10041   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10042 done
10043
10044 # Define collect2 in Makefile.
10045 case $host_can_use_collect2 in
10046   no) collect2= ;;
10047   *) collect2='collect2$(exeext)' ;;
10048 esac
10049
10050
10051 # Add a definition of USE_COLLECT2 if system wants one.
10052 case $use_collect2 in
10053   no) use_collect2= ;;
10054   "") ;;
10055   *)
10056     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10057     xm_defines="${xm_defines} USE_COLLECT2"
10058     case $host_can_use_collect2 in
10059       no)
10060         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10061 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10062    { (exit 1); exit 1; }; }
10063         ;;
10064     esac
10065     ;;
10066 esac
10067
10068 # ---------------------------
10069 # Assembler & linker features
10070 # ---------------------------
10071
10072 # Identify the assembler which will work hand-in-glove with the newly
10073 # built GCC, so that we can examine its features.  This is the assembler
10074 # which will be driven by the driver program.
10075 #
10076 # If build != host, and we aren't building gas in-tree, we identify a
10077 # build->target assembler and hope that it will have the same features
10078 # as the host->target assembler we'll be using.
10079 echo "$as_me:$LINENO: checking what assembler to use" >&5
10080 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10081 in_tree_gas=no
10082 gcc_cv_as=
10083 gcc_cv_gas_major_version=
10084 gcc_cv_gas_minor_version=
10085 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10086 if test -x "$DEFAULT_ASSEMBLER"; then
10087         gcc_cv_as="$DEFAULT_ASSEMBLER"
10088 elif test -x as$host_exeext; then
10089         # Build using assembler in the current directory.
10090         gcc_cv_as=./as$host_exeext
10091 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10092      && test -f ../gas/Makefile \
10093      && test x$build = x$host; then
10094   # Single tree build which includes gas.  We want to prefer it
10095   # over whatever linker top-level may have detected, since
10096   # we'll use what we're building after installation anyway.
10097   in_tree_gas=yes
10098   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10099 for f in $gcc_cv_as_bfd_srcdir/configure \
10100          $gcc_cv_as_gas_srcdir/configure \
10101          $gcc_cv_as_gas_srcdir/configure.in \
10102          $gcc_cv_as_gas_srcdir/Makefile.in ; do
10103   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10104   if test x$gcc_cv_gas_version != x; then
10105     break
10106   fi
10107 done
10108 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10109 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10110 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10111 case $gcc_cv_gas_patch_version in
10112   "") gcc_cv_gas_patch_version="0" ;;
10113 esac
10114 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10115                             + $gcc_cv_gas_minor_version \) \* 1000 \
10116                             + $gcc_cv_gas_patch_version`
10117
10118   rm -f as$host_exeext
10119   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10120   in_tree_gas_is_elf=no
10121   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10122      || (grep 'obj_format = multi' ../gas/Makefile \
10123          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10124   then
10125     in_tree_gas_is_elf=yes
10126   fi
10127 elif test -x "$AS_FOR_TARGET"; then
10128         gcc_cv_as="$AS_FOR_TARGET"
10129 elif test -x "$AS" && test x$host = x$target; then
10130         gcc_cv_as="$AS"
10131 fi
10132
10133 if test "x$gcc_cv_as" = x; then
10134         # Search the same directories that the installed compiler will
10135         # search.  Else we may find the wrong assembler and lose.  If we
10136         # do not find a suitable assembler binary, then try the user's
10137         # path.
10138         #
10139         # Also note we have to check MD_EXEC_PREFIX before checking the
10140         # user's path.  Unfortunately, there is no good way to get at the
10141         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10142         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10143         # to be fixed as part of the make/configure rewrite too.
10144
10145         if test "x$exec_prefix" = xNONE; then
10146                 if test "x$prefix" = xNONE; then
10147                         test_prefix=/usr/local
10148                 else
10149                         test_prefix=$prefix
10150                 fi
10151         else
10152                 test_prefix=$exec_prefix
10153         fi
10154
10155         # If the loop below does not find an assembler, then use whatever
10156         # one we can find in the users's path.
10157         # user's path.
10158         if test "x$program_prefix" != xNONE; then
10159                 gcc_cv_as=${program_prefix}as$host_exeext
10160         else
10161                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10162         fi
10163
10164         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10165                    $test_prefix/libexec/gcc/$target_noncanonical \
10166                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10167                    /usr/lib/gcc/$target_noncanonical \
10168                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10169                    $test_prefix/$target_noncanonical/bin"
10170
10171         if test x$host = x$target; then
10172             test_dirs="$test_dirs \
10173                    /usr/libexec \
10174                    /usr/ccs/gcc \
10175                    /usr/ccs/bin \
10176                    /udk/usr/ccs/bin \
10177                    /bsd43/usr/lib/cmplrs/cc \
10178                    /usr/cross64/usr/bin \
10179                    /usr/lib/cmplrs/cc \
10180                    /sysv/usr/lib/cmplrs/cc \
10181                    /svr4/usr/lib/cmplrs/cc \
10182                    /usr/bin"
10183         fi
10184
10185         for dir in $test_dirs; do
10186                 if test -x $dir/as$host_exeext; then
10187                         gcc_cv_as=$dir/as$host_exeext
10188                         break;
10189                 fi
10190         done
10191 fi
10192 case $in_tree_gas in
10193   yes)
10194     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10195 echo "${ECHO_T}\"newly built gas\"" >&6
10196     ;;
10197   no)
10198     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10199 echo "${ECHO_T}$gcc_cv_as" >&6
10200     ;;
10201 esac
10202
10203 # Identify the linker which will work hand-in-glove with the newly
10204 # built GCC, so that we can examine its features.  This is the linker
10205 # which will be driven by the driver program.
10206 #
10207 # If build != host, and we aren't building gas in-tree, we identify a
10208 # build->target linker and hope that it will have the same features
10209 # as the host->target linker we'll be using.
10210 echo "$as_me:$LINENO: checking what linker to use" >&5
10211 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10212 in_tree_ld=no
10213 gcc_cv_ld=
10214 gcc_cv_gld_major_version=
10215 gcc_cv_gld_minor_version=
10216 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10217 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10218 if test -x "$DEFAULT_LINKER"; then
10219         gcc_cv_ld="$DEFAULT_LINKER"
10220 elif test -x collect-ld$host_exeext; then
10221         # Build using linker in the current directory.
10222         gcc_cv_ld=./collect-ld$host_exeext
10223 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10224      && test -f ../ld/Makefile \
10225      && test x$build = x$host; then
10226         # Single tree build which includes ld.  We want to prefer it
10227         # over whatever linker top-level may have detected, since
10228         # we'll use what we're building after installation anyway.
10229         in_tree_ld=yes
10230         in_tree_ld_is_elf=no
10231         if (grep 'EMUL = .*elf' ../ld/Makefile \
10232             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10233           in_tree_ld_is_elf=yes
10234         fi
10235         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
10236         do
10237                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10238                 if test x$gcc_cv_gld_version != x; then
10239                         break
10240                 fi
10241         done
10242         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10243         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10244         rm -f collect-ld$host_exeext
10245         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10246                 2>/dev/null
10247 elif test -x "$LD_FOR_TARGET"; then
10248         gcc_cv_ld="$LD_FOR_TARGET"
10249 elif test -x "$LD" && test x$host = x$target; then
10250         gcc_cv_ld="$LD"
10251 fi
10252
10253 if test "x$gcc_cv_ld" = x; then
10254         # Search the same directories that the installed compiler will
10255         # search.  Else we may find the wrong linker and lose.  If we
10256         # do not find a suitable linker binary, then try the user's
10257         # path.
10258         #
10259         # Also note we have to check MD_EXEC_PREFIX before checking the
10260         # user's path.  Unfortunately, there is no good way to get at the
10261         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10262         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10263         # to be fixed as part of the make/configure rewrite too.
10264
10265         if test "x$exec_prefix" = xNONE; then
10266                 if test "x$prefix" = xNONE; then
10267                         test_prefix=/usr/local
10268                 else
10269                         test_prefix=$prefix
10270                 fi
10271         else
10272                 test_prefix=$exec_prefix
10273         fi
10274
10275         # If the loop below does not find an linker, then use whatever
10276         # one we can find in the users's path.
10277         # user's path.
10278         if test "x$program_prefix" != xNONE; then
10279                 gcc_cv_ld=${program_prefix}ld$host_exeext
10280         else
10281                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10282         fi
10283
10284         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10285                    $test_prefix/libexec/gcc/$target_noncanonical \
10286                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10287                    /usr/lib/gcc/$target_noncanonical \
10288                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10289                    $test_prefix/$target_noncanonical/bin"
10290
10291         if test x$host = x$target; then
10292             test_dirs="$test_dirs \
10293                    /usr/libexec \
10294                    /usr/ccs/gcc \
10295                    /usr/ccs/bin \
10296                    /udk/usr/ccs/bin \
10297                    /bsd43/usr/lib/cmplrs/cc \
10298                    /usr/cross64/usr/bin \
10299                    /usr/lib/cmplrs/cc \
10300                    /sysv/usr/lib/cmplrs/cc \
10301                    /svr4/usr/lib/cmplrs/cc \
10302                    /usr/bin"
10303         fi
10304
10305         for dir in $test_dirs; do
10306                 if test -x $dir/ld$host_exeext; then
10307                         gcc_cv_ld=$dir/ld$host_exeext
10308                         break;
10309                 fi
10310         done
10311 fi
10312 case $in_tree_ld in
10313   yes)
10314     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10315 echo "${ECHO_T}\"newly built ld\"" >&6
10316     ;;
10317   no)
10318     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10319 echo "${ECHO_T}$gcc_cv_ld" >&6
10320     ;;
10321 esac
10322
10323 # Figure out what nm we will be using.
10324 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10325 echo "$as_me:$LINENO: checking what nm to use" >&5
10326 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10327 in_tree_nm=no
10328 if test -x nm$host_exeext; then
10329         gcc_cv_nm=./nm$host_exeext
10330 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10331      && test -f ../binutils/Makefile; then
10332         # Single tree build which includes binutils.
10333         in_tree_nm=yes
10334         gcc_cv_nm=./nm$host_exeext
10335         rm -f nm$host_exeext
10336         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10337 elif test "x$program_prefix" != xNONE; then
10338         gcc_cv_nm=${program_prefix}nm$host_exeext
10339 else
10340         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10341 fi
10342 case $in_tree_nm in
10343   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10344 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10345   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10346 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10347 esac
10348
10349 # Figure out what objdump we will be using.
10350 echo "$as_me:$LINENO: checking what objdump to use" >&5
10351 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10352 in_tree_objdump=no
10353 if test -x objdump$host_exeext; then
10354         gcc_cv_objdump=./objdump$host_exeext
10355 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10356      && test -f ../binutils/Makefile; then
10357         # Single tree build which includes binutils.
10358         in_tree_objdump=yes
10359         gcc_cv_objdump=./objdump$host_exeext
10360         rm -f objdump$host_exeext
10361         $symbolic_link ../binutils/objdump$host_exeext \
10362                 objdump$host_exeext 2>/dev/null
10363 elif test "x$program_prefix" != xNONE; then
10364         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10365 else
10366         gcc_cv_objdump=`echo objdump | \
10367                 sed "${program_transform_name}"`$host_exeext
10368 fi
10369 case $in_tree_objdump in
10370   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10371 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10372   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10373 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10374 esac
10375
10376 # Figure out what assembler alignment features are present.
10377 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10378 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10379 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382   gcc_cv_as_balign_and_p2align=no
10383     if test $in_tree_gas = yes; then
10384     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10385   then gcc_cv_as_balign_and_p2align=yes
10386 fi
10387   elif test x$gcc_cv_as != x; then
10388     echo '.balign 4
10389 .p2align 2' > conftest.s
10390     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392   (eval $ac_try) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; }
10396     then
10397         gcc_cv_as_balign_and_p2align=yes
10398     else
10399       echo "configure: failed program was" >&5
10400       cat conftest.s >&5
10401     fi
10402     rm -f conftest.o conftest.s
10403   fi
10404 fi
10405 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10406 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10407 if test $gcc_cv_as_balign_and_p2align = yes; then
10408
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10411 _ACEOF
10412
10413 fi
10414
10415 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10416 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10417 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   gcc_cv_as_max_skip_p2align=no
10421     if test $in_tree_gas = yes; then
10422     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10423   then gcc_cv_as_max_skip_p2align=yes
10424 fi
10425   elif test x$gcc_cv_as != x; then
10426     echo '.p2align 4,,7' > conftest.s
10427     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }
10433     then
10434         gcc_cv_as_max_skip_p2align=yes
10435     else
10436       echo "configure: failed program was" >&5
10437       cat conftest.s >&5
10438     fi
10439     rm -f conftest.o conftest.s
10440   fi
10441 fi
10442 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10443 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10444 if test $gcc_cv_as_max_skip_p2align = yes; then
10445
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10448 _ACEOF
10449
10450 fi
10451
10452 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10453 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10454 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   gcc_cv_as_subsection_m1=no
10458     if test $in_tree_gas = yes; then
10459     if test $in_tree_gas_is_elf = yes \
10460   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10461   then gcc_cv_as_subsection_m1=yes
10462 fi
10463   elif test x$gcc_cv_as != x; then
10464     echo 'conftest_label1: .word 0
10465 .subsection -1
10466 conftest_label2: .word 0
10467 .previous' > conftest.s
10468     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470   (eval $ac_try) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; }
10474     then
10475         if test x$gcc_cv_nm != x; then
10476     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10477     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10478     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10479     then :
10480     else gcc_cv_as_subsection_m1=yes
10481     fi
10482     rm -f conftest.nm1 conftest.nm2
10483   fi
10484     else
10485       echo "configure: failed program was" >&5
10486       cat conftest.s >&5
10487     fi
10488     rm -f conftest.o conftest.s
10489   fi
10490 fi
10491 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10492 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10493 if test $gcc_cv_as_subsection_m1 = yes; then
10494
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_GAS_SUBSECTION_ORDERING 1
10497 _ACEOF
10498
10499 fi
10500
10501 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10502 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10503 if test "${gcc_cv_as_weak+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   gcc_cv_as_weak=no
10507     if test $in_tree_gas = yes; then
10508     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10509   then gcc_cv_as_weak=yes
10510 fi
10511   elif test x$gcc_cv_as != x; then
10512     echo '      .weak foobar' > conftest.s
10513     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515   (eval $ac_try) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; }
10519     then
10520         gcc_cv_as_weak=yes
10521     else
10522       echo "configure: failed program was" >&5
10523       cat conftest.s >&5
10524     fi
10525     rm -f conftest.o conftest.s
10526   fi
10527 fi
10528 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10529 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10530 if test $gcc_cv_as_weak = yes; then
10531
10532 cat >>confdefs.h <<\_ACEOF
10533 #define HAVE_GAS_WEAK 1
10534 _ACEOF
10535
10536 fi
10537
10538 # .hidden needs to be supported in both the assembler and the linker,
10539 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10540 # This is irritatingly difficult to feature test for; we have to check the
10541 # date string after the version number.  If we've got an in-tree
10542 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10543 # to be safe.
10544 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10545 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10546 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10547 if test "${gcc_cv_as_hidden+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   gcc_cv_as_hidden=no
10551     if test $in_tree_gas = yes; then
10552     if test $in_tree_gas_is_elf = yes \
10553   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10554   then gcc_cv_as_hidden=yes
10555 fi
10556   elif test x$gcc_cv_as != x; then
10557     echo '      .hidden foobar
10558 foobar:' > conftest.s
10559     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }
10565     then
10566         gcc_cv_as_hidden=yes
10567     else
10568       echo "configure: failed program was" >&5
10569       cat conftest.s >&5
10570     fi
10571     rm -f conftest.o conftest.s
10572   fi
10573 fi
10574 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10575 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10576
10577
10578 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10579 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10580 if test "${gcc_cv_ld_hidden+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   if test $in_tree_ld = yes ; then
10584   gcc_cv_ld_hidden=no
10585   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
10586      && test $in_tree_ld_is_elf = yes; then
10587      gcc_cv_ld_hidden=yes
10588   fi
10589 else
10590   gcc_cv_ld_hidden=yes
10591   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10592   if echo "$ld_ver" | grep GNU > /dev/null; then
10593     ld_vers=`echo $ld_ver | sed -n \
10594         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10595         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10596         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10597         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10598         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10599         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10600     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
10601     if test 0"$ld_date" -lt 20020404; then
10602       if test -n "$ld_date"; then
10603         # If there was date string, but was earlier than 2002-04-04, fail
10604         gcc_cv_ld_hidden=no
10605       elif test -z "$ld_vers"; then
10606         # If there was no date string nor ld version number, something is wrong
10607         gcc_cv_ld_hidden=no
10608       else
10609         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10610         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10611         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10612         test -z "$ld_vers_patch" && ld_vers_patch=0
10613         if test "$ld_vers_major" -lt 2; then
10614           gcc_cv_ld_hidden=no
10615         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10616           gcc_cv_ld_hidden="no"
10617         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10618           gcc_cv_ld_hidden=no
10619         fi
10620       fi
10621     fi
10622   else
10623     case "${target}" in
10624       hppa64*-*-hpux* | ia64*-*-hpux*)
10625         gcc_cv_ld_hidden=yes
10626         ;;
10627       *)
10628         gcc_cv_ld_hidden=no
10629         ;;
10630     esac
10631   fi
10632 fi
10633 fi
10634 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10635 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10636 libgcc_visibility=no
10637
10638 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10639   libgcc_visibility=yes
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_GAS_HIDDEN 1
10643 _ACEOF
10644
10645 fi
10646
10647 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10648 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10649 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10650 if test "${gcc_cv_as_leb128+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   gcc_cv_as_leb128=no
10654     if test $in_tree_gas = yes; then
10655     if test $in_tree_gas_is_elf = yes \
10656   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10657   then gcc_cv_as_leb128=yes
10658 fi
10659   elif test x$gcc_cv_as != x; then
10660     echo '      .data
10661         .uleb128 L2 - L1
10662 L1:
10663         .uleb128 1280
10664         .sleb128 -1010
10665 L2:' > conftest.s
10666     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }
10672     then
10673         # GAS versions before 2.11 do not support uleb128,
10674   # despite appearing to.
10675   # ??? There exists an elf-specific test that will crash
10676   # the assembler.  Perhaps it's better to figure out whether
10677   # arbitrary sections are supported and try the test.
10678   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10679   if echo "$as_ver" | grep GNU > /dev/null; then
10680     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10681     as_major=`echo $as_ver | sed 's/\..*//'`
10682     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10683     if test $as_major -eq 2 && test $as_minor -lt 11
10684     then :
10685     else gcc_cv_as_leb128=yes
10686     fi
10687   fi
10688     else
10689       echo "configure: failed program was" >&5
10690       cat conftest.s >&5
10691     fi
10692     rm -f conftest.o conftest.s
10693   fi
10694 fi
10695 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10696 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10697 if test $gcc_cv_as_leb128 = yes; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_AS_LEB128 1
10701 _ACEOF
10702
10703 fi
10704
10705 # GAS versions up to and including 2.11.0 may mis-optimize
10706 # .eh_frame data.
10707 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10708 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10709 if test "${gcc_cv_as_eh_frame+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   gcc_cv_as_eh_frame=no
10713     if test $in_tree_gas = yes; then
10714     if test $in_tree_gas_is_elf = yes \
10715   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10716   then gcc_cv_as_eh_frame=yes
10717 fi
10718   elif test x$gcc_cv_as != x; then
10719     echo '      .text
10720 .LFB1:
10721         .4byte  0
10722 .L1:
10723         .4byte  0
10724 .LFE1:
10725         .section        .eh_frame,"aw",@progbits
10726 __FRAME_BEGIN__:
10727         .4byte  .LECIE1-.LSCIE1
10728 .LSCIE1:
10729         .4byte  0x0
10730         .byte   0x1
10731         .ascii "z\0"
10732         .byte   0x1
10733         .byte   0x78
10734         .byte   0x1a
10735         .byte   0x0
10736         .byte   0x4
10737         .4byte  1
10738         .p2align 1
10739 .LECIE1:
10740 .LSFDE1:
10741         .4byte  .LEFDE1-.LASFDE1
10742 .LASFDE1:
10743         .4byte  .LASFDE1-__FRAME_BEGIN__
10744         .4byte  .LFB1
10745         .4byte  .LFE1-.LFB1
10746         .byte   0x4
10747         .4byte  .LFE1-.LFB1
10748         .byte   0x4
10749         .4byte  .L1-.LFB1
10750 .LEFDE1:' > conftest.s
10751     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }
10757     then
10758           cat > conftest.lit <<EOF
10759  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10760  0010 01000000 12000000 18000000 00000000  ................
10761  0020 08000000 04080000 0044               .........D      
10762 EOF
10763 cat > conftest.big <<EOF
10764  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10765  0010 00000001 00000012 00000018 00000000  ................
10766  0020 00000008 04000000 0844               .........D      
10767 EOF
10768   # If the assembler didn't choke, and we can objdump,
10769   # and we got the correct data, then succeed.
10770   if test x$gcc_cv_objdump != x \
10771   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10772      | tail -3 > conftest.got \
10773   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10774     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10775   then
10776     gcc_cv_as_eh_frame=yes
10777   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; }; then
10783     gcc_cv_as_eh_frame=buggy
10784   else
10785     # Uh oh, what do we do now?
10786     gcc_cv_as_eh_frame=no
10787   fi
10788     else
10789       echo "configure: failed program was" >&5
10790       cat conftest.s >&5
10791     fi
10792     rm -f conftest.o conftest.s
10793   fi
10794 fi
10795 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10796 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10797
10798
10799 if test $gcc_cv_as_eh_frame = buggy; then
10800
10801 cat >>confdefs.h <<\_ACEOF
10802 #define USE_AS_TRADITIONAL_FORMAT 1
10803 _ACEOF
10804
10805 fi
10806
10807 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10808 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10809 if test "${gcc_cv_as_shf_merge+set}" = set; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812   gcc_cv_as_shf_merge=no
10813     if test $in_tree_gas = yes; then
10814     if test $in_tree_gas_is_elf = yes \
10815   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10816   then gcc_cv_as_shf_merge=yes
10817 fi
10818   elif test x$gcc_cv_as != x; then
10819     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10820     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }
10826     then
10827         gcc_cv_as_shf_merge=yes
10828     else
10829       echo "configure: failed program was" >&5
10830       cat conftest.s >&5
10831     fi
10832     rm -f conftest.o conftest.s
10833   fi
10834 fi
10835 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10836 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10837
10838
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10841 _ACEOF
10842
10843
10844 # Thread-local storage - the check is heavily parametrized.
10845 conftest_s=
10846 tls_first_major=
10847 tls_first_minor=
10848 tls_as_opt=
10849 case "$target" in
10850   alpha*-*-*)
10851     conftest_s='
10852         .section ".tdata","awT",@progbits
10853 foo:    .long   25
10854         .text
10855         ldq     $27,__tls_get_addr($29)         !literal!1
10856         lda     $16,foo($29)                    !tlsgd!1
10857         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10858         ldq     $27,__tls_get_addr($29)         !literal!2
10859         lda     $16,foo($29)                    !tlsldm!2
10860         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10861         ldq     $1,foo($29)                     !gotdtprel
10862         ldah    $2,foo($29)                     !dtprelhi
10863         lda     $3,foo($2)                      !dtprello
10864         lda     $4,foo($29)                     !dtprel
10865         ldq     $1,foo($29)                     !gottprel
10866         ldah    $2,foo($29)                     !tprelhi
10867         lda     $3,foo($2)                      !tprello
10868         lda     $4,foo($29)                     !tprel'
10869         tls_first_major=2
10870         tls_first_minor=13
10871         tls_as_opt=--fatal-warnings
10872         ;;
10873   i[34567]86-*-*)
10874     conftest_s='
10875         .section ".tdata","awT",@progbits
10876 foo:    .long   25
10877         .text
10878         movl    %gs:0, %eax
10879         leal    foo@TLSGD(,%ebx,1), %eax
10880         leal    foo@TLSLDM(%ebx), %eax
10881         leal    foo@DTPOFF(%eax), %edx
10882         movl    foo@GOTTPOFF(%ebx), %eax
10883         subl    foo@GOTTPOFF(%ebx), %eax
10884         addl    foo@GOTNTPOFF(%ebx), %eax
10885         movl    foo@INDNTPOFF, %eax
10886         movl    $foo@TPOFF, %eax
10887         subl    $foo@TPOFF, %eax
10888         leal    foo@NTPOFF(%ecx), %eax'
10889         tls_first_major=2
10890         tls_first_minor=14
10891         tls_as_opt=--fatal-warnings
10892         ;;
10893   x86_64-*-*)
10894     conftest_s='
10895         .section ".tdata","awT",@progbits
10896 foo:    .long   25
10897         .text
10898         movq    %fs:0, %rax
10899         leaq    foo@TLSGD(%rip), %rdi
10900         leaq    foo@TLSLD(%rip), %rdi
10901         leaq    foo@DTPOFF(%rax), %rdx
10902         movq    foo@GOTTPOFF(%rip), %rax
10903         movq    $foo@TPOFF, %rax'
10904         tls_first_major=2
10905         tls_first_minor=14
10906         tls_as_opt=--fatal-warnings
10907         ;;
10908   ia64-*-*)
10909     conftest_s='
10910         .section ".tdata","awT",@progbits
10911 foo:    data8   25
10912         .text
10913         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10914         addl    r17 = @ltoff(@dtprel(foo#)), gp
10915         addl    r18 = @ltoff(@tprel(foo#)), gp
10916         addl    r19 = @dtprel(foo#), gp
10917         adds    r21 = @dtprel(foo#), r13
10918         movl    r23 = @dtprel(foo#)
10919         addl    r20 = @tprel(foo#), gp
10920         adds    r22 = @tprel(foo#), r13
10921         movl    r24 = @tprel(foo#)'
10922         tls_first_major=2
10923         tls_first_minor=13
10924         tls_as_opt=--fatal-warnings
10925         ;;
10926   powerpc-*-*)
10927     conftest_s='
10928         .section ".tdata","awT",@progbits
10929         .align 2
10930 ld0:    .space 4
10931 ld1:    .space 4
10932 x1:     .space 4
10933 x2:     .space 4
10934 x3:     .space 4
10935         .text
10936         addi 3,31,ld0@got@tlsgd
10937         bl __tls_get_addr
10938         addi 3,31,x1@got@tlsld
10939         bl __tls_get_addr
10940         addi 9,3,x1@dtprel
10941         addis 9,3,x2@dtprel@ha
10942         addi 9,9,x2@dtprel@l
10943         lwz 9,x3@got@tprel(31)
10944         add 9,9,x@tls
10945         addi 9,2,x1@tprel
10946         addis 9,2,x2@tprel@ha
10947         addi 9,9,x2@tprel@l'
10948         tls_first_major=2
10949         tls_first_minor=14
10950         tls_as_opt="-a32 --fatal-warnings"
10951         ;;
10952   powerpc64-*-*)
10953     conftest_s='
10954         .section ".tdata","awT",@progbits
10955         .align 3
10956 ld0:    .space 8
10957 ld1:    .space 8
10958 x1:     .space 8
10959 x2:     .space 8
10960 x3:     .space 8
10961         .text
10962         addi 3,2,ld0@got@tlsgd
10963         bl .__tls_get_addr
10964         nop
10965         addi 3,2,ld1@toc
10966         bl .__tls_get_addr
10967         nop
10968         addi 3,2,x1@got@tlsld
10969         bl .__tls_get_addr
10970         nop
10971         addi 9,3,x1@dtprel
10972         bl .__tls_get_addr
10973         nop
10974         addis 9,3,x2@dtprel@ha
10975         addi 9,9,x2@dtprel@l
10976         bl .__tls_get_addr
10977         nop
10978         ld 9,x3@got@dtprel(2)
10979         add 9,9,3
10980         bl .__tls_get_addr
10981         nop'
10982         tls_first_major=2
10983         tls_first_minor=14
10984         tls_as_opt="-a64 --fatal-warnings"
10985         ;;
10986   s390-*-*)
10987     conftest_s='
10988         .section ".tdata","awT",@progbits
10989 foo:    .long   25
10990         .text
10991         .long   foo@TLSGD
10992         .long   foo@TLSLDM
10993         .long   foo@DTPOFF
10994         .long   foo@NTPOFF
10995         .long   foo@GOTNTPOFF
10996         .long   foo@INDNTPOFF
10997         l       %r1,foo@GOTNTPOFF(%r12)
10998         l       %r1,0(%r1):tls_load:foo
10999         bas     %r14,0(%r1,%r13):tls_gdcall:foo
11000         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
11001         tls_first_major=2
11002         tls_first_minor=14
11003         tls_as_opt="-m31 --fatal-warnings"
11004         ;;
11005   s390x-*-*)
11006     conftest_s='
11007         .section ".tdata","awT",@progbits
11008 foo:    .long   25
11009         .text
11010         .quad   foo@TLSGD
11011         .quad   foo@TLSLDM
11012         .quad   foo@DTPOFF
11013         .quad   foo@NTPOFF
11014         .quad   foo@GOTNTPOFF
11015         lg      %r1,foo@GOTNTPOFF(%r12)
11016         larl    %r1,foo@INDNTPOFF
11017         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
11018         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11019         tls_first_major=2
11020         tls_first_minor=14
11021         tls_as_opt="-m64 -Aesame --fatal-warnings"
11022         ;;
11023   sh-*-* | sh[34]-*-*)
11024     conftest_s='
11025         .section ".tdata","awT",@progbits
11026 foo:    .long   25
11027         .text
11028         .long   foo@TLSGD
11029         .long   foo@TLSLDM
11030         .long   foo@DTPOFF
11031         .long   foo@GOTTPOFF
11032         .long   foo@TPOFF'
11033         tls_first_major=2
11034         tls_first_minor=13
11035         tls_as_opt=--fatal-warnings
11036         ;;
11037   sparc*-*-*)
11038     case "$target" in
11039       sparc*-sun-solaris2.*)
11040         on_solaris=yes
11041         ;;
11042       *)
11043         on_solaris=no
11044         ;;
11045     esac
11046     if test x$on_solaris = xyes && test x$gas_flag = xno; then
11047       conftest_s='
11048         .section ".tdata",#alloc,#write,#tls
11049 foo:    .long   25
11050         .text
11051         sethi   %tgd_hi22(foo), %o0
11052         add     %o0, %tgd_lo10(foo), %o1
11053         add     %l7, %o1, %o0, %tgd_add(foo)
11054         call    __tls_get_addr, %tgd_call(foo)
11055         sethi   %tldm_hi22(foo), %l1
11056         add     %l1, %tldm_lo10(foo), %l2
11057         add     %l7, %l2, %o0, %tldm_add(foo)
11058         call    __tls_get_addr, %tldm_call(foo)
11059         sethi   %tldo_hix22(foo), %l3
11060         xor     %l3, %tldo_lox10(foo), %l4
11061         add     %o0, %l4, %l5, %tldo_add(foo)
11062         sethi   %tie_hi22(foo), %o3
11063         add     %o3, %tie_lo10(foo), %o3
11064         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11065         add     %g7, %o2, %o4, %tie_add(foo)
11066         sethi   %tle_hix22(foo), %l1
11067         xor     %l1, %tle_lox10(foo), %o5
11068         ld      [%g7 + %o5], %o1'
11069         tls_first_major=0
11070         tls_first_minor=0
11071     else
11072       conftest_s='
11073         .section ".tdata","awT",@progbits
11074 foo:    .long   25
11075         .text
11076         sethi   %tgd_hi22(foo), %o0
11077         add     %o0, %tgd_lo10(foo), %o1
11078         add     %l7, %o1, %o0, %tgd_add(foo)
11079         call    __tls_get_addr, %tgd_call(foo)
11080         sethi   %tldm_hi22(foo), %l1
11081         add     %l1, %tldm_lo10(foo), %l2
11082         add     %l7, %l2, %o0, %tldm_add(foo)
11083         call    __tls_get_addr, %tldm_call(foo)
11084         sethi   %tldo_hix22(foo), %l3
11085         xor     %l3, %tldo_lox10(foo), %l4
11086         add     %o0, %l4, %l5, %tldo_add(foo)
11087         sethi   %tie_hi22(foo), %o3
11088         add     %o3, %tie_lo10(foo), %o3
11089         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11090         add     %g7, %o2, %o4, %tie_add(foo)
11091         sethi   %tle_hix22(foo), %l1
11092         xor     %l1, %tle_lox10(foo), %o5
11093         ld      [%g7 + %o5], %o1'
11094         tls_first_major=2
11095         tls_first_minor=14
11096         tls_as_opt="-32 --fatal-warnings"
11097       fi
11098         ;;
11099 esac
11100 if test -z "$tls_first_major"; then
11101   : # If we don't have a check, assume no support.
11102 else
11103   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11104 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11105 if test "${gcc_cv_as_tls+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   gcc_cv_as_tls=no
11109     if test $in_tree_gas = yes; then
11110     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11111   then gcc_cv_as_tls=yes
11112 fi
11113   elif test x$gcc_cv_as != x; then
11114     echo "$conftest_s" > conftest.s
11115     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }
11121     then
11122         gcc_cv_as_tls=yes
11123     else
11124       echo "configure: failed program was" >&5
11125       cat conftest.s >&5
11126     fi
11127     rm -f conftest.o conftest.s
11128   fi
11129 fi
11130 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11131 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11132 if test $gcc_cv_as_tls = yes; then
11133
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_AS_TLS 1
11136 _ACEOF
11137
11138 fi
11139 fi
11140
11141 # Target-specific assembler checks.
11142
11143 if test x"$demangler_in_ld" = xyes; then
11144   echo "$as_me:$LINENO: checking linker --demangle support" >&5
11145 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11146   gcc_cv_ld_demangle=no
11147   if test $in_tree_ld = yes; then
11148     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 \
11149       gcc_cv_ld_demangle=yes
11150     fi
11151   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11152     # Check if the GNU linker supports --demangle option
11153     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11154       gcc_cv_ld_demangle=yes
11155     fi
11156   fi
11157   if test x"$gcc_cv_ld_demangle" = xyes; then
11158
11159 cat >>confdefs.h <<\_ACEOF
11160 #define HAVE_LD_DEMANGLE 1
11161 _ACEOF
11162
11163   fi
11164   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11165 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11166 fi
11167
11168 case "$target" in
11169   # All TARGET_ABI_OSF targets.
11170   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11171     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11172 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11173 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   gcc_cv_as_alpha_explicit_relocs=no
11177     if test $in_tree_gas = yes; then
11178     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11179   then gcc_cv_as_alpha_explicit_relocs=yes
11180 fi
11181   elif test x$gcc_cv_as != x; then
11182     echo '      .set nomacro
11183         .text
11184         extbl   $3, $2, $3      !lituse_bytoff!1
11185         ldq     $2, a($29)      !literal!1
11186         ldq     $4, b($29)      !literal!2
11187         ldq_u   $3, 0($2)       !lituse_base!1
11188         ldq     $27, f($29)     !literal!5
11189         jsr     $26, ($27), f   !lituse_jsr!5
11190         ldah    $29, 0($26)     !gpdisp!3
11191         lda     $0, c($29)      !gprel
11192         ldah    $1, d($29)      !gprelhigh
11193         lda     $1, d($1)       !gprellow
11194         lda     $29, 0($29)     !gpdisp!3' > 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         gcc_cv_as_alpha_explicit_relocs=yes
11203     else
11204       echo "configure: failed program was" >&5
11205       cat conftest.s >&5
11206     fi
11207     rm -f conftest.o conftest.s
11208   fi
11209 fi
11210 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11211 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11212 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11213
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_AS_EXPLICIT_RELOCS 1
11216 _ACEOF
11217
11218 fi
11219     ;;
11220
11221   cris-*-*)
11222     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11223 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11224 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11225   echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227   gcc_cv_as_cris_no_mul_bug=no
11228     if test $in_tree_gas = yes; then
11229     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11230   then gcc_cv_as_cris_no_mul_bug=yes
11231 fi
11232   elif test x$gcc_cv_as != x; then
11233     echo '.text' > conftest.s
11234     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }
11240     then
11241         gcc_cv_as_cris_no_mul_bug=yes
11242     else
11243       echo "configure: failed program was" >&5
11244       cat conftest.s >&5
11245     fi
11246     rm -f conftest.o conftest.s
11247   fi
11248 fi
11249 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11250 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11251 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11252
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11255 _ACEOF
11256
11257 fi
11258     ;;
11259
11260   sparc*-*-*)
11261     echo "$as_me:$LINENO: checking assembler for .register" >&5
11262 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11263 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   gcc_cv_as_sparc_register_op=no
11267   if test x$gcc_cv_as != x; then
11268     echo '.register %g2, #scratch' > conftest.s
11269     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }
11275     then
11276         gcc_cv_as_sparc_register_op=yes
11277     else
11278       echo "configure: failed program was" >&5
11279       cat conftest.s >&5
11280     fi
11281     rm -f conftest.o conftest.s
11282   fi
11283 fi
11284 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11285 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11286 if test $gcc_cv_as_sparc_register_op = yes; then
11287
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11290 _ACEOF
11291
11292 fi
11293
11294     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11295 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11296 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   gcc_cv_as_sparc_relax=no
11300   if test x$gcc_cv_as != x; then
11301     echo '.text' > conftest.s
11302     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304   (eval $ac_try) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }
11308     then
11309         gcc_cv_as_sparc_relax=yes
11310     else
11311       echo "configure: failed program was" >&5
11312       cat conftest.s >&5
11313     fi
11314     rm -f conftest.o conftest.s
11315   fi
11316 fi
11317 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11318 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11319 if test $gcc_cv_as_sparc_relax = yes; then
11320
11321 cat >>confdefs.h <<\_ACEOF
11322 #define HAVE_AS_RELAX_OPTION 1
11323 _ACEOF
11324
11325 fi
11326
11327     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11328 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11329 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332   gcc_cv_as_sparc_ua_pcrel=no
11333   if test x$gcc_cv_as != x; then
11334     echo '.text
11335 foo:
11336         nop
11337 .data
11338 .align 4
11339 .byte 0
11340 .uaword %r_disp32(foo)' > conftest.s
11341     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343   (eval $ac_try) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; }
11347     then
11348         if test x$gcc_cv_ld != x \
11349        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11350          gcc_cv_as_sparc_ua_pcrel=yes
11351        fi
11352        rm -f conftest
11353     else
11354       echo "configure: failed program was" >&5
11355       cat conftest.s >&5
11356     fi
11357     rm -f conftest.o conftest.s
11358   fi
11359 fi
11360 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11361 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11362 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11363
11364 cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_AS_SPARC_UA_PCREL 1
11366 _ACEOF
11367
11368
11369       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11370 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11371 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   gcc_cv_as_sparc_ua_pcrel_hidden=no
11375   if test x$gcc_cv_as != x; then
11376     echo '.data
11377 .align 4
11378 .byte 0x31
11379 .uaword %r_disp32(foo)
11380 .byte 0x32, 0x33, 0x34
11381 .global foo
11382 .hidden foo
11383 foo:
11384 .skip 4' > conftest.s
11385     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; }
11391     then
11392         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11393          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11394          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11395             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11396             if $gcc_cv_objdump -R conftest 2> /dev/null \
11397                | grep 'DISP32' > /dev/null 2>&1; then
11398                 :
11399             else
11400                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11401             fi
11402          fi
11403          rm -f conftest
11404     else
11405       echo "configure: failed program was" >&5
11406       cat conftest.s >&5
11407     fi
11408     rm -f conftest.o conftest.s
11409   fi
11410 fi
11411 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11412 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11413 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11414
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11417 _ACEOF
11418
11419 fi
11420
11421 fi # unaligned pcrel relocs
11422
11423     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11424 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11425 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   gcc_cv_as_sparc_offsetable_lo10=no
11429   if test x$gcc_cv_as != x; then
11430     echo '.text
11431         or %g1, %lo(ab) + 12, %g1
11432         or %g1, %lo(ab + 12), %g1' > conftest.s
11433     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435   (eval $ac_try) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }
11439     then
11440         if test x$gcc_cv_objdump != x \
11441        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11442           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11443          gcc_cv_as_offsetable_lo10=yes
11444        fi
11445     else
11446       echo "configure: failed program was" >&5
11447       cat conftest.s >&5
11448     fi
11449     rm -f conftest.o conftest.s
11450   fi
11451 fi
11452 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11453 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11454 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11455
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_AS_OFFSETABLE_LO10 1
11458 _ACEOF
11459
11460 fi
11461     ;;
11462
11463   i[34567]86-*-* | x86_64-*-*)
11464     case $target_os in
11465       cygwin* | pe | mingw32*)
11466         # Used for DWARF 2 in PE
11467         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11468 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11469 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   gcc_cv_as_ix86_pe_secrel32=no
11473     if test $in_tree_gas = yes; then
11474     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11475   then gcc_cv_as_ix86_pe_secrel32=yes
11476 fi
11477   elif test x$gcc_cv_as != x; then
11478     echo '.text
11479 foo:    nop
11480 .data
11481         .secrel32 foo' > conftest.s
11482     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; }
11488     then
11489         if test x$gcc_cv_ld != x \
11490            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11491              gcc_cv_as_ix86_pe_secrel32=yes
11492            fi
11493            rm -f conftest
11494     else
11495       echo "configure: failed program was" >&5
11496       cat conftest.s >&5
11497     fi
11498     rm -f conftest.o conftest.s
11499   fi
11500 fi
11501 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11502 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11503 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_GAS_PE_SECREL32_RELOC 1
11507 _ACEOF
11508
11509 fi
11510         ;;
11511     esac
11512
11513     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11514 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11515 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   gcc_cv_as_ix86_filds_fists=no
11519     if test $in_tree_gas = yes; then
11520     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11521   then gcc_cv_as_ix86_filds_fists=yes
11522 fi
11523   elif test x$gcc_cv_as != x; then
11524     echo 'filds mem; fists mem' > conftest.s
11525     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527   (eval $ac_try) 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; }
11531     then
11532         gcc_cv_as_ix86_filds_fists=yes
11533     else
11534       echo "configure: failed program was" >&5
11535       cat conftest.s >&5
11536     fi
11537     rm -f conftest.o conftest.s
11538   fi
11539 fi
11540 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11541 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11542 if test $gcc_cv_as_ix86_filds_fists = yes; then
11543
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_GAS_FILDS_FISTS 1
11546 _ACEOF
11547
11548 fi
11549
11550     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11551 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11552 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   gcc_cv_as_ix86_cmov_sun_syntax=no
11556   if test x$gcc_cv_as != x; then
11557     echo 'cmovl.l %edx, %eax' > conftest.s
11558     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560   (eval $ac_try) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); }; }
11564     then
11565         gcc_cv_as_ix86_cmov_sun_syntax=yes
11566     else
11567       echo "configure: failed program was" >&5
11568       cat conftest.s >&5
11569     fi
11570     rm -f conftest.o conftest.s
11571   fi
11572 fi
11573 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11574 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11575 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11576
11577 cat >>confdefs.h <<\_ACEOF
11578 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11579 _ACEOF
11580
11581 fi
11582
11583     # This one is used unconditionally by i386.[ch]; it is to be defined
11584     # to 1 if the feature is present, 0 otherwise.
11585     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11586 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11587 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11588   echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590   gcc_cv_as_ix86_gotoff_in_data=no
11591     if test $in_tree_gas = yes; then
11592     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11593   then gcc_cv_as_ix86_gotoff_in_data=yes
11594 fi
11595   elif test x$gcc_cv_as != x; then
11596     echo '      .text
11597 .L0:
11598         nop
11599         .data
11600         .long .L0@GOTOFF' > conftest.s
11601     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; }
11607     then
11608         gcc_cv_as_ix86_gotoff_in_data=yes
11609     else
11610       echo "configure: failed program was" >&5
11611       cat conftest.s >&5
11612     fi
11613     rm -f conftest.o conftest.s
11614   fi
11615 fi
11616 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11617 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11618
11619
11620 cat >>confdefs.h <<_ACEOF
11621 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11622 _ACEOF
11623
11624     ;;
11625
11626   ia64*-*-*)
11627     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11628 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11629 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11633     if test $in_tree_gas = yes; then
11634     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11635   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11636 fi
11637   elif test x$gcc_cv_as != x; then
11638     echo '      .text
11639         addl r15 = @ltoffx(x#), gp
11640         ;;
11641         ld8.mov r16 = [r15], x#' > conftest.s
11642     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }
11648     then
11649         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11650     else
11651       echo "configure: failed program was" >&5
11652       cat conftest.s >&5
11653     fi
11654     rm -f conftest.o conftest.s
11655   fi
11656 fi
11657 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11658 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11659 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11660
11661 cat >>confdefs.h <<\_ACEOF
11662 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11663 _ACEOF
11664
11665 fi
11666
11667     ;;
11668
11669   powerpc*-*-*)
11670     case $target in
11671       *-*-aix*) conftest_s='    .csect .text[PR]
11672         mfcr 3,128';;
11673       *-*-darwin*) conftest_s=' .text
11674         mfcr r3,128';;
11675       *)       conftest_s='     .text
11676         mfcr 3,128';;
11677     esac
11678
11679     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11680 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11681 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   gcc_cv_as_powerpc_mfcrf=no
11685     if test $in_tree_gas = yes; then
11686     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11687   then gcc_cv_as_powerpc_mfcrf=yes
11688 fi
11689   elif test x$gcc_cv_as != x; then
11690     echo "$conftest_s" > conftest.s
11691     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693   (eval $ac_try) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; }
11697     then
11698         gcc_cv_as_powerpc_mfcrf=yes
11699     else
11700       echo "configure: failed program was" >&5
11701       cat conftest.s >&5
11702     fi
11703     rm -f conftest.o conftest.s
11704   fi
11705 fi
11706 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11707 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11708 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11709
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_AS_MFCRF 1
11712 _ACEOF
11713
11714 fi
11715     ;;
11716
11717   mips*-*-*)
11718     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11719 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11720 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   gcc_cv_as_mips_explicit_relocs=no
11724     if test $in_tree_gas = yes; then
11725     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11726   then gcc_cv_as_mips_explicit_relocs=yes
11727 fi
11728   elif test x$gcc_cv_as != x; then
11729     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11730     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }
11736     then
11737         gcc_cv_as_mips_explicit_relocs=yes
11738     else
11739       echo "configure: failed program was" >&5
11740       cat conftest.s >&5
11741     fi
11742     rm -f conftest.o conftest.s
11743   fi
11744 fi
11745 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11746 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11747 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11748   if test x$target_cpu_default = x
11749        then target_cpu_default=MASK_EXPLICIT_RELOCS
11750        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11751        fi
11752 fi
11753
11754     if test x$gas_flag = xyes \
11755        || test x"$host" != x"$build" \
11756        || test ! -x "$gcc_cv_as" \
11757        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11758       :
11759     else
11760       echo "*** This configuration requires the GNU assembler" >&2
11761       exit 1
11762     fi
11763     ;;
11764 esac
11765 # ??? Not all targets support dwarf2 debug_line, even within a version
11766 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11767 # info to the output file.  So, as supported targets are added to gas 2.11,
11768 # add some instruction here to (also) show we expect this might work.
11769 # ??? Once 2.11 is released, probably need to add first known working
11770 # version to the per-target configury.
11771 case "$target" in
11772   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11773   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11774   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11775     insn="nop"
11776     ;;
11777   ia64*-*-* | s390*-*-*)
11778     insn="nop 0"
11779     ;;
11780   mmix-*-*)
11781     insn="swym 0"
11782     ;;
11783 esac
11784 if test x"$insn" != x; then
11785  conftest_s="\
11786         .file 1 \"conftest.s\"
11787         .loc 1 3 0
11788         $insn"
11789  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11790 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11791 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11792   echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794   gcc_cv_as_dwarf2_debug_line=no
11795     if test $in_tree_gas = yes; then
11796     if test $in_tree_gas_is_elf = yes \
11797   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11798   then gcc_cv_as_dwarf2_debug_line=yes
11799 fi
11800   elif test x$gcc_cv_as != x; then
11801     echo "$conftest_s" > conftest.s
11802     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804   (eval $ac_try) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; }
11808     then
11809         # ??? This fails with non-gnu grep.  Maybe use objdump?
11810    if grep debug_line conftest.o > /dev/null 2>&1; then
11811      gcc_cv_as_dwarf2_debug_line=yes
11812    fi
11813     else
11814       echo "configure: failed program was" >&5
11815       cat conftest.s >&5
11816     fi
11817     rm -f conftest.o conftest.s
11818   fi
11819 fi
11820 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11821 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11822
11823
11824 # The .debug_line file table must be in the exact order that
11825 # we specified the files, since these indices are also used
11826 # by DW_AT_decl_file.  Approximate this test by testing if
11827 # the assembler bitches if the same index is assigned twice.
11828  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11829 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11830 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11831   echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833   gcc_cv_as_dwarf2_file_buggy=no
11834   if test x$gcc_cv_as != x; then
11835     echo '      .file 1 "foo.s"
11836         .file 1 "bar.s"' > conftest.s
11837     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; }
11843     then
11844         gcc_cv_as_dwarf2_file_buggy=yes
11845     else
11846       echo "configure: failed program was" >&5
11847       cat conftest.s >&5
11848     fi
11849     rm -f conftest.o conftest.s
11850   fi
11851 fi
11852 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11853 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11854
11855
11856  if test $gcc_cv_as_dwarf2_debug_line = yes \
11857  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11858
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11861 _ACEOF
11862
11863  fi
11864
11865  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11866 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11867 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   gcc_cv_as_gdwarf2_flag=no
11871     if test $in_tree_gas = yes; then
11872     if test $in_tree_gas_is_elf = yes \
11873   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11874   then gcc_cv_as_gdwarf2_flag=yes
11875 fi
11876   elif test x$gcc_cv_as != x; then
11877     echo "$insn" > conftest.s
11878     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }
11884     then
11885         gcc_cv_as_gdwarf2_flag=yes
11886     else
11887       echo "configure: failed program was" >&5
11888       cat conftest.s >&5
11889     fi
11890     rm -f conftest.o conftest.s
11891   fi
11892 fi
11893 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11894 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11895 if test $gcc_cv_as_gdwarf2_flag = yes; then
11896
11897 cat >>confdefs.h <<\_ACEOF
11898 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11899 _ACEOF
11900
11901 fi
11902
11903  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11904 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11905 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   gcc_cv_as_gstabs_flag=no
11909     if test $in_tree_gas = yes; then
11910     if test $in_tree_gas_is_elf = yes \
11911   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11912   then gcc_cv_as_gstabs_flag=yes
11913 fi
11914   elif test x$gcc_cv_as != x; then
11915     echo "$insn" > conftest.s
11916     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }
11922     then
11923         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11924    # and warns about it, but still exits successfully.  So check for
11925    # this.
11926    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }
11932    then :
11933    else gcc_cv_as_gstabs_flag=yes
11934    fi
11935     else
11936       echo "configure: failed program was" >&5
11937       cat conftest.s >&5
11938     fi
11939     rm -f conftest.o conftest.s
11940   fi
11941 fi
11942 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11943 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11944 if test $gcc_cv_as_gstabs_flag = yes; then
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11948 _ACEOF
11949
11950 fi
11951 fi
11952
11953 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11954 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11955 gcc_cv_ld_ro_rw_mix=unknown
11956 if test $in_tree_ld = yes ; then
11957   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 \
11958      && test $in_tree_ld_is_elf = yes; then
11959     gcc_cv_ld_ro_rw_mix=read-write
11960   fi
11961 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11962   echo '.section myfoosect, "a"' > conftest1.s
11963   echo '.section myfoosect, "aw"' > conftest2.s
11964   echo '.byte 1' >> conftest2.s
11965   echo '.section myfoosect, "a"' > conftest3.s
11966   echo '.byte 0' >> conftest3.s
11967   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11968      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11969      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11970      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11971         conftest2.o conftest3.o > /dev/null 2>&1; then
11972     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11973                          | sed -e '/myfoosect/!d' -e N`
11974     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11975       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11976         gcc_cv_ld_ro_rw_mix=read-only
11977       else
11978         gcc_cv_ld_ro_rw_mix=read-write
11979       fi
11980     fi
11981   fi
11982   rm -f conftest.* conftest[123].*
11983 fi
11984 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11985
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11988 _ACEOF
11989
11990 fi
11991 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11992 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11993
11994 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11995 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11996 gcc_cv_ld_eh_frame_hdr=no
11997 if test $in_tree_ld = yes ; then
11998   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 \
11999      && test $in_tree_ld_is_elf = yes; then
12000     gcc_cv_ld_eh_frame_hdr=yes
12001   fi
12002 elif test x$gcc_cv_ld != x; then
12003         # Check if linker supports --eh-frame-hdr option
12004         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12005                 gcc_cv_ld_eh_frame_hdr=yes
12006         fi
12007 fi
12008 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12009
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_LD_EH_FRAME_HDR 1
12012 _ACEOF
12013
12014 fi
12015 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12016 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12017
12018 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12019 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12020 gcc_cv_ld_pie=no
12021 if test $in_tree_ld = yes ; then
12022   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 \
12023      && test $in_tree_ld_is_elf = yes; then
12024     gcc_cv_ld_pie=yes
12025   fi
12026 elif test x$gcc_cv_ld != x; then
12027         # Check if linker supports -pie option
12028         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12029                 gcc_cv_ld_pie=yes
12030         fi
12031 fi
12032 if test x"$gcc_cv_ld_pie" = xyes; then
12033
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_LD_PIE 1
12036 _ACEOF
12037
12038 fi
12039 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12040 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12041
12042 # --------
12043 # UNSORTED
12044 # --------
12045
12046 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12047 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12048 if test "${gcc_cv_ld_as_needed+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   gcc_cv_ld_as_needed=no
12052 if test $in_tree_ld = yes ; then
12053   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 \
12054      && test $in_tree_ld_is_elf = yes; then
12055     gcc_cv_ld_as_needed=yes
12056   fi
12057 elif test x$gcc_cv_ld != x; then
12058         # Check if linker supports --as-needed and --no-as-needed options
12059         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12060                 gcc_cv_ld_as_needed=yes
12061         fi
12062 fi
12063
12064 fi
12065 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12066 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12067 if test x"$gcc_cv_ld_as_needed" = xyes; then
12068
12069 cat >>confdefs.h <<\_ACEOF
12070 #define HAVE_LD_AS_NEEDED 1
12071 _ACEOF
12072
12073 fi
12074
12075 case "$target" in
12076   powerpc64*-*-linux*)
12077     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12078 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12079 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   gcc_cv_ld_no_dot_syms=no
12083     if test $in_tree_ld = yes ; then
12084       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12085         gcc_cv_ld_no_dot_syms=yes
12086       fi
12087     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12088       cat > conftest1.s <<EOF
12089         .text
12090         bl .foo
12091 EOF
12092       cat > conftest2.s <<EOF
12093         .section ".opd","aw"
12094         .align 3
12095         .globl foo
12096         .type foo,@function
12097 foo:
12098         .quad .LEfoo,.TOC.@tocbase,0
12099         .text
12100 .LEfoo:
12101         blr
12102         .size foo,.-.LEfoo
12103 EOF
12104       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12105          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12106          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12107         gcc_cv_ld_no_dot_syms=yes
12108       fi
12109       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12110     fi
12111
12112 fi
12113 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12114 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12115     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12116
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_LD_NO_DOT_SYMS 1
12119 _ACEOF
12120
12121     fi
12122     ;;
12123 esac
12124
12125 if test x$with_sysroot = x && test x$host = x$target \
12126    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12127
12128 cat >>confdefs.h <<_ACEOF
12129 #define PREFIX_INCLUDE_DIR "$prefix/include"
12130 _ACEOF
12131
12132 fi
12133
12134 # Find out what GC implementation we want, or may, use.
12135
12136 # Check whether --with-gc or --without-gc was given.
12137 if test "${with_gc+set}" = set; then
12138   withval="$with_gc"
12139   case "$withval" in
12140   page | zone)
12141     GGC=ggc-$withval
12142     ;;
12143   *)
12144     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12145 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12146    { (exit 1); exit 1; }; }
12147     ;;
12148 esac
12149 else
12150   GGC=ggc-page
12151 fi;
12152
12153 echo "Using $GGC for garbage collection."
12154
12155 # Use the system's zlib library.
12156 zlibdir=-L../zlib
12157 zlibinc="-I\$(srcdir)/../zlib"
12158
12159 # Check whether --with-system-zlib or --without-system-zlib was given.
12160 if test "${with_system_zlib+set}" = set; then
12161   withval="$with_system_zlib"
12162   zlibdir=
12163 zlibinc=
12164
12165 fi;
12166
12167
12168
12169
12170 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12171 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12172     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12173 if test "${enable_maintainer_mode+set}" = set; then
12174   enableval="$enable_maintainer_mode"
12175   maintainer_mode=$enableval
12176 else
12177   maintainer_mode=no
12178 fi;
12179
12180 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12181 echo "${ECHO_T}$maintainer_mode" >&6
12182
12183 if test "$maintainer_mode" = "yes"; then
12184   MAINT=''
12185 else
12186   MAINT='#'
12187 fi
12188
12189 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12190 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12191
12192 # Check whether --with-libbanshee or --without-libbanshee was given.
12193 if test "${with_libbanshee+set}" = set; then
12194   withval="$with_libbanshee"
12195   libbanshee="$with_libbanshee"
12196 else
12197   libbanshee=no
12198 fi;
12199
12200 if test x"$libbanshee" = xyes; then
12201         BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12202         BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12203         ANDER="tree-alias-ander.o"
12204
12205 cat >>confdefs.h <<\_ACEOF
12206 #define HAVE_BANSHEE 1
12207 _ACEOF
12208
12209 else
12210         BANSHEELIB=""
12211         BANSHEEINC=""
12212         ANDER=""
12213 fi
12214 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12215 echo "${ECHO_T}$with_libbanshee" >&6
12216
12217
12218
12219
12220
12221 # --------------
12222 # Language hooks
12223 # --------------
12224
12225 # Make empty files to contain the specs and options for each language.
12226 # Then add #include lines to for a compiler that has specs and/or options.
12227
12228 lang_opt_files=
12229 lang_specs_files=
12230 lang_tree_files=
12231 for subdir in . $subdirs
12232 do
12233         if test -f $srcdir/$subdir/lang.opt; then
12234             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12235         fi
12236         if test -f $srcdir/$subdir/lang-specs.h; then
12237             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12238         fi
12239         if test -f $srcdir/$subdir/$subdir-tree.def; then
12240             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12241         fi
12242 done
12243
12244 # These (without "all_") are set in each config-lang.in.
12245 # `language' must be a single word so is spelled singularly.
12246 all_languages=
12247 all_boot_languages=
12248 all_compilers=
12249 all_stagestuff=
12250 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
12251 # List of language makefile fragments.
12252 all_lang_makefrags=
12253 # List of language subdirectory makefiles.  Deprecated.
12254 all_lang_makefiles=
12255 # Files for gengtype
12256 all_gtfiles="$target_gtfiles"
12257 # Files for gengtype with language
12258 all_gtfiles_files_langs=
12259 all_gtfiles_files_files=
12260
12261 # Add the language fragments.
12262 # Languages are added via two mechanisms.  Some information must be
12263 # recorded in makefile variables, these are defined in config-lang.in.
12264 # We accumulate them and plug them into the main Makefile.
12265 # The other mechanism is a set of hooks for each of the main targets
12266 # like `clean', `install', etc.
12267
12268 language_hooks="Make-hooks"
12269
12270 for s in $subdirs
12271 do
12272                 language=
12273                 boot_language=
12274                 compilers=
12275                 stagestuff=
12276                 outputs=
12277                 gtfiles=
12278                 . ${srcdir}/$s/config-lang.in
12279                 if test "x$language" = x
12280                 then
12281                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12282                         exit 1
12283                 fi
12284                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12285                 if test -f ${srcdir}/$s/Makefile.in
12286                 then all_lang_makefiles="$s/Makefile"
12287                 fi
12288                 all_languages="$all_languages $language"
12289                 if test "x$boot_language" = xyes
12290                 then
12291                         all_boot_languages="$all_boot_languages $language"
12292                 fi
12293                 all_compilers="$all_compilers $compilers"
12294                 all_stagestuff="$all_stagestuff $stagestuff"
12295                 all_outputs="$all_outputs $outputs"
12296                 all_gtfiles="$all_gtfiles $gtfiles"
12297                 for f in $gtfiles
12298                 do
12299                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12300                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12301                 done
12302 done
12303
12304 # Pick up gtfiles for c
12305 gtfiles=
12306 s="c"
12307 . ${srcdir}/c-config-lang.in
12308 all_gtfiles="$all_gtfiles $gtfiles"
12309 for f in $gtfiles
12310 do
12311         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12312         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12313 done
12314
12315 check_languages=
12316 for language in $all_languages
12317 do
12318                 check_languages="$check_languages check-$language"
12319 done
12320
12321 # We link each language in with a set of hooks, reached indirectly via
12322 # lang.${target}.
12323
12324 rm -f Make-hooks
12325 touch Make-hooks
12326 target_list="all.build all.cross start.encap rest.encap tags \
12327         install-normal install-common install-man \
12328         uninstall info man srcextra srcman srcinfo \
12329         mostlyclean clean distclean maintainer-clean \
12330         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12331 for t in $target_list
12332 do
12333         x=
12334         for lang in $all_languages
12335         do
12336                         x="$x $lang.$t"
12337         done
12338         echo "lang.$t: $x" >> Make-hooks
12339 done
12340
12341 # --------
12342 # UNSORTED
12343 # --------
12344
12345 # Create .gdbinit.
12346
12347 echo "dir ." > .gdbinit
12348 echo "dir ${srcdir}" >> .gdbinit
12349 if test x$gdb_needs_out_file_path = xyes
12350 then
12351         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12352 fi
12353 if test "x$subdirs" != x; then
12354         for s in $subdirs
12355         do
12356                 echo "dir ${srcdir}/$s" >> .gdbinit
12357         done
12358 fi
12359 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12360
12361 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12362 # absolute path for gcc_tooldir based on inserting the number of up-directory
12363 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12364 # $(libsubdir)/@(unlibsubdir) based path.
12365 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12366 # make and thus we'd get different behavior depending on where we built the
12367 # sources.
12368 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12369     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12370 else
12371 # An explanation of the sed strings:
12372 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12373 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12374 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12375 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12376 #
12377 # (*) Note this pattern overwrites the first character of the string
12378 # with a forward slash if one is not already present.  This is not a
12379 # problem because the exact names of the sub-directories concerned is
12380 # unimportant, just the number of them matters.
12381 #
12382 # The practical upshot of these patterns is like this:
12383 #
12384 #  prefix     exec_prefix        result
12385 #  ------     -----------        ------
12386 #   /foo        /foo/bar          ../
12387 #   /foo/       /foo/bar          ../
12388 #   /foo        /foo/bar/         ../
12389 #   /foo/       /foo/bar/         ../
12390 #   /foo        /foo/bar/ugg      ../../
12391 #
12392     dollar='$$'
12393     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12394 fi
12395
12396
12397
12398 # Find a directory in which to install a shared libgcc.
12399
12400 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12401 if test "${enable_version_specific_runtime_libs+set}" = set; then
12402   enableval="$enable_version_specific_runtime_libs"
12403
12404 fi;
12405
12406
12407 # Check whether --with-slibdir or --without-slibdir was given.
12408 if test "${with_slibdir+set}" = set; then
12409   withval="$with_slibdir"
12410   slibdir="$with_slibdir"
12411 else
12412   if test "${enable_version_specific_runtime_libs+set}" = set; then
12413   slibdir='$(libsubdir)'
12414 elif test "$host" != "$target"; then
12415   slibdir='$(build_tooldir)/lib'
12416 else
12417   slibdir='$(libdir)'
12418 fi
12419 fi;
12420
12421
12422 objdir=`${PWDCMD-pwd}`
12423
12424
12425 # Substitute configuration variables
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493 # If it doesn't already exist, create document directory
12494 echo "checking for the document directory." 1>&2
12495 if test -d doc ; then
12496   true
12497 else
12498   mkdir doc
12499 fi
12500
12501 # Echo link setup.
12502 if test x${build} = x${host} ; then
12503   if test x${host} = x${target} ; then
12504     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12505   else
12506     echo "Links are now set up to build a cross-compiler" 1>&2
12507     echo " from ${host} to ${target}." 1>&2
12508   fi
12509 else
12510   if test x${host} = x${target} ; then
12511     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12512     echo " for ${target}." 1>&2
12513   else
12514     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12515     echo " from ${host} to ${target}." 1>&2
12516   fi
12517 fi
12518
12519
12520
12521
12522 # Configure the subdirectories
12523 # AC_CONFIG_SUBDIRS($subdirs)
12524
12525 # Create the Makefile
12526 # and configure language subdirectories
12527           ac_config_files="$ac_config_files $all_outputs"
12528
12529
12530           ac_config_commands="$ac_config_commands default"
12531
12532 cat >confcache <<\_ACEOF
12533 # This file is a shell script that caches the results of configure
12534 # tests run on this system so they can be shared between configure
12535 # scripts and configure runs, see configure's option --config-cache.
12536 # It is not useful on other systems.  If it contains results you don't
12537 # want to keep, you may remove or edit it.
12538 #
12539 # config.status only pays attention to the cache file if you give it
12540 # the --recheck option to rerun configure.
12541 #
12542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12544 # following values.
12545
12546 _ACEOF
12547
12548 # The following way of writing the cache mishandles newlines in values,
12549 # but we know of no workaround that is simple, portable, and efficient.
12550 # So, don't put newlines in cache variables' values.
12551 # Ultrix sh set writes to stderr and can't be redirected directly,
12552 # and sets the high bit in the cache file unless we assign to the vars.
12553 {
12554   (set) 2>&1 |
12555     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12556     *ac_space=\ *)
12557       # `set' does not quote correctly, so add quotes (double-quote
12558       # substitution turns \\\\ into \\, and sed turns \\ into \).
12559       sed -n \
12560         "s/'/'\\\\''/g;
12561           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12562       ;;
12563     *)
12564       # `set' quotes correctly as required by POSIX, so do not add quotes.
12565       sed -n \
12566         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12567       ;;
12568     esac;
12569 } |
12570   sed '
12571      t clear
12572      : clear
12573      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12574      t end
12575      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12576      : end' >>confcache
12577 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12578   if test -w $cache_file; then
12579     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12580     cat confcache >$cache_file
12581   else
12582     echo "not updating unwritable cache $cache_file"
12583   fi
12584 fi
12585 rm -f confcache
12586
12587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12588 # Let make expand exec_prefix.
12589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12590
12591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12593 # trailing colons and then remove the whole line if VPATH becomes empty
12594 # (actually we leave an empty line to preserve line numbers).
12595 if test "x$srcdir" = x.; then
12596   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12597 s/:*\$(srcdir):*/:/;
12598 s/:*\${srcdir}:*/:/;
12599 s/:*@srcdir@:*/:/;
12600 s/^\([^=]*=[     ]*\):*/\1/;
12601 s/:*$//;
12602 s/^[^=]*=[       ]*$//;
12603 }'
12604 fi
12605
12606 DEFS=-DHAVE_CONFIG_H
12607
12608 ac_libobjs=
12609 ac_ltlibobjs=
12610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12611   # 1. Remove the extension, and $U if already installed.
12612   ac_i=`echo "$ac_i" |
12613          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12614   # 2. Add them.
12615   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12616   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12617 done
12618 LIBOBJS=$ac_libobjs
12619
12620 LTLIBOBJS=$ac_ltlibobjs
12621
12622
12623
12624 : ${CONFIG_STATUS=./config.status}
12625 ac_clean_files_save=$ac_clean_files
12626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12629 cat >$CONFIG_STATUS <<_ACEOF
12630 #! $SHELL
12631 # Generated by $as_me.
12632 # Run this file to recreate the current configuration.
12633 # Compiler output produced by configure, useful for debugging
12634 # configure, is in config.log if it exists.
12635
12636 debug=false
12637 ac_cs_recheck=false
12638 ac_cs_silent=false
12639 SHELL=\${CONFIG_SHELL-$SHELL}
12640 _ACEOF
12641
12642 cat >>$CONFIG_STATUS <<\_ACEOF
12643 ## --------------------- ##
12644 ## M4sh Initialization.  ##
12645 ## --------------------- ##
12646
12647 # Be Bourne compatible
12648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12649   emulate sh
12650   NULLCMD=:
12651   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12652   # is contrary to our usage.  Disable this feature.
12653   alias -g '${1+"$@"}'='"$@"'
12654 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12655   set -o posix
12656 fi
12657 DUALCASE=1; export DUALCASE # for MKS sh
12658
12659 # Support unset when possible.
12660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12661   as_unset=unset
12662 else
12663   as_unset=false
12664 fi
12665
12666
12667 # Work around bugs in pre-3.0 UWIN ksh.
12668 $as_unset ENV MAIL MAILPATH
12669 PS1='$ '
12670 PS2='> '
12671 PS4='+ '
12672
12673 # NLS nuisances.
12674 for as_var in \
12675   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12676   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12677   LC_TELEPHONE LC_TIME
12678 do
12679   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12680     eval $as_var=C; export $as_var
12681   else
12682     $as_unset $as_var
12683   fi
12684 done
12685
12686 # Required to use basename.
12687 if expr a : '\(a\)' >/dev/null 2>&1; then
12688   as_expr=expr
12689 else
12690   as_expr=false
12691 fi
12692
12693 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12694   as_basename=basename
12695 else
12696   as_basename=false
12697 fi
12698
12699
12700 # Name of the executable.
12701 as_me=`$as_basename "$0" ||
12702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12703          X"$0" : 'X\(//\)$' \| \
12704          X"$0" : 'X\(/\)$' \| \
12705          .     : '\(.\)' 2>/dev/null ||
12706 echo X/"$0" |
12707     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12708           /^X\/\(\/\/\)$/{ s//\1/; q; }
12709           /^X\/\(\/\).*/{ s//\1/; q; }
12710           s/.*/./; q'`
12711
12712
12713 # PATH needs CR, and LINENO needs CR and PATH.
12714 # Avoid depending upon Character Ranges.
12715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12718 as_cr_digits='0123456789'
12719 as_cr_alnum=$as_cr_Letters$as_cr_digits
12720
12721 # The user is always right.
12722 if test "${PATH_SEPARATOR+set}" != set; then
12723   echo "#! /bin/sh" >conf$$.sh
12724   echo  "exit 0"   >>conf$$.sh
12725   chmod +x conf$$.sh
12726   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12727     PATH_SEPARATOR=';'
12728   else
12729     PATH_SEPARATOR=:
12730   fi
12731   rm -f conf$$.sh
12732 fi
12733
12734
12735   as_lineno_1=$LINENO
12736   as_lineno_2=$LINENO
12737   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12738   test "x$as_lineno_1" != "x$as_lineno_2" &&
12739   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12740   # Find who we are.  Look in the path if we contain no path at all
12741   # relative or not.
12742   case $0 in
12743     *[\\/]* ) as_myself=$0 ;;
12744     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12746 do
12747   IFS=$as_save_IFS
12748   test -z "$as_dir" && as_dir=.
12749   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12750 done
12751
12752        ;;
12753   esac
12754   # We did not find ourselves, most probably we were run as `sh COMMAND'
12755   # in which case we are not to be found in the path.
12756   if test "x$as_myself" = x; then
12757     as_myself=$0
12758   fi
12759   if test ! -f "$as_myself"; then
12760     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12761 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12762    { (exit 1); exit 1; }; }
12763   fi
12764   case $CONFIG_SHELL in
12765   '')
12766     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12768 do
12769   IFS=$as_save_IFS
12770   test -z "$as_dir" && as_dir=.
12771   for as_base in sh bash ksh sh5; do
12772          case $as_dir in
12773          /*)
12774            if ("$as_dir/$as_base" -c '
12775   as_lineno_1=$LINENO
12776   as_lineno_2=$LINENO
12777   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12778   test "x$as_lineno_1" != "x$as_lineno_2" &&
12779   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12780              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12781              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12782              CONFIG_SHELL=$as_dir/$as_base
12783              export CONFIG_SHELL
12784              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12785            fi;;
12786          esac
12787        done
12788 done
12789 ;;
12790   esac
12791
12792   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12793   # uniformly replaced by the line number.  The first 'sed' inserts a
12794   # line-number line before each line; the second 'sed' does the real
12795   # work.  The second script uses 'N' to pair each line-number line
12796   # with the numbered line, and appends trailing '-' during
12797   # substitution so that $LINENO is not a special case at line end.
12798   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12799   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12800   sed '=' <$as_myself |
12801     sed '
12802       N
12803       s,$,-,
12804       : loop
12805       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12806       t loop
12807       s,-$,,
12808       s,^['$as_cr_digits']*\n,,
12809     ' >$as_me.lineno &&
12810   chmod +x $as_me.lineno ||
12811     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12813    { (exit 1); exit 1; }; }
12814
12815   # Don't try to exec as it changes $[0], causing all sort of problems
12816   # (the dirname of $[0] is not the place where we might find the
12817   # original and so on.  Autoconf is especially sensible to this).
12818   . ./$as_me.lineno
12819   # Exit status is that of the last command.
12820   exit
12821 }
12822
12823
12824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12825   *c*,-n*) ECHO_N= ECHO_C='
12826 ' ECHO_T='      ' ;;
12827   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12828   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12829 esac
12830
12831 if expr a : '\(a\)' >/dev/null 2>&1; then
12832   as_expr=expr
12833 else
12834   as_expr=false
12835 fi
12836
12837 rm -f conf$$ conf$$.exe conf$$.file
12838 echo >conf$$.file
12839 if ln -s conf$$.file conf$$ 2>/dev/null; then
12840   # We could just check for DJGPP; but this test a) works b) is more generic
12841   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12842   if test -f conf$$.exe; then
12843     # Don't use ln at all; we don't have any links
12844     as_ln_s='cp -p'
12845   else
12846     as_ln_s='ln -s'
12847   fi
12848 elif ln conf$$.file conf$$ 2>/dev/null; then
12849   as_ln_s=ln
12850 else
12851   as_ln_s='cp -p'
12852 fi
12853 rm -f conf$$ conf$$.exe conf$$.file
12854
12855 if mkdir -p . 2>/dev/null; then
12856   as_mkdir_p=:
12857 else
12858   test -d ./-p && rmdir ./-p
12859   as_mkdir_p=false
12860 fi
12861
12862 as_executable_p="test -f"
12863
12864 # Sed expression to map a string onto a valid CPP name.
12865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12866
12867 # Sed expression to map a string onto a valid variable name.
12868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12869
12870
12871 # IFS
12872 # We need space, tab and new line, in precisely that order.
12873 as_nl='
12874 '
12875 IFS="   $as_nl"
12876
12877 # CDPATH.
12878 $as_unset CDPATH
12879
12880 exec 6>&1
12881
12882 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12883 # report actual input values of CONFIG_FILES etc. instead of their
12884 # values after options handling.  Logging --version etc. is OK.
12885 exec 5>>config.log
12886 {
12887   echo
12888   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12889 ## Running $as_me. ##
12890 _ASBOX
12891 } >&5
12892 cat >&5 <<_CSEOF
12893
12894 This file was extended by $as_me, which was
12895 generated by GNU Autoconf 2.59.  Invocation command line was
12896
12897   CONFIG_FILES    = $CONFIG_FILES
12898   CONFIG_HEADERS  = $CONFIG_HEADERS
12899   CONFIG_LINKS    = $CONFIG_LINKS
12900   CONFIG_COMMANDS = $CONFIG_COMMANDS
12901   $ $0 $@
12902
12903 _CSEOF
12904 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12905 echo >&5
12906 _ACEOF
12907
12908 # Files that config.status was made for.
12909 if test -n "$ac_config_files"; then
12910   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12911 fi
12912
12913 if test -n "$ac_config_headers"; then
12914   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12915 fi
12916
12917 if test -n "$ac_config_links"; then
12918   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12919 fi
12920
12921 if test -n "$ac_config_commands"; then
12922   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12923 fi
12924
12925 cat >>$CONFIG_STATUS <<\_ACEOF
12926
12927 ac_cs_usage="\
12928 \`$as_me' instantiates files from templates according to the
12929 current configuration.
12930
12931 Usage: $0 [OPTIONS] [FILE]...
12932
12933   -h, --help       print this help, then exit
12934   -V, --version    print version number, then exit
12935   -q, --quiet      do not print progress messages
12936   -d, --debug      don't remove temporary files
12937       --recheck    update $as_me by reconfiguring in the same conditions
12938   --file=FILE[:TEMPLATE]
12939                    instantiate the configuration file FILE
12940   --header=FILE[:TEMPLATE]
12941                    instantiate the configuration header FILE
12942
12943 Configuration files:
12944 $config_files
12945
12946 Configuration headers:
12947 $config_headers
12948
12949 Configuration commands:
12950 $config_commands
12951
12952 Report bugs to <bug-autoconf@gnu.org>."
12953 _ACEOF
12954
12955 cat >>$CONFIG_STATUS <<_ACEOF
12956 ac_cs_version="\\
12957 config.status
12958 configured by $0, generated by GNU Autoconf 2.59,
12959   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12960
12961 Copyright (C) 2003 Free Software Foundation, Inc.
12962 This config.status script is free software; the Free Software Foundation
12963 gives unlimited permission to copy, distribute and modify it."
12964 srcdir=$srcdir
12965 _ACEOF
12966
12967 cat >>$CONFIG_STATUS <<\_ACEOF
12968 # If no file are specified by the user, then we need to provide default
12969 # value.  By we need to know if files were specified by the user.
12970 ac_need_defaults=:
12971 while test $# != 0
12972 do
12973   case $1 in
12974   --*=*)
12975     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12976     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12977     ac_shift=:
12978     ;;
12979   -*)
12980     ac_option=$1
12981     ac_optarg=$2
12982     ac_shift=shift
12983     ;;
12984   *) # This is not an option, so the user has probably given explicit
12985      # arguments.
12986      ac_option=$1
12987      ac_need_defaults=false;;
12988   esac
12989
12990   case $ac_option in
12991   # Handling of the options.
12992 _ACEOF
12993 cat >>$CONFIG_STATUS <<\_ACEOF
12994   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12995     ac_cs_recheck=: ;;
12996   --version | --vers* | -V )
12997     echo "$ac_cs_version"; exit 0 ;;
12998   --he | --h)
12999     # Conflict between --help and --header
13000     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13001 Try \`$0 --help' for more information." >&5
13002 echo "$as_me: error: ambiguous option: $1
13003 Try \`$0 --help' for more information." >&2;}
13004    { (exit 1); exit 1; }; };;
13005   --help | --hel | -h )
13006     echo "$ac_cs_usage"; exit 0 ;;
13007   --debug | --d* | -d )
13008     debug=: ;;
13009   --file | --fil | --fi | --f )
13010     $ac_shift
13011     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13012     ac_need_defaults=false;;
13013   --header | --heade | --head | --hea )
13014     $ac_shift
13015     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13016     ac_need_defaults=false;;
13017   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13018   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13019     ac_cs_silent=: ;;
13020
13021   # This is an error.
13022   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13023 Try \`$0 --help' for more information." >&5
13024 echo "$as_me: error: unrecognized option: $1
13025 Try \`$0 --help' for more information." >&2;}
13026    { (exit 1); exit 1; }; } ;;
13027
13028   *) ac_config_targets="$ac_config_targets $1" ;;
13029
13030   esac
13031   shift
13032 done
13033
13034 ac_configure_extra_args=
13035
13036 if $ac_cs_silent; then
13037   exec 6>/dev/null
13038   ac_configure_extra_args="$ac_configure_extra_args --silent"
13039 fi
13040
13041 _ACEOF
13042 cat >>$CONFIG_STATUS <<_ACEOF
13043 if \$ac_cs_recheck; then
13044   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13045   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13046 fi
13047
13048 _ACEOF
13049
13050 cat >>$CONFIG_STATUS <<_ACEOF
13051 #
13052 # INIT-COMMANDS section.
13053 #
13054
13055 subdirs='$subdirs'
13056 symbolic_link='$symbolic_link'
13057
13058
13059 _ACEOF
13060
13061
13062
13063 cat >>$CONFIG_STATUS <<\_ACEOF
13064 for ac_config_target in $ac_config_targets
13065 do
13066   case "$ac_config_target" in
13067   # Handling of arguments.
13068   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13069   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13070   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13071   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13072 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13073    { (exit 1); exit 1; }; };;
13074   esac
13075 done
13076
13077 # If the user did not use the arguments to specify the items to instantiate,
13078 # then the envvar interface is used.  Set only those that are not.
13079 # We use the long form for the default assignment because of an extremely
13080 # bizarre bug on SunOS 4.1.3.
13081 if $ac_need_defaults; then
13082   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13083   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13084   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13085 fi
13086
13087 # Have a temporary directory for convenience.  Make it in the build tree
13088 # simply because there is no reason to put it here, and in addition,
13089 # creating and moving files from /tmp can sometimes cause problems.
13090 # Create a temporary directory, and hook for its removal unless debugging.
13091 $debug ||
13092 {
13093   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13094   trap '{ (exit 1); exit 1; }' 1 2 13 15
13095 }
13096
13097 # Create a (secure) tmp directory for tmp files.
13098
13099 {
13100   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13101   test -n "$tmp" && test -d "$tmp"
13102 }  ||
13103 {
13104   tmp=./confstat$$-$RANDOM
13105   (umask 077 && mkdir $tmp)
13106 } ||
13107 {
13108    echo "$me: cannot create a temporary directory in ." >&2
13109    { (exit 1); exit 1; }
13110 }
13111
13112 _ACEOF
13113
13114 cat >>$CONFIG_STATUS <<_ACEOF
13115
13116 #
13117 # CONFIG_FILES section.
13118 #
13119
13120 # No need to generate the scripts if there are no CONFIG_FILES.
13121 # This happens for instance when ./config.status config.h
13122 if test -n "\$CONFIG_FILES"; then
13123   # Protect against being on the right side of a sed subst in config.status.
13124   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13125    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13126 s,@SHELL@,$SHELL,;t t
13127 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13128 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13129 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13130 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13131 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13132 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13133 s,@exec_prefix@,$exec_prefix,;t t
13134 s,@prefix@,$prefix,;t t
13135 s,@program_transform_name@,$program_transform_name,;t t
13136 s,@bindir@,$bindir,;t t
13137 s,@sbindir@,$sbindir,;t t
13138 s,@libexecdir@,$libexecdir,;t t
13139 s,@datadir@,$datadir,;t t
13140 s,@sysconfdir@,$sysconfdir,;t t
13141 s,@sharedstatedir@,$sharedstatedir,;t t
13142 s,@localstatedir@,$localstatedir,;t t
13143 s,@libdir@,$libdir,;t t
13144 s,@includedir@,$includedir,;t t
13145 s,@oldincludedir@,$oldincludedir,;t t
13146 s,@infodir@,$infodir,;t t
13147 s,@mandir@,$mandir,;t t
13148 s,@build_alias@,$build_alias,;t t
13149 s,@host_alias@,$host_alias,;t t
13150 s,@target_alias@,$target_alias,;t t
13151 s,@DEFS@,$DEFS,;t t
13152 s,@ECHO_C@,$ECHO_C,;t t
13153 s,@ECHO_N@,$ECHO_N,;t t
13154 s,@ECHO_T@,$ECHO_T,;t t
13155 s,@LIBS@,$LIBS,;t t
13156 s,@build@,$build,;t t
13157 s,@build_cpu@,$build_cpu,;t t
13158 s,@build_vendor@,$build_vendor,;t t
13159 s,@build_os@,$build_os,;t t
13160 s,@host@,$host,;t t
13161 s,@host_cpu@,$host_cpu,;t t
13162 s,@host_vendor@,$host_vendor,;t t
13163 s,@host_os@,$host_os,;t t
13164 s,@target@,$target,;t t
13165 s,@target_cpu@,$target_cpu,;t t
13166 s,@target_vendor@,$target_vendor,;t t
13167 s,@target_os@,$target_os,;t t
13168 s,@target_noncanonical@,$target_noncanonical,;t t
13169 s,@build_subdir@,$build_subdir,;t t
13170 s,@host_subdir@,$host_subdir,;t t
13171 s,@target_subdir@,$target_subdir,;t t
13172 s,@GENINSRC@,$GENINSRC,;t t
13173 s,@CC@,$CC,;t t
13174 s,@CFLAGS@,$CFLAGS,;t t
13175 s,@LDFLAGS@,$LDFLAGS,;t t
13176 s,@CPPFLAGS@,$CPPFLAGS,;t t
13177 s,@ac_ct_CC@,$ac_ct_CC,;t t
13178 s,@EXEEXT@,$EXEEXT,;t t
13179 s,@OBJEXT@,$OBJEXT,;t t
13180 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13181 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13182 s,@CPP@,$CPP,;t t
13183 s,@strict1_warn@,$strict1_warn,;t t
13184 s,@warn_cflags@,$warn_cflags,;t t
13185 s,@WERROR@,$WERROR,;t t
13186 s,@nocommon_flag@,$nocommon_flag,;t t
13187 s,@TREEBROWSER@,$TREEBROWSER,;t t
13188 s,@EGREP@,$EGREP,;t t
13189 s,@valgrind_path@,$valgrind_path,;t t
13190 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13191 s,@valgrind_command@,$valgrind_command,;t t
13192 s,@coverage_flags@,$coverage_flags,;t t
13193 s,@enable_multilib@,$enable_multilib,;t t
13194 s,@enable_shared@,$enable_shared,;t t
13195 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13196 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13197 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13198 s,@onestep@,$onestep,;t t
13199 s,@SET_MAKE@,$SET_MAKE,;t t
13200 s,@AWK@,$AWK,;t t
13201 s,@LN_S@,$LN_S,;t t
13202 s,@LN@,$LN,;t t
13203 s,@RANLIB@,$RANLIB,;t t
13204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13205 s,@ranlib_flags@,$ranlib_flags,;t t
13206 s,@INSTALL@,$INSTALL,;t t
13207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13208 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13209 s,@make_compare_target@,$make_compare_target,;t t
13210 s,@have_mktemp_command@,$have_mktemp_command,;t t
13211 s,@MAKEINFO@,$MAKEINFO,;t t
13212 s,@BUILD_INFO@,$BUILD_INFO,;t t
13213 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13214 s,@FLEX@,$FLEX,;t t
13215 s,@BISON@,$BISON,;t t
13216 s,@NM@,$NM,;t t
13217 s,@AR@,$AR,;t t
13218 s,@stage1_cflags@,$stage1_cflags,;t t
13219 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13220 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13221 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13222 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13223 s,@LIBICONV@,$LIBICONV,;t t
13224 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13225 s,@manext@,$manext,;t t
13226 s,@objext@,$objext,;t t
13227 s,@gthread_flags@,$gthread_flags,;t t
13228 s,@extra_modes_file@,$extra_modes_file,;t t
13229 s,@PACKAGE@,$PACKAGE,;t t
13230 s,@VERSION@,$VERSION,;t t
13231 s,@USE_NLS@,$USE_NLS,;t t
13232 s,@LIBINTL@,$LIBINTL,;t t
13233 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13234 s,@INCINTL@,$INCINTL,;t t
13235 s,@XGETTEXT@,$XGETTEXT,;t t
13236 s,@GMSGFMT@,$GMSGFMT,;t t
13237 s,@POSUB@,$POSUB,;t t
13238 s,@CATALOGS@,$CATALOGS,;t t
13239 s,@CROSS@,$CROSS,;t t
13240 s,@ALL@,$ALL,;t t
13241 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13242 s,@inhibit_libc@,$inhibit_libc,;t t
13243 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13244 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13245 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13246 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13247 s,@collect2@,$collect2,;t t
13248 s,@libgcc_visibility@,$libgcc_visibility,;t t
13249 s,@GGC@,$GGC,;t t
13250 s,@zlibdir@,$zlibdir,;t t
13251 s,@zlibinc@,$zlibinc,;t t
13252 s,@MAINT@,$MAINT,;t t
13253 s,@ANDER@,$ANDER,;t t
13254 s,@BANSHEEINC@,$BANSHEEINC,;t t
13255 s,@BANSHEELIB@,$BANSHEELIB,;t t
13256 s,@gcc_tooldir@,$gcc_tooldir,;t t
13257 s,@dollar@,$dollar,;t t
13258 s,@slibdir@,$slibdir,;t t
13259 s,@objdir@,$objdir,;t t
13260 s,@subdirs@,$subdirs,;t t
13261 s,@srcdir@,$srcdir,;t t
13262 s,@all_boot_languages@,$all_boot_languages,;t t
13263 s,@all_compilers@,$all_compilers,;t t
13264 s,@all_gtfiles@,$all_gtfiles,;t t
13265 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13266 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13267 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13268 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13269 s,@all_languages@,$all_languages,;t t
13270 s,@all_stagestuff@,$all_stagestuff,;t t
13271 s,@build_exeext@,$build_exeext,;t t
13272 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13273 s,@build_xm_file_list@,$build_xm_file_list,;t t
13274 s,@build_xm_include_list@,$build_xm_include_list,;t t
13275 s,@build_xm_defines@,$build_xm_defines,;t t
13276 s,@check_languages@,$check_languages,;t t
13277 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13278 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13279 s,@cpp_install_dir@,$cpp_install_dir,;t t
13280 s,@xmake_file@,$xmake_file,;t t
13281 s,@tmake_file@,$tmake_file,;t t
13282 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13283 s,@extra_headers_list@,$extra_headers_list,;t t
13284 s,@extra_objs@,$extra_objs,;t t
13285 s,@extra_parts@,$extra_parts,;t t
13286 s,@extra_passes@,$extra_passes,;t t
13287 s,@extra_programs@,$extra_programs,;t t
13288 s,@float_h_file@,$float_h_file,;t t
13289 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13290 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13291 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13292 s,@gcc_version@,$gcc_version,;t t
13293 s,@gcc_version_full@,$gcc_version_full,;t t
13294 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13295 s,@host_exeext@,$host_exeext,;t t
13296 s,@host_xm_file_list@,$host_xm_file_list,;t t
13297 s,@host_xm_include_list@,$host_xm_include_list,;t t
13298 s,@host_xm_defines@,$host_xm_defines,;t t
13299 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13300 s,@install@,$install,;t t
13301 s,@lang_opt_files@,$lang_opt_files,;t t
13302 s,@lang_specs_files@,$lang_specs_files,;t t
13303 s,@lang_tree_files@,$lang_tree_files,;t t
13304 s,@local_prefix@,$local_prefix,;t t
13305 s,@md_file@,$md_file,;t t
13306 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13307 s,@out_file@,$out_file,;t t
13308 s,@out_object_file@,$out_object_file,;t t
13309 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13310 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13311 s,@symbolic_link@,$symbolic_link,;t t
13312 s,@thread_file@,$thread_file,;t t
13313 s,@tm_file_list@,$tm_file_list,;t t
13314 s,@tm_include_list@,$tm_include_list,;t t
13315 s,@tm_defines@,$tm_defines,;t t
13316 s,@tm_p_file_list@,$tm_p_file_list,;t t
13317 s,@tm_p_include_list@,$tm_p_include_list,;t t
13318 s,@xm_file_list@,$xm_file_list,;t t
13319 s,@xm_include_list@,$xm_include_list,;t t
13320 s,@xm_defines@,$xm_defines,;t t
13321 s,@c_target_objs@,$c_target_objs,;t t
13322 s,@cxx_target_objs@,$cxx_target_objs,;t t
13323 s,@target_cpu_default@,$target_cpu_default,;t t
13324 s,@GMPLIBS@,$GMPLIBS,;t t
13325 s,@GMPINC@,$GMPINC,;t t
13326 s,@LIBOBJS@,$LIBOBJS,;t t
13327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13328 /@language_hooks@/r $language_hooks
13329 s,@language_hooks@,,;t t
13330 CEOF
13331
13332 _ACEOF
13333
13334   cat >>$CONFIG_STATUS <<\_ACEOF
13335   # Split the substitutions into bite-sized pieces for seds with
13336   # small command number limits, like on Digital OSF/1 and HP-UX.
13337   ac_max_sed_lines=48
13338   ac_sed_frag=1 # Number of current file.
13339   ac_beg=1 # First line for current file.
13340   ac_end=$ac_max_sed_lines # Line after last line for current file.
13341   ac_more_lines=:
13342   ac_sed_cmds=
13343   while $ac_more_lines; do
13344     if test $ac_beg -gt 1; then
13345       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13346     else
13347       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13348     fi
13349     if test ! -s $tmp/subs.frag; then
13350       ac_more_lines=false
13351     else
13352       # The purpose of the label and of the branching condition is to
13353       # speed up the sed processing (if there are no `@' at all, there
13354       # is no need to browse any of the substitutions).
13355       # These are the two extra sed commands mentioned above.
13356       (echo ':t
13357   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13358       if test -z "$ac_sed_cmds"; then
13359         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13360       else
13361         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13362       fi
13363       ac_sed_frag=`expr $ac_sed_frag + 1`
13364       ac_beg=$ac_end
13365       ac_end=`expr $ac_end + $ac_max_sed_lines`
13366     fi
13367   done
13368   if test -z "$ac_sed_cmds"; then
13369     ac_sed_cmds=cat
13370   fi
13371 fi # test -n "$CONFIG_FILES"
13372
13373 _ACEOF
13374 cat >>$CONFIG_STATUS <<\_ACEOF
13375 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13376   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13377   case $ac_file in
13378   - | *:- | *:-:* ) # input from stdin
13379         cat >$tmp/stdin
13380         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13381         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13382   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13383         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13384   * )   ac_file_in=$ac_file.in ;;
13385   esac
13386
13387   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13388   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13390          X"$ac_file" : 'X\(//\)[^/]' \| \
13391          X"$ac_file" : 'X\(//\)$' \| \
13392          X"$ac_file" : 'X\(/\)' \| \
13393          .     : '\(.\)' 2>/dev/null ||
13394 echo X"$ac_file" |
13395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13396           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13397           /^X\(\/\/\)$/{ s//\1/; q; }
13398           /^X\(\/\).*/{ s//\1/; q; }
13399           s/.*/./; q'`
13400   { if $as_mkdir_p; then
13401     mkdir -p "$ac_dir"
13402   else
13403     as_dir="$ac_dir"
13404     as_dirs=
13405     while test ! -d "$as_dir"; do
13406       as_dirs="$as_dir $as_dirs"
13407       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13409          X"$as_dir" : 'X\(//\)[^/]' \| \
13410          X"$as_dir" : 'X\(//\)$' \| \
13411          X"$as_dir" : 'X\(/\)' \| \
13412          .     : '\(.\)' 2>/dev/null ||
13413 echo X"$as_dir" |
13414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13416           /^X\(\/\/\)$/{ s//\1/; q; }
13417           /^X\(\/\).*/{ s//\1/; q; }
13418           s/.*/./; q'`
13419     done
13420     test ! -n "$as_dirs" || mkdir $as_dirs
13421   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13423    { (exit 1); exit 1; }; }; }
13424
13425   ac_builddir=.
13426
13427 if test "$ac_dir" != .; then
13428   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13429   # A "../" for each directory in $ac_dir_suffix.
13430   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13431 else
13432   ac_dir_suffix= ac_top_builddir=
13433 fi
13434
13435 case $srcdir in
13436   .)  # No --srcdir option.  We are building in place.
13437     ac_srcdir=.
13438     if test -z "$ac_top_builddir"; then
13439        ac_top_srcdir=.
13440     else
13441        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13442     fi ;;
13443   [\\/]* | ?:[\\/]* )  # Absolute path.
13444     ac_srcdir=$srcdir$ac_dir_suffix;
13445     ac_top_srcdir=$srcdir ;;
13446   *) # Relative path.
13447     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13448     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13449 esac
13450
13451 # Do not use `cd foo && pwd` to compute absolute paths, because
13452 # the directories may not exist.
13453 case `pwd` in
13454 .) ac_abs_builddir="$ac_dir";;
13455 *)
13456   case "$ac_dir" in
13457   .) ac_abs_builddir=`pwd`;;
13458   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13459   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13460   esac;;
13461 esac
13462 case $ac_abs_builddir in
13463 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13464 *)
13465   case ${ac_top_builddir}. in
13466   .) ac_abs_top_builddir=$ac_abs_builddir;;
13467   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13468   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13469   esac;;
13470 esac
13471 case $ac_abs_builddir in
13472 .) ac_abs_srcdir=$ac_srcdir;;
13473 *)
13474   case $ac_srcdir in
13475   .) ac_abs_srcdir=$ac_abs_builddir;;
13476   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13477   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13478   esac;;
13479 esac
13480 case $ac_abs_builddir in
13481 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13482 *)
13483   case $ac_top_srcdir in
13484   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13485   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13486   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13487   esac;;
13488 esac
13489
13490
13491
13492   if test x"$ac_file" != x-; then
13493     { echo "$as_me:$LINENO: creating $ac_file" >&5
13494 echo "$as_me: creating $ac_file" >&6;}
13495     rm -f "$ac_file"
13496   fi
13497   # Let's still pretend it is `configure' which instantiates (i.e., don't
13498   # use $as_me), people would be surprised to read:
13499   #    /* config.h.  Generated by config.status.  */
13500   if test x"$ac_file" = x-; then
13501     configure_input=
13502   else
13503     configure_input="$ac_file.  "
13504   fi
13505   configure_input=$configure_input"Generated from `echo $ac_file_in |
13506                                      sed 's,.*/,,'` by configure."
13507
13508   # First look for the input files in the build tree, otherwise in the
13509   # src tree.
13510   ac_file_inputs=`IFS=:
13511     for f in $ac_file_in; do
13512       case $f in
13513       -) echo $tmp/stdin ;;
13514       [\\/$]*)
13515          # Absolute (can't be DOS-style, as IFS=:)
13516          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13517 echo "$as_me: error: cannot find input file: $f" >&2;}
13518    { (exit 1); exit 1; }; }
13519          echo "$f";;
13520       *) # Relative
13521          if test -f "$f"; then
13522            # Build tree
13523            echo "$f"
13524          elif test -f "$srcdir/$f"; then
13525            # Source tree
13526            echo "$srcdir/$f"
13527          else
13528            # /dev/null tree
13529            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13530 echo "$as_me: error: cannot find input file: $f" >&2;}
13531    { (exit 1); exit 1; }; }
13532          fi;;
13533       esac
13534     done` || { (exit 1); exit 1; }
13535 _ACEOF
13536 cat >>$CONFIG_STATUS <<_ACEOF
13537   sed "$ac_vpsub
13538 $extrasub
13539 _ACEOF
13540 cat >>$CONFIG_STATUS <<\_ACEOF
13541 :t
13542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13543 s,@configure_input@,$configure_input,;t t
13544 s,@srcdir@,$ac_srcdir,;t t
13545 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13546 s,@top_srcdir@,$ac_top_srcdir,;t t
13547 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13548 s,@builddir@,$ac_builddir,;t t
13549 s,@abs_builddir@,$ac_abs_builddir,;t t
13550 s,@top_builddir@,$ac_top_builddir,;t t
13551 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13552 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13553   rm -f $tmp/stdin
13554   if test x"$ac_file" != x-; then
13555     mv $tmp/out $ac_file
13556   else
13557     cat $tmp/out
13558     rm -f $tmp/out
13559   fi
13560
13561 done
13562 _ACEOF
13563 cat >>$CONFIG_STATUS <<\_ACEOF
13564
13565 #
13566 # CONFIG_HEADER section.
13567 #
13568
13569 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13570 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13571 #
13572 # ac_d sets the value in "#define NAME VALUE" lines.
13573 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13574 ac_dB='[         ].*$,\1#\2'
13575 ac_dC=' '
13576 ac_dD=',;t'
13577 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13578 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13579 ac_uB='$,\1#\2define\3'
13580 ac_uC=' '
13581 ac_uD=',;t'
13582
13583 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13584   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13585   case $ac_file in
13586   - | *:- | *:-:* ) # input from stdin
13587         cat >$tmp/stdin
13588         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13589         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13590   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13591         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13592   * )   ac_file_in=$ac_file.in ;;
13593   esac
13594
13595   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13596 echo "$as_me: creating $ac_file" >&6;}
13597
13598   # First look for the input files in the build tree, otherwise in the
13599   # src tree.
13600   ac_file_inputs=`IFS=:
13601     for f in $ac_file_in; do
13602       case $f in
13603       -) echo $tmp/stdin ;;
13604       [\\/$]*)
13605          # Absolute (can't be DOS-style, as IFS=:)
13606          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13607 echo "$as_me: error: cannot find input file: $f" >&2;}
13608    { (exit 1); exit 1; }; }
13609          # Do quote $f, to prevent DOS paths from being IFS'd.
13610          echo "$f";;
13611       *) # Relative
13612          if test -f "$f"; then
13613            # Build tree
13614            echo "$f"
13615          elif test -f "$srcdir/$f"; then
13616            # Source tree
13617            echo "$srcdir/$f"
13618          else
13619            # /dev/null tree
13620            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13621 echo "$as_me: error: cannot find input file: $f" >&2;}
13622    { (exit 1); exit 1; }; }
13623          fi;;
13624       esac
13625     done` || { (exit 1); exit 1; }
13626   # Remove the trailing spaces.
13627   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13628
13629 _ACEOF
13630
13631 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13632 # `conftest.undefs', that substitutes the proper values into
13633 # config.h.in to produce config.h.  The first handles `#define'
13634 # templates, and the second `#undef' templates.
13635 # And first: Protect against being on the right side of a sed subst in
13636 # config.status.  Protect against being in an unquoted here document
13637 # in config.status.
13638 rm -f conftest.defines conftest.undefs
13639 # Using a here document instead of a string reduces the quoting nightmare.
13640 # Putting comments in sed scripts is not portable.
13641 #
13642 # `end' is used to avoid that the second main sed command (meant for
13643 # 0-ary CPP macros) applies to n-ary macro definitions.
13644 # See the Autoconf documentation for `clear'.
13645 cat >confdef2sed.sed <<\_ACEOF
13646 s/[\\&,]/\\&/g
13647 s,[\\$`],\\&,g
13648 t clear
13649 : clear
13650 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13651 t end
13652 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13653 : end
13654 _ACEOF
13655 # If some macros were called several times there might be several times
13656 # the same #defines, which is useless.  Nevertheless, we may not want to
13657 # sort them, since we want the *last* AC-DEFINE to be honored.
13658 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13659 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13660 rm -f confdef2sed.sed
13661
13662 # This sed command replaces #undef with comments.  This is necessary, for
13663 # example, in the case of _POSIX_SOURCE, which is predefined and required
13664 # on some systems where configure will not decide to define it.
13665 cat >>conftest.undefs <<\_ACEOF
13666 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13667 _ACEOF
13668
13669 # Break up conftest.defines because some shells have a limit on the size
13670 # of here documents, and old seds have small limits too (100 cmds).
13671 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13672 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13673 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13674 echo '  :' >>$CONFIG_STATUS
13675 rm -f conftest.tail
13676 while grep . conftest.defines >/dev/null
13677 do
13678   # Write a limited-size here document to $tmp/defines.sed.
13679   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13680   # Speed up: don't consider the non `#define' lines.
13681   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13682   # Work around the forget-to-reset-the-flag bug.
13683   echo 't clr' >>$CONFIG_STATUS
13684   echo ': clr' >>$CONFIG_STATUS
13685   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13686   echo 'CEOF
13687   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13688   rm -f $tmp/in
13689   mv $tmp/out $tmp/in
13690 ' >>$CONFIG_STATUS
13691   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13692   rm -f conftest.defines
13693   mv conftest.tail conftest.defines
13694 done
13695 rm -f conftest.defines
13696 echo '  fi # grep' >>$CONFIG_STATUS
13697 echo >>$CONFIG_STATUS
13698
13699 # Break up conftest.undefs because some shells have a limit on the size
13700 # of here documents, and old seds have small limits too (100 cmds).
13701 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13702 rm -f conftest.tail
13703 while grep . conftest.undefs >/dev/null
13704 do
13705   # Write a limited-size here document to $tmp/undefs.sed.
13706   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13707   # Speed up: don't consider the non `#undef'
13708   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13709   # Work around the forget-to-reset-the-flag bug.
13710   echo 't clr' >>$CONFIG_STATUS
13711   echo ': clr' >>$CONFIG_STATUS
13712   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13713   echo 'CEOF
13714   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13715   rm -f $tmp/in
13716   mv $tmp/out $tmp/in
13717 ' >>$CONFIG_STATUS
13718   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13719   rm -f conftest.undefs
13720   mv conftest.tail conftest.undefs
13721 done
13722 rm -f conftest.undefs
13723
13724 cat >>$CONFIG_STATUS <<\_ACEOF
13725   # Let's still pretend it is `configure' which instantiates (i.e., don't
13726   # use $as_me), people would be surprised to read:
13727   #    /* config.h.  Generated by config.status.  */
13728   if test x"$ac_file" = x-; then
13729     echo "/* Generated by configure.  */" >$tmp/config.h
13730   else
13731     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13732   fi
13733   cat $tmp/in >>$tmp/config.h
13734   rm -f $tmp/in
13735   if test x"$ac_file" != x-; then
13736     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13737       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13738 echo "$as_me: $ac_file is unchanged" >&6;}
13739     else
13740       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13742          X"$ac_file" : 'X\(//\)[^/]' \| \
13743          X"$ac_file" : 'X\(//\)$' \| \
13744          X"$ac_file" : 'X\(/\)' \| \
13745          .     : '\(.\)' 2>/dev/null ||
13746 echo X"$ac_file" |
13747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13748           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13749           /^X\(\/\/\)$/{ s//\1/; q; }
13750           /^X\(\/\).*/{ s//\1/; q; }
13751           s/.*/./; q'`
13752       { if $as_mkdir_p; then
13753     mkdir -p "$ac_dir"
13754   else
13755     as_dir="$ac_dir"
13756     as_dirs=
13757     while test ! -d "$as_dir"; do
13758       as_dirs="$as_dir $as_dirs"
13759       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13761          X"$as_dir" : 'X\(//\)[^/]' \| \
13762          X"$as_dir" : 'X\(//\)$' \| \
13763          X"$as_dir" : 'X\(/\)' \| \
13764          .     : '\(.\)' 2>/dev/null ||
13765 echo X"$as_dir" |
13766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13767           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13768           /^X\(\/\/\)$/{ s//\1/; q; }
13769           /^X\(\/\).*/{ s//\1/; q; }
13770           s/.*/./; q'`
13771     done
13772     test ! -n "$as_dirs" || mkdir $as_dirs
13773   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13775    { (exit 1); exit 1; }; }; }
13776
13777       rm -f $ac_file
13778       mv $tmp/config.h $ac_file
13779     fi
13780   else
13781     cat $tmp/config.h
13782     rm -f $tmp/config.h
13783   fi
13784 done
13785 _ACEOF
13786 cat >>$CONFIG_STATUS <<\_ACEOF
13787
13788 #
13789 # CONFIG_COMMANDS section.
13790 #
13791 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13792   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13793   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13794   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13795 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796          X"$ac_dest" : 'X\(//\)[^/]' \| \
13797          X"$ac_dest" : 'X\(//\)$' \| \
13798          X"$ac_dest" : 'X\(/\)' \| \
13799          .     : '\(.\)' 2>/dev/null ||
13800 echo X"$ac_dest" |
13801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13803           /^X\(\/\/\)$/{ s//\1/; q; }
13804           /^X\(\/\).*/{ s//\1/; q; }
13805           s/.*/./; q'`
13806   { if $as_mkdir_p; then
13807     mkdir -p "$ac_dir"
13808   else
13809     as_dir="$ac_dir"
13810     as_dirs=
13811     while test ! -d "$as_dir"; do
13812       as_dirs="$as_dir $as_dirs"
13813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815          X"$as_dir" : 'X\(//\)[^/]' \| \
13816          X"$as_dir" : 'X\(//\)$' \| \
13817          X"$as_dir" : 'X\(/\)' \| \
13818          .     : '\(.\)' 2>/dev/null ||
13819 echo X"$as_dir" |
13820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13822           /^X\(\/\/\)$/{ s//\1/; q; }
13823           /^X\(\/\).*/{ s//\1/; q; }
13824           s/.*/./; q'`
13825     done
13826     test ! -n "$as_dirs" || mkdir $as_dirs
13827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13829    { (exit 1); exit 1; }; }; }
13830
13831   ac_builddir=.
13832
13833 if test "$ac_dir" != .; then
13834   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13835   # A "../" for each directory in $ac_dir_suffix.
13836   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13837 else
13838   ac_dir_suffix= ac_top_builddir=
13839 fi
13840
13841 case $srcdir in
13842   .)  # No --srcdir option.  We are building in place.
13843     ac_srcdir=.
13844     if test -z "$ac_top_builddir"; then
13845        ac_top_srcdir=.
13846     else
13847        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13848     fi ;;
13849   [\\/]* | ?:[\\/]* )  # Absolute path.
13850     ac_srcdir=$srcdir$ac_dir_suffix;
13851     ac_top_srcdir=$srcdir ;;
13852   *) # Relative path.
13853     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13854     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13855 esac
13856
13857 # Do not use `cd foo && pwd` to compute absolute paths, because
13858 # the directories may not exist.
13859 case `pwd` in
13860 .) ac_abs_builddir="$ac_dir";;
13861 *)
13862   case "$ac_dir" in
13863   .) ac_abs_builddir=`pwd`;;
13864   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13865   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13866   esac;;
13867 esac
13868 case $ac_abs_builddir in
13869 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13870 *)
13871   case ${ac_top_builddir}. in
13872   .) ac_abs_top_builddir=$ac_abs_builddir;;
13873   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13874   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13875   esac;;
13876 esac
13877 case $ac_abs_builddir in
13878 .) ac_abs_srcdir=$ac_srcdir;;
13879 *)
13880   case $ac_srcdir in
13881   .) ac_abs_srcdir=$ac_abs_builddir;;
13882   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13883   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13884   esac;;
13885 esac
13886 case $ac_abs_builddir in
13887 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13888 *)
13889   case $ac_top_srcdir in
13890   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13891   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13892   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13893   esac;;
13894 esac
13895
13896
13897   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13898 echo "$as_me: executing $ac_dest commands" >&6;}
13899   case $ac_dest in
13900     default )
13901 case ${CONFIG_HEADERS} in
13902   *auto-host.h:config.in*)
13903   echo > cstamp-h ;;
13904 esac
13905 # Make sure all the subdirs exist.
13906 for d in $subdirs
13907 do
13908     test -d $d || mkdir $d
13909 done
13910 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13911 # bootstrapping and the installation procedure can still use
13912 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13913 # FLAGS_TO_PASS has been modified to solve the problem there.
13914 # This is virtually a duplicate of what happens in configure.lang; we do
13915 # an extra check to make sure this only happens if ln -s can be used.
13916 if test "$symbolic_link" = "ln -s"; then
13917  for d in ${subdirs} ; do
13918         STARTDIR=`${PWDCMD-pwd}`
13919         cd $d
13920         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13921         do
13922                 rm -f $t
13923                 $symbolic_link ../$t $t 2>/dev/null
13924         done
13925         cd $STARTDIR
13926  done
13927 else true ; fi
13928  ;;
13929   esac
13930 done
13931 _ACEOF
13932
13933 cat >>$CONFIG_STATUS <<\_ACEOF
13934
13935 { (exit 0); exit 0; }
13936 _ACEOF
13937 chmod +x $CONFIG_STATUS
13938 ac_clean_files=$ac_clean_files_save
13939
13940
13941 # configure is writing to config.log, and then calls config.status.
13942 # config.status does its own redirection, appending to config.log.
13943 # Unfortunately, on DOS this fails, as config.log is still kept open
13944 # by configure, so config.status won't be able to write to it; its
13945 # output is simply discarded.  So we exec the FD to /dev/null,
13946 # effectively closing config.log, so it can be properly (re)opened and
13947 # appended to by config.status.  When coming back to configure, we
13948 # need to make the FD available again.
13949 if test "$no_create" != yes; then
13950   ac_cs_success=:
13951   ac_config_status_args=
13952   test "$silent" = yes &&
13953     ac_config_status_args="$ac_config_status_args --quiet"
13954   exec 5>/dev/null
13955   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13956   exec 5>>config.log
13957   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13958   # would make configure fail if this is the last instruction.
13959   $ac_cs_success || { (exit 1); exit 1; }
13960 fi
13961