OSDN Git Service

2005-06-08 Dale Johannesen <dalej@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER 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 LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir 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 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: yes,no,all,none,release.
871                           Flags are: assert,fold,gc,gcac,misc,
872                           rtlflag,rtl,runtime,tree,valgrind.
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-threads        enable thread usage for target GCC
884   --enable-threads=LIB    use LIB thread package for target GCC
885   --enable-objc-gc        enable the use of Boehm's garbage collector with
886                           the GNU Objective-C runtime
887   --disable-shared        don't provide a shared libgcc
888   --enable-intermodule    build the compiler in one step
889   --enable-languages=LIST specify which front-ends to build
890   --disable-rpath         do not hardcode runtime library paths
891   --enable-initfini-array       use .init_array/.fini_array sections
892   --enable-sjlj-exceptions
893                           arrange to use setjmp/longjmp exception handling
894   --enable-secureplt      enable -msecure-plt by default for PowerPC
895   --disable-win32-registry
896                           disable lookup of installation paths in the
897                           Registry on Windows hosts
898   --enable-win32-registry enable registry lookup (default)
899   --enable-win32-registry=KEY
900                           use KEY instead of GCC version as the last portion
901                           of the registry key
902   --enable-maintainer-mode
903                           enable make rules and dependencies not useful
904                           (and sometimes confusing) to the casual installer
905   --enable-version-specific-runtime-libs
906                           specify that runtime libraries should be
907                           installed in a compiler-specific directory
908
909 Optional Packages:
910   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
911   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
912   --with-local-prefix=DIR specifies directory to put local include
913   --with-gxx-include-dir=DIR
914                           specifies directory to put g++ header files
915   --with-cpp-install-dir=DIR
916                           install the user visible C preprocessor in DIR
917                           (relative to PREFIX) as well as PREFIX/bin
918   --with-gnu-ld           arrange to work with GNU ld.
919   --with-ld               arrange to use the specified ld (full pathname)
920   --with-demangler-in-ld  try to use demangler in GNU ld.
921   --with-gnu-as           arrange to work with GNU as
922   --with-as               arrange to use the specified as (full pathname)
923   --with-stabs            arrange to use stabs instead of host debug format
924   --with-dwarf2           force the default debug format to be DWARF 2
925   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
926   --with-gnu-ld           assume the C compiler uses GNU ld default=no
927   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
928   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
929   --with-system-libunwind use installed libunwind
930   --with-gc={page,zone}   choose the garbage collection mechanism to use
931                           with the compiler
932   --with-system-zlib      use installed libz
933   --with-slibdir=DIR      shared libraries in DIR LIBDIR
934
935 Some influential environment variables:
936   CC          C compiler command
937   CFLAGS      C compiler flags
938   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
939               nonstandard directory <lib dir>
940   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
941               headers in a nonstandard directory <include dir>
942   CPP         C preprocessor
943   GMPLIBS     How to link GMP
944   GMPINC      How to find GMP include files
945
946 Use these variables to override the choices made by `configure' or to help
947 it to find libraries and programs with nonstandard names/locations.
948
949 _ACEOF
950 fi
951
952 if test "$ac_init_help" = "recursive"; then
953   # If there are subdirs, report their specific --help.
954   ac_popdir=`pwd`
955   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
956     test -d $ac_dir || continue
957     ac_builddir=.
958
959 if test "$ac_dir" != .; then
960   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
961   # A "../" for each directory in $ac_dir_suffix.
962   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
963 else
964   ac_dir_suffix= ac_top_builddir=
965 fi
966
967 case $srcdir in
968   .)  # No --srcdir option.  We are building in place.
969     ac_srcdir=.
970     if test -z "$ac_top_builddir"; then
971        ac_top_srcdir=.
972     else
973        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
974     fi ;;
975   [\\/]* | ?:[\\/]* )  # Absolute path.
976     ac_srcdir=$srcdir$ac_dir_suffix;
977     ac_top_srcdir=$srcdir ;;
978   *) # Relative path.
979     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
980     ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 esac
982
983 # Do not use `cd foo && pwd` to compute absolute paths, because
984 # the directories may not exist.
985 case `pwd` in
986 .) ac_abs_builddir="$ac_dir";;
987 *)
988   case "$ac_dir" in
989   .) ac_abs_builddir=`pwd`;;
990   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
991   *) ac_abs_builddir=`pwd`/"$ac_dir";;
992   esac;;
993 esac
994 case $ac_abs_builddir in
995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *)
997   case ${ac_top_builddir}. in
998   .) ac_abs_top_builddir=$ac_abs_builddir;;
999   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1000   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001   esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_srcdir=$ac_srcdir;;
1005 *)
1006   case $ac_srcdir in
1007   .) ac_abs_srcdir=$ac_abs_builddir;;
1008   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1009   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010   esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *)
1015   case $ac_top_srcdir in
1016   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1017   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1018   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1019   esac;;
1020 esac
1021
1022     cd $ac_dir
1023     # Check for guested configure; otherwise get Cygnus style configure.
1024     if test -f $ac_srcdir/configure.gnu; then
1025       echo
1026       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1027     elif test -f $ac_srcdir/configure; then
1028       echo
1029       $SHELL $ac_srcdir/configure  --help=recursive
1030     elif test -f $ac_srcdir/configure.ac ||
1031            test -f $ac_srcdir/configure.in; then
1032       echo
1033       $ac_configure --help
1034     else
1035       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036     fi
1037     cd $ac_popdir
1038   done
1039 fi
1040
1041 test -n "$ac_init_help" && exit 0
1042 if $ac_init_version; then
1043   cat <<\_ACEOF
1044
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1048 _ACEOF
1049   exit 0
1050 fi
1051 exec 5>config.log
1052 cat >&5 <<_ACEOF
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1055
1056 It was created by $as_me, which was
1057 generated by GNU Autoconf 2.59.  Invocation command line was
1058
1059   $ $0 $@
1060
1061 _ACEOF
1062 {
1063 cat <<_ASUNAME
1064 ## --------- ##
1065 ## Platform. ##
1066 ## --------- ##
1067
1068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073
1074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1076
1077 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1078 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1081 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1082 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1083 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1084
1085 _ASUNAME
1086
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1088 for as_dir in $PATH
1089 do
1090   IFS=$as_save_IFS
1091   test -z "$as_dir" && as_dir=.
1092   echo "PATH: $as_dir"
1093 done
1094
1095 } >&5
1096
1097 cat >&5 <<_ACEOF
1098
1099
1100 ## ----------- ##
1101 ## Core tests. ##
1102 ## ----------- ##
1103
1104 _ACEOF
1105
1106
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_configure_args=
1113 ac_configure_args0=
1114 ac_configure_args1=
1115 ac_sep=
1116 ac_must_keep_next=false
1117 for ac_pass in 1 2
1118 do
1119   for ac_arg
1120   do
1121     case $ac_arg in
1122     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124     | -silent | --silent | --silen | --sile | --sil)
1125       continue ;;
1126     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1128     esac
1129     case $ac_pass in
1130     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131     2)
1132       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133       if test $ac_must_keep_next = true; then
1134         ac_must_keep_next=false # Got value, back to normal.
1135       else
1136         case $ac_arg in
1137           *=* | --config-cache | -C | -disable-* | --disable-* \
1138           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140           | -with-* | --with-* | -without-* | --without-* | --x)
1141             case "$ac_configure_args0 " in
1142               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143             esac
1144             ;;
1145           -* ) ac_must_keep_next=true ;;
1146         esac
1147       fi
1148       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149       # Get rid of the leading space.
1150       ac_sep=" "
1151       ;;
1152     esac
1153   done
1154 done
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log.  We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close' the trap.
1163 trap 'exit_status=$?
1164   # Save into config.log some information that might help in debugging.
1165   {
1166     echo
1167
1168     cat <<\_ASBOX
1169 ## ---------------- ##
1170 ## Cache variables. ##
1171 ## ---------------- ##
1172 _ASBOX
1173     echo
1174     # The following way of writing the cache mishandles newlines in values,
1175 {
1176   (set) 2>&1 |
1177     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178     *ac_space=\ *)
1179       sed -n \
1180         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182       ;;
1183     *)
1184       sed -n \
1185         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186       ;;
1187     esac;
1188 }
1189     echo
1190
1191     cat <<\_ASBOX
1192 ## ----------------- ##
1193 ## Output variables. ##
1194 ## ----------------- ##
1195 _ASBOX
1196     echo
1197     for ac_var in $ac_subst_vars
1198     do
1199       eval ac_val=$`echo $ac_var`
1200       echo "$ac_var='"'"'$ac_val'"'"'"
1201     done | sort
1202     echo
1203
1204     if test -n "$ac_subst_files"; then
1205       cat <<\_ASBOX
1206 ## ------------- ##
1207 ## Output files. ##
1208 ## ------------- ##
1209 _ASBOX
1210       echo
1211       for ac_var in $ac_subst_files
1212       do
1213         eval ac_val=$`echo $ac_var`
1214         echo "$ac_var='"'"'$ac_val'"'"'"
1215       done | sort
1216       echo
1217     fi
1218
1219     if test -s confdefs.h; then
1220       cat <<\_ASBOX
1221 ## ----------- ##
1222 ## confdefs.h. ##
1223 ## ----------- ##
1224 _ASBOX
1225       echo
1226       sed "/^$/d" confdefs.h | sort
1227       echo
1228     fi
1229     test "$ac_signal" != 0 &&
1230       echo "$as_me: caught signal $ac_signal"
1231     echo "$as_me: exit $exit_status"
1232   } >&5
1233   rm -f core *.core &&
1234   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1235     exit $exit_status
1236      ' 0
1237 for ac_signal in 1 2 13 15; do
1238   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1239 done
1240 ac_signal=0
1241
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 echo >confdefs.h
1246
1247 # Predefined preprocessor variables.
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_NAME "$PACKAGE_NAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_STRING "$PACKAGE_STRING"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1271 _ACEOF
1272
1273
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277   if test "x$prefix" != xNONE; then
1278     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279   else
1280     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281   fi
1282 fi
1283 for ac_site_file in $CONFIG_SITE; do
1284   if test -r "$ac_site_file"; then
1285     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287     sed 's/^/| /' "$ac_site_file" >&5
1288     . "$ac_site_file"
1289   fi
1290 done
1291
1292 if test -r "$cache_file"; then
1293   # Some versions of bash will fail to source /dev/null (special
1294   # files actually), so we avoid doing that.
1295   if test -f "$cache_file"; then
1296     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1298     case $cache_file in
1299       [\\/]* | ?:[\\/]* ) . $cache_file;;
1300       *)                      . ./$cache_file;;
1301     esac
1302   fi
1303 else
1304   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1306   >$cache_file
1307 fi
1308
1309 # Check that the precious variables saved in the cache have kept the same
1310 # value.
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1314   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315   eval ac_new_set=\$ac_env_${ac_var}_set
1316   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317   eval ac_new_val="\$ac_env_${ac_var}_value"
1318   case $ac_old_set,$ac_new_set in
1319     set,)
1320       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322       ac_cache_corrupted=: ;;
1323     ,set)
1324       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326       ac_cache_corrupted=: ;;
1327     ,);;
1328     *)
1329       if test "x$ac_old_val" != "x$ac_new_val"; then
1330         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1331 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1332         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1333 echo "$as_me:   former value:  $ac_old_val" >&2;}
1334         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1335 echo "$as_me:   current value: $ac_new_val" >&2;}
1336         ac_cache_corrupted=:
1337       fi;;
1338   esac
1339   # Pass precious variables to config.status.
1340   if test "$ac_new_set" = set; then
1341     case $ac_new_val in
1342     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344     *) ac_arg=$ac_var=$ac_new_val ;;
1345     esac
1346     case " $ac_configure_args " in
1347       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1348       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1349     esac
1350   fi
1351 done
1352 if $ac_cache_corrupted; then
1353   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1356 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359
1360 ac_ext=c
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386
1387
1388 # Determine the host, build, and target systems
1389 ac_aux_dir=
1390 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1391   if test -f $ac_dir/install-sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install-sh -c"
1394     break
1395   elif test -f $ac_dir/install.sh; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/install.sh -c"
1398     break
1399   elif test -f $ac_dir/shtool; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/shtool install -c"
1402     break
1403   fi
1404 done
1405 if test -z "$ac_aux_dir"; then
1406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1408    { (exit 1); exit 1; }; }
1409 fi
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413
1414 # Make sure we can run config.sub.
1415 $ac_config_sub sun4 >/dev/null 2>&1 ||
1416   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1418    { (exit 1); exit 1; }; }
1419
1420 echo "$as_me:$LINENO: checking build system type" >&5
1421 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1422 if test "${ac_cv_build+set}" = set; then
1423   echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425   ac_cv_build_alias=$build_alias
1426 test -z "$ac_cv_build_alias" &&
1427   ac_cv_build_alias=`$ac_config_guess`
1428 test -z "$ac_cv_build_alias" &&
1429   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1431    { (exit 1); exit 1; }; }
1432 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1433   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1435    { (exit 1); exit 1; }; }
1436
1437 fi
1438 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1439 echo "${ECHO_T}$ac_cv_build" >&6
1440 build=$ac_cv_build
1441 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444
1445
1446 echo "$as_me:$LINENO: checking host system type" >&5
1447 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1448 if test "${ac_cv_host+set}" = set; then
1449   echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451   ac_cv_host_alias=$host_alias
1452 test -z "$ac_cv_host_alias" &&
1453   ac_cv_host_alias=$ac_cv_build_alias
1454 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1455   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1457    { (exit 1); exit 1; }; }
1458
1459 fi
1460 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1461 echo "${ECHO_T}$ac_cv_host" >&6
1462 host=$ac_cv_host
1463 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466
1467
1468 echo "$as_me:$LINENO: checking target system type" >&5
1469 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1470 if test "${ac_cv_target+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   ac_cv_target_alias=$target_alias
1474 test "x$ac_cv_target_alias" = "x" &&
1475   ac_cv_target_alias=$ac_cv_host_alias
1476 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1477   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1483 echo "${ECHO_T}$ac_cv_target" >&6
1484 target=$ac_cv_target
1485 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 # The aliases save the names the user supplied, while $host etc.
1491 # will get canonicalized.
1492 test -n "$target_alias" &&
1493   test "$program_prefix$program_suffix$program_transform_name" = \
1494     NONENONEs,x,x, &&
1495   program_prefix=${target_alias}-
1496
1497 # Determine the noncanonical target name, for directory use.
1498  case ${build_alias} in
1499   "") build_noncanonical=${build} ;;
1500   *) build_noncanonical=${build_alias} ;;
1501 esac
1502
1503  case ${host_alias} in
1504   "") host_noncanonical=${build_noncanonical} ;;
1505   *) host_noncanonical=${host_alias} ;;
1506 esac
1507
1508  case ${target_alias} in
1509   "") target_noncanonical=${host_noncanonical} ;;
1510   *) target_noncanonical=${target_alias} ;;
1511 esac
1512
1513
1514
1515
1516 # Determine the target- and build-specific subdirectories
1517   # Prefix 'build-' so this never conflicts with target_subdir.
1518 build_subdir="build-${build_noncanonical}"
1519 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1520 if ( test $srcdir = . && test -d gcc ) \
1521    || test -d $srcdir/../host-${host_noncanonical}; then
1522   host_subdir="host-${host_noncanonical}"
1523 else
1524   host_subdir=.
1525 fi
1526 # No prefix.
1527 target_subdir=${target_noncanonical}
1528
1529
1530 # Set program_transform_name
1531 test "$program_prefix" != NONE &&
1532   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $.  echo might interpret backslashes.
1537 # By default was `s,x,x', remove it if useless.
1538 cat <<\_ACEOF >conftest.sed
1539 s/[\\$]/&&/g;s/;s,x,x,$//
1540 _ACEOF
1541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1542 rm conftest.sed
1543
1544
1545 # Check for bogus environment variables.
1546 # Test if LIBRARY_PATH contains the notation for the current directory
1547 # since this would lead to problems installing/building glibc.
1548 # LIBRARY_PATH contains the current directory if one of the following
1549 # is true:
1550 # - one of the terminals (":" and ";") is the first or last sign
1551 # - two terminals occur directly after each other
1552 # - the path contains an element with a dot in it
1553 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1554 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1555 case ${LIBRARY_PATH} in
1556   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1557     library_path_setting="contains current directory"
1558     ;;
1559   *)
1560     library_path_setting="ok"
1561     ;;
1562 esac
1563 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1564 echo "${ECHO_T}$library_path_setting" >&6
1565 if test "$library_path_setting" != "ok"; then
1566 { { echo "$as_me:$LINENO: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&5
1570 echo "$as_me: error:
1571 *** LIBRARY_PATH shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576
1577 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1578 # since this would lead to problems installing/building glibc.
1579 # GCC_EXEC_PREFIX contains the current directory if one of the following
1580 # is true:
1581 # - one of the terminals (":" and ";") is the first or last sign
1582 # - two terminals occur directly after each other
1583 # - the path contains an element with a dot in it
1584 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1585 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1586 case ${GCC_EXEC_PREFIX} in
1587   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1588     gcc_exec_prefix_setting="contains current directory"
1589     ;;
1590   *)
1591     gcc_exec_prefix_setting="ok"
1592     ;;
1593 esac
1594 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1595 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1596 if test "$gcc_exec_prefix_setting" != "ok"; then
1597 { { echo "$as_me:$LINENO: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&5
1601 echo "$as_me: error:
1602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&2;}
1605    { (exit 1); exit 1; }; }
1606 fi
1607
1608 # -----------
1609 # Directories
1610 # -----------
1611
1612 # Specify the local prefix
1613 local_prefix=
1614
1615 # Check whether --with-local-prefix or --without-local-prefix was given.
1616 if test "${with_local_prefix+set}" = set; then
1617   withval="$with_local_prefix"
1618   case "${withval}" in
1619 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1620 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1621    { (exit 1); exit 1; }; } ;;
1622 no)     ;;
1623 *)      local_prefix=$with_local_prefix ;;
1624 esac
1625 fi;
1626
1627 # Default local prefix if it is empty
1628 if test x$local_prefix = x; then
1629         local_prefix=/usr/local
1630 fi
1631
1632 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1633 # passed in by the toplevel make and thus we'd get different behavior
1634 # depending on where we built the sources.
1635 gcc_gxx_include_dir=
1636 # Specify the g++ header file directory
1637
1638 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1639 if test "${with_gxx_include_dir+set}" = set; then
1640   withval="$with_gxx_include_dir"
1641   case "${withval}" in
1642 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1643 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1644    { (exit 1); exit 1; }; } ;;
1645 no)     ;;
1646 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1647 esac
1648 fi;
1649
1650 if test x${gcc_gxx_include_dir} = x; then
1651   if test x${enable_version_specific_runtime_libs} = xyes; then
1652     gcc_gxx_include_dir='${libsubdir}/include/c++'
1653   else
1654     libstdcxx_incdir='c++/$(version)'
1655     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1656   fi
1657 fi
1658
1659
1660 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1661 if test "${with_cpp_install_dir+set}" = set; then
1662   withval="$with_cpp_install_dir"
1663   if test x$withval = xyes; then
1664   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1665 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1666    { (exit 1); exit 1; }; }
1667 elif test x$withval != xno; then
1668   cpp_install_dir=$withval
1669 fi
1670 fi;
1671
1672 # We would like to our source tree to be readonly.  However when releases or
1673 # pre-releases are generated, the flex/bison generated files as well as the
1674 # various formats of manuals need to be included along with the rest of the
1675 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1676 # just that.
1677
1678 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1679 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1680     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1681 if test "${enable_generated_files_in_srcdir+set}" = set; then
1682   enableval="$enable_generated_files_in_srcdir"
1683   generated_files_in_srcdir=$enableval
1684 else
1685   generated_files_in_srcdir=no
1686 fi;
1687
1688 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1689 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690
1691 if test "$generated_files_in_srcdir" = "yes"; then
1692   GENINSRC=''
1693 else
1694   GENINSRC='#'
1695 fi
1696
1697
1698 # -------------------
1699 # Find default linker
1700 # -------------------
1701
1702 # With GNU ld
1703
1704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1705 if test "${with_gnu_ld+set}" = set; then
1706   withval="$with_gnu_ld"
1707   gnu_ld_flag="$with_gnu_ld"
1708 else
1709   gnu_ld_flag=no
1710 fi;
1711
1712 # With pre-defined ld
1713
1714 # Check whether --with-ld or --without-ld was given.
1715 if test "${with_ld+set}" = set; then
1716   withval="$with_ld"
1717   DEFAULT_LINKER="$with_ld"
1718 fi;
1719 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1720   if test ! -x "$DEFAULT_LINKER"; then
1721     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1722 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1723    { (exit 1); exit 1; }; }
1724   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1725     gnu_ld_flag=yes
1726   fi
1727
1728 cat >>confdefs.h <<_ACEOF
1729 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1730 _ACEOF
1731
1732 fi
1733
1734 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1735 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1736 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1737   if test x"$gnu_ld_flag" = x"no"; then
1738     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1739 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1740   else
1741     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1742 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1743   fi
1744 else
1745   echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1747 fi
1748
1749 # With demangler in GNU ld
1750
1751 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1752 if test "${with_demangler_in_ld+set}" = set; then
1753   withval="$with_demangler_in_ld"
1754   demangler_in_ld="$with_demangler_in_ld"
1755 else
1756   demangler_in_ld=no
1757 fi;
1758
1759 # ----------------------
1760 # Find default assembler
1761 # ----------------------
1762
1763 # With GNU as
1764
1765 # Check whether --with-gnu-as or --without-gnu-as was given.
1766 if test "${with_gnu_as+set}" = set; then
1767   withval="$with_gnu_as"
1768   gas_flag="$with_gnu_as"
1769 else
1770   gas_flag=no
1771 fi;
1772
1773
1774 # Check whether --with-as or --without-as was given.
1775 if test "${with_as+set}" = set; then
1776   withval="$with_as"
1777   DEFAULT_ASSEMBLER="$with_as"
1778 fi;
1779 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1780   if test ! -x "$DEFAULT_ASSEMBLER"; then
1781     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1782 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1783    { (exit 1); exit 1; }; }
1784   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1785     gas_flag=yes
1786   fi
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1790 _ACEOF
1791
1792 fi
1793
1794 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1795 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1796 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1797   if test x"$gas_flag" = x"no"; then
1798     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1799 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1800   else
1801     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1802 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1803   fi
1804 else
1805   echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809 # ---------------
1810 # Find C compiler
1811 # ---------------
1812
1813 # If a non-executable a.out is present (e.g. created by GNU as above even if
1814 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1815 # file, even when creating an executable, so an execution test fails.
1816 # Remove possible default executable files to avoid this.
1817 #
1818 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1819 # Autoconf includes it.
1820 rm -f a.out a.exe b.out
1821
1822 # Find the native compiler
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$CC"; then
1837   ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857   echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 fi
1865 if test -z "$ac_cv_prog_CC"; then
1866   ac_ct_CC=$CC
1867   # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$ac_ct_CC"; then
1875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880   IFS=$as_save_IFS
1881   test -z "$as_dir" && as_dir=.
1882   for ac_exec_ext in '' $ac_executable_extensions; do
1883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884     ac_cv_prog_ac_ct_CC="gcc"
1885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886     break 2
1887   fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898   echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902   CC=$ac_ct_CC
1903 else
1904   CC="$ac_cv_prog_CC"
1905 fi
1906
1907 if test -z "$CC"; then
1908   if test -n "$ac_tool_prefix"; then
1909   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$CC"; then
1917   ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_CC="${ac_tool_prefix}cc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937   echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944 fi
1945 if test -z "$ac_cv_prog_CC"; then
1946   ac_ct_CC=$CC
1947   # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$ac_ct_CC"; then
1955   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960   IFS=$as_save_IFS
1961   test -z "$as_dir" && as_dir=.
1962   for ac_exec_ext in '' $ac_executable_extensions; do
1963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964     ac_cv_prog_ac_ct_CC="cc"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970
1971 fi
1972 fi
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1977 else
1978   echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982   CC=$ac_ct_CC
1983 else
1984   CC="$ac_cv_prog_CC"
1985 fi
1986
1987 fi
1988 if test -z "$CC"; then
1989   # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$CC"; then
1997   ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999   ac_prog_rejected=no
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005   for ac_exec_ext in '' $ac_executable_extensions; do
2006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008        ac_prog_rejected=yes
2009        continue
2010      fi
2011     ac_cv_prog_CC="cc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 if test $ac_prog_rejected = yes; then
2019   # We found a bogon in the path, so make sure we never use it.
2020   set dummy $ac_cv_prog_CC
2021   shift
2022   if test $# != 0; then
2023     # We chose a different compiler from the bogus one.
2024     # However, it has the same basename, so the bogon will be chosen
2025     # first if we set CC to just the basename; use the full file name.
2026     shift
2027     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2028   fi
2029 fi
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034   echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$CC"; then
2043   if test -n "$ac_tool_prefix"; then
2044   for ac_prog in cl
2045   do
2046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$CC"; then
2054   ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 fi
2071 fi
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074   echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077   echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081     test -n "$CC" && break
2082   done
2083 fi
2084 if test -z "$CC"; then
2085   ac_ct_CC=$CC
2086   for ac_prog in cl
2087 do
2088   # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$ac_ct_CC"; then
2096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105     ac_cv_prog_ac_ct_CC="$ac_prog"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119   echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123   test -n "$ac_ct_CC" && break
2124 done
2125
2126   CC=$ac_ct_CC
2127 fi
2128
2129 fi
2130
2131
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&2;}
2136    { (exit 1); exit 1; }; }
2137
2138 # Provide some information about the compiler.
2139 echo "$as_me:$LINENO:" \
2140      "checking for C compiler version" >&5
2141 ac_compiler=`set X $ac_compile; echo $2`
2142 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2143   (eval $ac_compiler --version </dev/null >&5) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2148   (eval $ac_compiler -v </dev/null >&5) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2153   (eval $ac_compiler -V </dev/null >&5) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }
2157
2158 cat >conftest.$ac_ext <<_ACEOF
2159 /* confdefs.h.  */
2160 _ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h.  */
2164
2165 int
2166 main ()
2167 {
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 ac_clean_files_save=$ac_clean_files
2174 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2175 # Try to create an executable without -o first, disregard a.out.
2176 # It will help us diagnose broken compilers, and finding out an intuition
2177 # of exeext.
2178 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2180 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2181 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2182   (eval $ac_link_default) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; then
2186   # Find the output, starting from the most likely.  This scheme is
2187 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2188 # resort.
2189
2190 # Be careful to initialize this variable, since it used to be cached.
2191 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2192 ac_cv_exeext=
2193 # b.out is created by i960 compilers.
2194 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2195 do
2196   test -f "$ac_file" || continue
2197   case $ac_file in
2198     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2199         ;;
2200     conftest.$ac_ext )
2201         # This is the source file.
2202         ;;
2203     [ab].out )
2204         # We found the default executable, but exeext='' is most
2205         # certainly right.
2206         break;;
2207     *.* )
2208         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2209         # FIXME: I believe we export ac_cv_exeext for Libtool,
2210         # but it would be cool to find out if it's true.  Does anybody
2211         # maintain Libtool? --akim.
2212         export ac_cv_exeext
2213         break;;
2214     * )
2215         break;;
2216   esac
2217 done
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&2;}
2226    { (exit 77); exit 77; }; }
2227 fi
2228
2229 ac_exeext=$ac_cv_exeext
2230 echo "$as_me:$LINENO: result: $ac_file" >&5
2231 echo "${ECHO_T}$ac_file" >&6
2232
2233 # Check the compiler produces executables we can run.  If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240   if { ac_try='./$ac_file'
2241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242   (eval $ac_try) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; }; then
2246     cross_compiling=no
2247   else
2248     if test "$cross_compiling" = maybe; then
2249         cross_compiling=yes
2250     else
2251         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&2;}
2257    { (exit 1); exit 1; }; }
2258     fi
2259   fi
2260 fi
2261 echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6
2263
2264 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2265 ac_clean_files=$ac_clean_files_save
2266 # Check the compiler produces executables we can run.  If not, either
2267 # the compiler is broken, or we cross compile.
2268 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2269 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2270 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2271 echo "${ECHO_T}$cross_compiling" >&6
2272
2273 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2274 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2276   (eval $ac_link) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; then
2280   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2281 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2282 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 # `rm'.
2284 for ac_file in conftest.exe conftest conftest.*; do
2285   test -f "$ac_file" || continue
2286   case $ac_file in
2287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2288     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289           export ac_cv_exeext
2290           break;;
2291     * ) break;;
2292   esac
2293 done
2294 else
2295   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302 rm -f conftest$ac_cv_exeext
2303 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6
2305
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2308 ac_exeext=$EXEEXT
2309 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2311 if test "${ac_cv_objext+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h.  */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h.  */
2320
2321 int
2322 main ()
2323 {
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.o conftest.obj
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331   (eval $ac_compile) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; then
2335   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339        break;;
2340   esac
2341 done
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 fi
2355 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6
2357 OBJEXT=$ac_cv_objext
2358 ac_objext=$OBJEXT
2359 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374 #ifndef __GNUC__
2375        choke me
2376 #endif
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384   (eval $ac_compile) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -z "$ac_c_werror_flag"
2392                          || test ! -s conftest.err'
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); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   ac_compiler_gnu=yes
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_compiler_gnu=no
2410 fi
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2413
2414 fi
2415 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2417 GCC=`test $ac_compiler_gnu = yes && echo yes`
2418 ac_test_CFLAGS=${CFLAGS+set}
2419 ac_save_CFLAGS=$CFLAGS
2420 CFLAGS="-g"
2421 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2423 if test "${ac_cv_prog_cc_g+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443   (eval $ac_compile) 2>conftest.er1
2444   ac_status=$?
2445   grep -v '^ *+' conftest.er1 >conftest.err
2446   rm -f conftest.er1
2447   cat conftest.err >&5
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); } &&
2450          { ac_try='test -z "$ac_c_werror_flag"
2451                          || test ! -s conftest.err'
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); }; } &&
2457          { ac_try='test -s conftest.$ac_objext'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; }; then
2463   ac_cv_prog_cc_g=yes
2464 else
2465   echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467
2468 ac_cv_prog_cc_g=no
2469 fi
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 fi
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2474 if test "$ac_test_CFLAGS" = set; then
2475   CFLAGS=$ac_save_CFLAGS
2476 elif test $ac_cv_prog_cc_g = yes; then
2477   if test "$GCC" = yes; then
2478     CFLAGS="-g -O2"
2479   else
2480     CFLAGS="-g"
2481   fi
2482 else
2483   if test "$GCC" = yes; then
2484     CFLAGS="-O2"
2485   else
2486     CFLAGS=
2487   fi
2488 fi
2489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   ac_cv_prog_cc_stdc=no
2495 ac_save_CC=$CC
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502 #include <stdarg.h>
2503 #include <stdio.h>
2504 #include <sys/types.h>
2505 #include <sys/stat.h>
2506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2507 struct buf { int x; };
2508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2509 static char *e (p, i)
2510      char **p;
2511      int i;
2512 {
2513   return p[i];
2514 }
2515 static char *f (char * (*g) (char **, int), char **p, ...)
2516 {
2517   char *s;
2518   va_list v;
2519   va_start (v,p);
2520   s = g (p, va_arg (v,int));
2521   va_end (v);
2522   return s;
2523 }
2524
2525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2526    function prototypes and stuff, but not '\xHH' hex character constants.
2527    These don't provoke an error unfortunately, instead are silently treated
2528    as 'x'.  The following induces an error, until -std1 is added to get
2529    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2530    array size at least.  It's necessary to write '\x00'==0 to get something
2531    that's true only with -std1.  */
2532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533
2534 int test (int i, double x);
2535 struct s1 {int (*f) (int a);};
2536 struct s2 {int (*f) (double a);};
2537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2538 int argc;
2539 char **argv;
2540 int
2541 main ()
2542 {
2543 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 # Don't try gcc -ansi; that turns off useful extensions and
2549 # breaks some systems' header files.
2550 # AIX                   -qlanglvl=ansi
2551 # Ultrix and OSF/1      -std1
2552 # HP-UX 10.20 and later -Ae
2553 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2554 # SVR4                  -Xc -D__EXTENSIONS__
2555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 do
2557   CC="$ac_save_CC $ac_arg"
2558   rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560   (eval $ac_compile) 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } &&
2567          { ac_try='test -z "$ac_c_werror_flag"
2568                          || test ! -s conftest.err'
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); }; } &&
2574          { ac_try='test -s conftest.$ac_objext'
2575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576   (eval $ac_try) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; }; then
2580   ac_cv_prog_cc_stdc=$ac_arg
2581 break
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 fi
2587 rm -f conftest.err conftest.$ac_objext
2588 done
2589 rm -f conftest.$ac_ext conftest.$ac_objext
2590 CC=$ac_save_CC
2591
2592 fi
2593
2594 case "x$ac_cv_prog_cc_stdc" in
2595   x|xno)
2596     echo "$as_me:$LINENO: result: none needed" >&5
2597 echo "${ECHO_T}none needed" >&6 ;;
2598   *)
2599     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2601     CC="$CC $ac_cv_prog_cc_stdc" ;;
2602 esac
2603
2604 # Some people use a C++ compiler to compile C.  Since we use `exit',
2605 # in C++ we need to declare it.  In case someone uses the same compiler
2606 # for both compiling C and C++ we need to have the C++ compiler decide
2607 # the declaration of exit, since it's the most demanding environment.
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #ifndef __cplusplus
2610   choke me
2611 #endif
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -z "$ac_c_werror_flag"
2623                          || test ! -s conftest.err'
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); }; } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   for ac_declaration in \
2636    '' \
2637    'extern "C" void std::exit (int) throw (); using std::exit;' \
2638    'extern "C" void std::exit (int); using std::exit;' \
2639    'extern "C" void exit (int) throw ();' \
2640    'extern "C" void exit (int);' \
2641    'void exit (int);'
2642 do
2643   cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 $ac_declaration
2650 #include <stdlib.h>
2651 int
2652 main ()
2653 {
2654 exit (42);
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661   (eval $ac_compile) 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -z "$ac_c_werror_flag"
2669                          || test ! -s conftest.err'
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); }; } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   :
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 continue
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695 $ac_declaration
2696 int
2697 main ()
2698 {
2699 exit (42);
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706   (eval $ac_compile) 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713          { ac_try='test -z "$ac_c_werror_flag"
2714                          || test ! -s conftest.err'
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); }; } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726   break
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 done
2734 rm -f conftest*
2735 if test -n "$ac_declaration"; then
2736   echo '#ifdef __cplusplus' >>confdefs.h
2737   echo $ac_declaration      >>confdefs.h
2738   echo '#endif'             >>confdefs.h
2739 fi
2740
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 fi
2746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753 if test "x$CC" != xcc; then
2754   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2755 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2756 else
2757   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2758 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2759 fi
2760 set dummy $CC; ac_cc=`echo $2 |
2761                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2762 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765   cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h.  */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h.  */
2771
2772 int
2773 main ()
2774 {
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 # Make sure it works both with $CC and with simple cc.
2781 # We do the test twice because some compilers refuse to overwrite an
2782 # existing .o file with -o, though they will create one.
2783 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2784 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } &&
2789    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); };
2794 then
2795   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2796   if test "x$CC" != xcc; then
2797     # Test first that cc exists at all.
2798     if { ac_try='cc -c conftest.$ac_ext >&5'
2799   { (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); }; }; then
2804       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2805       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); } &&
2810          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); };
2815       then
2816         # cc works too.
2817         :
2818       else
2819         # cc exists but doesn't like -o.
2820         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2821       fi
2822     fi
2823   fi
2824 else
2825   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2826 fi
2827 rm -f conftest*
2828
2829 fi
2830 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2831   echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6
2833 else
2834   echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836
2837 cat >>confdefs.h <<\_ACEOF
2838 #define NO_MINUS_C_MINUS_O 1
2839 _ACEOF
2840
2841 fi
2842
2843 # expand $ac_aux_dir to an absolute path
2844 am_aux_dir=`cd $ac_aux_dir && pwd`
2845
2846 # FIXME: we rely on the cache variable name because
2847 # there is no other way.
2848 set dummy $CC
2849 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2850 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2851    # Losing compiler, so override with the script.
2852    # FIXME: It is wrong to rewrite CC.
2853    # But if we don't then we get into trouble of one sort or another.
2854    # A longer-term fix would be to have automake use am__CC in this case,
2855    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2856    CC="$am_aux_dir/compile $CC"
2857 fi
2858
2859 # autoconf is lame and doesn't give us any substitution variable for this.
2860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2861   NO_MINUS_C_MINUS_O=yes
2862 else
2863   OUTPUT_OPTION='-o $@'
2864 fi
2865
2866
2867
2868 # -------------------------
2869 # Check C compiler features
2870 # -------------------------
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2879 # On Suns, sometimes $CPP names a directory.
2880 if test -n "$CPP" && test -d "$CPP"; then
2881   CPP=
2882 fi
2883 if test -z "$CPP"; then
2884   if test "${ac_cv_prog_CPP+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887       # Double quotes because CPP needs to be expanded
2888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889     do
2890       ac_preproc_ok=false
2891 for ac_c_preproc_warn_flag in '' yes
2892 do
2893   # Use a header file that comes with gcc, so configuring glibc
2894   # with a fresh cross-compiler works.
2895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896   # <limits.h> exists even on freestanding compilers.
2897   # On the NeXT, cc -E runs the code through the compiler's parser,
2898   # not just through cpp. "Syntax error" is here to catch this case.
2899   cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h.  */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h.  */
2905 #ifdef __STDC__
2906 # include <limits.h>
2907 #else
2908 # include <assert.h>
2909 #endif
2910                      Syntax error
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914   ac_status=$?
2915   grep -v '^ *+' conftest.er1 >conftest.err
2916   rm -f conftest.er1
2917   cat conftest.err >&5
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); } >/dev/null; then
2920   if test -s conftest.err; then
2921     ac_cpp_err=$ac_c_preproc_warn_flag
2922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923   else
2924     ac_cpp_err=
2925   fi
2926 else
2927   ac_cpp_err=yes
2928 fi
2929 if test -z "$ac_cpp_err"; then
2930   :
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935   # Broken: fails on valid input.
2936 continue
2937 fi
2938 rm -f conftest.err conftest.$ac_ext
2939
2940   # OK, works on sane cases.  Now check whether non-existent headers
2941   # can be detected and how.
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #include <ac_nonexistent.h>
2949 _ACEOF
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } >/dev/null; then
2958   if test -s conftest.err; then
2959     ac_cpp_err=$ac_c_preproc_warn_flag
2960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961   else
2962     ac_cpp_err=
2963   fi
2964 else
2965   ac_cpp_err=yes
2966 fi
2967 if test -z "$ac_cpp_err"; then
2968   # Broken: success on invalid input.
2969 continue
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974   # Passes both tests.
2975 ac_preproc_ok=:
2976 break
2977 fi
2978 rm -f conftest.err conftest.$ac_ext
2979
2980 done
2981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2982 rm -f conftest.err conftest.$ac_ext
2983 if $ac_preproc_ok; then
2984   break
2985 fi
2986
2987     done
2988     ac_cv_prog_CPP=$CPP
2989
2990 fi
2991   CPP=$ac_cv_prog_CPP
2992 else
2993   ac_cv_prog_CPP=$CPP
2994 fi
2995 echo "$as_me:$LINENO: result: $CPP" >&5
2996 echo "${ECHO_T}$CPP" >&6
2997 ac_preproc_ok=false
2998 for ac_c_preproc_warn_flag in '' yes
2999 do
3000   # Use a header file that comes with gcc, so configuring glibc
3001   # with a fresh cross-compiler works.
3002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003   # <limits.h> exists even on freestanding compilers.
3004   # On the NeXT, cc -E runs the code through the compiler's parser,
3005   # not just through cpp. "Syntax error" is here to catch this case.
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #ifdef __STDC__
3013 # include <limits.h>
3014 #else
3015 # include <assert.h>
3016 #endif
3017                      Syntax error
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } >/dev/null; then
3027   if test -s conftest.err; then
3028     ac_cpp_err=$ac_c_preproc_warn_flag
3029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030   else
3031     ac_cpp_err=
3032   fi
3033 else
3034   ac_cpp_err=yes
3035 fi
3036 if test -z "$ac_cpp_err"; then
3037   :
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042   # Broken: fails on valid input.
3043 continue
3044 fi
3045 rm -f conftest.err conftest.$ac_ext
3046
3047   # OK, works on sane cases.  Now check whether non-existent headers
3048   # can be detected and how.
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #include <ac_nonexistent.h>
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } >/dev/null; then
3065   if test -s conftest.err; then
3066     ac_cpp_err=$ac_c_preproc_warn_flag
3067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068   else
3069     ac_cpp_err=
3070   fi
3071 else
3072   ac_cpp_err=yes
3073 fi
3074 if test -z "$ac_cpp_err"; then
3075   # Broken: success on invalid input.
3076 continue
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081   # Passes both tests.
3082 ac_preproc_ok=:
3083 break
3084 fi
3085 rm -f conftest.err conftest.$ac_ext
3086
3087 done
3088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089 rm -f conftest.err conftest.$ac_ext
3090 if $ac_preproc_ok; then
3091   :
3092 else
3093   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&2;}
3097    { (exit 1); exit 1; }; }
3098 fi
3099
3100 ac_ext=c
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105
3106
3107 echo "$as_me:$LINENO: checking for inline" >&5
3108 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3109 if test "${ac_cv_c_inline+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   ac_cv_c_inline=no
3113 for ac_kw in inline __inline__ __inline; do
3114   cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 #ifndef __cplusplus
3121 typedef int foo_t;
3122 static $ac_kw foo_t static_foo () {return 0; }
3123 $ac_kw foo_t foo () {return 0; }
3124 #endif
3125
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129   (eval $ac_compile) 2>conftest.er1
3130   ac_status=$?
3131   grep -v '^ *+' conftest.er1 >conftest.err
3132   rm -f conftest.er1
3133   cat conftest.err >&5
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } &&
3136          { ac_try='test -z "$ac_c_werror_flag"
3137                          || test ! -s conftest.err'
3138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139   (eval $ac_try) 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145   (eval $ac_try) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   ac_cv_c_inline=$ac_kw; break
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 fi
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 done
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161
3162
3163 case $ac_cv_c_inline in
3164   inline | yes) ;;
3165   *)
3166     case $ac_cv_c_inline in
3167       no) ac_val=;;
3168       *) ac_val=$ac_cv_c_inline;;
3169     esac
3170     cat >>confdefs.h <<_ACEOF
3171 #ifndef __cplusplus
3172 #define inline $ac_val
3173 #endif
3174 _ACEOF
3175     ;;
3176 esac
3177
3178
3179 # sizeof(char) is 1 by definition.
3180
3181 echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3183 if test "${ac_cv_prog_egrep+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3187     then ac_cv_prog_egrep='grep -E'
3188     else ac_cv_prog_egrep='egrep'
3189     fi
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3193  EGREP=$ac_cv_prog_egrep
3194
3195
3196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3198 if test "${ac_cv_header_stdc+set}" = set; then
3199   echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201   cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #include <stdlib.h>
3208 #include <stdarg.h>
3209 #include <string.h>
3210 #include <float.h>
3211
3212 int
3213 main ()
3214 {
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222   (eval $ac_compile) 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } &&
3229          { ac_try='test -z "$ac_c_werror_flag"
3230                          || test ! -s conftest.err'
3231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; } &&
3236          { ac_try='test -s conftest.$ac_objext'
3237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238   (eval $ac_try) 2>&5
3239   ac_status=$?
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); }; }; then
3242   ac_cv_header_stdc=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 ac_cv_header_stdc=no
3248 fi
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250
3251 if test $ac_cv_header_stdc = yes; then
3252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3253   cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 #include <string.h>
3260
3261 _ACEOF
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263   $EGREP "memchr" >/dev/null 2>&1; then
3264   :
3265 else
3266   ac_cv_header_stdc=no
3267 fi
3268 rm -f conftest*
3269
3270 fi
3271
3272 if test $ac_cv_header_stdc = yes; then
3273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <stdlib.h>
3281
3282 _ACEOF
3283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284   $EGREP "free" >/dev/null 2>&1; then
3285   :
3286 else
3287   ac_cv_header_stdc=no
3288 fi
3289 rm -f conftest*
3290
3291 fi
3292
3293 if test $ac_cv_header_stdc = yes; then
3294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3295   if test "$cross_compiling" = yes; then
3296   :
3297 else
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <ctype.h>
3305 #if ((' ' & 0x0FF) == 0x020)
3306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3308 #else
3309 # define ISLOWER(c) \
3310                    (('a' <= (c) && (c) <= 'i') \
3311                      || ('j' <= (c) && (c) <= 'r') \
3312                      || ('s' <= (c) && (c) <= 'z'))
3313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3314 #endif
3315
3316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3317 int
3318 main ()
3319 {
3320   int i;
3321   for (i = 0; i < 256; i++)
3322     if (XOR (islower (i), ISLOWER (i))
3323         || toupper (i) != TOUPPER (i))
3324       exit(2);
3325   exit (0);
3326 }
3327 _ACEOF
3328 rm -f conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330   (eval $ac_link) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335   (eval $ac_try) 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }; }; then
3339   :
3340 else
3341   echo "$as_me: program exited with status $ac_status" >&5
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 ( exit $ac_status )
3346 ac_cv_header_stdc=no
3347 fi
3348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3349 fi
3350 fi
3351 fi
3352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3354 if test $ac_cv_header_stdc = yes; then
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define STDC_HEADERS 1
3358 _ACEOF
3359
3360 fi
3361
3362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3373                   inttypes.h stdint.h unistd.h
3374 do
3375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376 echo "$as_me:$LINENO: checking for $ac_header" >&5
3377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 $ac_includes_default
3388
3389 #include <$ac_header>
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393   (eval $ac_compile) 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } &&
3400          { ac_try='test -z "$ac_c_werror_flag"
3401                          || test ! -s conftest.err'
3402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403   (eval $ac_try) 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }; } &&
3407          { ac_try='test -s conftest.$ac_objext'
3408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409   (eval $ac_try) 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; }; then
3413   eval "$as_ac_Header=yes"
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 eval "$as_ac_Header=no"
3419 fi
3420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 fi
3422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3425   cat >>confdefs.h <<_ACEOF
3426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3427 _ACEOF
3428
3429 fi
3430
3431 done
3432
3433
3434 echo "$as_me:$LINENO: checking for void *" >&5
3435 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3436 if test "${ac_cv_type_void_p+set}" = set; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 $ac_includes_default
3446 int
3447 main ()
3448 {
3449 if ((void * *) 0)
3450   return 0;
3451 if (sizeof (void *))
3452   return 0;
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459   (eval $ac_compile) 2>conftest.er1
3460   ac_status=$?
3461   grep -v '^ *+' conftest.er1 >conftest.err
3462   rm -f conftest.er1
3463   cat conftest.err >&5
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } &&
3466          { ac_try='test -z "$ac_c_werror_flag"
3467                          || test ! -s conftest.err'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; } &&
3473          { ac_try='test -s conftest.$ac_objext'
3474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475   (eval $ac_try) 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; }; then
3479   ac_cv_type_void_p=yes
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 ac_cv_type_void_p=no
3485 fi
3486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3489 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3490
3491 echo "$as_me:$LINENO: checking size of void *" >&5
3492 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3493 if test "${ac_cv_sizeof_void_p+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   if test "$ac_cv_type_void_p" = yes; then
3497   # The cast to unsigned long works around a bug in the HP C Compiler
3498   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3499   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3500   # This bug is HP SR number 8606223364.
3501   if test "$cross_compiling" = yes; then
3502   # Depending upon the size, compute the lo and hi bounds.
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 $ac_includes_default
3510 int
3511 main ()
3512 {
3513 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3514 test_array [0] = 0
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522   (eval $ac_compile) 2>conftest.er1
3523   ac_status=$?
3524   grep -v '^ *+' conftest.er1 >conftest.err
3525   rm -f conftest.er1
3526   cat conftest.err >&5
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } &&
3529          { ac_try='test -z "$ac_c_werror_flag"
3530                          || test ! -s conftest.err'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; } &&
3536          { ac_try='test -s conftest.$ac_objext'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542   ac_lo=0 ac_mid=0
3543   while :; do
3544     cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 $ac_includes_default
3551 int
3552 main ()
3553 {
3554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3555 test_array [0] = 0
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563   (eval $ac_compile) 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } &&
3570          { ac_try='test -z "$ac_c_werror_flag"
3571                          || test ! -s conftest.err'
3572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573   (eval $ac_try) 2>&5
3574   ac_status=$?
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); }; } &&
3577          { ac_try='test -s conftest.$ac_objext'
3578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; }; then
3583   ac_hi=$ac_mid; break
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 ac_lo=`expr $ac_mid + 1`
3589                     if test $ac_lo -le $ac_mid; then
3590                       ac_lo= ac_hi=
3591                       break
3592                     fi
3593                     ac_mid=`expr 2 '*' $ac_mid + 1`
3594 fi
3595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3596   done
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 $ac_includes_default
3608 int
3609 main ()
3610 {
3611 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3612 test_array [0] = 0
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620   (eval $ac_compile) 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } &&
3627          { ac_try='test -z "$ac_c_werror_flag"
3628                          || test ! -s conftest.err'
3629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630   (eval $ac_try) 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; } &&
3634          { ac_try='test -s conftest.$ac_objext'
3635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636   (eval $ac_try) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }; }; then
3640   ac_hi=-1 ac_mid=-1
3641   while :; do
3642     cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648 $ac_includes_default
3649 int
3650 main ()
3651 {
3652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3653 test_array [0] = 0
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661   (eval $ac_compile) 2>conftest.er1
3662   ac_status=$?
3663   grep -v '^ *+' conftest.er1 >conftest.err
3664   rm -f conftest.er1
3665   cat conftest.err >&5
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); } &&
3668          { ac_try='test -z "$ac_c_werror_flag"
3669                          || test ! -s conftest.err'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest.$ac_objext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   ac_lo=$ac_mid; break
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_hi=`expr '(' $ac_mid ')' - 1`
3687                        if test $ac_mid -le $ac_hi; then
3688                          ac_lo= ac_hi=
3689                          break
3690                        fi
3691                        ac_mid=`expr 2 '*' $ac_mid`
3692 fi
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694   done
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 ac_lo= ac_hi=
3700 fi
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 fi
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 # Binary search between lo and hi bounds.
3705 while test "x$ac_lo" != "x$ac_hi"; do
3706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3707   cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h.  */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h.  */
3713 $ac_includes_default
3714 int
3715 main ()
3716 {
3717 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3718 test_array [0] = 0
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.$ac_objext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726   (eval $ac_compile) 2>conftest.er1
3727   ac_status=$?
3728   grep -v '^ *+' conftest.er1 >conftest.err
3729   rm -f conftest.er1
3730   cat conftest.err >&5
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); } &&
3733          { ac_try='test -z "$ac_c_werror_flag"
3734                          || test ! -s conftest.err'
3735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736   (eval $ac_try) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; } &&
3740          { ac_try='test -s conftest.$ac_objext'
3741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742   (eval $ac_try) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); }; }; then
3746   ac_hi=$ac_mid
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 ac_lo=`expr '(' $ac_mid ')' + 1`
3752 fi
3753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 done
3755 case $ac_lo in
3756 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute sizeof (void *), 77
3760 See \`config.log' for more details." >&2;}
3761    { (exit 1); exit 1; }; } ;;
3762 esac
3763 else
3764   if test "$cross_compiling" = yes; then
3765   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3766 See \`config.log' for more details." >&5
3767 echo "$as_me: error: cannot run test program while cross compiling
3768 See \`config.log' for more details." >&2;}
3769    { (exit 1); exit 1; }; }
3770 else
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 $ac_includes_default
3778 long longval () { return (long) (sizeof (void *)); }
3779 unsigned long ulongval () { return (long) (sizeof (void *)); }
3780 #include <stdio.h>
3781 #include <stdlib.h>
3782 int
3783 main ()
3784 {
3785
3786   FILE *f = fopen ("conftest.val", "w");
3787   if (! f)
3788     exit (1);
3789   if (((long) (sizeof (void *))) < 0)
3790     {
3791       long i = longval ();
3792       if (i != ((long) (sizeof (void *))))
3793         exit (1);
3794       fprintf (f, "%ld\n", i);
3795     }
3796   else
3797     {
3798       unsigned long i = ulongval ();
3799       if (i != ((long) (sizeof (void *))))
3800         exit (1);
3801       fprintf (f, "%lu\n", i);
3802     }
3803   exit (ferror (f) || fclose (f) != 0);
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 rm -f conftest$ac_exeext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811   (eval $ac_link) 2>&5
3812   ac_status=$?
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; }; then
3820   ac_cv_sizeof_void_p=`cat conftest.val`
3821 else
3822   echo "$as_me: program exited with status $ac_status" >&5
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 ( exit $ac_status )
3827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3828 See \`config.log' for more details." >&5
3829 echo "$as_me: error: cannot compute sizeof (void *), 77
3830 See \`config.log' for more details." >&2;}
3831    { (exit 1); exit 1; }; }
3832 fi
3833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 fi
3836 rm -f conftest.val
3837 else
3838   ac_cv_sizeof_void_p=0
3839 fi
3840 fi
3841 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3842 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3843 cat >>confdefs.h <<_ACEOF
3844 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3845 _ACEOF
3846
3847
3848 echo "$as_me:$LINENO: checking for short" >&5
3849 echo $ECHO_N "checking for short... $ECHO_C" >&6
3850 if test "${ac_cv_type_short+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h.  */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h.  */
3859 $ac_includes_default
3860 int
3861 main ()
3862 {
3863 if ((short *) 0)
3864   return 0;
3865 if (sizeof (short))
3866   return 0;
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873   (eval $ac_compile) 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } &&
3880          { ac_try='test -z "$ac_c_werror_flag"
3881                          || test ! -s conftest.err'
3882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883   (eval $ac_try) 2>&5
3884   ac_status=$?
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); }; } &&
3887          { ac_try='test -s conftest.$ac_objext'
3888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889   (eval $ac_try) 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); }; }; then
3893   ac_cv_type_short=yes
3894 else
3895   echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 ac_cv_type_short=no
3899 fi
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 fi
3902 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3903 echo "${ECHO_T}$ac_cv_type_short" >&6
3904
3905 echo "$as_me:$LINENO: checking size of short" >&5
3906 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3907 if test "${ac_cv_sizeof_short+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   if test "$ac_cv_type_short" = yes; then
3911   # The cast to unsigned long works around a bug in the HP C Compiler
3912   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3913   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3914   # This bug is HP SR number 8606223364.
3915   if test "$cross_compiling" = yes; then
3916   # Depending upon the size, compute the lo and hi bounds.
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 $ac_includes_default
3924 int
3925 main ()
3926 {
3927 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3928 test_array [0] = 0
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936   (eval $ac_compile) 2>conftest.er1
3937   ac_status=$?
3938   grep -v '^ *+' conftest.er1 >conftest.err
3939   rm -f conftest.er1
3940   cat conftest.err >&5
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); } &&
3943          { ac_try='test -z "$ac_c_werror_flag"
3944                          || test ! -s conftest.err'
3945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946   (eval $ac_try) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }; } &&
3950          { ac_try='test -s conftest.$ac_objext'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; }; then
3956   ac_lo=0 ac_mid=0
3957   while :; do
3958     cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h.  */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h.  */
3964 $ac_includes_default
3965 int
3966 main ()
3967 {
3968 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3969 test_array [0] = 0
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977   (eval $ac_compile) 2>conftest.er1
3978   ac_status=$?
3979   grep -v '^ *+' conftest.er1 >conftest.err
3980   rm -f conftest.er1
3981   cat conftest.err >&5
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } &&
3984          { ac_try='test -z "$ac_c_werror_flag"
3985                          || test ! -s conftest.err'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; } &&
3991          { ac_try='test -s conftest.$ac_objext'
3992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993   (eval $ac_try) 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; }; then
3997   ac_hi=$ac_mid; break
3998 else
3999   echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 ac_lo=`expr $ac_mid + 1`
4003                     if test $ac_lo -le $ac_mid; then
4004                       ac_lo= ac_hi=
4005                       break
4006                     fi
4007                     ac_mid=`expr 2 '*' $ac_mid + 1`
4008 fi
4009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010   done
4011 else
4012   echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021 $ac_includes_default
4022 int
4023 main ()
4024 {
4025 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4026 test_array [0] = 0
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -z "$ac_c_werror_flag"
4042                          || test ! -s conftest.err'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; } &&
4048          { ac_try='test -s conftest.$ac_objext'
4049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050   (eval $ac_try) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }; }; then
4054   ac_hi=-1 ac_mid=-1
4055   while :; do
4056     cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062 $ac_includes_default
4063 int
4064 main ()
4065 {
4066 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4067 test_array [0] = 0
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075   (eval $ac_compile) 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } &&
4082          { ac_try='test -z "$ac_c_werror_flag"
4083                          || test ! -s conftest.err'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; }; then
4095   ac_lo=$ac_mid; break
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 ac_hi=`expr '(' $ac_mid ')' - 1`
4101                        if test $ac_mid -le $ac_hi; then
4102                          ac_lo= ac_hi=
4103                          break
4104                        fi
4105                        ac_mid=`expr 2 '*' $ac_mid`
4106 fi
4107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108   done
4109 else
4110   echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ac_lo= ac_hi=
4114 fi
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118 # Binary search between lo and hi bounds.
4119 while test "x$ac_lo" != "x$ac_hi"; do
4120   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 $ac_includes_default
4128 int
4129 main ()
4130 {
4131 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4132 test_array [0] = 0
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag"
4148                          || test ! -s conftest.err'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156   (eval $ac_try) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; }; then
4160   ac_hi=$ac_mid
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 ac_lo=`expr '(' $ac_mid ')' + 1`
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 done
4169 case $ac_lo in
4170 ?*) ac_cv_sizeof_short=$ac_lo;;
4171 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4172 See \`config.log' for more details." >&5
4173 echo "$as_me: error: cannot compute sizeof (short), 77
4174 See \`config.log' for more details." >&2;}
4175    { (exit 1); exit 1; }; } ;;
4176 esac
4177 else
4178   if test "$cross_compiling" = yes; then
4179   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4180 See \`config.log' for more details." >&5
4181 echo "$as_me: error: cannot run test program while cross compiling
4182 See \`config.log' for more details." >&2;}
4183    { (exit 1); exit 1; }; }
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 $ac_includes_default
4192 long longval () { return (long) (sizeof (short)); }
4193 unsigned long ulongval () { return (long) (sizeof (short)); }
4194 #include <stdio.h>
4195 #include <stdlib.h>
4196 int
4197 main ()
4198 {
4199
4200   FILE *f = fopen ("conftest.val", "w");
4201   if (! f)
4202     exit (1);
4203   if (((long) (sizeof (short))) < 0)
4204     {
4205       long i = longval ();
4206       if (i != ((long) (sizeof (short))))
4207         exit (1);
4208       fprintf (f, "%ld\n", i);
4209     }
4210   else
4211     {
4212       unsigned long i = ulongval ();
4213       if (i != ((long) (sizeof (short))))
4214         exit (1);
4215       fprintf (f, "%lu\n", i);
4216     }
4217   exit (ferror (f) || fclose (f) != 0);
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225   (eval $ac_link) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   ac_cv_sizeof_short=`cat conftest.val`
4235 else
4236   echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ( exit $ac_status )
4241 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4242 See \`config.log' for more details." >&5
4243 echo "$as_me: error: cannot compute sizeof (short), 77
4244 See \`config.log' for more details." >&2;}
4245    { (exit 1); exit 1; }; }
4246 fi
4247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 fi
4250 rm -f conftest.val
4251 else
4252   ac_cv_sizeof_short=0
4253 fi
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4256 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4257 cat >>confdefs.h <<_ACEOF
4258 #define SIZEOF_SHORT $ac_cv_sizeof_short
4259 _ACEOF
4260
4261
4262 echo "$as_me:$LINENO: checking for int" >&5
4263 echo $ECHO_N "checking for int... $ECHO_C" >&6
4264 if test "${ac_cv_type_int+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 $ac_includes_default
4274 int
4275 main ()
4276 {
4277 if ((int *) 0)
4278   return 0;
4279 if (sizeof (int))
4280   return 0;
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287   (eval $ac_compile) 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -z "$ac_c_werror_flag"
4295                          || test ! -s conftest.err'
4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297   (eval $ac_try) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; } &&
4301          { ac_try='test -s conftest.$ac_objext'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_type_int=yes
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ac_cv_type_int=no
4313 fi
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4317 echo "${ECHO_T}$ac_cv_type_int" >&6
4318
4319 echo "$as_me:$LINENO: checking size of int" >&5
4320 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4321 if test "${ac_cv_sizeof_int+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if test "$ac_cv_type_int" = yes; then
4325   # The cast to unsigned long works around a bug in the HP C Compiler
4326   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4327   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4328   # This bug is HP SR number 8606223364.
4329   if test "$cross_compiling" = yes; then
4330   # Depending upon the size, compute the lo and hi bounds.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 $ac_includes_default
4338 int
4339 main ()
4340 {
4341 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4342 test_array [0] = 0
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350   (eval $ac_compile) 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } &&
4357          { ac_try='test -z "$ac_c_werror_flag"
4358                          || test ! -s conftest.err'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; } &&
4364          { ac_try='test -s conftest.$ac_objext'
4365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366   (eval $ac_try) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; }; then
4370   ac_lo=0 ac_mid=0
4371   while :; do
4372     cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 $ac_includes_default
4379 int
4380 main ()
4381 {
4382 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4383 test_array [0] = 0
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391   (eval $ac_compile) 2>conftest.er1
4392   ac_status=$?
4393   grep -v '^ *+' conftest.er1 >conftest.err
4394   rm -f conftest.er1
4395   cat conftest.err >&5
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } &&
4398          { ac_try='test -z "$ac_c_werror_flag"
4399                          || test ! -s conftest.err'
4400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401   (eval $ac_try) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; } &&
4405          { ac_try='test -s conftest.$ac_objext'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; }; then
4411   ac_hi=$ac_mid; break
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_lo=`expr $ac_mid + 1`
4417                     if test $ac_lo -le $ac_mid; then
4418                       ac_lo= ac_hi=
4419                       break
4420                     fi
4421                     ac_mid=`expr 2 '*' $ac_mid + 1`
4422 fi
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424   done
4425 else
4426   echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435 $ac_includes_default
4436 int
4437 main ()
4438 {
4439 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4440 test_array [0] = 0
4441
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448   (eval $ac_compile) 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag"
4456                          || test ! -s conftest.err'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   ac_hi=-1 ac_mid=-1
4469   while :; do
4470     cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 $ac_includes_default
4477 int
4478 main ()
4479 {
4480 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4481 test_array [0] = 0
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489   (eval $ac_compile) 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } &&
4496          { ac_try='test -z "$ac_c_werror_flag"
4497                          || test ! -s conftest.err'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; } &&
4503          { ac_try='test -s conftest.$ac_objext'
4504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505   (eval $ac_try) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; }; then
4509   ac_lo=$ac_mid; break
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 ac_hi=`expr '(' $ac_mid ')' - 1`
4515                        if test $ac_mid -le $ac_hi; then
4516                          ac_lo= ac_hi=
4517                          break
4518                        fi
4519                        ac_mid=`expr 2 '*' $ac_mid`
4520 fi
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522   done
4523 else
4524   echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 ac_lo= ac_hi=
4528 fi
4529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4530 fi
4531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532 # Binary search between lo and hi bounds.
4533 while test "x$ac_lo" != "x$ac_hi"; do
4534   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4535   cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541 $ac_includes_default
4542 int
4543 main ()
4544 {
4545 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4546 test_array [0] = 0
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554   (eval $ac_compile) 2>conftest.er1
4555   ac_status=$?
4556   grep -v '^ *+' conftest.er1 >conftest.err
4557   rm -f conftest.er1
4558   cat conftest.err >&5
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); } &&
4561          { ac_try='test -z "$ac_c_werror_flag"
4562                          || test ! -s conftest.err'
4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564   (eval $ac_try) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; } &&
4568          { ac_try='test -s conftest.$ac_objext'
4569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570   (eval $ac_try) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; }; then
4574   ac_hi=$ac_mid
4575 else
4576   echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 ac_lo=`expr '(' $ac_mid ')' + 1`
4580 fi
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 done
4583 case $ac_lo in
4584 ?*) ac_cv_sizeof_int=$ac_lo;;
4585 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot compute sizeof (int), 77
4588 See \`config.log' for more details." >&2;}
4589    { (exit 1); exit 1; }; } ;;
4590 esac
4591 else
4592   if test "$cross_compiling" = yes; then
4593   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4594 See \`config.log' for more details." >&5
4595 echo "$as_me: error: cannot run test program while cross compiling
4596 See \`config.log' for more details." >&2;}
4597    { (exit 1); exit 1; }; }
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605 $ac_includes_default
4606 long longval () { return (long) (sizeof (int)); }
4607 unsigned long ulongval () { return (long) (sizeof (int)); }
4608 #include <stdio.h>
4609 #include <stdlib.h>
4610 int
4611 main ()
4612 {
4613
4614   FILE *f = fopen ("conftest.val", "w");
4615   if (! f)
4616     exit (1);
4617   if (((long) (sizeof (int))) < 0)
4618     {
4619       long i = longval ();
4620       if (i != ((long) (sizeof (int))))
4621         exit (1);
4622       fprintf (f, "%ld\n", i);
4623     }
4624   else
4625     {
4626       unsigned long i = ulongval ();
4627       if (i != ((long) (sizeof (int))))
4628         exit (1);
4629       fprintf (f, "%lu\n", i);
4630     }
4631   exit (ferror (f) || fclose (f) != 0);
4632
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest$ac_exeext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639   (eval $ac_link) 2>&5
4640   ac_status=$?
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   ac_cv_sizeof_int=`cat conftest.val`
4649 else
4650   echo "$as_me: program exited with status $ac_status" >&5
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654 ( exit $ac_status )
4655 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4656 See \`config.log' for more details." >&5
4657 echo "$as_me: error: cannot compute sizeof (int), 77
4658 See \`config.log' for more details." >&2;}
4659    { (exit 1); exit 1; }; }
4660 fi
4661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4662 fi
4663 fi
4664 rm -f conftest.val
4665 else
4666   ac_cv_sizeof_int=0
4667 fi
4668 fi
4669 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4670 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4671 cat >>confdefs.h <<_ACEOF
4672 #define SIZEOF_INT $ac_cv_sizeof_int
4673 _ACEOF
4674
4675
4676 echo "$as_me:$LINENO: checking for long" >&5
4677 echo $ECHO_N "checking for long... $ECHO_C" >&6
4678 if test "${ac_cv_type_long+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687 $ac_includes_default
4688 int
4689 main ()
4690 {
4691 if ((long *) 0)
4692   return 0;
4693 if (sizeof (long))
4694   return 0;
4695   ;
4696   return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701   (eval $ac_compile) 2>conftest.er1
4702   ac_status=$?
4703   grep -v '^ *+' conftest.er1 >conftest.err
4704   rm -f conftest.er1
4705   cat conftest.err >&5
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } &&
4708          { ac_try='test -z "$ac_c_werror_flag"
4709                          || test ! -s conftest.err'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; } &&
4715          { ac_try='test -s conftest.$ac_objext'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; }; then
4721   ac_cv_type_long=yes
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 ac_cv_type_long=no
4727 fi
4728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4731 echo "${ECHO_T}$ac_cv_type_long" >&6
4732
4733 echo "$as_me:$LINENO: checking size of long" >&5
4734 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4735 if test "${ac_cv_sizeof_long+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   if test "$ac_cv_type_long" = yes; then
4739   # The cast to unsigned long works around a bug in the HP C Compiler
4740   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4741   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4742   # This bug is HP SR number 8606223364.
4743   if test "$cross_compiling" = yes; then
4744   # Depending upon the size, compute the lo and hi bounds.
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h.  */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h.  */
4751 $ac_includes_default
4752 int
4753 main ()
4754 {
4755 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4756 test_array [0] = 0
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764   (eval $ac_compile) 2>conftest.er1
4765   ac_status=$?
4766   grep -v '^ *+' conftest.er1 >conftest.err
4767   rm -f conftest.er1
4768   cat conftest.err >&5
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } &&
4771          { ac_try='test -z "$ac_c_werror_flag"
4772                          || test ! -s conftest.err'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; } &&
4778          { ac_try='test -s conftest.$ac_objext'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; }; then
4784   ac_lo=0 ac_mid=0
4785   while :; do
4786     cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792 $ac_includes_default
4793 int
4794 main ()
4795 {
4796 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4797 test_array [0] = 0
4798
4799   ;
4800   return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805   (eval $ac_compile) 2>conftest.er1
4806   ac_status=$?
4807   grep -v '^ *+' conftest.er1 >conftest.err
4808   rm -f conftest.er1
4809   cat conftest.err >&5
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } &&
4812          { ac_try='test -z "$ac_c_werror_flag"
4813                          || test ! -s conftest.err'
4814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815   (eval $ac_try) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; } &&
4819          { ac_try='test -s conftest.$ac_objext'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   ac_hi=$ac_mid; break
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_lo=`expr $ac_mid + 1`
4831                     if test $ac_lo -le $ac_mid; then
4832                       ac_lo= ac_hi=
4833                       break
4834                     fi
4835                     ac_mid=`expr 2 '*' $ac_mid + 1`
4836 fi
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838   done
4839 else
4840   echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 $ac_includes_default
4850 int
4851 main ()
4852 {
4853 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4854 test_array [0] = 0
4855
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862   (eval $ac_compile) 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } &&
4869          { ac_try='test -z "$ac_c_werror_flag"
4870                          || test ! -s conftest.err'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; } &&
4876          { ac_try='test -s conftest.$ac_objext'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; }; then
4882   ac_hi=-1 ac_mid=-1
4883   while :; do
4884     cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890 $ac_includes_default
4891 int
4892 main ()
4893 {
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4895 test_array [0] = 0
4896
4897   ;
4898   return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903   (eval $ac_compile) 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } &&
4910          { ac_try='test -z "$ac_c_werror_flag"
4911                          || test ! -s conftest.err'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; } &&
4917          { ac_try='test -s conftest.$ac_objext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_lo=$ac_mid; break
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_hi=`expr '(' $ac_mid ')' - 1`
4929                        if test $ac_mid -le $ac_hi; then
4930                          ac_lo= ac_hi=
4931                          break
4932                        fi
4933                        ac_mid=`expr 2 '*' $ac_mid`
4934 fi
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4936   done
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 ac_lo= ac_hi=
4942 fi
4943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 # Binary search between lo and hi bounds.
4947 while test "x$ac_lo" != "x$ac_hi"; do
4948   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4949   cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 $ac_includes_default
4956 int
4957 main ()
4958 {
4959 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4960 test_array [0] = 0
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968   (eval $ac_compile) 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -z "$ac_c_werror_flag"
4976                          || test ! -s conftest.err'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; } &&
4982          { ac_try='test -s conftest.$ac_objext'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; }; then
4988   ac_hi=$ac_mid
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ac_lo=`expr '(' $ac_mid ')' + 1`
4994 fi
4995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 done
4997 case $ac_lo in
4998 ?*) ac_cv_sizeof_long=$ac_lo;;
4999 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5000 See \`config.log' for more details." >&5
5001 echo "$as_me: error: cannot compute sizeof (long), 77
5002 See \`config.log' for more details." >&2;}
5003    { (exit 1); exit 1; }; } ;;
5004 esac
5005 else
5006   if test "$cross_compiling" = yes; then
5007   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5008 See \`config.log' for more details." >&5
5009 echo "$as_me: error: cannot run test program while cross compiling
5010 See \`config.log' for more details." >&2;}
5011    { (exit 1); exit 1; }; }
5012 else
5013   cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 $ac_includes_default
5020 long longval () { return (long) (sizeof (long)); }
5021 unsigned long ulongval () { return (long) (sizeof (long)); }
5022 #include <stdio.h>
5023 #include <stdlib.h>
5024 int
5025 main ()
5026 {
5027
5028   FILE *f = fopen ("conftest.val", "w");
5029   if (! f)
5030     exit (1);
5031   if (((long) (sizeof (long))) < 0)
5032     {
5033       long i = longval ();
5034       if (i != ((long) (sizeof (long))))
5035         exit (1);
5036       fprintf (f, "%ld\n", i);
5037     }
5038   else
5039     {
5040       unsigned long i = ulongval ();
5041       if (i != ((long) (sizeof (long))))
5042         exit (1);
5043       fprintf (f, "%lu\n", i);
5044     }
5045   exit (ferror (f) || fclose (f) != 0);
5046
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053   (eval $ac_link) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_cv_sizeof_long=`cat conftest.val`
5063 else
5064   echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ( exit $ac_status )
5069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5070 See \`config.log' for more details." >&5
5071 echo "$as_me: error: cannot compute sizeof (long), 77
5072 See \`config.log' for more details." >&2;}
5073    { (exit 1); exit 1; }; }
5074 fi
5075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 fi
5078 rm -f conftest.val
5079 else
5080   ac_cv_sizeof_long=0
5081 fi
5082 fi
5083 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5084 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5085 cat >>confdefs.h <<_ACEOF
5086 #define SIZEOF_LONG $ac_cv_sizeof_long
5087 _ACEOF
5088
5089
5090 echo "$as_me:$LINENO: checking for long long" >&5
5091 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5092 if test "${ac_cv_type_long_long+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 $ac_includes_default
5102 int
5103 main ()
5104 {
5105 if ((long long *) 0)
5106   return 0;
5107 if (sizeof (long long))
5108   return 0;
5109   ;
5110   return 0;
5111 }
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115   (eval $ac_compile) 2>conftest.er1
5116   ac_status=$?
5117   grep -v '^ *+' conftest.er1 >conftest.err
5118   rm -f conftest.er1
5119   cat conftest.err >&5
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -z "$ac_c_werror_flag"
5123                          || test ! -s conftest.err'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; } &&
5129          { ac_try='test -s conftest.$ac_objext'
5130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131   (eval $ac_try) 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }; }; then
5135   ac_cv_type_long_long=yes
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 ac_cv_type_long_long=no
5141 fi
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5145 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5146 if test $ac_cv_type_long_long = yes; then
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define HAVE_LONG_LONG 1
5150 _ACEOF
5151
5152 echo "$as_me:$LINENO: checking for long long" >&5
5153 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5154 if test "${ac_cv_type_long_long+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 $ac_includes_default
5164 int
5165 main ()
5166 {
5167 if ((long long *) 0)
5168   return 0;
5169 if (sizeof (long long))
5170   return 0;
5171   ;
5172   return 0;
5173 }
5174 _ACEOF
5175 rm -f conftest.$ac_objext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177   (eval $ac_compile) 2>conftest.er1
5178   ac_status=$?
5179   grep -v '^ *+' conftest.er1 >conftest.err
5180   rm -f conftest.er1
5181   cat conftest.err >&5
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); } &&
5184          { ac_try='test -z "$ac_c_werror_flag"
5185                          || test ! -s conftest.err'
5186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187   (eval $ac_try) 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); }; } &&
5191          { ac_try='test -s conftest.$ac_objext'
5192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193   (eval $ac_try) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); }; }; then
5197   ac_cv_type_long_long=yes
5198 else
5199   echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ac_cv_type_long_long=no
5203 fi
5204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 fi
5206 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5207 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5208
5209 echo "$as_me:$LINENO: checking size of long long" >&5
5210 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5211 if test "${ac_cv_sizeof_long_long+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test "$ac_cv_type_long_long" = yes; then
5215   # The cast to unsigned long works around a bug in the HP C Compiler
5216   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5217   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5218   # This bug is HP SR number 8606223364.
5219   if test "$cross_compiling" = yes; then
5220   # Depending upon the size, compute the lo and hi bounds.
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h.  */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h.  */
5227 $ac_includes_default
5228 int
5229 main ()
5230 {
5231 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5232 test_array [0] = 0
5233
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 rm -f conftest.$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240   (eval $ac_compile) 2>conftest.er1
5241   ac_status=$?
5242   grep -v '^ *+' conftest.er1 >conftest.err
5243   rm -f conftest.er1
5244   cat conftest.err >&5
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); } &&
5247          { ac_try='test -z "$ac_c_werror_flag"
5248                          || test ! -s conftest.err'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; } &&
5254          { ac_try='test -s conftest.$ac_objext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_lo=0 ac_mid=0
5261   while :; do
5262     cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 $ac_includes_default
5269 int
5270 main ()
5271 {
5272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5273 test_array [0] = 0
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281   (eval $ac_compile) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } &&
5288          { ac_try='test -z "$ac_c_werror_flag"
5289                          || test ! -s conftest.err'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; } &&
5295          { ac_try='test -s conftest.$ac_objext'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   ac_hi=$ac_mid; break
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ac_lo=`expr $ac_mid + 1`
5307                     if test $ac_lo -le $ac_mid; then
5308                       ac_lo= ac_hi=
5309                       break
5310                     fi
5311                     ac_mid=`expr 2 '*' $ac_mid + 1`
5312 fi
5313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314   done
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 $ac_includes_default
5326 int
5327 main ()
5328 {
5329 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5330 test_array [0] = 0
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338   (eval $ac_compile) 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } &&
5345          { ac_try='test -z "$ac_c_werror_flag"
5346                          || test ! -s conftest.err'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; } &&
5352          { ac_try='test -s conftest.$ac_objext'
5353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354   (eval $ac_try) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }; }; then
5358   ac_hi=-1 ac_mid=-1
5359   while :; do
5360     cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 $ac_includes_default
5367 int
5368 main ()
5369 {
5370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5371 test_array [0] = 0
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379   (eval $ac_compile) 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } &&
5386          { ac_try='test -z "$ac_c_werror_flag"
5387                          || test ! -s conftest.err'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_lo=$ac_mid; break
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_hi=`expr '(' $ac_mid ')' - 1`
5405                        if test $ac_mid -le $ac_hi; then
5406                          ac_lo= ac_hi=
5407                          break
5408                        fi
5409                        ac_mid=`expr 2 '*' $ac_mid`
5410 fi
5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5412   done
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_lo= ac_hi=
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 fi
5421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5422 # Binary search between lo and hi bounds.
5423 while test "x$ac_lo" != "x$ac_hi"; do
5424   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 $ac_includes_default
5432 int
5433 main ()
5434 {
5435 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5436 test_array [0] = 0
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444   (eval $ac_compile) 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -z "$ac_c_werror_flag"
5452                          || test ! -s conftest.err'
5453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454   (eval $ac_try) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; } &&
5458          { ac_try='test -s conftest.$ac_objext'
5459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460   (eval $ac_try) 2>&5
5461   ac_status=$?
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); }; }; then
5464   ac_hi=$ac_mid
5465 else
5466   echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_lo=`expr '(' $ac_mid ')' + 1`
5470 fi
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 done
5473 case $ac_lo in
5474 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5475 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5476 See \`config.log' for more details." >&5
5477 echo "$as_me: error: cannot compute sizeof (long long), 77
5478 See \`config.log' for more details." >&2;}
5479    { (exit 1); exit 1; }; } ;;
5480 esac
5481 else
5482   if test "$cross_compiling" = yes; then
5483   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot run test program while cross compiling
5486 See \`config.log' for more details." >&2;}
5487    { (exit 1); exit 1; }; }
5488 else
5489   cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 $ac_includes_default
5496 long longval () { return (long) (sizeof (long long)); }
5497 unsigned long ulongval () { return (long) (sizeof (long long)); }
5498 #include <stdio.h>
5499 #include <stdlib.h>
5500 int
5501 main ()
5502 {
5503
5504   FILE *f = fopen ("conftest.val", "w");
5505   if (! f)
5506     exit (1);
5507   if (((long) (sizeof (long long))) < 0)
5508     {
5509       long i = longval ();
5510       if (i != ((long) (sizeof (long long))))
5511         exit (1);
5512       fprintf (f, "%ld\n", i);
5513     }
5514   else
5515     {
5516       unsigned long i = ulongval ();
5517       if (i != ((long) (sizeof (long long))))
5518         exit (1);
5519       fprintf (f, "%lu\n", i);
5520     }
5521   exit (ferror (f) || fclose (f) != 0);
5522
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538   ac_cv_sizeof_long_long=`cat conftest.val`
5539 else
5540   echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 ( exit $ac_status )
5545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5546 See \`config.log' for more details." >&5
5547 echo "$as_me: error: cannot compute sizeof (long long), 77
5548 See \`config.log' for more details." >&2;}
5549    { (exit 1); exit 1; }; }
5550 fi
5551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5552 fi
5553 fi
5554 rm -f conftest.val
5555 else
5556   ac_cv_sizeof_long_long=0
5557 fi
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5560 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5561 cat >>confdefs.h <<_ACEOF
5562 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5563 _ACEOF
5564
5565
5566 fi
5567
5568 echo "$as_me:$LINENO: checking for __int64" >&5
5569 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5570 if test "${ac_cv_type___int64+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 $ac_includes_default
5580 int
5581 main ()
5582 {
5583 if ((__int64 *) 0)
5584   return 0;
5585 if (sizeof (__int64))
5586   return 0;
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593   (eval $ac_compile) 2>conftest.er1
5594   ac_status=$?
5595   grep -v '^ *+' conftest.er1 >conftest.err
5596   rm -f conftest.er1
5597   cat conftest.err >&5
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); } &&
5600          { ac_try='test -z "$ac_c_werror_flag"
5601                          || test ! -s conftest.err'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; } &&
5607          { ac_try='test -s conftest.$ac_objext'
5608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; }; then
5613   ac_cv_type___int64=yes
5614 else
5615   echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 ac_cv_type___int64=no
5619 fi
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5623 echo "${ECHO_T}$ac_cv_type___int64" >&6
5624 if test $ac_cv_type___int64 = yes; then
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define HAVE___INT64 1
5628 _ACEOF
5629
5630 echo "$as_me:$LINENO: checking for __int64" >&5
5631 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5632 if test "${ac_cv_type___int64+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 $ac_includes_default
5642 int
5643 main ()
5644 {
5645 if ((__int64 *) 0)
5646   return 0;
5647 if (sizeof (__int64))
5648   return 0;
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -z "$ac_c_werror_flag"
5663                          || test ! -s conftest.err'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; } &&
5669          { ac_try='test -s conftest.$ac_objext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_cv_type___int64=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ac_cv_type___int64=no
5681 fi
5682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5685 echo "${ECHO_T}$ac_cv_type___int64" >&6
5686
5687 echo "$as_me:$LINENO: checking size of __int64" >&5
5688 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5689 if test "${ac_cv_sizeof___int64+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test "$ac_cv_type___int64" = yes; then
5693   # The cast to unsigned long works around a bug in the HP C Compiler
5694   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5695   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5696   # This bug is HP SR number 8606223364.
5697   if test "$cross_compiling" = yes; then
5698   # Depending upon the size, compute the lo and hi bounds.
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h.  */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h.  */
5705 $ac_includes_default
5706 int
5707 main ()
5708 {
5709 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5710 test_array [0] = 0
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>conftest.er1
5719   ac_status=$?
5720   grep -v '^ *+' conftest.er1 >conftest.err
5721   rm -f conftest.er1
5722   cat conftest.err >&5
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); } &&
5725          { ac_try='test -z "$ac_c_werror_flag"
5726                          || test ! -s conftest.err'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; } &&
5732          { ac_try='test -s conftest.$ac_objext'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; }; then
5738   ac_lo=0 ac_mid=0
5739   while :; do
5740     cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 $ac_includes_default
5747 int
5748 main ()
5749 {
5750 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5751 test_array [0] = 0
5752
5753   ;
5754   return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759   (eval $ac_compile) 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } &&
5766          { ac_try='test -z "$ac_c_werror_flag"
5767                          || test ! -s conftest.err'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_hi=$ac_mid; break
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_lo=`expr $ac_mid + 1`
5785                     if test $ac_lo -le $ac_mid; then
5786                       ac_lo= ac_hi=
5787                       break
5788                     fi
5789                     ac_mid=`expr 2 '*' $ac_mid + 1`
5790 fi
5791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792   done
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 $ac_includes_default
5804 int
5805 main ()
5806 {
5807 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5808 test_array [0] = 0
5809
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816   (eval $ac_compile) 2>conftest.er1
5817   ac_status=$?
5818   grep -v '^ *+' conftest.er1 >conftest.err
5819   rm -f conftest.er1
5820   cat conftest.err >&5
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -z "$ac_c_werror_flag"
5824                          || test ! -s conftest.err'
5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; } &&
5830          { ac_try='test -s conftest.$ac_objext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_hi=-1 ac_mid=-1
5837   while :; do
5838     cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844 $ac_includes_default
5845 int
5846 main ()
5847 {
5848 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5849 test_array [0] = 0
5850
5851   ;
5852   return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857   (eval $ac_compile) 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } &&
5864          { ac_try='test -z "$ac_c_werror_flag"
5865                          || test ! -s conftest.err'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; } &&
5871          { ac_try='test -s conftest.$ac_objext'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; }; then
5877   ac_lo=$ac_mid; break
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_hi=`expr '(' $ac_mid ')' - 1`
5883                        if test $ac_mid -le $ac_hi; then
5884                          ac_lo= ac_hi=
5885                          break
5886                        fi
5887                        ac_mid=`expr 2 '*' $ac_mid`
5888 fi
5889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890   done
5891 else
5892   echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_lo= ac_hi=
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 fi
5899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900 # Binary search between lo and hi bounds.
5901 while test "x$ac_lo" != "x$ac_hi"; do
5902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 $ac_includes_default
5910 int
5911 main ()
5912 {
5913 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5914 test_array [0] = 0
5915
5916   ;
5917   return 0;
5918 }
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922   (eval $ac_compile) 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } &&
5929          { ac_try='test -z "$ac_c_werror_flag"
5930                          || test ! -s conftest.err'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; } &&
5936          { ac_try='test -s conftest.$ac_objext'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_hi=$ac_mid
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_lo=`expr '(' $ac_mid ')' + 1`
5948 fi
5949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 done
5951 case $ac_lo in
5952 ?*) ac_cv_sizeof___int64=$ac_lo;;
5953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: cannot compute sizeof (__int64), 77
5956 See \`config.log' for more details." >&2;}
5957    { (exit 1); exit 1; }; } ;;
5958 esac
5959 else
5960   if test "$cross_compiling" = yes; then
5961   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot run test program while cross compiling
5964 See \`config.log' for more details." >&2;}
5965    { (exit 1); exit 1; }; }
5966 else
5967   cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 $ac_includes_default
5974 long longval () { return (long) (sizeof (__int64)); }
5975 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5976 #include <stdio.h>
5977 #include <stdlib.h>
5978 int
5979 main ()
5980 {
5981
5982   FILE *f = fopen ("conftest.val", "w");
5983   if (! f)
5984     exit (1);
5985   if (((long) (sizeof (__int64))) < 0)
5986     {
5987       long i = longval ();
5988       if (i != ((long) (sizeof (__int64))))
5989         exit (1);
5990       fprintf (f, "%ld\n", i);
5991     }
5992   else
5993     {
5994       unsigned long i = ulongval ();
5995       if (i != ((long) (sizeof (__int64))))
5996         exit (1);
5997       fprintf (f, "%lu\n", i);
5998     }
5999   exit (ferror (f) || fclose (f) != 0);
6000
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007   (eval $ac_link) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   ac_cv_sizeof___int64=`cat conftest.val`
6017 else
6018   echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 ( exit $ac_status )
6023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6024 See \`config.log' for more details." >&5
6025 echo "$as_me: error: cannot compute sizeof (__int64), 77
6026 See \`config.log' for more details." >&2;}
6027    { (exit 1); exit 1; }; }
6028 fi
6029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6030 fi
6031 fi
6032 rm -f conftest.val
6033 else
6034   ac_cv_sizeof___int64=0
6035 fi
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6038 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6039 cat >>confdefs.h <<_ACEOF
6040 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6041 _ACEOF
6042
6043
6044 fi
6045
6046
6047 # ---------------------
6048 # Warnings and checking
6049 # ---------------------
6050
6051 # Check $CC warning features (if it's GCC).
6052 # We want to use -pedantic, but we don't want warnings about
6053 # * 'long long'
6054 # * variadic macros
6055 # So, we only use -pedantic if we can disable those warnings.
6056
6057 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6058 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6059 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   save_CFLAGS="$CFLAGS"
6063   CFLAGS="-Wno-long-long"
6064   cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074   (eval $ac_compile) 2>conftest.er1
6075   ac_status=$?
6076   grep -v '^ *+' conftest.er1 >conftest.err
6077   rm -f conftest.er1
6078   cat conftest.err >&5
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -z "$ac_c_werror_flag"
6082                          || test ! -s conftest.err'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; } &&
6088          { ac_try='test -s conftest.$ac_objext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_prog_cc_w_no_long_long=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_prog_cc_w_no_long_long=no
6100 fi
6101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6102   CFLAGS="$save_CFLAGS"
6103
6104 fi
6105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6106 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6107
6108 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6109 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6110 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   save_CFLAGS="$CFLAGS"
6114   CFLAGS="-Wno-variadic-macros"
6115   cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125   (eval $ac_compile) 2>conftest.er1
6126   ac_status=$?
6127   grep -v '^ *+' conftest.er1 >conftest.err
6128   rm -f conftest.er1
6129   cat conftest.err >&5
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } &&
6132          { ac_try='test -z "$ac_c_werror_flag"
6133                          || test ! -s conftest.err'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; } &&
6139          { ac_try='test -s conftest.$ac_objext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   ac_cv_prog_cc_w_no_variadic_macros=yes
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_cv_prog_cc_w_no_variadic_macros=no
6151 fi
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153   CFLAGS="$save_CFLAGS"
6154
6155 fi
6156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6157 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6158
6159 strict1_warn=
6160 if test $ac_cv_prog_cc_w_no_long_long = yes \
6161    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6162   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6163 fi
6164
6165
6166 # Add -Wold-style-definition if it's accepted
6167 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6168 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6169 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   save_CFLAGS="$CFLAGS"
6173   CFLAGS="-Wold-style-definition"
6174   cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184   (eval $ac_compile) 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -z "$ac_c_werror_flag"
6192                          || test ! -s conftest.err'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; } &&
6198          { ac_try='test -s conftest.$ac_objext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_prog_cc_w_old_style_definition=yes
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_prog_cc_w_old_style_definition=no
6210 fi
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212   CFLAGS="$save_CFLAGS"
6213
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6216 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6217 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6218   strict1_warn="${strict1_warn} -Wold-style-definition"
6219 fi
6220
6221 # Enable -Werror, period.
6222 # Check whether --enable-werror_always or --disable-werror_always was given.
6223 if test "${enable_werror_always+set}" = set; then
6224   enableval="$enable_werror_always"
6225
6226 else
6227   enable_werror_always=no
6228 fi;
6229 if test x${enable_werror_always} = xyes ; then
6230   strict1_warn="${strict1_warn} -Werror"
6231   WERROR=-Werror
6232 fi
6233
6234 # If the native compiler is GCC, we can enable warnings even in stage1.
6235 # That's useful for people building cross-compilers, or just running a
6236 # quick `make'.
6237 warn_cflags=
6238 if test "x$GCC" = "xyes"; then
6239   warn_cflags='$(GCC_WARN_CFLAGS)'
6240 fi
6241
6242
6243 # Enable -Werror in bootstrap stage2 and later.
6244 is_release=
6245 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6246   is_release=yes
6247 fi
6248 # Check whether --enable-werror or --disable-werror was given.
6249 if test "${enable_werror+set}" = set; then
6250   enableval="$enable_werror"
6251
6252 else
6253   if test x$is_release = x ; then
6254   # Default to "yes" on development branches.
6255   enable_werror=yes
6256 else
6257   # Default to "no" on release branches.
6258   enable_werror=no
6259 fi
6260 fi;
6261 if test x$enable_werror = xyes ; then
6262   WERROR=-Werror
6263 fi
6264
6265
6266 # Enable expensive internal checks
6267 # Check whether --enable-checking or --disable-checking was given.
6268 if test "${enable_checking+set}" = set; then
6269   enableval="$enable_checking"
6270   ac_checking_flags="${enableval}"
6271 else
6272
6273 # Determine the default checks.
6274 if test x$is_release = x ; then
6275   ac_checking_flags=yes
6276 else
6277   ac_checking_flags=release
6278 fi
6279 fi;
6280 ac_assert_checking=1
6281 ac_checking=
6282 ac_fold_checking=
6283 ac_gc_checking=
6284 ac_gc_always_collect=
6285 ac_rtl_checking=
6286 ac_rtlflag_checking=
6287 ac_runtime_checking=1
6288 ac_tree_checking=
6289 ac_valgrind_checking=
6290 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6291 for check in $ac_checking_flags
6292 do
6293         case $check in
6294         # these set all the flags to specific states
6295         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6296                         ac_fold_checking= ; ac_gc_checking=1 ;
6297                         ac_gc_always_collect= ; ac_rtl_checking= ;
6298                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6299                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6300         no|none)        ac_assert_checking= ; ac_checking= ;
6301                         ac_fold_checking= ; ac_gc_checking= ;
6302                         ac_gc_always_collect= ; ac_rtl_checking= ;
6303                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6304                         ac_tree_checking= ; ac_valgrind_checking= ;;
6305         all)            ac_assert_checking=1 ; ac_checking=1 ;
6306                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6307                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6308                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6309                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6310         release)        ac_assert_checking=1 ; ac_checking= ;
6311                         ac_fold_checking= ; ac_gc_checking= ;
6312                         ac_gc_always_collect= ; ac_rtl_checking= ;
6313                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6314                         ac_tree_checking= ; ac_valgrind_checking= ;;
6315         # these enable particular checks
6316         assert)         ac_assert_checking=1 ;;
6317         fold)           ac_fold_checking=1 ;;
6318         gc)             ac_gc_checking=1 ;;
6319         gcac)           ac_gc_always_collect=1 ;;
6320         misc)           ac_checking=1 ;;
6321         rtl)            ac_rtl_checking=1 ;;
6322         rtlflag)        ac_rtlflag_checking=1 ;;
6323         runtime)        ac_runtime_checking=1 ;;
6324         tree)           ac_tree_checking=1 ;;
6325         valgrind)       ac_valgrind_checking=1 ;;
6326         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6327 echo "$as_me: error: unknown check category $check" >&2;}
6328    { (exit 1); exit 1; }; } ;;
6329         esac
6330 done
6331 IFS="$ac_save_IFS"
6332
6333 nocommon_flag=""
6334 if test x$ac_checking != x ; then
6335
6336 cat >>confdefs.h <<\_ACEOF
6337 #define ENABLE_CHECKING 1
6338 _ACEOF
6339
6340   nocommon_flag=-fno-common
6341 fi
6342
6343 if test x$ac_assert_checking != x ; then
6344
6345 cat >>confdefs.h <<\_ACEOF
6346 #define ENABLE_ASSERT_CHECKING 1
6347 _ACEOF
6348
6349 fi
6350
6351 if test x$ac_runtime_checking != x ; then
6352
6353 cat >>confdefs.h <<\_ACEOF
6354 #define ENABLE_RUNTIME_CHECKING 1
6355 _ACEOF
6356
6357 fi
6358 if test x$ac_tree_checking != x ; then
6359
6360 cat >>confdefs.h <<\_ACEOF
6361 #define ENABLE_TREE_CHECKING 1
6362 _ACEOF
6363
6364   TREEBROWSER=tree-browser.o
6365 fi
6366
6367 if test x$ac_rtl_checking != x ; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define ENABLE_RTL_CHECKING 1
6371 _ACEOF
6372
6373 fi
6374 if test x$ac_rtlflag_checking != x ; then
6375
6376 cat >>confdefs.h <<\_ACEOF
6377 #define ENABLE_RTL_FLAG_CHECKING 1
6378 _ACEOF
6379
6380 fi
6381 if test x$ac_gc_checking != x ; then
6382
6383 cat >>confdefs.h <<\_ACEOF
6384 #define ENABLE_GC_CHECKING 1
6385 _ACEOF
6386
6387 fi
6388 if test x$ac_gc_always_collect != x ; then
6389
6390 cat >>confdefs.h <<\_ACEOF
6391 #define ENABLE_GC_ALWAYS_COLLECT 1
6392 _ACEOF
6393
6394 fi
6395 if test x$ac_fold_checking != x ; then
6396
6397 cat >>confdefs.h <<\_ACEOF
6398 #define ENABLE_FOLD_CHECKING 1
6399 _ACEOF
6400
6401 fi
6402 valgrind_path_defines=
6403 valgrind_command=
6404
6405 if test "${ac_cv_header_valgrind_h+set}" = set; then
6406   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6407 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6408 if test "${ac_cv_header_valgrind_h+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6412 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6413 else
6414   # Is the header compilable?
6415 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6416 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423 $ac_includes_default
6424 #include <valgrind.h>
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428   (eval $ac_compile) 2>conftest.er1
6429   ac_status=$?
6430   grep -v '^ *+' conftest.er1 >conftest.err
6431   rm -f conftest.er1
6432   cat conftest.err >&5
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -z "$ac_c_werror_flag"
6436                          || test ! -s conftest.err'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; } &&
6442          { ac_try='test -s conftest.$ac_objext'
6443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444   (eval $ac_try) 2>&5
6445   ac_status=$?
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); }; }; then
6448   ac_header_compiler=yes
6449 else
6450   echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_compiler=no
6454 fi
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6457 echo "${ECHO_T}$ac_header_compiler" >&6
6458
6459 # Is the header present?
6460 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6461 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 #include <valgrind.h>
6469 _ACEOF
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472   ac_status=$?
6473   grep -v '^ *+' conftest.er1 >conftest.err
6474   rm -f conftest.er1
6475   cat conftest.err >&5
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } >/dev/null; then
6478   if test -s conftest.err; then
6479     ac_cpp_err=$ac_c_preproc_warn_flag
6480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6481   else
6482     ac_cpp_err=
6483   fi
6484 else
6485   ac_cpp_err=yes
6486 fi
6487 if test -z "$ac_cpp_err"; then
6488   ac_header_preproc=yes
6489 else
6490   echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493   ac_header_preproc=no
6494 fi
6495 rm -f conftest.err conftest.$ac_ext
6496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497 echo "${ECHO_T}$ac_header_preproc" >&6
6498
6499 # So?  What about this header?
6500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501   yes:no: )
6502     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6503 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6505 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6506     ac_header_preproc=yes
6507     ;;
6508   no:yes:* )
6509     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6514 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6516 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6517     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6519     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6520 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6521     (
6522       cat <<\_ASBOX
6523 ## ------------------------------------------ ##
6524 ## Report this to the AC_PACKAGE_NAME lists.  ##
6525 ## ------------------------------------------ ##
6526 _ASBOX
6527     ) |
6528       sed "s/^/$as_me: WARNING:     /" >&2
6529     ;;
6530 esac
6531 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6532 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6533 if test "${ac_cv_header_valgrind_h+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   ac_cv_header_valgrind_h=$ac_header_preproc
6537 fi
6538 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6539 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6540
6541 fi
6542 if test $ac_cv_header_valgrind_h = yes; then
6543   have_valgrind_h=yes
6544 else
6545   have_valgrind_h=no
6546 fi
6547
6548
6549
6550 if test x$ac_valgrind_checking != x ; then
6551   # It is certainly possible that there's valgrind but no valgrind.h.
6552   # GCC relies on making annotations so we must have both.
6553   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6554 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6555   cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h.  */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h.  */
6561 #include <valgrind/memcheck.h>
6562 #ifndef VALGRIND_DISCARD
6563 #error VALGRIND_DISCARD not defined
6564 #endif
6565 _ACEOF
6566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } >/dev/null; then
6574   if test -s conftest.err; then
6575     ac_cpp_err=$ac_c_preproc_warn_flag
6576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6577   else
6578     ac_cpp_err=
6579   fi
6580 else
6581   ac_cpp_err=yes
6582 fi
6583 if test -z "$ac_cpp_err"; then
6584   gcc_cv_header_valgrind_memcheck_h=yes
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589   gcc_cv_header_valgrind_memcheck_h=no
6590 fi
6591 rm -f conftest.err conftest.$ac_ext
6592   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6593 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6594   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6595 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6596   cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602 #include <memcheck.h>
6603 #ifndef VALGRIND_DISCARD
6604 #error VALGRIND_DISCARD not defined
6605 #endif
6606 _ACEOF
6607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } >/dev/null; then
6615   if test -s conftest.err; then
6616     ac_cpp_err=$ac_c_preproc_warn_flag
6617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6618   else
6619     ac_cpp_err=
6620   fi
6621 else
6622   ac_cpp_err=yes
6623 fi
6624 if test -z "$ac_cpp_err"; then
6625   gcc_cv_header_memcheck_h=yes
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630   gcc_cv_header_memcheck_h=no
6631 fi
6632 rm -f conftest.err conftest.$ac_ext
6633   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6634 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6635
6636 # Prepare PATH_SEPARATOR.
6637 # The user is always right.
6638 if test "${PATH_SEPARATOR+set}" != set; then
6639   echo "#! /bin/sh" >conf$$.sh
6640   echo  "exit 0"   >>conf$$.sh
6641   chmod +x conf$$.sh
6642   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6643     PATH_SEPARATOR=';'
6644   else
6645     PATH_SEPARATOR=:
6646   fi
6647   rm -f conf$$.sh
6648 fi
6649
6650 # Find out how to test for executable files. Don't use a zero-byte file,
6651 # as systems may use methods other than mode bits to determine executability.
6652 cat >conf$$.file <<_ASEOF
6653 #! /bin/sh
6654 exit 0
6655 _ASEOF
6656 chmod +x conf$$.file
6657 if test -x conf$$.file >/dev/null 2>&1; then
6658   ac_executable_p="test -x"
6659 else
6660   ac_executable_p="test -f"
6661 fi
6662 rm -f conf$$.file
6663
6664 # Extract the first word of "valgrind", so it can be a program name with args.
6665 set dummy valgrind; ac_word=$2
6666 echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668 if test "${ac_cv_path_valgrind_path+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case "$valgrind_path" in
6672   [\\/]* | ?:[\\/]*)
6673     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6674     ;;
6675   *)
6676     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6677     for ac_dir in $PATH; do
6678       IFS="$ac_save_IFS"
6679       test -z "$ac_dir" && ac_dir=.
6680       for ac_exec_ext in '' $ac_executable_extensions; do
6681         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6682           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6683             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6684             break 2
6685           fi
6686         fi
6687       done
6688     done
6689     IFS="$ac_save_IFS"
6690     ;;
6691 esac
6692 fi
6693 valgrind_path="$ac_cv_path_valgrind_path"
6694 if test -n "$valgrind_path"; then
6695   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6696 echo "${ECHO_T}$valgrind_path" >&6
6697 else
6698   echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6
6700 fi
6701
6702   if test "x$valgrind_path" = "x" \
6703     || (test $have_valgrind_h = no \
6704         && test $gcc_cv_header_memcheck_h = no \
6705         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6706         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6707 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6708    { (exit 1); exit 1; }; }
6709   fi
6710   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6711   valgrind_command="$valgrind_path -q"
6712
6713 cat >>confdefs.h <<\_ACEOF
6714 #define ENABLE_VALGRIND_CHECKING 1
6715 _ACEOF
6716
6717   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6718
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_VALGRIND_MEMCHECK_H 1
6721 _ACEOF
6722
6723   fi
6724   if test $gcc_cv_header_memcheck_h = yes; then
6725
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_MEMCHECK_H 1
6728 _ACEOF
6729
6730   fi
6731 fi
6732
6733
6734
6735 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6736 if test "${enable_mapped_location+set}" = set; then
6737   enableval="$enable_mapped_location"
6738
6739 else
6740   enable_mapped_location=no
6741 fi;
6742
6743 if test "$enable_mapped_location" = yes ; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define USE_MAPPED_LOCATION 1
6747 _ACEOF
6748
6749 fi
6750
6751 # Enable code coverage collection
6752 # Check whether --enable-coverage or --disable-coverage was given.
6753 if test "${enable_coverage+set}" = set; then
6754   enableval="$enable_coverage"
6755   case "${enableval}" in
6756   yes|noopt)
6757     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6758     ;;
6759   opt)
6760     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6761     ;;
6762   no)
6763     # a.k.a. --disable-coverage
6764     coverage_flags=""
6765     ;;
6766   *)
6767     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6768 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6769    { (exit 1); exit 1; }; }
6770     ;;
6771 esac
6772 else
6773   coverage_flags=""
6774 fi;
6775
6776
6777 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6778 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6779   enableval="$enable_gather_detailed_mem_stats"
6780
6781 else
6782   enable_gather_detailed_mem_stats=no
6783 fi;
6784 if test x$enable_gather_detailed_mem_stats = xyes ; then
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define GATHER_STATISTICS 1
6788 _ACEOF
6789
6790 fi
6791
6792 # -------------------------------
6793 # Miscenalleous configure options
6794 # -------------------------------
6795
6796 # With stabs
6797
6798 # Check whether --with-stabs or --without-stabs was given.
6799 if test "${with_stabs+set}" = set; then
6800   withval="$with_stabs"
6801   stabs="$with_stabs"
6802 else
6803   stabs=no
6804 fi;
6805
6806 # Determine whether or not multilibs are enabled.
6807 # Check whether --enable-multilib or --disable-multilib was given.
6808 if test "${enable_multilib+set}" = set; then
6809   enableval="$enable_multilib"
6810
6811 else
6812   enable_multilib=yes
6813 fi;
6814
6815
6816 # Enable __cxa_atexit for C++.
6817 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6818 if test "${enable___cxa_atexit+set}" = set; then
6819   enableval="$enable___cxa_atexit"
6820
6821 fi;
6822
6823 # Enable threads
6824 # Pass with no value to take the default
6825 # Pass with a value to specify a thread package
6826 # Check whether --enable-threads or --disable-threads was given.
6827 if test "${enable_threads+set}" = set; then
6828   enableval="$enable_threads"
6829
6830 else
6831   enable_threads=''
6832 fi;
6833
6834 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6835 if test "${enable_objc_gc+set}" = set; then
6836   enableval="$enable_objc_gc"
6837   if test x$enable_objc_gc = xno; then
6838         objc_boehm_gc=''
6839 else
6840         objc_boehm_gc=1
6841 fi
6842 else
6843   objc_boehm_gc=''
6844 fi;
6845
6846
6847 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6848 if test "${with_dwarf2+set}" = set; then
6849   withval="$with_dwarf2"
6850   dwarf2="$with_dwarf2"
6851 else
6852   dwarf2=no
6853 fi;
6854
6855 # Check whether --enable-shared or --disable-shared was given.
6856 if test "${enable_shared+set}" = set; then
6857   enableval="$enable_shared"
6858
6859   case $enable_shared in
6860   yes | no) ;;
6861   *)
6862     enable_shared=no
6863     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6864     for pkg in $enableval; do
6865       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6866         enable_shared=yes
6867       fi
6868     done
6869     IFS="$ac_save_ifs"
6870     ;;
6871   esac
6872
6873 else
6874   enable_shared=yes
6875 fi;
6876
6877
6878
6879 # Check whether --with-sysroot or --without-sysroot was given.
6880 if test "${with_sysroot+set}" = set; then
6881   withval="$with_sysroot"
6882
6883  case ${with_sysroot} in
6884  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6885  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6886  esac
6887
6888  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6889  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6890
6891  if test "x$exec_prefix" = xNONE; then
6892   if test "x$prefix" = xNONE; then
6893    test_prefix=/usr/local
6894   else
6895    test_prefix=$prefix
6896   fi
6897  else
6898   test_prefix=$exec_prefix
6899  fi
6900  case ${TARGET_SYSTEM_ROOT} in
6901  "${test_prefix}"|"${test_prefix}/"*|\
6902  '${exec_prefix}'|'${exec_prefix}/'*)
6903    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6904    TARGET_SYSTEM_ROOT_DEFINE="$t"
6905    ;;
6906  esac
6907
6908 else
6909
6910  TARGET_SYSTEM_ROOT=
6911  TARGET_SYSTEM_ROOT_DEFINE=
6912  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6913
6914 fi;
6915
6916
6917
6918
6919 # Build with intermodule optimisations
6920 # Check whether --enable-intermodule or --disable-intermodule was given.
6921 if test "${enable_intermodule+set}" = set; then
6922   enableval="$enable_intermodule"
6923   case ${enable_intermodule} in
6924   yes) onestep="-onestep";;
6925   *) onestep="";;
6926 esac
6927 else
6928   onestep=""
6929 fi;
6930
6931
6932 # Sanity check enable_languages in case someone does not run the toplevel
6933 # configure # script.
6934 # Check whether --enable-languages or --disable-languages was given.
6935 if test "${enable_languages+set}" = set; then
6936   enableval="$enable_languages"
6937   case ,${enable_languages}, in
6938        ,,|,yes,)
6939                 # go safe -- we cannot be much sure without the toplevel
6940                 # configure's
6941                 # analysis of which target libs are present and usable
6942                 enable_languages=c
6943                 ;;
6944          *,all,*)
6945                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6946 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6947    { (exit 1); exit 1; }; }
6948                 ;;
6949         *,c,*)
6950                 ;;
6951         *)
6952                 enable_languages=c,${enable_languages}
6953                 ;;
6954 esac
6955 else
6956   enable_languages=c
6957 fi;
6958
6959 subdirs=
6960 for lang in ${srcdir}/*/config-lang.in
6961 do
6962         case $lang in
6963         # The odd quoting in the next line works around
6964         # an apparent bug in bash 1.12 on linux.
6965         ${srcdir}/[*]/config-lang.in) ;;
6966         *)
6967           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6968           if test "x$lang_alias" = x
6969           then
6970                 echo "$lang doesn't set \$language." 1>&2
6971                 exit 1
6972           fi
6973           case ",$enable_languages," in
6974           *,$lang_alias,*)
6975             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6976           esac
6977           ;;
6978         esac
6979 done
6980
6981
6982 # -------------------------
6983 # Checks for other programs
6984 # -------------------------
6985
6986 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6988 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6989 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   cat >conftest.make <<\_ACEOF
6993 all:
6994         @echo 'ac_maketemp="$(MAKE)"'
6995 _ACEOF
6996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6997 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6998 if test -n "$ac_maketemp"; then
6999   eval ac_cv_prog_make_${ac_make}_set=yes
7000 else
7001   eval ac_cv_prog_make_${ac_make}_set=no
7002 fi
7003 rm -f conftest.make
7004 fi
7005 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7006   echo "$as_me:$LINENO: result: yes" >&5
7007 echo "${ECHO_T}yes" >&6
7008   SET_MAKE=
7009 else
7010   echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6
7012   SET_MAKE="MAKE=${MAKE-make}"
7013 fi
7014
7015
7016 # Find some useful tools
7017 for ac_prog in gawk mawk nawk awk
7018 do
7019   # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7023 if test "${ac_cv_prog_AWK+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   if test -n "$AWK"; then
7027   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036     ac_cv_prog_AWK="$ac_prog"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042
7043 fi
7044 fi
7045 AWK=$ac_cv_prog_AWK
7046 if test -n "$AWK"; then
7047   echo "$as_me:$LINENO: result: $AWK" >&5
7048 echo "${ECHO_T}$AWK" >&6
7049 else
7050   echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6
7052 fi
7053
7054   test -n "$AWK" && break
7055 done
7056
7057 # We need awk to create options.c and options.h.
7058 # Bail out if it's missing.
7059 case ${AWK} in
7060   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7061 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7062    { (exit 1); exit 1; }; } ;;
7063 esac
7064
7065 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7066 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7067 if test "${gcc_cv_prog_LN_S+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   rm -f conftestdata_t
7071 echo >conftestdata_f
7072 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7073 then
7074   gcc_cv_prog_LN_S="ln -s"
7075 else
7076   if ln conftestdata_f conftestdata_t 2>/dev/null
7077   then
7078     gcc_cv_prog_LN_S=ln
7079   else
7080     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7081     then
7082       gcc_cv_prog_LN_S="cp -p"
7083     else
7084       gcc_cv_prog_LN_S=cp
7085     fi
7086   fi
7087 fi
7088 rm -f conftestdata_f conftestdata_t
7089
7090 fi
7091 LN_S="$gcc_cv_prog_LN_S"
7092 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7093   echo "$as_me:$LINENO: result: yes" >&5
7094 echo "${ECHO_T}yes" >&6
7095 else
7096   if test "$gcc_cv_prog_LN_S" = "ln"; then
7097     echo "$as_me:$LINENO: result: no, using ln" >&5
7098 echo "${ECHO_T}no, using ln" >&6
7099   else
7100     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7101 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7102   fi
7103 fi
7104
7105 echo "$as_me:$LINENO: checking whether ln works" >&5
7106 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7107 if test "${acx_cv_prog_LN+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   rm -f conftestdata_t
7111 echo >conftestdata_f
7112 if ln conftestdata_f conftestdata_t 2>/dev/null
7113 then
7114   acx_cv_prog_LN=ln
7115 else
7116   acx_cv_prog_LN=no
7117 fi
7118 rm -f conftestdata_f conftestdata_t
7119
7120 fi
7121 if test $acx_cv_prog_LN = no; then
7122   LN="$LN_S"
7123   echo "$as_me:$LINENO: result: no, using $LN" >&5
7124 echo "${ECHO_T}no, using $LN" >&6
7125 else
7126   LN="$acx_cv_prog_LN"
7127   echo "$as_me:$LINENO: result: yes" >&5
7128 echo "${ECHO_T}yes" >&6
7129 fi
7130
7131 if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_RANLIB+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   if test -n "$RANLIB"; then
7140   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155
7156 fi
7157 fi
7158 RANLIB=$ac_cv_prog_RANLIB
7159 if test -n "$RANLIB"; then
7160   echo "$as_me:$LINENO: result: $RANLIB" >&5
7161 echo "${ECHO_T}$RANLIB" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167 fi
7168 if test -z "$ac_cv_prog_RANLIB"; then
7169   ac_ct_RANLIB=$RANLIB
7170   # Extract the first word of "ranlib", so it can be a program name with args.
7171 set dummy ranlib; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_RANLIB"; then
7178   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_ac_ct_RANLIB="ranlib"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193
7194   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7195 fi
7196 fi
7197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7198 if test -n "$ac_ct_RANLIB"; then
7199   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206   RANLIB=$ac_ct_RANLIB
7207 else
7208   RANLIB="$ac_cv_prog_RANLIB"
7209 fi
7210
7211 case "${host}" in
7212 *-*-darwin*)
7213   # By default, the Darwin ranlib will not treat common symbols as
7214   # definitions when  building the archive table of contents.  Other
7215   # ranlibs do that; pass an option to the Darwin ranlib that makes
7216   # it behave similarly.
7217   ranlib_flags="-c"
7218   ;;
7219 *)
7220   ranlib_flags=""
7221 esac
7222
7223
7224 # Find a good install program.  We prefer a C program (faster),
7225 # so one script is as good as another.  But avoid the broken or
7226 # incompatible versions:
7227 # SysV /etc/install, /usr/sbin/install
7228 # SunOS /usr/etc/install
7229 # IRIX /sbin/install
7230 # AIX /bin/install
7231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7233 # ./install, which can be erroneously created by make from ./install.sh.
7234 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7235 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7236 if test -z "$INSTALL"; then
7237 if test "${ac_cv_path_install+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7241   for ac_dir in $PATH; do
7242     # Account for people who put trailing slashes in PATH elements.
7243     case "$ac_dir/" in
7244     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7245     *)
7246       # OSF1 and SCO ODT 3.0 have their own names for install.
7247       for ac_prog in ginstall scoinst install; do
7248         if test -f $ac_dir/$ac_prog; then
7249           if test $ac_prog = install &&
7250             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7251             # AIX install.  It has an incompatible calling convention.
7252             # OSF/1 installbsd also uses dspmsg, but is usable.
7253             :
7254           else
7255             ac_cv_path_install="$ac_dir/$ac_prog -c"
7256             break 2
7257           fi
7258         fi
7259       done
7260       ;;
7261     esac
7262   done
7263   IFS="$ac_save_IFS"
7264
7265 fi
7266   if test "${ac_cv_path_install+set}" = set; then
7267     INSTALL="$ac_cv_path_install"
7268   else
7269     # As a last resort, use the slow shell script.  We don't cache a
7270     # path for INSTALL within a source directory, because that will
7271     # break other packages using the cache if that directory is
7272     # removed, or if the path is relative.
7273     INSTALL="$ac_install_sh"
7274   fi
7275 fi
7276 echo "$as_me:$LINENO: result: $INSTALL" >&5
7277 echo "${ECHO_T}$INSTALL" >&6
7278
7279 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7280 # It thinks the first close brace ends the variable substitution.
7281 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7282
7283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7284
7285
7286 # See if cmp has --ignore-initial.
7287 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7288 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7289 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292    echo abfoo >t1
7293   echo cdfoo >t2
7294   gcc_cv_prog_cmp_skip=slowcompare
7295   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7296     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7297       :
7298     else
7299       gcc_cv_prog_cmp_skip=gnucompare
7300     fi
7301   fi
7302   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7303     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7304       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7305         :
7306       else
7307         gcc_cv_prog_cmp_skip=fastcompare
7308       fi
7309     fi
7310   fi
7311   rm t1 t2
7312
7313 fi
7314 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7315 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7316 make_compare_target=$gcc_cv_prog_cmp_skip
7317
7318
7319
7320 # See if we have the mktemp command.
7321 # Extract the first word of "mktemp", so it can be a program name with args.
7322 set dummy mktemp; ac_word=$2
7323 echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   if test -n "$have_mktemp_command"; then
7329   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338     ac_cv_prog_have_mktemp_command="yes"
7339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344
7345   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7346 fi
7347 fi
7348 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7349 if test -n "$have_mktemp_command"; then
7350   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7351 echo "${ECHO_T}$have_mktemp_command" >&6
7352 else
7353   echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6
7355 fi
7356
7357
7358 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7359
7360 # See if makeinfo has been installed and is modern enough
7361 # that we can use it.
7362 # Extract the first word of "makeinfo", so it can be a program name with args.
7363 set dummy makeinfo; ac_word=$2
7364 echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7366 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   if test -n "$MAKEINFO"; then
7370   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377   for ac_exec_ext in '' $ac_executable_extensions; do
7378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379     ac_cv_prog_MAKEINFO="makeinfo"
7380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384 done
7385
7386 fi
7387 fi
7388 MAKEINFO=$ac_cv_prog_MAKEINFO
7389 if test -n "$MAKEINFO"; then
7390   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7391 echo "${ECHO_T}$MAKEINFO" >&6
7392 else
7393   echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7395 fi
7396
7397 if test -n "$MAKEINFO"; then
7398   # Found it, now check the version.
7399   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7400 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404     ac_prog_version=`$MAKEINFO --version 2>&1 |
7405                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7406   echo "configure:7406: version of makeinfo is $ac_prog_version" >&5
7407   case $ac_prog_version in
7408     '')     gcc_cv_prog_makeinfo_modern=no;;
7409     4.[2-9]*)
7410             gcc_cv_prog_makeinfo_modern=yes;;
7411     *)      gcc_cv_prog_makeinfo_modern=no;;
7412   esac
7413
7414 fi
7415 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7416 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7417 else
7418   gcc_cv_prog_makeinfo_modern=no
7419 fi
7420
7421 if test $gcc_cv_prog_makeinfo_modern = no; then
7422   MAKEINFO="$MISSING makeinfo"
7423   { echo "$as_me:$LINENO: WARNING:
7424 *** Makeinfo is missing or too old.
7425 *** Info documentation will not be built." >&5
7426 echo "$as_me: WARNING:
7427 *** Makeinfo is missing or too old.
7428 *** Info documentation will not be built." >&2;}
7429   BUILD_INFO=
7430 else
7431   BUILD_INFO=info
7432 fi
7433
7434
7435 # Is pod2man recent enough to regenerate manpages?
7436 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7437 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7438 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7439   echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7441   GENERATED_MANPAGES=generated-manpages
7442 else
7443   echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7445   GENERATED_MANPAGES=
7446 fi
7447
7448
7449 # How about lex?
7450 for ac_prog in flex
7451 do
7452   # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy $ac_prog; ac_word=$2
7454 echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456 if test "${ac_cv_prog_FLEX+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$FLEX"; then
7460   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469     ac_cv_prog_FLEX="$ac_prog"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475
7476 fi
7477 fi
7478 FLEX=$ac_cv_prog_FLEX
7479 if test -n "$FLEX"; then
7480   echo "$as_me:$LINENO: result: $FLEX" >&5
7481 echo "${ECHO_T}$FLEX" >&6
7482 else
7483   echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6
7485 fi
7486
7487   test -n "$FLEX" && break
7488 done
7489 test -n "$FLEX" || FLEX="$MISSING flex"
7490
7491
7492 # Bison?
7493 for ac_prog in bison
7494 do
7495   # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7499 if test "${ac_cv_prog_BISON+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   if test -n "$BISON"; then
7503   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510   for ac_exec_ext in '' $ac_executable_extensions; do
7511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512     ac_cv_prog_BISON="$ac_prog"
7513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517 done
7518
7519 fi
7520 fi
7521 BISON=$ac_cv_prog_BISON
7522 if test -n "$BISON"; then
7523   echo "$as_me:$LINENO: result: $BISON" >&5
7524 echo "${ECHO_T}$BISON" >&6
7525 else
7526   echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7528 fi
7529
7530   test -n "$BISON" && break
7531 done
7532 test -n "$BISON" || BISON="$MISSING bison"
7533
7534
7535 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7536 # check for build == host before using them.
7537
7538 # NM
7539 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7540   && test -d ../binutils ; then
7541   NM='$(objdir)/../binutils/nm-new'
7542 else
7543   # Extract the first word of "nm", so it can be a program name with args.
7544 set dummy nm; ac_word=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_NM+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   if test -n "$NM"; then
7551   ac_cv_prog_NM="$NM" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560     ac_cv_prog_NM="nm"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566
7567   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7568 fi
7569 fi
7570 NM=$ac_cv_prog_NM
7571 if test -n "$NM"; then
7572   echo "$as_me:$LINENO: result: $NM" >&5
7573 echo "${ECHO_T}$NM" >&6
7574 else
7575   echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577 fi
7578
7579 fi
7580
7581 # AR
7582 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7583   && test -d ../binutils ; then
7584   AR='$(objdir)/../binutils/ar'
7585 else
7586   # Extract the first word of "ar", so it can be a program name with args.
7587 set dummy ar; ac_word=$2
7588 echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590 if test "${ac_cv_prog_AR+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   if test -n "$AR"; then
7594   ac_cv_prog_AR="$AR" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603     ac_cv_prog_AR="ar"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609
7610   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7611 fi
7612 fi
7613 AR=$ac_cv_prog_AR
7614 if test -n "$AR"; then
7615   echo "$as_me:$LINENO: result: $AR" >&5
7616 echo "${ECHO_T}$AR" >&6
7617 else
7618   echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7620 fi
7621
7622 fi
7623
7624
7625 # --------------------
7626 # Checks for C headers
7627 # --------------------
7628
7629 echo "$as_me:$LINENO: checking for GNU C library" >&5
7630 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7631 if test "${gcc_cv_glibc+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640 #include <features.h>
7641 int
7642 main ()
7643 {
7644
7645 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7646 #error Not a GNU C library system
7647 #endif
7648   ;
7649   return 0;
7650 }
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654   (eval $ac_compile) 2>conftest.er1
7655   ac_status=$?
7656   grep -v '^ *+' conftest.er1 >conftest.err
7657   rm -f conftest.er1
7658   cat conftest.err >&5
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); } &&
7661          { ac_try='test -z "$ac_c_werror_flag"
7662                          || test ! -s conftest.err'
7663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664   (eval $ac_try) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; } &&
7668          { ac_try='test -s conftest.$ac_objext'
7669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670   (eval $ac_try) 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); }; }; then
7674   gcc_cv_glibc=yes
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 gcc_cv_glibc=no
7680 fi
7681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683
7684 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7685 echo "${ECHO_T}$gcc_cv_glibc" >&6
7686 if test $gcc_cv_glibc = yes; then
7687
7688 cat >>confdefs.h <<\_ACEOF
7689 #define _GNU_SOURCE 1
7690 _ACEOF
7691
7692 fi
7693
7694 # Need to reject headers which give warnings, so that the -Werror bootstrap
7695 # works later. *sigh*  This needs to come before all header checks.
7696
7697 ac_c_preproc_warn_flag=yes
7698
7699 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7700 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7701 if test "${ac_cv_header_stdc+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h.  */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h.  */
7710 #include <stdlib.h>
7711 #include <stdarg.h>
7712 #include <string.h>
7713 #include <float.h>
7714
7715 int
7716 main ()
7717 {
7718
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725   (eval $ac_compile) 2>conftest.er1
7726   ac_status=$?
7727   grep -v '^ *+' conftest.er1 >conftest.err
7728   rm -f conftest.er1
7729   cat conftest.err >&5
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } &&
7732          { ac_try='test -z "$ac_c_werror_flag"
7733                          || test ! -s conftest.err'
7734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735   (eval $ac_try) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }; } &&
7739          { ac_try='test -s conftest.$ac_objext'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; }; then
7745   ac_cv_header_stdc=yes
7746 else
7747   echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750 ac_cv_header_stdc=no
7751 fi
7752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753
7754 if test $ac_cv_header_stdc = yes; then
7755   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7756   cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762 #include <string.h>
7763
7764 _ACEOF
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766   $EGREP "memchr" >/dev/null 2>&1; then
7767   :
7768 else
7769   ac_cv_header_stdc=no
7770 fi
7771 rm -f conftest*
7772
7773 fi
7774
7775 if test $ac_cv_header_stdc = yes; then
7776   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7777   cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 #include <stdlib.h>
7784
7785 _ACEOF
7786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7787   $EGREP "free" >/dev/null 2>&1; then
7788   :
7789 else
7790   ac_cv_header_stdc=no
7791 fi
7792 rm -f conftest*
7793
7794 fi
7795
7796 if test $ac_cv_header_stdc = yes; then
7797   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7798   if test "$cross_compiling" = yes; then
7799   :
7800 else
7801   cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h.  */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h.  */
7807 #include <ctype.h>
7808 #if ((' ' & 0x0FF) == 0x020)
7809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7811 #else
7812 # define ISLOWER(c) \
7813                    (('a' <= (c) && (c) <= 'i') \
7814                      || ('j' <= (c) && (c) <= 'r') \
7815                      || ('s' <= (c) && (c) <= 'z'))
7816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7817 #endif
7818
7819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7820 int
7821 main ()
7822 {
7823   int i;
7824   for (i = 0; i < 256; i++)
7825     if (XOR (islower (i), ISLOWER (i))
7826         || toupper (i) != TOUPPER (i))
7827       exit(2);
7828   exit (0);
7829 }
7830 _ACEOF
7831 rm -f conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833   (eval $ac_link) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   :
7843 else
7844   echo "$as_me: program exited with status $ac_status" >&5
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 ( exit $ac_status )
7849 ac_cv_header_stdc=no
7850 fi
7851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 fi
7854 fi
7855 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7856 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7857 if test $ac_cv_header_stdc = yes; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define STDC_HEADERS 1
7861 _ACEOF
7862
7863 fi
7864
7865 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7866 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7867 if test "${ac_cv_header_time+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876 #include <sys/types.h>
7877 #include <sys/time.h>
7878 #include <time.h>
7879
7880 int
7881 main ()
7882 {
7883 if ((struct tm *) 0)
7884 return 0;
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891   (eval $ac_compile) 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag"
7899                          || test ! -s conftest.err'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; } &&
7905          { ac_try='test -s conftest.$ac_objext'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; }; then
7911   ac_cv_header_time=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ac_cv_header_time=no
7917 fi
7918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7919 fi
7920 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7921 echo "${ECHO_T}$ac_cv_header_time" >&6
7922 if test $ac_cv_header_time = yes; then
7923
7924 cat >>confdefs.h <<\_ACEOF
7925 #define TIME_WITH_SYS_TIME 1
7926 _ACEOF
7927
7928 fi
7929
7930 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7931 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7932 if test "${gcc_cv_header_string+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941 #include <string.h>
7942 #include <strings.h>
7943 int
7944 main ()
7945 {
7946
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953   (eval $ac_compile) 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -z "$ac_c_werror_flag"
7961                          || test ! -s conftest.err'
7962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; } &&
7967          { ac_try='test -s conftest.$ac_objext'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   gcc_cv_header_string=yes
7974 else
7975   echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 gcc_cv_header_string=no
7979 fi
7980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7983 echo "${ECHO_T}$gcc_cv_header_string" >&6
7984 if test $gcc_cv_header_string = yes; then
7985
7986 cat >>confdefs.h <<\_ACEOF
7987 #define STRING_WITH_STRINGS 1
7988 _ACEOF
7989
7990 fi
7991
7992 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003 #include <sys/types.h>
8004 #include <sys/wait.h>
8005 #ifndef WEXITSTATUS
8006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8007 #endif
8008 #ifndef WIFEXITED
8009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8010 #endif
8011
8012 int
8013 main ()
8014 {
8015   int s;
8016   wait (&s);
8017   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8024   (eval $ac_compile) 2>conftest.er1
8025   ac_status=$?
8026   grep -v '^ *+' conftest.er1 >conftest.err
8027   rm -f conftest.er1
8028   cat conftest.err >&5
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -z "$ac_c_werror_flag"
8032                          || test ! -s conftest.err'
8033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034   (eval $ac_try) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; } &&
8038          { ac_try='test -s conftest.$ac_objext'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; }; then
8044   ac_cv_header_sys_wait_h=yes
8045 else
8046   echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_cv_header_sys_wait_h=no
8050 fi
8051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8052 fi
8053 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8054 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8055 if test $ac_cv_header_sys_wait_h = yes; then
8056
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_SYS_WAIT_H 1
8059 _ACEOF
8060
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8086                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8087                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8088                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8089 do
8090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091 echo "$as_me:$LINENO: checking for $ac_header" >&5
8092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102 #include <$ac_header>
8103 _ACEOF
8104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8106   ac_status=$?
8107   grep -v '^ *+' conftest.er1 >conftest.err
8108   rm -f conftest.er1
8109   cat conftest.err >&5
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); } >/dev/null; then
8112   if test -s conftest.err; then
8113     ac_cpp_err=$ac_c_preproc_warn_flag
8114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8115   else
8116     ac_cpp_err=
8117   fi
8118 else
8119   ac_cpp_err=yes
8120 fi
8121 if test -z "$ac_cpp_err"; then
8122   eval "$as_ac_Header=yes"
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127   eval "$as_ac_Header=no"
8128 fi
8129 rm -f conftest.err conftest.$ac_ext
8130 fi
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8134   cat >>confdefs.h <<_ACEOF
8135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8136 _ACEOF
8137
8138 fi
8139 done
8140
8141
8142 # Check for thread headers.
8143 echo "$as_me:$LINENO: checking for thread.h" >&5
8144 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8145 if test "${ac_cv_header_thread_h+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h.  */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h.  */
8154 #include <thread.h>
8155 _ACEOF
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158   ac_status=$?
8159   grep -v '^ *+' conftest.er1 >conftest.err
8160   rm -f conftest.er1
8161   cat conftest.err >&5
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } >/dev/null; then
8164   if test -s conftest.err; then
8165     ac_cpp_err=$ac_c_preproc_warn_flag
8166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8167   else
8168     ac_cpp_err=
8169   fi
8170 else
8171   ac_cpp_err=yes
8172 fi
8173 if test -z "$ac_cpp_err"; then
8174   ac_cv_header_thread_h=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179   ac_cv_header_thread_h=no
8180 fi
8181 rm -f conftest.err conftest.$ac_ext
8182 fi
8183 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8184 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8185 if test $ac_cv_header_thread_h = yes; then
8186   have_thread_h=yes
8187 else
8188   have_thread_h=
8189 fi
8190
8191 echo "$as_me:$LINENO: checking for pthread.h" >&5
8192 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8193 if test "${ac_cv_header_pthread_h+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202 #include <pthread.h>
8203 _ACEOF
8204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } >/dev/null; then
8212   if test -s conftest.err; then
8213     ac_cpp_err=$ac_c_preproc_warn_flag
8214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8215   else
8216     ac_cpp_err=
8217   fi
8218 else
8219   ac_cpp_err=yes
8220 fi
8221 if test -z "$ac_cpp_err"; then
8222   ac_cv_header_pthread_h=yes
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227   ac_cv_header_pthread_h=no
8228 fi
8229 rm -f conftest.err conftest.$ac_ext
8230 fi
8231 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8232 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8233 if test $ac_cv_header_pthread_h = yes; then
8234   have_pthread_h=yes
8235 else
8236   have_pthread_h=
8237 fi
8238
8239
8240 # These tests can't be done till we know if we have limits.h.
8241 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8242 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8243 if test "${gcc_cv_decl_char_bit+set}" = set; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252 #ifdef HAVE_LIMITS_H
8253 #include <limits.h>
8254 #endif
8255 #ifdef CHAR_BIT
8256 found
8257 #endif
8258 _ACEOF
8259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8260   $EGREP "found" >/dev/null 2>&1; then
8261   gcc_cv_decl_char_bit=yes
8262 else
8263   gcc_cv_decl_char_bit=no
8264 fi
8265 rm -f conftest*
8266
8267
8268 fi
8269 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8270 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8271 if test $gcc_cv_decl_char_bit = no; then
8272   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8273 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8274 if test "${gcc_cv_c_nbby+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   i=8
8278  gcc_cv_c_nbby=
8279  while test $i -lt 65; do
8280    cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 int
8288 main ()
8289 {
8290 switch(0) {
8291   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8292   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8293   ; }
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300   (eval $ac_compile) 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } &&
8307          { ac_try='test -z "$ac_c_werror_flag"
8308                          || test ! -s conftest.err'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   gcc_cv_c_nbby=$i; break
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 fi
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327    i=`expr $i + 1`
8328  done
8329  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8330
8331 fi
8332 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8333 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8334 if test $gcc_cv_c_nbby = failed; then
8335   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8336 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8337    { (exit 1); exit 1; }; }
8338 else
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define CHAR_BIT $gcc_cv_c_nbby
8342 _ACEOF
8343
8344 fi
8345 fi
8346 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8348 if test "${ac_cv_c_bigendian+set}" = set; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351   # See if sys/param.h defines the BYTE_ORDER macro.
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 #include <sys/types.h>
8359 #include <sys/param.h>
8360
8361 int
8362 main ()
8363 {
8364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8365  bogus endian macros
8366 #endif
8367
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374   (eval $ac_compile) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"
8382                          || test ! -s conftest.err'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; } &&
8388          { ac_try='test -s conftest.$ac_objext'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   # It does; now see whether it defined to BIG_ENDIAN or not.
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401 #include <sys/types.h>
8402 #include <sys/param.h>
8403
8404 int
8405 main ()
8406 {
8407 #if BYTE_ORDER != BIG_ENDIAN
8408  not big endian
8409 #endif
8410
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417   (eval $ac_compile) 2>conftest.er1
8418   ac_status=$?
8419   grep -v '^ *+' conftest.er1 >conftest.err
8420   rm -f conftest.er1
8421   cat conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); } &&
8424          { ac_try='test -z "$ac_c_werror_flag"
8425                          || test ! -s conftest.err'
8426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427   (eval $ac_try) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; } &&
8431          { ac_try='test -s conftest.$ac_objext'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; }; then
8437   ac_cv_c_bigendian=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442 ac_cv_c_bigendian=no
8443 fi
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8445 else
8446   echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 # It does not; compile a test program.
8450 if test "$cross_compiling" = yes; then
8451   # try to guess the endianness by grepping values into an object file
8452   ac_cv_c_bigendian=unknown
8453   cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h.  */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h.  */
8459 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8460 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8461 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8462 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8463 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8464 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8465 int
8466 main ()
8467 {
8468  _ascii (); _ebcdic ();
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475   (eval $ac_compile) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest.$ac_objext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8496   ac_cv_c_bigendian=yes
8497 fi
8498 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8499   if test "$ac_cv_c_bigendian" = unknown; then
8500     ac_cv_c_bigendian=no
8501   else
8502     # finding both strings is unlikely to happen, but who knows?
8503     ac_cv_c_bigendian=unknown
8504   fi
8505 fi
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 else
8513   cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519 int
8520 main ()
8521 {
8522   /* Are we little or big endian?  From Harbison&Steele.  */
8523   union
8524   {
8525     long l;
8526     char c[sizeof (long)];
8527   } u;
8528   u.l = 1;
8529   exit (u.c[sizeof (long) - 1] == 1);
8530 }
8531 _ACEOF
8532 rm -f conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534   (eval $ac_link) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_c_bigendian=no
8544 else
8545   echo "$as_me: program exited with status $ac_status" >&5
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ( exit $ac_status )
8550 ac_cv_c_bigendian=yes
8551 fi
8552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 fi
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8558 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8559 case $ac_cv_c_bigendian in
8560   yes)
8561
8562 cat >>confdefs.h <<\_ACEOF
8563 #define WORDS_BIGENDIAN 1
8564 _ACEOF
8565  ;;
8566   no)
8567      ;;
8568   *)
8569     { { echo "$as_me:$LINENO: error: unknown endianness
8570 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8571 echo "$as_me: error: unknown endianness
8572 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8573    { (exit 1); exit 1; }; } ;;
8574 esac
8575
8576
8577 # --------
8578 # UNSORTED
8579 # --------
8580
8581 # Stage specific cflags for build.
8582 stage1_cflags=
8583 case $build in
8584 vax-*-*)
8585   if test x$GCC = xyes
8586   then
8587     stage1_cflags="-Wa,-J"
8588   else
8589     stage1_cflags="-J"
8590   fi
8591   ;;
8592 powerpc-*-darwin*)
8593   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8594   # sources; use -no-cpp-precomp to get to GNU cpp.
8595   # Apple's GCC has bugs in designated initializer handling, so disable
8596   # that too.
8597   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8598   ;;
8599 esac
8600
8601
8602 # These libraries may be used by collect2.
8603 # We may need a special search path to get them linked.
8604 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8605 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8606 if test "${gcc_cv_collect2_libs+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   save_LIBS="$LIBS"
8610 for libs in '' -lld -lmld \
8611                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8612                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8613 do
8614         LIBS="$libs"
8615         cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621
8622 /* Override any gcc2 internal prototype to avoid an error.  */
8623 #ifdef __cplusplus
8624 extern "C"
8625 #endif
8626 /* We use char because int might match the return type of a gcc2
8627    builtin and then its argument prototype would still apply.  */
8628 char ldopen ();
8629 int
8630 main ()
8631 {
8632 ldopen ();
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639   (eval $ac_link) 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -z "$ac_c_werror_flag"
8647                          || test ! -s conftest.err'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; } &&
8653          { ac_try='test -s conftest$ac_exeext'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; }; then
8659   gcc_cv_collect2_libs="$libs"; break
8660 else
8661   echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 fi
8665 rm -f conftest.err conftest.$ac_objext \
8666       conftest$ac_exeext conftest.$ac_ext
8667 done
8668 LIBS="$save_LIBS"
8669 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8670 fi
8671 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8672 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8673 case $gcc_cv_collect2_libs in
8674         "none required")        ;;
8675         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8676 esac
8677
8678
8679 # When building Ada code on Alpha, we need exc_resume which is usually in
8680 # -lexc.  So test for it.
8681 save_LIBS="$LIBS"
8682 LIBS=
8683 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8684 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8685 if test "${ac_cv_search_exc_resume+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   ac_func_search_save_LIBS=$LIBS
8689 ac_cv_search_exc_resume=no
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any gcc2 internal prototype to avoid an error.  */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702    builtin and then its argument prototype would still apply.  */
8703 char exc_resume ();
8704 int
8705 main ()
8706 {
8707 exc_resume ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"
8722                          || test ! -s conftest.err'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; } &&
8728          { ac_try='test -s conftest$ac_exeext'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; }; then
8734   ac_cv_search_exc_resume="none required"
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741       conftest$ac_exeext conftest.$ac_ext
8742 if test "$ac_cv_search_exc_resume" = no; then
8743   for ac_lib in exc; do
8744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8745     cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751
8752 /* Override any gcc2 internal prototype to avoid an error.  */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 /* We use char because int might match the return type of a gcc2
8757    builtin and then its argument prototype would still apply.  */
8758 char exc_resume ();
8759 int
8760 main ()
8761 {
8762 exc_resume ();
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769   (eval $ac_link) 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag"
8777                          || test ! -s conftest.err'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest$ac_exeext'
8784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785   (eval $ac_try) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; }; then
8789   ac_cv_search_exc_resume="-l$ac_lib"
8790 break
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 fi
8796 rm -f conftest.err conftest.$ac_objext \
8797       conftest$ac_exeext conftest.$ac_ext
8798   done
8799 fi
8800 LIBS=$ac_func_search_save_LIBS
8801 fi
8802 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8803 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8804 if test "$ac_cv_search_exc_resume" != no; then
8805   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8806
8807 fi
8808
8809 GNAT_LIBEXC="$LIBS"
8810 LIBS="$save_LIBS"
8811
8812
8813 # Some systems put ldexp and frexp in libm instead of libc; assume
8814 # they're both in the same place.  jcf-dump needs them.
8815 save_LIBS="$LIBS"
8816 LIBS=
8817 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8818 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8819 if test "${ac_cv_search_ldexp+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   ac_func_search_save_LIBS=$LIBS
8823 ac_cv_search_ldexp=no
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830
8831 /* Override any gcc2 internal prototype to avoid an error.  */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 /* We use char because int might match the return type of a gcc2
8836    builtin and then its argument prototype would still apply.  */
8837 char ldexp ();
8838 int
8839 main ()
8840 {
8841 ldexp ();
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848   (eval $ac_link) 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } &&
8855          { ac_try='test -z "$ac_c_werror_flag"
8856                          || test ! -s conftest.err'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; } &&
8862          { ac_try='test -s conftest$ac_exeext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   ac_cv_search_ldexp="none required"
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 fi
8874 rm -f conftest.err conftest.$ac_objext \
8875       conftest$ac_exeext conftest.$ac_ext
8876 if test "$ac_cv_search_ldexp" = no; then
8877   for ac_lib in m; do
8878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8879     cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885
8886 /* Override any gcc2 internal prototype to avoid an error.  */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 /* We use char because int might match the return type of a gcc2
8891    builtin and then its argument prototype would still apply.  */
8892 char ldexp ();
8893 int
8894 main ()
8895 {
8896 ldexp ();
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>conftest.er1
8904   ac_status=$?
8905   grep -v '^ *+' conftest.er1 >conftest.err
8906   rm -f conftest.er1
8907   cat conftest.err >&5
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -z "$ac_c_werror_flag"
8911                          || test ! -s conftest.err'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; } &&
8917          { ac_try='test -s conftest$ac_exeext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   ac_cv_search_ldexp="-l$ac_lib"
8924 break
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 fi
8930 rm -f conftest.err conftest.$ac_objext \
8931       conftest$ac_exeext conftest.$ac_ext
8932   done
8933 fi
8934 LIBS=$ac_func_search_save_LIBS
8935 fi
8936 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8937 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8938 if test "$ac_cv_search_ldexp" != no; then
8939   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8940
8941 fi
8942
8943 LDEXP_LIB="$LIBS"
8944 LIBS="$save_LIBS"
8945
8946
8947 # Use <inttypes.h> only if it exists,
8948 # doesn't clash with <sys/types.h>, and declares intmax_t.
8949 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8950 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8951 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8952   echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954   cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960 #include <sys/types.h>
8961 #include <inttypes.h>
8962 int
8963 main ()
8964 {
8965 intmax_t i = -1;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>conftest.er1
8973   ac_status=$?
8974   grep -v '^ *+' conftest.er1 >conftest.err
8975   rm -f conftest.er1
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } &&
8979          { ac_try='test -z "$ac_c_werror_flag"
8980                          || test ! -s conftest.err'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   gcc_cv_header_inttypes_h=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 gcc_cv_header_inttypes_h=no
8998 fi
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001
9002 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9003 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9004 if test $gcc_cv_header_inttypes_h = yes; then
9005
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_INTTYPES_H 1
9008 _ACEOF
9009
9010 fi
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9051         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9052         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9053         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9054 do
9055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 echo "$as_me:$LINENO: checking for $ac_func" >&5
9057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_var+set}\" = set"; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h.  */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h.  */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9069 #define $ac_func innocuous_$ac_func
9070
9071 /* System header to define __stub macros and hopefully few prototypes,
9072     which can conflict with char $ac_func (); below.
9073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074     <limits.h> exists even on freestanding compilers.  */
9075
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9081
9082 #undef $ac_func
9083
9084 /* Override any gcc2 internal prototype to avoid an error.  */
9085 #ifdef __cplusplus
9086 extern "C"
9087 {
9088 #endif
9089 /* We use char because int might match the return type of a gcc2
9090    builtin and then its argument prototype would still apply.  */
9091 char $ac_func ();
9092 /* The GNU C library defines this for functions which it implements
9093     to always fail with ENOSYS.  Some functions are actually named
9094     something starting with __ and the normal name is an alias.  */
9095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9096 choke me
9097 #else
9098 char (*f) () = $ac_func;
9099 #endif
9100 #ifdef __cplusplus
9101 }
9102 #endif
9103
9104 int
9105 main ()
9106 {
9107 return f != $ac_func;
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114   (eval $ac_link) 2>conftest.er1
9115   ac_status=$?
9116   grep -v '^ *+' conftest.er1 >conftest.err
9117   rm -f conftest.er1
9118   cat conftest.err >&5
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -z "$ac_c_werror_flag"
9122                          || test ! -s conftest.err'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; } &&
9128          { ac_try='test -s conftest$ac_exeext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   eval "$as_ac_var=yes"
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 eval "$as_ac_var=no"
9140 fi
9141 rm -f conftest.err conftest.$ac_objext \
9142       conftest$ac_exeext conftest.$ac_ext
9143 fi
9144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9146 if test `eval echo '${'$as_ac_var'}'` = yes; then
9147   cat >>confdefs.h <<_ACEOF
9148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9149 _ACEOF
9150
9151 fi
9152 done
9153
9154
9155 if test x$ac_cv_func_mbstowcs = xyes; then
9156   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9157 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9158 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161       if test "$cross_compiling" = yes; then
9162   gcc_cv_func_mbstowcs_works=yes
9163 else
9164   cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h.  */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h.  */
9170 #include <stdlib.h>
9171 int main()
9172 {
9173   mbstowcs(0, "", 0);
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179   (eval $ac_link) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184   (eval $ac_try) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); }; }; then
9188   gcc_cv_func_mbstowcs_works=yes
9189 else
9190   echo "$as_me: program exited with status $ac_status" >&5
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ( exit $ac_status )
9195 gcc_cv_func_mbstowcs_works=no
9196 fi
9197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9198 fi
9199 fi
9200 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9201 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9202   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9203
9204 cat >>confdefs.h <<\_ACEOF
9205 #define HAVE_WORKING_MBSTOWCS 1
9206 _ACEOF
9207
9208   fi
9209 fi
9210
9211 echo "$as_me:$LINENO: checking for ssize_t" >&5
9212 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9213 if test "${ac_cv_type_ssize_t+set}" = set; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222 $ac_includes_default
9223 int
9224 main ()
9225 {
9226 if ((ssize_t *) 0)
9227   return 0;
9228 if (sizeof (ssize_t))
9229   return 0;
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236   (eval $ac_compile) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"
9244                          || test ! -s conftest.err'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest.$ac_objext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_type_ssize_t=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_cv_type_ssize_t=no
9262 fi
9263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9264 fi
9265 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9266 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9267 if test $ac_cv_type_ssize_t = yes; then
9268   :
9269 else
9270
9271 cat >>confdefs.h <<_ACEOF
9272 #define ssize_t int
9273 _ACEOF
9274
9275 fi
9276
9277
9278 # Try to determine the array type of the second argument of getgroups
9279 # for the target system (int or gid_t).
9280 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9281 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9282 if test "${ac_cv_type_uid_t+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 #include <sys/types.h>
9292
9293 _ACEOF
9294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9295   $EGREP "uid_t" >/dev/null 2>&1; then
9296   ac_cv_type_uid_t=yes
9297 else
9298   ac_cv_type_uid_t=no
9299 fi
9300 rm -f conftest*
9301
9302 fi
9303 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9304 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9305 if test $ac_cv_type_uid_t = no; then
9306
9307 cat >>confdefs.h <<\_ACEOF
9308 #define uid_t int
9309 _ACEOF
9310
9311
9312 cat >>confdefs.h <<\_ACEOF
9313 #define gid_t int
9314 _ACEOF
9315
9316 fi
9317
9318 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9319 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9320 if test "${ac_cv_type_getgroups+set}" = set; then
9321   echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323   if test "$cross_compiling" = yes; then
9324   ac_cv_type_getgroups=cross
9325 else
9326   cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332 /* Thanks to Mike Rendell for this test.  */
9333 #include <sys/types.h>
9334 #define NGID 256
9335 #undef MAX
9336 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9337
9338 int
9339 main ()
9340 {
9341   gid_t gidset[NGID];
9342   int i, n;
9343   union { gid_t gval; long lval; }  val;
9344
9345   val.lval = -1;
9346   for (i = 0; i < NGID; i++)
9347     gidset[i] = val.gval;
9348   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9349                  gidset);
9350   /* Exit non-zero if getgroups seems to require an array of ints.  This
9351      happens when gid_t is short but getgroups modifies an array of ints.  */
9352   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9353 }
9354 _ACEOF
9355 rm -f conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357   (eval $ac_link) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_type_getgroups=gid_t
9367 else
9368   echo "$as_me: program exited with status $ac_status" >&5
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 ( exit $ac_status )
9373 ac_cv_type_getgroups=int
9374 fi
9375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 fi
9377 if test $ac_cv_type_getgroups = cross; then
9378         cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384 #include <unistd.h>
9385
9386 _ACEOF
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9389   ac_cv_type_getgroups=gid_t
9390 else
9391   ac_cv_type_getgroups=int
9392 fi
9393 rm -f conftest*
9394
9395 fi
9396 fi
9397 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9398 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9399
9400 cat >>confdefs.h <<_ACEOF
9401 #define GETGROUPS_T $ac_cv_type_getgroups
9402 _ACEOF
9403
9404
9405 if test "${target}" = "${build}"; then
9406   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9407 else
9408   case "${target}" in
9409         # This condition may need some tweaking.  It should include all
9410         # targets where the array type of the second argument of getgroups
9411         # is int and the type of gid_t is not equivalent to int.
9412         *-*-sunos* | *-*-ultrix*)
9413                 TARGET_GETGROUPS_T=int
9414                 ;;
9415         *)
9416                 TARGET_GETGROUPS_T=gid_t
9417                 ;;
9418   esac
9419 fi
9420
9421
9422 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9423 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9424 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   if test "$cross_compiling" = yes; then
9428   gcc_cv_func_printf_ptr=no
9429 else
9430   cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436 #include <stdio.h>
9437
9438 int main()
9439 {
9440   char buf[64];
9441   char *p = buf, *q = NULL;
9442   sprintf(buf, "%p", p);
9443   sscanf(buf, "%p", &q);
9444   return (p != q);
9445 }
9446 _ACEOF
9447 rm -f conftest$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449   (eval $ac_link) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   gcc_cv_func_printf_ptr=yes
9459 else
9460   echo "$as_me: program exited with status $ac_status" >&5
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464 ( exit $ac_status )
9465 gcc_cv_func_printf_ptr=no
9466 fi
9467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9468 fi
9469 rm -f core core.* *.core
9470 fi
9471 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9472 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9473 if test $gcc_cv_func_printf_ptr = yes ; then
9474
9475 cat >>confdefs.h <<\_ACEOF
9476 #define HAVE_PRINTF_PTR 1
9477 _ACEOF
9478
9479 fi
9480
9481
9482 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9483 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9484 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 #include <sys/mman.h>
9494 _ACEOF
9495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9497   ac_status=$?
9498   grep -v '^ *+' conftest.er1 >conftest.err
9499   rm -f conftest.er1
9500   cat conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } >/dev/null; then
9503   if test -s conftest.err; then
9504     ac_cpp_err=$ac_c_preproc_warn_flag
9505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9506   else
9507     ac_cpp_err=
9508   fi
9509 else
9510   ac_cpp_err=yes
9511 fi
9512 if test -z "$ac_cpp_err"; then
9513   ac_cv_header_sys_mman_h=yes
9514 else
9515   echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518   ac_cv_header_sys_mman_h=no
9519 fi
9520 rm -f conftest.err conftest.$ac_ext
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9523 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9524 if test $ac_cv_header_sys_mman_h = yes; then
9525   gcc_header_sys_mman_h=yes
9526 else
9527   gcc_header_sys_mman_h=no
9528 fi
9529
9530 echo "$as_me:$LINENO: checking for mmap" >&5
9531 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9532 if test "${ac_cv_func_mmap+set}" = set; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h.  */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h.  */
9541 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9543 #define mmap innocuous_mmap
9544
9545 /* System header to define __stub macros and hopefully few prototypes,
9546     which can conflict with char mmap (); below.
9547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548     <limits.h> exists even on freestanding compilers.  */
9549
9550 #ifdef __STDC__
9551 # include <limits.h>
9552 #else
9553 # include <assert.h>
9554 #endif
9555
9556 #undef mmap
9557
9558 /* Override any gcc2 internal prototype to avoid an error.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 {
9562 #endif
9563 /* We use char because int might match the return type of a gcc2
9564    builtin and then its argument prototype would still apply.  */
9565 char mmap ();
9566 /* The GNU C library defines this for functions which it implements
9567     to always fail with ENOSYS.  Some functions are actually named
9568     something starting with __ and the normal name is an alias.  */
9569 #if defined (__stub_mmap) || defined (__stub___mmap)
9570 choke me
9571 #else
9572 char (*f) () = mmap;
9573 #endif
9574 #ifdef __cplusplus
9575 }
9576 #endif
9577
9578 int
9579 main ()
9580 {
9581 return f != mmap;
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588   (eval $ac_link) 2>conftest.er1
9589   ac_status=$?
9590   grep -v '^ *+' conftest.er1 >conftest.err
9591   rm -f conftest.er1
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } &&
9595          { ac_try='test -z "$ac_c_werror_flag"
9596                          || test ! -s conftest.err'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; } &&
9602          { ac_try='test -s conftest$ac_exeext'
9603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604   (eval $ac_try) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; }; then
9608   ac_cv_func_mmap=yes
9609 else
9610   echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9612
9613 ac_cv_func_mmap=no
9614 fi
9615 rm -f conftest.err conftest.$ac_objext \
9616       conftest$ac_exeext conftest.$ac_ext
9617 fi
9618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9619 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9620 if test $ac_cv_func_mmap = yes; then
9621   gcc_func_mmap=yes
9622 else
9623   gcc_func_mmap=no
9624 fi
9625
9626 if test "$gcc_header_sys_mman_h" != yes \
9627  || test "$gcc_func_mmap" != yes; then
9628    gcc_cv_func_mmap_file=no
9629    gcc_cv_func_mmap_dev_zero=no
9630    gcc_cv_func_mmap_anon=no
9631 else
9632    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9633 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9634 if test "${gcc_cv_func_mmap_file+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   # Add a system to this blacklist if
9638    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9639    # memory area containing the same data that you'd get if you applied
9640    # read() to the same fd.  The only system known to have a problem here
9641    # is VMS, where text files have record structure.
9642    case "$host_os" in
9643      vms* | ultrix*)
9644         gcc_cv_func_mmap_file=no ;;
9645      *)
9646         gcc_cv_func_mmap_file=yes;;
9647    esac
9648 fi
9649 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9650 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9651    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9652 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9653 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   # Add a system to this blacklist if it has mmap() but /dev/zero
9657    # does not exist, or if mmapping /dev/zero does not give anonymous
9658    # zeroed pages with both the following properties:
9659    # 1. If you map N consecutive pages in with one call, and then
9660    #    unmap any subset of those pages, the pages that were not
9661    #    explicitly unmapped remain accessible.
9662    # 2. If you map two adjacent blocks of memory and then unmap them
9663    #    both at once, they must both go away.
9664    # Systems known to be in this category are Windows (all variants),
9665    # VMS, and Darwin.
9666    case "$host_os" in
9667      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9668         gcc_cv_func_mmap_dev_zero=no ;;
9669      *)
9670         gcc_cv_func_mmap_dev_zero=yes;;
9671    esac
9672 fi
9673 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9674 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9675
9676    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9677    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9678 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9679 if test "${gcc_cv_decl_map_anon+set}" = set; then
9680   echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682   cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h.  */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h.  */
9688 #include <sys/types.h>
9689 #include <sys/mman.h>
9690 #include <unistd.h>
9691
9692 #ifndef MAP_ANONYMOUS
9693 #define MAP_ANONYMOUS MAP_ANON
9694 #endif
9695
9696 int
9697 main ()
9698 {
9699 int n = MAP_ANONYMOUS;
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706   (eval $ac_compile) 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -z "$ac_c_werror_flag"
9714                          || test ! -s conftest.err'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; } &&
9720          { ac_try='test -s conftest.$ac_objext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   gcc_cv_decl_map_anon=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 gcc_cv_decl_map_anon=no
9732 fi
9733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9734 fi
9735 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9736 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9737
9738    if test $gcc_cv_decl_map_anon = no; then
9739      gcc_cv_func_mmap_anon=no
9740    else
9741      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9742 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9743 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9747    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9748    # doesn't give anonymous zeroed pages with the same properties listed
9749    # above for use of /dev/zero.
9750    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9751    case "$host_os" in
9752      vms* | cygwin* | pe | mingw* | sco* | udk* )
9753         gcc_cv_func_mmap_anon=no ;;
9754      *)
9755         gcc_cv_func_mmap_anon=yes;;
9756    esac
9757 fi
9758 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9759 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9760    fi
9761 fi
9762
9763 if test $gcc_cv_func_mmap_file = yes; then
9764
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_MMAP_FILE 1
9767 _ACEOF
9768
9769 fi
9770 if test $gcc_cv_func_mmap_dev_zero = yes; then
9771
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_MMAP_DEV_ZERO 1
9774 _ACEOF
9775
9776 fi
9777 if test $gcc_cv_func_mmap_anon = yes; then
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_MMAP_ANON 1
9781 _ACEOF
9782
9783 fi
9784
9785
9786 case "${host}" in
9787 *-*-*vms*)
9788   # Under VMS, vfork works very differently than on Unix. The standard test
9789   # won't work, and it isn't easily adaptable. It makes more sense to
9790   # just force it.
9791   ac_cv_func_vfork_works=yes
9792   ;;
9793 esac
9794 echo "$as_me:$LINENO: checking for pid_t" >&5
9795 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9796 if test "${ac_cv_type_pid_t+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 $ac_includes_default
9806 int
9807 main ()
9808 {
9809 if ((pid_t *) 0)
9810   return 0;
9811 if (sizeof (pid_t))
9812   return 0;
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819   (eval $ac_compile) 2>conftest.er1
9820   ac_status=$?
9821   grep -v '^ *+' conftest.er1 >conftest.err
9822   rm -f conftest.er1
9823   cat conftest.err >&5
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } &&
9826          { ac_try='test -z "$ac_c_werror_flag"
9827                          || test ! -s conftest.err'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest.$ac_objext'
9834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835   (eval $ac_try) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; }; then
9839   ac_cv_type_pid_t=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_cv_type_pid_t=no
9845 fi
9846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847 fi
9848 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9849 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9850 if test $ac_cv_type_pid_t = yes; then
9851   :
9852 else
9853
9854 cat >>confdefs.h <<_ACEOF
9855 #define pid_t int
9856 _ACEOF
9857
9858 fi
9859
9860
9861
9862 for ac_header in unistd.h vfork.h
9863 do
9864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 echo "$as_me:$LINENO: checking for $ac_header" >&5
9866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876 #include <$ac_header>
9877 _ACEOF
9878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9880   ac_status=$?
9881   grep -v '^ *+' conftest.er1 >conftest.err
9882   rm -f conftest.er1
9883   cat conftest.err >&5
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } >/dev/null; then
9886   if test -s conftest.err; then
9887     ac_cpp_err=$ac_c_preproc_warn_flag
9888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9889   else
9890     ac_cpp_err=
9891   fi
9892 else
9893   ac_cpp_err=yes
9894 fi
9895 if test -z "$ac_cpp_err"; then
9896   eval "$as_ac_Header=yes"
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901   eval "$as_ac_Header=no"
9902 fi
9903 rm -f conftest.err conftest.$ac_ext
9904 fi
9905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9908   cat >>confdefs.h <<_ACEOF
9909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9910 _ACEOF
9911
9912 fi
9913 done
9914
9915
9916
9917 for ac_func in fork vfork
9918 do
9919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9920 echo "$as_me:$LINENO: checking for $ac_func" >&5
9921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9922 if eval "test \"\${$as_ac_var+set}\" = set"; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9933 #define $ac_func innocuous_$ac_func
9934
9935 /* System header to define __stub macros and hopefully few prototypes,
9936     which can conflict with char $ac_func (); below.
9937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9938     <limits.h> exists even on freestanding compilers.  */
9939
9940 #ifdef __STDC__
9941 # include <limits.h>
9942 #else
9943 # include <assert.h>
9944 #endif
9945
9946 #undef $ac_func
9947
9948 /* Override any gcc2 internal prototype to avoid an error.  */
9949 #ifdef __cplusplus
9950 extern "C"
9951 {
9952 #endif
9953 /* We use char because int might match the return type of a gcc2
9954    builtin and then its argument prototype would still apply.  */
9955 char $ac_func ();
9956 /* The GNU C library defines this for functions which it implements
9957     to always fail with ENOSYS.  Some functions are actually named
9958     something starting with __ and the normal name is an alias.  */
9959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9960 choke me
9961 #else
9962 char (*f) () = $ac_func;
9963 #endif
9964 #ifdef __cplusplus
9965 }
9966 #endif
9967
9968 int
9969 main ()
9970 {
9971 return f != $ac_func;
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978   (eval $ac_link) 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } &&
9985          { ac_try='test -z "$ac_c_werror_flag"
9986                          || test ! -s conftest.err'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; } &&
9992          { ac_try='test -s conftest$ac_exeext'
9993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994   (eval $ac_try) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; }; then
9998   eval "$as_ac_var=yes"
9999 else
10000   echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 eval "$as_ac_var=no"
10004 fi
10005 rm -f conftest.err conftest.$ac_objext \
10006       conftest$ac_exeext conftest.$ac_ext
10007 fi
10008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10010 if test `eval echo '${'$as_ac_var'}'` = yes; then
10011   cat >>confdefs.h <<_ACEOF
10012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10013 _ACEOF
10014
10015 fi
10016 done
10017
10018 if test "x$ac_cv_func_fork" = xyes; then
10019   echo "$as_me:$LINENO: checking for working fork" >&5
10020 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10021 if test "${ac_cv_func_fork_works+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   if test "$cross_compiling" = yes; then
10025   ac_cv_func_fork_works=cross
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 /* By Ruediger Kuhlmann. */
10029       #include <sys/types.h>
10030       #if HAVE_UNISTD_H
10031       # include <unistd.h>
10032       #endif
10033       /* Some systems only have a dummy stub for fork() */
10034       int main ()
10035       {
10036         if (fork() < 0)
10037           exit (1);
10038         exit (0);
10039       }
10040 _ACEOF
10041 rm -f conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043   (eval $ac_link) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; }; then
10052   ac_cv_func_fork_works=yes
10053 else
10054   echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 ( exit $ac_status )
10059 ac_cv_func_fork_works=no
10060 fi
10061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 fi
10064 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10065 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10066
10067 else
10068   ac_cv_func_fork_works=$ac_cv_func_fork
10069 fi
10070 if test "x$ac_cv_func_fork_works" = xcross; then
10071   case $host in
10072     *-*-amigaos* | *-*-msdosdjgpp*)
10073       # Override, as these systems have only a dummy fork() stub
10074       ac_cv_func_fork_works=no
10075       ;;
10076     *)
10077       ac_cv_func_fork_works=yes
10078       ;;
10079   esac
10080   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10081 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10082 fi
10083 ac_cv_func_vfork_works=$ac_cv_func_vfork
10084 if test "x$ac_cv_func_vfork" = xyes; then
10085   echo "$as_me:$LINENO: checking for working vfork" >&5
10086 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10087 if test "${ac_cv_func_vfork_works+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   if test "$cross_compiling" = yes; then
10091   ac_cv_func_vfork_works=cross
10092 else
10093   cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099 /* Thanks to Paul Eggert for this test.  */
10100 #include <stdio.h>
10101 #include <stdlib.h>
10102 #include <sys/types.h>
10103 #include <sys/stat.h>
10104 #include <sys/wait.h>
10105 #if HAVE_UNISTD_H
10106 # include <unistd.h>
10107 #endif
10108 #if HAVE_VFORK_H
10109 # include <vfork.h>
10110 #endif
10111 /* On some sparc systems, changes by the child to local and incoming
10112    argument registers are propagated back to the parent.  The compiler
10113    is told about this with #include <vfork.h>, but some compilers
10114    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10115    static variable whose address is put into a register that is
10116    clobbered by the vfork.  */
10117 static void
10118 #ifdef __cplusplus
10119 sparc_address_test (int arg)
10120 # else
10121 sparc_address_test (arg) int arg;
10122 #endif
10123 {
10124   static pid_t child;
10125   if (!child) {
10126     child = vfork ();
10127     if (child < 0) {
10128       perror ("vfork");
10129       _exit(2);
10130     }
10131     if (!child) {
10132       arg = getpid();
10133       write(-1, "", 0);
10134       _exit (arg);
10135     }
10136   }
10137 }
10138
10139 int
10140 main ()
10141 {
10142   pid_t parent = getpid ();
10143   pid_t child;
10144
10145   sparc_address_test (0);
10146
10147   child = vfork ();
10148
10149   if (child == 0) {
10150     /* Here is another test for sparc vfork register problems.  This
10151        test uses lots of local variables, at least as many local
10152        variables as main has allocated so far including compiler
10153        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10154        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10155        reuse the register of parent for one of the local variables,
10156        since it will think that parent can't possibly be used any more
10157        in this routine.  Assigning to the local variable will thus
10158        munge parent in the parent process.  */
10159     pid_t
10160       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10161       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10162     /* Convince the compiler that p..p7 are live; otherwise, it might
10163        use the same hardware register for all 8 local variables.  */
10164     if (p != p1 || p != p2 || p != p3 || p != p4
10165         || p != p5 || p != p6 || p != p7)
10166       _exit(1);
10167
10168     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10169        from child file descriptors.  If the child closes a descriptor
10170        before it execs or exits, this munges the parent's descriptor
10171        as well.  Test for this by closing stdout in the child.  */
10172     _exit(close(fileno(stdout)) != 0);
10173   } else {
10174     int status;
10175     struct stat st;
10176
10177     while (wait(&status) != child)
10178       ;
10179     exit(
10180          /* Was there some problem with vforking?  */
10181          child < 0
10182
10183          /* Did the child fail?  (This shouldn't happen.)  */
10184          || status
10185
10186          /* Did the vfork/compiler bug occur?  */
10187          || parent != getpid()
10188
10189          /* Did the file descriptor bug occur?  */
10190          || fstat(fileno(stdout), &st) != 0
10191          );
10192   }
10193 }
10194 _ACEOF
10195 rm -f conftest$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197   (eval $ac_link) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_func_vfork_works=yes
10207 else
10208   echo "$as_me: program exited with status $ac_status" >&5
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ( exit $ac_status )
10213 ac_cv_func_vfork_works=no
10214 fi
10215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10216 fi
10217 fi
10218 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10219 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10220
10221 fi;
10222 if test "x$ac_cv_func_fork_works" = xcross; then
10223   ac_cv_func_vfork_works=$ac_cv_func_vfork
10224   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10225 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10226 fi
10227
10228 if test "x$ac_cv_func_vfork_works" = xyes; then
10229
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_WORKING_VFORK 1
10232 _ACEOF
10233
10234 else
10235
10236 cat >>confdefs.h <<\_ACEOF
10237 #define vfork fork
10238 _ACEOF
10239
10240 fi
10241 if test "x$ac_cv_func_fork_works" = xyes; then
10242
10243 cat >>confdefs.h <<\_ACEOF
10244 #define HAVE_WORKING_FORK 1
10245 _ACEOF
10246
10247 fi
10248
10249
10250
10251       if test "X$prefix" = "XNONE"; then
10252     acl_final_prefix="$ac_default_prefix"
10253   else
10254     acl_final_prefix="$prefix"
10255   fi
10256   if test "X$exec_prefix" = "XNONE"; then
10257     acl_final_exec_prefix='${prefix}'
10258   else
10259     acl_final_exec_prefix="$exec_prefix"
10260   fi
10261   acl_save_prefix="$prefix"
10262   prefix="$acl_final_prefix"
10263   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10264   prefix="$acl_save_prefix"
10265
10266
10267 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10268 if test "${with_gnu_ld+set}" = set; then
10269   withval="$with_gnu_ld"
10270   test "$withval" = no || with_gnu_ld=yes
10271 else
10272   with_gnu_ld=no
10273 fi;
10274 # Prepare PATH_SEPARATOR.
10275 # The user is always right.
10276 if test "${PATH_SEPARATOR+set}" != set; then
10277   echo "#! /bin/sh" >conf$$.sh
10278   echo  "exit 0"   >>conf$$.sh
10279   chmod +x conf$$.sh
10280   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10281     PATH_SEPARATOR=';'
10282   else
10283     PATH_SEPARATOR=:
10284   fi
10285   rm -f conf$$.sh
10286 fi
10287 ac_prog=ld
10288 if test "$GCC" = yes; then
10289   # Check if gcc -print-prog-name=ld gives a path.
10290   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10291 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10292   case $host in
10293   *-*-mingw*)
10294     # gcc leaves a trailing carriage return which upsets mingw
10295     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10296   *)
10297     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10298   esac
10299   case $ac_prog in
10300     # Accept absolute paths.
10301     [\\/]* | [A-Za-z]:[\\/]*)
10302       re_direlt='/[^/][^/]*/\.\./'
10303       # Canonicalize the path of ld
10304       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10305       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10306         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10307       done
10308       test -z "$LD" && LD="$ac_prog"
10309       ;;
10310   "")
10311     # If it fails, then pretend we aren't using GCC.
10312     ac_prog=ld
10313     ;;
10314   *)
10315     # If it is relative, then search for the first ld in PATH.
10316     with_gnu_ld=unknown
10317     ;;
10318   esac
10319 elif test "$with_gnu_ld" = yes; then
10320   echo "$as_me:$LINENO: checking for GNU ld" >&5
10321 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10322 else
10323   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10324 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10325 fi
10326 if test "${acl_cv_path_LD+set}" = set; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329   if test -z "$LD"; then
10330   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10331   for ac_dir in $PATH; do
10332     test -z "$ac_dir" && ac_dir=.
10333     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10334       acl_cv_path_LD="$ac_dir/$ac_prog"
10335       # Check to see if the program is GNU ld.  I'd rather use --version,
10336       # but apparently some GNU ld's only accept -v.
10337       # Break only if it was the GNU/non-GNU ld that we prefer.
10338       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10339         test "$with_gnu_ld" != no && break
10340       else
10341         test "$with_gnu_ld" != yes && break
10342       fi
10343     fi
10344   done
10345   IFS="$ac_save_ifs"
10346 else
10347   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10348 fi
10349 fi
10350
10351 LD="$acl_cv_path_LD"
10352 if test -n "$LD"; then
10353   echo "$as_me:$LINENO: result: $LD" >&5
10354 echo "${ECHO_T}$LD" >&6
10355 else
10356   echo "$as_me:$LINENO: result: no" >&5
10357 echo "${ECHO_T}no" >&6
10358 fi
10359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10361    { (exit 1); exit 1; }; }
10362 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10364 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10368 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10369   acl_cv_prog_gnu_ld=yes
10370 else
10371   acl_cv_prog_gnu_ld=no
10372 fi
10373 fi
10374 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10375 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10376 with_gnu_ld=$acl_cv_prog_gnu_ld
10377
10378
10379
10380                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10381 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10382 if test "${acl_cv_rpath+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385
10386     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10387     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10388     . ./conftest.sh
10389     rm -f ./conftest.sh
10390     acl_cv_rpath=done
10391
10392 fi
10393 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10394 echo "${ECHO_T}$acl_cv_rpath" >&6
10395   wl="$acl_cv_wl"
10396   libext="$acl_cv_libext"
10397   shlibext="$acl_cv_shlibext"
10398   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10399   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10400   hardcode_direct="$acl_cv_hardcode_direct"
10401   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10402     # Check whether --enable-rpath or --disable-rpath was given.
10403 if test "${enable_rpath+set}" = set; then
10404   enableval="$enable_rpath"
10405   :
10406 else
10407   enable_rpath=yes
10408 fi;
10409
10410
10411
10412
10413
10414
10415
10416     use_additional=yes
10417
10418   acl_save_prefix="$prefix"
10419   prefix="$acl_final_prefix"
10420   acl_save_exec_prefix="$exec_prefix"
10421   exec_prefix="$acl_final_exec_prefix"
10422
10423     eval additional_includedir=\"$includedir\"
10424     eval additional_libdir=\"$libdir\"
10425
10426   exec_prefix="$acl_save_exec_prefix"
10427   prefix="$acl_save_prefix"
10428
10429
10430 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10431 if test "${with_libiconv_prefix+set}" = set; then
10432   withval="$with_libiconv_prefix"
10433
10434     if test "X$withval" = "Xno"; then
10435       use_additional=no
10436     else
10437       if test "X$withval" = "X"; then
10438
10439   acl_save_prefix="$prefix"
10440   prefix="$acl_final_prefix"
10441   acl_save_exec_prefix="$exec_prefix"
10442   exec_prefix="$acl_final_exec_prefix"
10443
10444           eval additional_includedir=\"$includedir\"
10445           eval additional_libdir=\"$libdir\"
10446
10447   exec_prefix="$acl_save_exec_prefix"
10448   prefix="$acl_save_prefix"
10449
10450       else
10451         additional_includedir="$withval/include"
10452         additional_libdir="$withval/lib"
10453       fi
10454     fi
10455
10456 fi;
10457       LIBICONV=
10458   LTLIBICONV=
10459   INCICONV=
10460   rpathdirs=
10461   ltrpathdirs=
10462   names_already_handled=
10463   names_next_round='iconv '
10464   while test -n "$names_next_round"; do
10465     names_this_round="$names_next_round"
10466     names_next_round=
10467     for name in $names_this_round; do
10468       already_handled=
10469       for n in $names_already_handled; do
10470         if test "$n" = "$name"; then
10471           already_handled=yes
10472           break
10473         fi
10474       done
10475       if test -z "$already_handled"; then
10476         names_already_handled="$names_already_handled $name"
10477                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10478         eval value=\"\$HAVE_LIB$uppername\"
10479         if test -n "$value"; then
10480           if test "$value" = yes; then
10481             eval value=\"\$LIB$uppername\"
10482             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10483             eval value=\"\$LTLIB$uppername\"
10484             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10485           else
10486                                     :
10487           fi
10488         else
10489                               found_dir=
10490           found_la=
10491           found_so=
10492           found_a=
10493           if test $use_additional = yes; then
10494             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10495               found_dir="$additional_libdir"
10496               found_so="$additional_libdir/lib$name.$shlibext"
10497               if test -f "$additional_libdir/lib$name.la"; then
10498                 found_la="$additional_libdir/lib$name.la"
10499               fi
10500             else
10501               if test -f "$additional_libdir/lib$name.$libext"; then
10502                 found_dir="$additional_libdir"
10503                 found_a="$additional_libdir/lib$name.$libext"
10504                 if test -f "$additional_libdir/lib$name.la"; then
10505                   found_la="$additional_libdir/lib$name.la"
10506                 fi
10507               fi
10508             fi
10509           fi
10510           if test "X$found_dir" = "X"; then
10511             for x in $LDFLAGS $LTLIBICONV; do
10512
10513   acl_save_prefix="$prefix"
10514   prefix="$acl_final_prefix"
10515   acl_save_exec_prefix="$exec_prefix"
10516   exec_prefix="$acl_final_exec_prefix"
10517   eval x=\"$x\"
10518   exec_prefix="$acl_save_exec_prefix"
10519   prefix="$acl_save_prefix"
10520
10521               case "$x" in
10522                 -L*)
10523                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10524                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10525                     found_dir="$dir"
10526                     found_so="$dir/lib$name.$shlibext"
10527                     if test -f "$dir/lib$name.la"; then
10528                       found_la="$dir/lib$name.la"
10529                     fi
10530                   else
10531                     if test -f "$dir/lib$name.$libext"; then
10532                       found_dir="$dir"
10533                       found_a="$dir/lib$name.$libext"
10534                       if test -f "$dir/lib$name.la"; then
10535                         found_la="$dir/lib$name.la"
10536                       fi
10537                     fi
10538                   fi
10539                   ;;
10540               esac
10541               if test "X$found_dir" != "X"; then
10542                 break
10543               fi
10544             done
10545           fi
10546           if test "X$found_dir" != "X"; then
10547                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10548             if test "X$found_so" != "X"; then
10549                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10550                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10551               else
10552                                                                                 haveit=
10553                 for x in $ltrpathdirs; do
10554                   if test "X$x" = "X$found_dir"; then
10555                     haveit=yes
10556                     break
10557                   fi
10558                 done
10559                 if test -z "$haveit"; then
10560                   ltrpathdirs="$ltrpathdirs $found_dir"
10561                 fi
10562                                 if test "$hardcode_direct" = yes; then
10563                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10564                 else
10565                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10566                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10567                                                             haveit=
10568                     for x in $rpathdirs; do
10569                       if test "X$x" = "X$found_dir"; then
10570                         haveit=yes
10571                         break
10572                       fi
10573                     done
10574                     if test -z "$haveit"; then
10575                       rpathdirs="$rpathdirs $found_dir"
10576                     fi
10577                   else
10578                                                                                 haveit=
10579                     for x in $LDFLAGS $LIBICONV; do
10580
10581   acl_save_prefix="$prefix"
10582   prefix="$acl_final_prefix"
10583   acl_save_exec_prefix="$exec_prefix"
10584   exec_prefix="$acl_final_exec_prefix"
10585   eval x=\"$x\"
10586   exec_prefix="$acl_save_exec_prefix"
10587   prefix="$acl_save_prefix"
10588
10589                       if test "X$x" = "X-L$found_dir"; then
10590                         haveit=yes
10591                         break
10592                       fi
10593                     done
10594                     if test -z "$haveit"; then
10595                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10596                     fi
10597                     if test "$hardcode_minus_L" != no; then
10598                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10599                     else
10600                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10601                     fi
10602                   fi
10603                 fi
10604               fi
10605             else
10606               if test "X$found_a" != "X"; then
10607                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10608               else
10609                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10610               fi
10611             fi
10612                         additional_includedir=
10613             case "$found_dir" in
10614               */lib | */lib/)
10615                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10616                 additional_includedir="$basedir/include"
10617                 ;;
10618             esac
10619             if test "X$additional_includedir" != "X"; then
10620                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10621                 haveit=
10622                 if test "X$additional_includedir" = "X/usr/local/include"; then
10623                   if test -n "$GCC"; then
10624                     case $host_os in
10625                       linux*) haveit=yes;;
10626                     esac
10627                   fi
10628                 fi
10629                 if test -z "$haveit"; then
10630                   for x in $CPPFLAGS $INCICONV; do
10631
10632   acl_save_prefix="$prefix"
10633   prefix="$acl_final_prefix"
10634   acl_save_exec_prefix="$exec_prefix"
10635   exec_prefix="$acl_final_exec_prefix"
10636   eval x=\"$x\"
10637   exec_prefix="$acl_save_exec_prefix"
10638   prefix="$acl_save_prefix"
10639
10640                     if test "X$x" = "X-I$additional_includedir"; then
10641                       haveit=yes
10642                       break
10643                     fi
10644                   done
10645                   if test -z "$haveit"; then
10646                     if test -d "$additional_includedir"; then
10647                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10648                     fi
10649                   fi
10650                 fi
10651               fi
10652             fi
10653                         if test -n "$found_la"; then
10654                                                         save_libdir="$libdir"
10655               case "$found_la" in
10656                 */* | *\\*) . "$found_la" ;;
10657                 *) . "./$found_la" ;;
10658               esac
10659               libdir="$save_libdir"
10660                             for dep in $dependency_libs; do
10661                 case "$dep" in
10662                   -L*)
10663                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10664                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10665                       haveit=
10666                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10667                         if test -n "$GCC"; then
10668                           case $host_os in
10669                             linux*) haveit=yes;;
10670                           esac
10671                         fi
10672                       fi
10673                       if test -z "$haveit"; then
10674                         haveit=
10675                         for x in $LDFLAGS $LIBICONV; do
10676
10677   acl_save_prefix="$prefix"
10678   prefix="$acl_final_prefix"
10679   acl_save_exec_prefix="$exec_prefix"
10680   exec_prefix="$acl_final_exec_prefix"
10681   eval x=\"$x\"
10682   exec_prefix="$acl_save_exec_prefix"
10683   prefix="$acl_save_prefix"
10684
10685                           if test "X$x" = "X-L$additional_libdir"; then
10686                             haveit=yes
10687                             break
10688                           fi
10689                         done
10690                         if test -z "$haveit"; then
10691                           if test -d "$additional_libdir"; then
10692                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10693                           fi
10694                         fi
10695                         haveit=
10696                         for x in $LDFLAGS $LTLIBICONV; do
10697
10698   acl_save_prefix="$prefix"
10699   prefix="$acl_final_prefix"
10700   acl_save_exec_prefix="$exec_prefix"
10701   exec_prefix="$acl_final_exec_prefix"
10702   eval x=\"$x\"
10703   exec_prefix="$acl_save_exec_prefix"
10704   prefix="$acl_save_prefix"
10705
10706                           if test "X$x" = "X-L$additional_libdir"; then
10707                             haveit=yes
10708                             break
10709                           fi
10710                         done
10711                         if test -z "$haveit"; then
10712                           if test -d "$additional_libdir"; then
10713                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10714                           fi
10715                         fi
10716                       fi
10717                     fi
10718                     ;;
10719                   -R*)
10720                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10721                     if test "$enable_rpath" != no; then
10722                                                                   haveit=
10723                       for x in $rpathdirs; do
10724                         if test "X$x" = "X$dir"; then
10725                           haveit=yes
10726                           break
10727                         fi
10728                       done
10729                       if test -z "$haveit"; then
10730                         rpathdirs="$rpathdirs $dir"
10731                       fi
10732                                                                   haveit=
10733                       for x in $ltrpathdirs; do
10734                         if test "X$x" = "X$dir"; then
10735                           haveit=yes
10736                           break
10737                         fi
10738                       done
10739                       if test -z "$haveit"; then
10740                         ltrpathdirs="$ltrpathdirs $dir"
10741                       fi
10742                     fi
10743                     ;;
10744                   -l*)
10745                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10746                     ;;
10747                   *.la)
10748                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10749                     ;;
10750                   *)
10751                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10752                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10753                     ;;
10754                 esac
10755               done
10756             fi
10757           else
10758                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10759             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10760           fi
10761         fi
10762       fi
10763     done
10764   done
10765   if test "X$rpathdirs" != "X"; then
10766     if test -n "$hardcode_libdir_separator"; then
10767                         alldirs=
10768       for found_dir in $rpathdirs; do
10769         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10770       done
10771             acl_save_libdir="$libdir"
10772       libdir="$alldirs"
10773       eval flag=\"$hardcode_libdir_flag_spec\"
10774       libdir="$acl_save_libdir"
10775       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10776     else
10777             for found_dir in $rpathdirs; do
10778         acl_save_libdir="$libdir"
10779         libdir="$found_dir"
10780         eval flag=\"$hardcode_libdir_flag_spec\"
10781         libdir="$acl_save_libdir"
10782         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10783       done
10784     fi
10785   fi
10786   if test "X$ltrpathdirs" != "X"; then
10787             for found_dir in $ltrpathdirs; do
10788       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10789     done
10790   fi
10791
10792
10793
10794
10795
10796
10797
10798           am_save_CPPFLAGS="$CPPFLAGS"
10799
10800   for element in $INCICONV; do
10801     haveit=
10802     for x in $CPPFLAGS; do
10803
10804   acl_save_prefix="$prefix"
10805   prefix="$acl_final_prefix"
10806   acl_save_exec_prefix="$exec_prefix"
10807   exec_prefix="$acl_final_exec_prefix"
10808   eval x=\"$x\"
10809   exec_prefix="$acl_save_exec_prefix"
10810   prefix="$acl_save_prefix"
10811
10812       if test "X$x" = "X$element"; then
10813         haveit=yes
10814         break
10815       fi
10816     done
10817     if test -z "$haveit"; then
10818       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10819     fi
10820   done
10821
10822
10823   echo "$as_me:$LINENO: checking for iconv" >&5
10824 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10825 if test "${am_cv_func_iconv+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828
10829     am_cv_func_iconv="no, consider installing GNU libiconv"
10830     am_cv_lib_iconv=no
10831     cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 #include <stdlib.h>
10838 #include <iconv.h>
10839 int
10840 main ()
10841 {
10842 iconv_t cd = iconv_open("","");
10843        iconv(cd,NULL,NULL,NULL,NULL);
10844        iconv_close(cd);
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851   (eval $ac_link) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -z "$ac_c_werror_flag"
10859                          || test ! -s conftest.err'
10860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861   (eval $ac_try) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest$ac_exeext'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   am_cv_func_iconv=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 fi
10877 rm -f conftest.err conftest.$ac_objext \
10878       conftest$ac_exeext conftest.$ac_ext
10879     if test "$am_cv_func_iconv" != yes; then
10880       am_save_LIBS="$LIBS"
10881       LIBS="$LIBS $LIBICONV"
10882       cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 #include <stdlib.h>
10889 #include <iconv.h>
10890 int
10891 main ()
10892 {
10893 iconv_t cd = iconv_open("","");
10894          iconv(cd,NULL,NULL,NULL,NULL);
10895          iconv_close(cd);
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902   (eval $ac_link) 2>conftest.er1
10903   ac_status=$?
10904   grep -v '^ *+' conftest.er1 >conftest.err
10905   rm -f conftest.er1
10906   cat conftest.err >&5
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } &&
10909          { ac_try='test -z "$ac_c_werror_flag"
10910                          || test ! -s conftest.err'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest$ac_exeext'
10917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918   (eval $ac_try) 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; }; then
10922   am_cv_lib_iconv=yes
10923         am_cv_func_iconv=yes
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 fi
10929 rm -f conftest.err conftest.$ac_objext \
10930       conftest$ac_exeext conftest.$ac_ext
10931       LIBS="$am_save_LIBS"
10932     fi
10933
10934 fi
10935 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10936 echo "${ECHO_T}$am_cv_func_iconv" >&6
10937   if test "$am_cv_func_iconv" = yes; then
10938
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_ICONV 1
10941 _ACEOF
10942
10943   fi
10944   if test "$am_cv_lib_iconv" = yes; then
10945     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10946 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10947     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10948 echo "${ECHO_T}$LIBICONV" >&6
10949   else
10950             CPPFLAGS="$am_save_CPPFLAGS"
10951     LIBICONV=
10952     LTLIBICONV=
10953   fi
10954
10955
10956
10957   if test "$am_cv_func_iconv" = yes; then
10958     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10959 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10960     if test "${am_cv_proto_iconv+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963
10964       cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970
10971 #include <stdlib.h>
10972 #include <iconv.h>
10973 extern
10974 #ifdef __cplusplus
10975 "C"
10976 #endif
10977 #if defined(__STDC__) || defined(__cplusplus)
10978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10979 #else
10980 size_t iconv();
10981 #endif
10982
10983 int
10984 main ()
10985 {
10986
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993   (eval $ac_compile) 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -z "$ac_c_werror_flag"
11001                          || test ! -s conftest.err'
11002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003   (eval $ac_try) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; } &&
11007          { ac_try='test -s conftest.$ac_objext'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; }; then
11013   am_cv_proto_iconv_arg1=""
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 am_cv_proto_iconv_arg1="const"
11019 fi
11020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11021       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);"
11022 fi
11023
11024     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11025     echo "$as_me:$LINENO: result: ${ac_t:-
11026          }$am_cv_proto_iconv" >&5
11027 echo "${ECHO_T}${ac_t:-
11028          }$am_cv_proto_iconv" >&6
11029
11030 cat >>confdefs.h <<_ACEOF
11031 #define ICONV_CONST $am_cv_proto_iconv_arg1
11032 _ACEOF
11033
11034   fi
11035
11036 # Until we have in-tree GNU iconv:
11037 LIBICONV_DEP=
11038
11039
11040
11041   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11042 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11043 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 #include <locale.h>
11053 int
11054 main ()
11055 {
11056 return LC_MESSAGES
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063   (eval $ac_link) 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -z "$ac_c_werror_flag"
11071                          || test ! -s conftest.err'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; } &&
11077          { ac_try='test -s conftest$ac_exeext'
11078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079   (eval $ac_try) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }; then
11083   am_cv_val_LC_MESSAGES=yes
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 am_cv_val_LC_MESSAGES=no
11089 fi
11090 rm -f conftest.err conftest.$ac_objext \
11091       conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11094 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11095   if test $am_cv_val_LC_MESSAGES = yes; then
11096
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_LC_MESSAGES 1
11099 _ACEOF
11100
11101   fi
11102
11103
11104
11105   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11106 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11107 if test "${am_cv_langinfo_codeset+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <langinfo.h>
11117 int
11118 main ()
11119 {
11120 char* cs = nl_langinfo(CODESET);
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127   (eval $ac_link) 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -z "$ac_c_werror_flag"
11135                          || test ! -s conftest.err'
11136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137   (eval $ac_try) 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; } &&
11141          { ac_try='test -s conftest$ac_exeext'
11142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143   (eval $ac_try) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; }; then
11147   am_cv_langinfo_codeset=yes
11148 else
11149   echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 am_cv_langinfo_codeset=no
11153 fi
11154 rm -f conftest.err conftest.$ac_objext \
11155       conftest$ac_exeext conftest.$ac_ext
11156
11157 fi
11158 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11159 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11160   if test $am_cv_langinfo_codeset = yes; then
11161
11162 cat >>confdefs.h <<\_ACEOF
11163 #define HAVE_LANGINFO_CODESET 1
11164 _ACEOF
11165
11166   fi
11167
11168
11169 # We will need to find libiberty.h and ansidecl.h
11170 saved_CFLAGS="$CFLAGS"
11171 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd strsignal \
11211         strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11212         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11213 do
11214   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11215 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11216 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11217 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226 #undef $ac_tr_decl
11227 #define $ac_tr_decl 1
11228
11229 #include "ansidecl.h"
11230 #include "system.h"
11231
11232 int
11233 main ()
11234 {
11235 #ifndef $ac_func
11236 char *(*pfn) = (char *(*)) $ac_func ;
11237 #endif
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244   (eval $ac_compile) 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } &&
11251          { ac_try='test -z "$ac_c_werror_flag"
11252                          || test ! -s conftest.err'
11253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254   (eval $ac_try) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); }; } &&
11258          { ac_try='test -s conftest.$ac_objext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   eval "gcc_cv_have_decl_$ac_func=yes"
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 eval "gcc_cv_have_decl_$ac_func=no"
11270 fi
11271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11272 fi
11273
11274 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11275   echo "$as_me:$LINENO: result: yes" >&5
11276 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11277 #define $ac_tr_decl 1
11278 _ACEOF
11279
11280 else
11281   echo "$as_me:$LINENO: result: no" >&5
11282 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11283 #define $ac_tr_decl 0
11284 _ACEOF
11285
11286 fi
11287
11288 done
11289
11290
11291
11292
11293
11294 for ac_func in getrlimit setrlimit getrusage
11295 do
11296   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11297 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11298 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11299 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 #undef $ac_tr_decl
11309 #define $ac_tr_decl 1
11310
11311 #include "ansidecl.h"
11312 #include "system.h"
11313 #ifdef HAVE_SYS_RESOURCE_H
11314 #include <sys/resource.h>
11315 #endif
11316
11317
11318 int
11319 main ()
11320 {
11321 #ifndef $ac_func
11322 char *(*pfn) = (char *(*)) $ac_func ;
11323 #endif
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330   (eval $ac_compile) 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } &&
11337          { ac_try='test -z "$ac_c_werror_flag"
11338                          || test ! -s conftest.err'
11339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340   (eval $ac_try) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); }; } &&
11344          { ac_try='test -s conftest.$ac_objext'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }; then
11350   eval "gcc_cv_have_decl_$ac_func=yes"
11351 else
11352   echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11354
11355 eval "gcc_cv_have_decl_$ac_func=no"
11356 fi
11357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359
11360 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11361   echo "$as_me:$LINENO: result: yes" >&5
11362 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11363 #define $ac_tr_decl 1
11364 _ACEOF
11365
11366 else
11367   echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11369 #define $ac_tr_decl 0
11370 _ACEOF
11371
11372 fi
11373
11374 done
11375
11376
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383
11384 #include "ansidecl.h"
11385 #include "system.h"
11386 #ifdef HAVE_SYS_RESOURCE_H
11387 #include <sys/resource.h>
11388 #endif
11389
11390 int
11391 main ()
11392 {
11393 rlim_t l = 0;
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 rm -f conftest.$ac_objext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400   (eval $ac_compile) 2>conftest.er1
11401   ac_status=$?
11402   grep -v '^ *+' conftest.er1 >conftest.err
11403   rm -f conftest.er1
11404   cat conftest.err >&5
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } &&
11407          { ac_try='test -z "$ac_c_werror_flag"
11408                          || test ! -s conftest.err'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; } &&
11414          { ac_try='test -s conftest.$ac_objext'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; }; then
11420   :
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425
11426 cat >>confdefs.h <<\_ACEOF
11427 #define rlim_t long
11428 _ACEOF
11429
11430 fi
11431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432
11433 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11434 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11435 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11436 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11437
11438 for ac_func in ldgetname
11439 do
11440   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11441 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11442 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11443 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   cat >conftest.$ac_ext <<_ACEOF
11447 /* confdefs.h.  */
11448 _ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h.  */
11452 #undef $ac_tr_decl
11453 #define $ac_tr_decl 1
11454
11455 #include "ansidecl.h"
11456 #include "system.h"
11457 #ifdef HAVE_LDFCN_H
11458 #undef FREAD
11459 #undef FWRITE
11460 #include <ldfcn.h>
11461 #endif
11462
11463
11464 int
11465 main ()
11466 {
11467 #ifndef $ac_func
11468 char *(*pfn) = (char *(*)) $ac_func ;
11469 #endif
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11476   (eval $ac_compile) 2>conftest.er1
11477   ac_status=$?
11478   grep -v '^ *+' conftest.er1 >conftest.err
11479   rm -f conftest.er1
11480   cat conftest.err >&5
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); } &&
11483          { ac_try='test -z "$ac_c_werror_flag"
11484                          || test ! -s conftest.err'
11485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486   (eval $ac_try) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; } &&
11490          { ac_try='test -s conftest.$ac_objext'
11491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492   (eval $ac_try) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }; then
11496   eval "gcc_cv_have_decl_$ac_func=yes"
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 eval "gcc_cv_have_decl_$ac_func=no"
11502 fi
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504 fi
11505
11506 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11507   echo "$as_me:$LINENO: result: yes" >&5
11508 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11509 #define $ac_tr_decl 1
11510 _ACEOF
11511
11512 else
11513   echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11515 #define $ac_tr_decl 0
11516 _ACEOF
11517
11518 fi
11519
11520 done
11521
11522
11523
11524 for ac_func in times
11525 do
11526   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11527 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11528 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11529 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11530   echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532   cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h.  */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h.  */
11538 #undef $ac_tr_decl
11539 #define $ac_tr_decl 1
11540
11541 #include "ansidecl.h"
11542 #include "system.h"
11543 #ifdef HAVE_SYS_TIMES_H
11544 #include <sys/times.h>
11545 #endif
11546
11547
11548 int
11549 main ()
11550 {
11551 #ifndef $ac_func
11552 char *(*pfn) = (char *(*)) $ac_func ;
11553 #endif
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag"
11568                          || test ! -s conftest.err'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest.$ac_objext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   eval "gcc_cv_have_decl_$ac_func=yes"
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 eval "gcc_cv_have_decl_$ac_func=no"
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 fi
11589
11590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11591   echo "$as_me:$LINENO: result: yes" >&5
11592 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11593 #define $ac_tr_decl 1
11594 _ACEOF
11595
11596 else
11597   echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11599 #define $ac_tr_decl 0
11600 _ACEOF
11601
11602 fi
11603
11604 done
11605
11606
11607 # More time-related stuff.
11608 echo "$as_me:$LINENO: checking for struct tms" >&5
11609 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11610 if test "${ac_cv_struct_tms+set}" = set; then
11611   echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620
11621 #include "ansidecl.h"
11622 #include "system.h"
11623 #ifdef HAVE_SYS_TIMES_H
11624 #include <sys/times.h>
11625 #endif
11626
11627 int
11628 main ()
11629 {
11630 struct tms tms;
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637   (eval $ac_compile) 2>conftest.er1
11638   ac_status=$?
11639   grep -v '^ *+' conftest.er1 >conftest.err
11640   rm -f conftest.er1
11641   cat conftest.err >&5
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } &&
11644          { ac_try='test -z "$ac_c_werror_flag"
11645                          || test ! -s conftest.err'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; } &&
11651          { ac_try='test -s conftest.$ac_objext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   ac_cv_struct_tms=yes
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 ac_cv_struct_tms=no
11663 fi
11664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11665 fi
11666 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11667 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11668 if test $ac_cv_struct_tms = yes; then
11669
11670 cat >>confdefs.h <<\_ACEOF
11671 #define HAVE_STRUCT_TMS 1
11672 _ACEOF
11673
11674 fi
11675
11676 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11677 # revisit after autoconf 2.50.
11678 echo "$as_me:$LINENO: checking for clock_t" >&5
11679 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11680 if test "${gcc_cv_type_clock_t+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690
11691 #include "ansidecl.h"
11692 #include "system.h"
11693
11694 int
11695 main ()
11696 {
11697 clock_t x;
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11704   (eval $ac_compile) 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } &&
11711          { ac_try='test -z "$ac_c_werror_flag"
11712                          || test ! -s conftest.err'
11713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714   (eval $ac_try) 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); }; } &&
11718          { ac_try='test -s conftest.$ac_objext'
11719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720   (eval $ac_try) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; }; then
11724   gcc_cv_type_clock_t=yes
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729 gcc_cv_type_clock_t=no
11730 fi
11731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11732 fi
11733 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11734 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11735 if test $gcc_cv_type_clock_t = yes; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_CLOCK_T 1
11739 _ACEOF
11740
11741 fi
11742
11743 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11744 CFLAGS="$saved_CFLAGS"
11745
11746 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11747 if test "${enable_initfini_array+set}" = set; then
11748   enableval="$enable_initfini_array"
11749
11750 else
11751
11752 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11753 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11754 if test "${gcc_cv_initfini_array+set}" = set; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757     if test "$cross_compiling" = yes; then
11758   gcc_cv_initfini_array=no
11759 else
11760   cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766
11767 static int x = -1;
11768 int main (void) { return x; }
11769 int foo (void) { x = 0; }
11770 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11771 _ACEOF
11772 rm -f conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774   (eval $ac_link) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   gcc_cv_initfini_array=yes
11784 else
11785   echo "$as_me: program exited with status $ac_status" >&5
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 ( exit $ac_status )
11790 gcc_cv_initfini_array=no
11791 fi
11792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11793 fi
11794 fi
11795 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11796 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11797   enable_initfini_array=$gcc_cv_initfini_array
11798
11799 fi;
11800 if test $enable_initfini_array = yes; then
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_INITFINI_ARRAY 1
11804 _ACEOF
11805
11806 fi
11807
11808 # mkdir takes a single argument on some systems.
11809 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11810 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11811 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820
11821 #include <sys/types.h>
11822 #ifdef HAVE_SYS_STAT_H
11823 # include <sys/stat.h>
11824 #endif
11825 #ifdef HAVE_UNISTD_H
11826 # include <unistd.h>
11827 #endif
11828 #ifdef HAVE_DIRECT_H
11829 # include <direct.h>
11830 #endif
11831 int
11832 main ()
11833 {
11834 mkdir ("foo", 0);
11835   ;
11836   return 0;
11837 }
11838 _ACEOF
11839 rm -f conftest.$ac_objext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841   (eval $ac_compile) 2>conftest.er1
11842   ac_status=$?
11843   grep -v '^ *+' conftest.er1 >conftest.err
11844   rm -f conftest.er1
11845   cat conftest.err >&5
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } &&
11848          { ac_try='test -z "$ac_c_werror_flag"
11849                          || test ! -s conftest.err'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; } &&
11855          { ac_try='test -s conftest.$ac_objext'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   gcc_cv_mkdir_takes_one_arg=no
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866 gcc_cv_mkdir_takes_one_arg=yes
11867 fi
11868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11871 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11872 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11873
11874 cat >>confdefs.h <<\_ACEOF
11875 #define MKDIR_TAKES_ONE_ARG 1
11876 _ACEOF
11877
11878 fi
11879
11880
11881 # File extensions
11882 manext='.1'
11883 objext='.o'
11884
11885
11886
11887 # With Setjmp/Longjmp based exception handling.
11888 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11889 if test "${enable_sjlj_exceptions+set}" = set; then
11890   enableval="$enable_sjlj_exceptions"
11891   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11892
11893 cat >>confdefs.h <<_ACEOF
11894 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11895 _ACEOF
11896
11897 fi;
11898
11899 # For platforms with the unwind ABI which includes an unwind library,
11900 # libunwind, we can choose to use the system libunwind.
11901
11902 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11903 if test "${with_system_libunwind+set}" = set; then
11904   withval="$with_system_libunwind"
11905
11906 fi;
11907
11908 # --------------------------------------------------------
11909 # Build, host, and target specific configuration fragments
11910 # --------------------------------------------------------
11911
11912 # Collect build-machine-specific information.
11913 . ${srcdir}/config.build
11914
11915 # Collect host-machine-specific information.
11916 . ${srcdir}/config.host
11917
11918 target_gtfiles=
11919
11920 # Collect target-machine-specific information.
11921 . ${srcdir}/config.gcc
11922
11923 extra_objs="${host_extra_objs} ${extra_objs}"
11924 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11925
11926 # Default the target-machine variables that were not explicitly set.
11927 if test x"$tm_file" = x
11928 then tm_file=$cpu_type/$cpu_type.h; fi
11929
11930 if test x"$extra_headers" = x
11931 then extra_headers=; fi
11932
11933 if test x$md_file = x
11934 then md_file=$cpu_type/$cpu_type.md; fi
11935
11936 if test x$out_file = x
11937 then out_file=$cpu_type/$cpu_type.c; fi
11938
11939 if test x"$tmake_file" = x
11940 then tmake_file=$cpu_type/t-$cpu_type
11941 fi
11942
11943 if test x"$dwarf2" = xyes
11944 then tm_file="$tm_file tm-dwarf2.h"
11945 fi
11946
11947 # Say what files are being used for the output code and MD file.
11948 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11949 echo "Using \`$srcdir/config/$md_file' as machine description file."
11950
11951 # If any of the xm_file variables contain nonexistent files, warn
11952 # about them and drop them.
11953
11954 bx=
11955 for x in $build_xm_file; do
11956   if    test -f $srcdir/config/$x
11957   then      bx="$bx $x"
11958   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11959 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11960   fi
11961 done
11962 build_xm_file="$bx"
11963
11964 hx=
11965 for x in $host_xm_file; do
11966   if    test -f $srcdir/config/$x
11967   then      hx="$hx $x"
11968   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11969 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11970   fi
11971 done
11972 host_xm_file="$hx"
11973
11974 tx=
11975 for x in $xm_file; do
11976   if    test -f $srcdir/config/$x
11977   then      tx="$tx $x"
11978   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11979 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11980   fi
11981 done
11982 xm_file="$tx"
11983
11984 count=a
11985 for f in $tm_file; do
11986         count=${count}x
11987 done
11988 if test $count = ax; then
11989         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11990 else
11991         echo "Using the following target machine macro files:"
11992         for f in $tm_file; do
11993                 echo "  $srcdir/config/$f"
11994         done
11995 fi
11996
11997 if test x$need_64bit_hwint = xyes; then
11998
11999 cat >>confdefs.h <<\_ACEOF
12000 #define NEED_64BIT_HOST_WIDE_INT 1
12001 _ACEOF
12002
12003 fi
12004
12005 if test x$use_long_long_for_widest_fast_int = xyes; then
12006
12007 cat >>confdefs.h <<\_ACEOF
12008 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12009 _ACEOF
12010
12011 fi
12012
12013 count=a
12014 for f in $host_xm_file; do
12015         count=${count}x
12016 done
12017 if test $count = a; then
12018         :
12019 elif test $count = ax; then
12020         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12021 else
12022         echo "Using the following host machine macro files:"
12023         for f in $host_xm_file; do
12024                 echo "  $srcdir/config/$f"
12025         done
12026 fi
12027 echo "Using ${out_host_hook_obj} for host machine hooks."
12028
12029 if test "$host_xm_file" != "$build_xm_file"; then
12030         count=a
12031         for f in $build_xm_file; do
12032                 count=${count}x
12033         done
12034         if test $count = a; then
12035                 :
12036         elif test $count = ax; then
12037                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12038         else
12039                 echo "Using the following build machine macro files:"
12040                 for f in $build_xm_file; do
12041                         echo "  $srcdir/config/$f"
12042                 done
12043         fi
12044 fi
12045
12046 # ---------
12047 # Threading
12048 # ---------
12049
12050 # Check if a valid thread package
12051 case ${enable_threads} in
12052   "" | no)
12053     # No threads
12054     target_thread_file='single'
12055     ;;
12056   yes)
12057     # default
12058     target_thread_file='single'
12059     ;;
12060   aix | dce | gnat | irix | posix | posix95 | rtems | \
12061   single | solaris | vxworks | win32 )
12062     target_thread_file=${enable_threads}
12063     ;;
12064   *)
12065     echo "${enable_threads} is an unknown thread package" 1>&2
12066     exit 1
12067     ;;
12068 esac
12069
12070 if test x${thread_file} = x; then
12071   # No thread file set by target-specific clauses in config.gcc,
12072   # so use file chosen by default logic above
12073   thread_file=${target_thread_file}
12074 fi
12075
12076 # Make gthr-default.h if we have a thread file.
12077 gthread_flags=
12078 if test $thread_file != single; then
12079   rm -f gthr-default.h
12080   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12081   gthread_flags=-DHAVE_GTHR_DEFAULT
12082 fi
12083
12084
12085 # --------
12086 # UNSORTED
12087 # --------
12088
12089 use_cxa_atexit=no
12090 if test x$enable___cxa_atexit = xyes || \
12091    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12092   if test x$host = x$target; then
12093     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12094 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12095 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12106 #define __cxa_atexit innocuous___cxa_atexit
12107
12108 /* System header to define __stub macros and hopefully few prototypes,
12109     which can conflict with char __cxa_atexit (); below.
12110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12111     <limits.h> exists even on freestanding compilers.  */
12112
12113 #ifdef __STDC__
12114 # include <limits.h>
12115 #else
12116 # include <assert.h>
12117 #endif
12118
12119 #undef __cxa_atexit
12120
12121 /* Override any gcc2 internal prototype to avoid an error.  */
12122 #ifdef __cplusplus
12123 extern "C"
12124 {
12125 #endif
12126 /* We use char because int might match the return type of a gcc2
12127    builtin and then its argument prototype would still apply.  */
12128 char __cxa_atexit ();
12129 /* The GNU C library defines this for functions which it implements
12130     to always fail with ENOSYS.  Some functions are actually named
12131     something starting with __ and the normal name is an alias.  */
12132 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12133 choke me
12134 #else
12135 char (*f) () = __cxa_atexit;
12136 #endif
12137 #ifdef __cplusplus
12138 }
12139 #endif
12140
12141 int
12142 main ()
12143 {
12144 return f != __cxa_atexit;
12145   ;
12146   return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12151   (eval $ac_link) 2>conftest.er1
12152   ac_status=$?
12153   grep -v '^ *+' conftest.er1 >conftest.err
12154   rm -f conftest.er1
12155   cat conftest.err >&5
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } &&
12158          { ac_try='test -z "$ac_c_werror_flag"
12159                          || test ! -s conftest.err'
12160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161   (eval $ac_try) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest$ac_exeext'
12166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167   (eval $ac_try) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; }; then
12171   ac_cv_func___cxa_atexit=yes
12172 else
12173   echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_cv_func___cxa_atexit=no
12177 fi
12178 rm -f conftest.err conftest.$ac_objext \
12179       conftest$ac_exeext conftest.$ac_ext
12180 fi
12181 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12182 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12183 if test $ac_cv_func___cxa_atexit = yes; then
12184   use_cxa_atexit=yes
12185 else
12186   echo "__cxa_atexit can't be enabled on this target"
12187 fi
12188
12189   else
12190     # We can't check for __cxa_atexit when building a cross, so assume
12191     # it is available
12192     use_cxa_atexit=yes
12193   fi
12194   if test x$use_cxa_atexit = xyes; then
12195
12196 cat >>confdefs.h <<\_ACEOF
12197 #define DEFAULT_USE_CXA_ATEXIT 1
12198 _ACEOF
12199
12200   fi
12201 fi
12202
12203 # Look for a file containing extra machine modes.
12204 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12205   extra_modes_file='$(srcdir)'/config/${extra_modes}
12206
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define EXTRA_MODES_FILE "config/$extra_modes"
12210 _ACEOF
12211
12212 fi
12213
12214 # Convert extra_options into a form suitable for Makefile use.
12215 extra_opt_files=
12216 for f in $extra_options; do
12217   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12218 done
12219
12220
12221 # auto-host.h is the file containing items generated by autoconf and is
12222 # the first file included by config.h.
12223 # If host=build, it is correct to have bconfig include auto-host.h
12224 # as well.  If host!=build, we are in error and need to do more
12225 # work to find out the build config parameters.
12226 if test x$host = x$build
12227 then
12228         build_auto=auto-host.h
12229 else
12230         # We create a subdir, then run autoconf in the subdir.
12231         # To prevent recursion we set host and build for the new
12232         # invocation of configure to the build for this invocation
12233         # of configure.
12234         tempdir=build.$$
12235         rm -rf $tempdir
12236         mkdir $tempdir
12237         cd $tempdir
12238         case ${srcdir} in
12239         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12240         *) realsrcdir=../${srcdir};;
12241         esac
12242         saved_CFLAGS="${CFLAGS}"
12243         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12244         ${realsrcdir}/configure \
12245                 --enable-languages=${enable_languages-all} \
12246                 --target=$target_alias --host=$build_alias --build=$build_alias
12247         CFLAGS="${saved_CFLAGS}"
12248
12249         # We just finished tests for the build machine, so rename
12250         # the file auto-build.h in the gcc directory.
12251         mv auto-host.h ../auto-build.h
12252         cd ..
12253         rm -rf $tempdir
12254         build_auto=auto-build.h
12255 fi
12256
12257
12258 tm_file="${tm_file} defaults.h"
12259 tm_p_file="${tm_p_file} tm-preds.h"
12260 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12261 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12262 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12263 # put this back in temporarily.
12264 xm_file="auto-host.h ansidecl.h ${xm_file}"
12265
12266 # --------
12267 # UNSORTED
12268 # --------
12269
12270 # Compile in configure arguments.
12271 if test -f configargs.h ; then
12272         # Being re-configured.
12273         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12274         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12275 else
12276         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12277 fi
12278
12279 # Double all backslashes and backslash all quotes to turn
12280 # gcc_config_arguments into a C string.
12281 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12282 $gcc_config_arguments
12283 EOF
12284 gcc_config_arguments_str=`cat conftest.out`
12285 rm -f conftest.out
12286
12287 cat > configargs.h <<EOF
12288 /* Generated automatically. */
12289 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12290 static const char thread_model[] = "$thread_file";
12291
12292 static const struct {
12293   const char *name, *value;
12294 } configure_default_options[] = $configure_default_options;
12295 EOF
12296
12297 # Internationalization
12298 # If we haven't got the data from the intl directory,
12299 # assume NLS is disabled.
12300 USE_NLS=no
12301 LIBINTL=
12302 LIBINTL_DEP=
12303 INCINTL=
12304 XGETTEXT=
12305 GMSGFMT=
12306 POSUB=
12307 if test -f ../intl/config.intl; then
12308   . ../intl/config.intl
12309 fi
12310 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12311 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12312 if test x"$USE_NLS" != xyes; then
12313   echo "$as_me:$LINENO: result: no" >&5
12314 echo "${ECHO_T}no" >&6
12315 else
12316   echo "$as_me:$LINENO: result: yes" >&5
12317 echo "${ECHO_T}yes" >&6
12318
12319 cat >>confdefs.h <<\_ACEOF
12320 #define ENABLE_NLS 1
12321 _ACEOF
12322
12323
12324   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12325 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12326   # Look for .po and .gmo files in the source directory.
12327   CATALOGS=
12328   XLINGUAS=
12329   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12330     # If there aren't any .gmo files the shell will give us the
12331     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12332     # weeded out.
12333     case "$cat" in *\**)
12334       continue;;
12335     esac
12336     # The quadruple backslash is collapsed to a double backslash
12337     # by the backticks, then collapsed again by the double quotes,
12338     # leaving us with one backslash in the sed expression (right
12339     # before the dot that mustn't act as a wildcard).
12340     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12341     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12342     # The user is allowed to set LINGUAS to a list of languages to
12343     # install catalogs for.  If it's empty that means "all of them."
12344     if test "x$LINGUAS" = x; then
12345       CATALOGS="$CATALOGS $cat"
12346       XLINGUAS="$XLINGUAS $lang"
12347     else
12348       case "$LINGUAS" in *$lang*)
12349         CATALOGS="$CATALOGS $cat"
12350         XLINGUAS="$XLINGUAS $lang"
12351         ;;
12352       esac
12353     fi
12354   done
12355   LINGUAS="$XLINGUAS"
12356   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12357 echo "${ECHO_T}$LINGUAS" >&6
12358 fi
12359
12360 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12361 # -liconv on the link line twice.
12362 case "$LIBINTL" in *$LIBICONV*)
12363         LIBICONV= ;;
12364 esac
12365
12366 # Check whether --enable-secureplt or --disable-secureplt was given.
12367 if test "${enable_secureplt+set}" = set; then
12368   enableval="$enable_secureplt"
12369
12370 fi;
12371
12372 # Windows32 Registry support for specifying GCC installation paths.
12373 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12374 if test "${enable_win32_registry+set}" = set; then
12375   enableval="$enable_win32_registry"
12376
12377 fi;
12378
12379 case $host_os in
12380   win32 | pe | cygwin* | mingw32* | uwin*)
12381     if test "x$enable_win32_registry" != xno; then
12382       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12383 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12384 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   ac_func_search_save_LIBS=$LIBS
12388 ac_cv_search_RegOpenKeyExA=no
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395
12396 /* Override any gcc2 internal prototype to avoid an error.  */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 /* We use char because int might match the return type of a gcc2
12401    builtin and then its argument prototype would still apply.  */
12402 char RegOpenKeyExA ();
12403 int
12404 main ()
12405 {
12406 RegOpenKeyExA ();
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413   (eval $ac_link) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"
12421                          || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_cv_search_RegOpenKeyExA="none required"
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 fi
12439 rm -f conftest.err conftest.$ac_objext \
12440       conftest$ac_exeext conftest.$ac_ext
12441 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12442   for ac_lib in advapi32; do
12443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12444     cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450
12451 /* Override any gcc2 internal prototype to avoid an error.  */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 /* We use char because int might match the return type of a gcc2
12456    builtin and then its argument prototype would still apply.  */
12457 char RegOpenKeyExA ();
12458 int
12459 main ()
12460 {
12461 RegOpenKeyExA ();
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468   (eval $ac_link) 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag"
12476                          || test ! -s conftest.err'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; } &&
12482          { ac_try='test -s conftest$ac_exeext'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12489 break
12490 else
12491   echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 fi
12495 rm -f conftest.err conftest.$ac_objext \
12496       conftest$ac_exeext conftest.$ac_ext
12497   done
12498 fi
12499 LIBS=$ac_func_search_save_LIBS
12500 fi
12501 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12502 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12503 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12504   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12505
12506 else
12507   enable_win32_registry=no
12508 fi
12509
12510     fi
12511
12512     if test "x$enable_win32_registry" != xno; then
12513
12514 cat >>confdefs.h <<\_ACEOF
12515 #define ENABLE_WIN32_REGISTRY 1
12516 _ACEOF
12517
12518
12519       if test "x$enable_win32_registry" != xyes \
12520          && test "x$enable_win32_registry" != x; then
12521
12522 cat >>confdefs.h <<_ACEOF
12523 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12524 _ACEOF
12525
12526       fi
12527     fi
12528   ;;
12529 esac
12530
12531 # Get an absolute path to the GCC top-level source directory
12532 holddir=`${PWDCMD-pwd}`
12533 cd $srcdir
12534 topdir=`${PWDCMD-pwd}`
12535 cd $holddir
12536
12537 # Conditionalize the makefile for this host machine.
12538 xmake_file=
12539 for f in ${host_xmake_file}
12540 do
12541         if test -f ${srcdir}/config/$f
12542         then
12543                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12544         fi
12545 done
12546
12547 # Conditionalize the makefile for this target machine.
12548 tmake_file_=
12549 for f in ${tmake_file}
12550 do
12551         if test -f ${srcdir}/config/$f
12552         then
12553                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12554         fi
12555 done
12556 tmake_file="${tmake_file_}"
12557
12558 # If the host doesn't support symlinks, modify CC in
12559 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12560 # Otherwise, we can use "CC=$(CC)".
12561 rm -f symtest.tem
12562 case "$LN_S" in
12563         *-s*)
12564                 cc_set_by_configure="\$(CC)"
12565                 quoted_cc_set_by_configure="\$(CC)"
12566                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12567                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12568                 ;;
12569         *)
12570                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12571                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12572                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12573                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12574                 ;;
12575 esac
12576
12577 # This is a terrible hack which will go away some day.
12578 host_cc_for_libada=${CC}
12579
12580
12581 out_object_file=`basename $out_file .c`.o
12582
12583 tm_file_list="options.h"
12584 tm_include_list="options.h"
12585 for f in $tm_file; do
12586   case $f in
12587     defaults.h )
12588        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12589        tm_include_list="${tm_include_list} $f"
12590        ;;
12591     * )
12592        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12593        tm_include_list="${tm_include_list} config/$f"
12594        ;;
12595   esac
12596 done
12597
12598 tm_p_file_list=
12599 tm_p_include_list=
12600 for f in $tm_p_file; do
12601   case $f in
12602     tm-preds.h )
12603        tm_p_file_list="${tm_p_file_list} $f"
12604        tm_p_include_list="${tm_p_include_list} $f"
12605        ;;
12606     * )
12607        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12608        tm_p_include_list="${tm_p_include_list} config/$f"
12609   esac
12610 done
12611
12612 xm_file_list=
12613 xm_include_list=
12614 for f in $xm_file; do
12615   case $f in
12616     ansidecl.h )
12617        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12618        xm_include_list="${xm_include_list} $f"
12619        ;;
12620     auto-host.h )
12621        xm_file_list="${xm_file_list} $f"
12622        xm_include_list="${xm_include_list} $f"
12623        ;;
12624     * )
12625        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12626        xm_include_list="${xm_include_list} config/$f"
12627        ;;
12628   esac
12629 done
12630
12631 host_xm_file_list=
12632 host_xm_include_list=
12633 for f in $host_xm_file; do
12634   case $f in
12635     ansidecl.h )
12636        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12637        host_xm_include_list="${host_xm_include_list} $f"
12638        ;;
12639     auto-host.h )
12640        host_xm_file_list="${host_xm_file_list} $f"
12641        host_xm_include_list="${host_xm_include_list} $f"
12642        ;;
12643     * )
12644        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12645        host_xm_include_list="${host_xm_include_list} config/$f"
12646        ;;
12647   esac
12648 done
12649
12650 build_xm_file_list=
12651 for f in $build_xm_file; do
12652   case $f in
12653     ansidecl.h )
12654        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12655        build_xm_include_list="${build_xm_include_list} $f"
12656        ;;
12657     auto-build.h | auto-host.h )
12658        build_xm_file_list="${build_xm_file_list} $f"
12659        build_xm_include_list="${build_xm_include_list} $f"
12660        ;;
12661     * )
12662        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12663        build_xm_include_list="${build_xm_include_list} config/$f"
12664        ;;
12665   esac
12666 done
12667
12668 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12669 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12670 CROSS=
12671 ALL=all.internal
12672 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12673 if test x$host != x$target
12674 then
12675         CROSS="-DCROSS_COMPILE"
12676         ALL=all.cross
12677         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12678         case "$host","$target" in
12679         # Darwin crosses can use the host system's libraries and headers,
12680         # because of the fat library support.  Of course, it must be the
12681         # same version of Darwin on both sides.  Allow the user to
12682         # just say --target=foo-darwin without a version number to mean
12683         # "the version on this system".
12684             *-*-darwin*,*-*-darwin*)
12685                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12686                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12687                 if test $hostos = $targetos -o $targetos = darwin ; then
12688                     CROSS=
12689                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12690                     with_headers=yes
12691                 fi
12692                 ;;
12693
12694             i?86-*-*,x86_64-*-* \
12695             | powerpc*-*-*,powerpc64*-*-*)
12696                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12697         esac
12698 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12699         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12700         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12701 fi
12702
12703 # If this is a cross-compiler that does not
12704 # have its own set of headers then define
12705 # inhibit_libc
12706
12707 # If this is using newlib, without having the headers available now,
12708 # then define inhibit_libc in LIBGCC2_CFLAGS.
12709 # This prevents libgcc2 from containing any code which requires libc
12710 # support.
12711 inhibit_libc=
12712 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12713        test x$with_newlib = xyes ; } &&
12714      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12715        inhibit_libc=-Dinhibit_libc
12716 fi
12717
12718
12719 # When building gcc with a cross-compiler, we need to adjust things so
12720 # that the generator programs are still built with the native compiler.
12721 # Also, we cannot run fixincludes or fix-header.
12722
12723 # These are the normal (build=host) settings:
12724 CC_FOR_BUILD='$(CC)'
12725 BUILD_CFLAGS='$(ALL_CFLAGS)'
12726 STMP_FIXINC=stmp-fixinc
12727
12728 # Possibly disable fixproto, on a per-target basis.
12729 case ${use_fixproto} in
12730   no)
12731     STMP_FIXPROTO=
12732     ;;
12733   yes)
12734     STMP_FIXPROTO=stmp-fixproto
12735     ;;
12736 esac
12737
12738
12739 # And these apply if build != host, or we are generating coverage data
12740 if test x$build != x$host || test "x$coverage_flags" != x
12741 then
12742     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12743
12744     if test "x$TARGET_SYSTEM_ROOT" = x; then
12745         if test "x$STMP_FIXPROTO" != x; then
12746           STMP_FIXPROTO=stmp-install-fixproto
12747         fi
12748     fi
12749 fi
12750
12751 # Expand extra_headers to include complete path.
12752 # This substitutes for lots of t-* files.
12753 extra_headers_list=
12754 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12755 for file in ${extra_headers} ; do
12756   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12757 done
12758
12759 # Define collect2 in Makefile.
12760 case $host_can_use_collect2 in
12761   no) collect2= ;;
12762   *) collect2='collect2$(exeext)' ;;
12763 esac
12764
12765
12766 # Add a definition of USE_COLLECT2 if system wants one.
12767 case $use_collect2 in
12768   no) use_collect2= ;;
12769   "") ;;
12770   *)
12771     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12772     xm_defines="${xm_defines} USE_COLLECT2"
12773     case $host_can_use_collect2 in
12774       no)
12775         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12776 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12777    { (exit 1); exit 1; }; }
12778         ;;
12779     esac
12780     ;;
12781 esac
12782
12783 # ---------------------------
12784 # Assembler & linker features
12785 # ---------------------------
12786
12787 # Identify the assembler which will work hand-in-glove with the newly
12788 # built GCC, so that we can examine its features.  This is the assembler
12789 # which will be driven by the driver program.
12790 #
12791 # If build != host, and we aren't building gas in-tree, we identify a
12792 # build->target assembler and hope that it will have the same features
12793 # as the host->target assembler we'll be using.
12794 echo "$as_me:$LINENO: checking what assembler to use" >&5
12795 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12796 in_tree_gas=no
12797 gcc_cv_as=
12798 gcc_cv_gas_major_version=
12799 gcc_cv_gas_minor_version=
12800 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12801 if test -x "$DEFAULT_ASSEMBLER"; then
12802         gcc_cv_as="$DEFAULT_ASSEMBLER"
12803 elif test -x as$build_exeext; then
12804         # Build using assembler in the current directory.
12805         gcc_cv_as=./as$build_exeext
12806 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12807      && test -f ../gas/Makefile \
12808      && test x$build = x$host; then
12809   # Single tree build which includes gas.  We want to prefer it
12810   # over whatever linker top-level may have detected, since
12811   # we'll use what we're building after installation anyway.
12812   in_tree_gas=yes
12813   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12814 for f in $gcc_cv_as_bfd_srcdir/configure \
12815          $gcc_cv_as_gas_srcdir/configure \
12816          $gcc_cv_as_gas_srcdir/configure.in \
12817          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12818   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12819   if test x$gcc_cv_gas_version != x; then
12820     break
12821   fi
12822 done
12823 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12824 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12825 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12826 case $gcc_cv_gas_patch_version in
12827   "") gcc_cv_gas_patch_version="0" ;;
12828 esac
12829 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12830                             + $gcc_cv_gas_minor_version \) \* 1000 \
12831                             + $gcc_cv_gas_patch_version`
12832
12833   rm -f as$build_exeext
12834   $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12835   in_tree_gas_is_elf=no
12836   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12837      || (grep 'obj_format = multi' ../gas/Makefile \
12838          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12839   then
12840     in_tree_gas_is_elf=yes
12841   fi
12842 elif test -x "$AS_FOR_TARGET"; then
12843         gcc_cv_as="$AS_FOR_TARGET"
12844 elif test -x "$AS" && test x$host = x$target; then
12845         gcc_cv_as="$AS"
12846 fi
12847
12848 gcc_version=`cat $srcdir/BASE-VER`
12849
12850 if test "x$gcc_cv_as" = x; then
12851         # Search the same directories that the installed compiler will
12852         # search.  Else we may find the wrong assembler and lose.  If we
12853         # do not find a suitable assembler binary, then try the user's
12854         # path.
12855         #
12856         # Also note we have to check MD_EXEC_PREFIX before checking the
12857         # user's path.  Unfortunately, there is no good way to get at the
12858         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12859         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12860         # to be fixed as part of the make/configure rewrite too.
12861
12862         if test "x$exec_prefix" = xNONE; then
12863                 if test "x$prefix" = xNONE; then
12864                         test_prefix=/usr/local
12865                 else
12866                         test_prefix=$prefix
12867                 fi
12868         else
12869                 test_prefix=$exec_prefix
12870         fi
12871
12872         # If the loop below does not find an assembler, then use whatever
12873         # one we can find in the users's path.  We are looking for a
12874         # ${build} -> ${target} assembler.
12875         if test "x$program_prefix" != xNONE; then
12876                 gcc_cv_as=${program_prefix}as$build_exeext
12877         elif test x$build != x$host && test x$build != x$target; then
12878                 gcc_cv_as=${target_noncanonical}-as$build_exeext
12879         else
12880                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12881         fi
12882
12883         if test x$host = x$build; then
12884             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12885                        $test_prefix/libexec/gcc/$target_noncanonical \
12886                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12887                        /usr/lib/gcc/$target_noncanonical \
12888                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12889                        $test_prefix/$target_noncanonical/bin"
12890         else
12891             test_dirs=
12892         fi
12893
12894         if test x$build = x$target; then
12895             test_dirs="$test_dirs \
12896                    /usr/libexec \
12897                    /usr/ccs/gcc \
12898                    /usr/ccs/bin \
12899                    /udk/usr/ccs/bin \
12900                    /bsd43/usr/lib/cmplrs/cc \
12901                    /usr/cross64/usr/bin \
12902                    /usr/lib/cmplrs/cc \
12903                    /sysv/usr/lib/cmplrs/cc \
12904                    /svr4/usr/lib/cmplrs/cc \
12905                    /usr/bin"
12906         fi
12907
12908         for dir in $test_dirs; do
12909                 if test -x $dir/as$build_exeext; then
12910                         gcc_cv_as=$dir/as$build_exeext
12911                         break;
12912                 fi
12913         done
12914 fi
12915 case $in_tree_gas in
12916   yes)
12917     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12918 echo "${ECHO_T}\"newly built gas\"" >&6
12919     ;;
12920   no)
12921     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12922 echo "${ECHO_T}$gcc_cv_as" >&6
12923     ;;
12924 esac
12925
12926 # Identify the linker which will work hand-in-glove with the newly
12927 # built GCC, so that we can examine its features.  This is the linker
12928 # which will be driven by the driver program.
12929 #
12930 # If build != host, and we aren't building gas in-tree, we identify a
12931 # build->target linker and hope that it will have the same features
12932 # as the host->target linker we'll be using.
12933 echo "$as_me:$LINENO: checking what linker to use" >&5
12934 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12935 in_tree_ld=no
12936 gcc_cv_ld=
12937 gcc_cv_gld_major_version=
12938 gcc_cv_gld_minor_version=
12939 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12940 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12941 if test -x "$DEFAULT_LINKER"; then
12942         gcc_cv_ld="$DEFAULT_LINKER"
12943 elif test -x collect-ld$build_exeext; then
12944         # Build using linker in the current directory.
12945         gcc_cv_ld=./collect-ld$build_exeext
12946 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12947      && test -f ../ld/Makefile \
12948      && test x$build = x$host; then
12949         # Single tree build which includes ld.  We want to prefer it
12950         # over whatever linker top-level may have detected, since
12951         # we'll use what we're building after installation anyway.
12952         in_tree_ld=yes
12953         in_tree_ld_is_elf=no
12954         if (grep 'EMUL = .*elf' ../ld/Makefile \
12955             || grep 'EMUL = .*linux' ../ld/Makefile \
12956             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12957           in_tree_ld_is_elf=yes
12958         fi
12959         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
12960         do
12961                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12962                 if test x$gcc_cv_gld_version != x; then
12963                         break
12964                 fi
12965         done
12966         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12967         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12968         rm -f collect-ld$build_exeext
12969         $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12970 elif test -x "$LD_FOR_TARGET"; then
12971         gcc_cv_ld="$LD_FOR_TARGET"
12972 elif test -x "$LD" && test x$host = x$target; then
12973         gcc_cv_ld="$LD"
12974 fi
12975
12976 if test "x$gcc_cv_ld" = x; then
12977         # Search the same directories that the installed compiler will
12978         # search.  Else we may find the wrong linker and lose.  If we
12979         # do not find a suitable linker binary, then try the user's
12980         # path.
12981         #
12982         # Also note we have to check MD_EXEC_PREFIX before checking the
12983         # user's path.  Unfortunately, there is no good way to get at the
12984         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12985         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12986         # to be fixed as part of the make/configure rewrite too.
12987
12988         if test "x$exec_prefix" = xNONE; then
12989                 if test "x$prefix" = xNONE; then
12990                         test_prefix=/usr/local
12991                 else
12992                         test_prefix=$prefix
12993                 fi
12994         else
12995                 test_prefix=$exec_prefix
12996         fi
12997
12998         # If the loop below does not find a linker, then use whatever
12999         # one we can find in the users's path.  We are looking for a
13000         # ${build} -> ${target} linker.
13001         if test "x$program_prefix" != xNONE; then
13002                 gcc_cv_ld=${program_prefix}ld$build_exeext
13003         elif test x$build != x$host && test x$build != x$target; then
13004                 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
13005         else
13006                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
13007         fi
13008
13009         if test x$host = x$build; then
13010             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
13011                        $test_prefix/libexec/gcc/$target_noncanonical \
13012                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
13013                        /usr/lib/gcc/$target_noncanonical \
13014                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
13015                        $test_prefix/$target_noncanonical/bin"
13016         else
13017             test_dirs=
13018         fi
13019
13020         if test x$build = x$target; then
13021             test_dirs="$test_dirs \
13022                    /usr/libexec \
13023                    /usr/ccs/gcc \
13024                    /usr/ccs/bin \
13025                    /udk/usr/ccs/bin \
13026                    /bsd43/usr/lib/cmplrs/cc \
13027                    /usr/cross64/usr/bin \
13028                    /usr/lib/cmplrs/cc \
13029                    /sysv/usr/lib/cmplrs/cc \
13030                    /svr4/usr/lib/cmplrs/cc \
13031                    /usr/bin"
13032         fi
13033
13034         for dir in $test_dirs; do
13035                 if test -x $dir/ld$build_exeext; then
13036                         gcc_cv_ld=$dir/ld$build_exeext
13037                         break;
13038                 fi
13039         done
13040 fi
13041 case $in_tree_ld in
13042   yes)
13043     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13044 echo "${ECHO_T}\"newly built ld\"" >&6
13045     ;;
13046   no)
13047     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13048 echo "${ECHO_T}$gcc_cv_ld" >&6
13049     ;;
13050 esac
13051
13052 # Figure out what nm we will be using.
13053 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13054 echo "$as_me:$LINENO: checking what nm to use" >&5
13055 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13056 in_tree_nm=no
13057 if test -x nm$build_exeext; then
13058         gcc_cv_nm=./nm$build_exeext
13059 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13060      && test -f ../binutils/Makefile; then
13061         # Single tree build which includes binutils.
13062         in_tree_nm=yes
13063         gcc_cv_nm=./nm$build_exeext
13064         rm -f nm$build_exeext
13065         $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13066 elif test "x$program_prefix" != xNONE; then
13067         gcc_cv_nm=${program_prefix}nm$build_exeext
13068 elif test x$build != x$host && test x$build != x$target; then
13069         gcc_cv_nm=${target_noncanonical}-nm$build_exeext
13070 else
13071         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13072 fi
13073 case $in_tree_nm in
13074   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13075 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13076   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13077 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13078 esac
13079
13080 # Figure out what objdump we will be using.
13081 echo "$as_me:$LINENO: checking what objdump to use" >&5
13082 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13083 in_tree_objdump=no
13084 if test -x objdump$build_exeext; then
13085         gcc_cv_objdump=./objdump$build_exeext
13086 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13087      && test -f ../binutils/Makefile; then
13088         # Single tree build which includes binutils.
13089         in_tree_objdump=yes
13090         gcc_cv_objdump=./objdump$build_exeext
13091         rm -f objdump$build_exeext
13092         $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13093 elif test "x$program_prefix" != xNONE; then
13094         gcc_cv_objdump=${program_prefix}objdump$build_exeext
13095 elif test x$build != x$host && test x$build != x$target; then
13096         gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
13097 else
13098         gcc_cv_objdump=`echo objdump | \
13099                 sed "${program_transform_name}"`$build_exeext
13100 fi
13101 case $in_tree_objdump in
13102   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13103 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13104   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13105 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13106 esac
13107
13108 # Figure out what assembler alignment features are present.
13109 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13110 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13111 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   gcc_cv_as_balign_and_p2align=no
13115     if test $in_tree_gas = yes; then
13116     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13117   then gcc_cv_as_balign_and_p2align=yes
13118 fi
13119   elif test x$gcc_cv_as != x; then
13120     echo '.balign 4
13121 .p2align 2' > conftest.s
13122     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }
13128     then
13129         gcc_cv_as_balign_and_p2align=yes
13130     else
13131       echo "configure: failed program was" >&5
13132       cat conftest.s >&5
13133     fi
13134     rm -f conftest.o conftest.s
13135   fi
13136 fi
13137 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13138 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13139 if test $gcc_cv_as_balign_and_p2align = yes; then
13140
13141 cat >>confdefs.h <<\_ACEOF
13142 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13143 _ACEOF
13144
13145 fi
13146
13147 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13148 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13149 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   gcc_cv_as_max_skip_p2align=no
13153     if test $in_tree_gas = yes; then
13154     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13155   then gcc_cv_as_max_skip_p2align=yes
13156 fi
13157   elif test x$gcc_cv_as != x; then
13158     echo '.p2align 4,,7' > conftest.s
13159     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }
13165     then
13166         gcc_cv_as_max_skip_p2align=yes
13167     else
13168       echo "configure: failed program was" >&5
13169       cat conftest.s >&5
13170     fi
13171     rm -f conftest.o conftest.s
13172   fi
13173 fi
13174 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13175 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13176 if test $gcc_cv_as_max_skip_p2align = yes; then
13177
13178 cat >>confdefs.h <<\_ACEOF
13179 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13180 _ACEOF
13181
13182 fi
13183
13184 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13185 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13186 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   gcc_cv_as_subsection_m1=no
13190     if test $in_tree_gas = yes; then
13191     if test $in_tree_gas_is_elf = yes \
13192   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13193   then gcc_cv_as_subsection_m1=yes
13194 fi
13195   elif test x$gcc_cv_as != x; then
13196     echo 'conftest_label1: .word 0
13197 .subsection -1
13198 conftest_label2: .word 0
13199 .previous' > conftest.s
13200     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }
13206     then
13207         if test x$gcc_cv_nm != x; then
13208     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13209     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13210     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13211     then :
13212     else gcc_cv_as_subsection_m1=yes
13213     fi
13214     rm -f conftest.nm1 conftest.nm2
13215   fi
13216     else
13217       echo "configure: failed program was" >&5
13218       cat conftest.s >&5
13219     fi
13220     rm -f conftest.o conftest.s
13221   fi
13222 fi
13223 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13224 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13225 if test $gcc_cv_as_subsection_m1 = yes; then
13226
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_GAS_SUBSECTION_ORDERING 1
13229 _ACEOF
13230
13231 fi
13232
13233 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13234 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13235 if test "${gcc_cv_as_weak+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   gcc_cv_as_weak=no
13239     if test $in_tree_gas = yes; then
13240     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13241   then gcc_cv_as_weak=yes
13242 fi
13243   elif test x$gcc_cv_as != x; then
13244     echo '      .weak foobar' > conftest.s
13245     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }
13251     then
13252         gcc_cv_as_weak=yes
13253     else
13254       echo "configure: failed program was" >&5
13255       cat conftest.s >&5
13256     fi
13257     rm -f conftest.o conftest.s
13258   fi
13259 fi
13260 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13261 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13262 if test $gcc_cv_as_weak = yes; then
13263
13264 cat >>confdefs.h <<\_ACEOF
13265 #define HAVE_GAS_WEAK 1
13266 _ACEOF
13267
13268 fi
13269
13270 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13271 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13272 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   gcc_cv_as_nsubspa_comdat=no
13276     if test $in_tree_gas = yes; then
13277     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13278   then gcc_cv_as_nsubspa_comdat=yes
13279 fi
13280   elif test x$gcc_cv_as != x; then
13281     echo '      .SPACE $TEXT$
13282         .NSUBSPA $CODE$,COMDAT' > conftest.s
13283     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }
13289     then
13290         gcc_cv_as_nsubspa_comdat=yes
13291     else
13292       echo "configure: failed program was" >&5
13293       cat conftest.s >&5
13294     fi
13295     rm -f conftest.o conftest.s
13296   fi
13297 fi
13298 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13299 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13300 if test $gcc_cv_as_nsubspa_comdat = yes; then
13301
13302 cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_GAS_NSUBSPA_COMDAT 1
13304 _ACEOF
13305
13306 fi
13307
13308 # .hidden needs to be supported in both the assembler and the linker,
13309 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13310 # This is irritatingly difficult to feature test for; we have to check the
13311 # date string after the version number.  If we've got an in-tree
13312 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13313 # to be safe.
13314 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13315 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13316 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13317 if test "${gcc_cv_as_hidden+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   gcc_cv_as_hidden=no
13321     if test $in_tree_gas = yes; then
13322     if test $in_tree_gas_is_elf = yes \
13323   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13324   then gcc_cv_as_hidden=yes
13325 fi
13326   elif test x$gcc_cv_as != x; then
13327     echo '      .hidden foobar
13328 foobar:' > conftest.s
13329     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331   (eval $ac_try) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }
13335     then
13336         gcc_cv_as_hidden=yes
13337     else
13338       echo "configure: failed program was" >&5
13339       cat conftest.s >&5
13340     fi
13341     rm -f conftest.o conftest.s
13342   fi
13343 fi
13344 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13345 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13346
13347
13348 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13349 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13350 if test "${gcc_cv_ld_hidden+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   if test $in_tree_ld = yes ; then
13354   gcc_cv_ld_hidden=no
13355   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 \
13356      && test $in_tree_ld_is_elf = yes; then
13357      gcc_cv_ld_hidden=yes
13358   fi
13359 else
13360   gcc_cv_ld_hidden=yes
13361   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13362   if echo "$ld_ver" | grep GNU > /dev/null; then
13363     ld_vers=`echo $ld_ver | sed -n \
13364         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13365         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13366         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13367         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13368         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13369         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13370         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
13371     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'`
13372     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13373     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13374     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13375     if test 0"$ld_date" -lt 20020404; then
13376       if test -n "$ld_date"; then
13377         # If there was date string, but was earlier than 2002-04-04, fail
13378         gcc_cv_ld_hidden=no
13379       elif test -z "$ld_vers"; then
13380         # If there was no date string nor ld version number, something is wrong
13381         gcc_cv_ld_hidden=no
13382       else
13383         test -z "$ld_vers_patch" && ld_vers_patch=0
13384         if test "$ld_vers_major" -lt 2; then
13385           gcc_cv_ld_hidden=no
13386         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13387           gcc_cv_ld_hidden="no"
13388         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13389           gcc_cv_ld_hidden=no
13390         fi
13391       fi
13392     fi
13393   else
13394     case "${target}" in
13395       hppa64*-*-hpux* | ia64*-*-hpux*)
13396         gcc_cv_ld_hidden=yes
13397         ;;
13398       *)
13399         gcc_cv_ld_hidden=no
13400         ;;
13401     esac
13402   fi
13403 fi
13404 fi
13405 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13406 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13407 libgcc_visibility=no
13408
13409
13410 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13411   libgcc_visibility=yes
13412
13413 cat >>confdefs.h <<\_ACEOF
13414 #define HAVE_GAS_HIDDEN 1
13415 _ACEOF
13416
13417 fi
13418
13419 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13420 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13421 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13422 if test "${gcc_cv_as_leb128+set}" = set; then
13423   echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425   gcc_cv_as_leb128=no
13426     if test $in_tree_gas = yes; then
13427     if test $in_tree_gas_is_elf = yes \
13428   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13429   then gcc_cv_as_leb128=yes
13430 fi
13431   elif test x$gcc_cv_as != x; then
13432     echo '      .data
13433         .uleb128 L2 - L1
13434 L1:
13435         .uleb128 1280
13436         .sleb128 -1010
13437 L2:' > conftest.s
13438     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; }
13444     then
13445         # GAS versions before 2.11 do not support uleb128,
13446   # despite appearing to.
13447   # ??? There exists an elf-specific test that will crash
13448   # the assembler.  Perhaps it's better to figure out whether
13449   # arbitrary sections are supported and try the test.
13450   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13451   if echo "$as_ver" | grep GNU > /dev/null; then
13452     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13453     as_major=`echo $as_ver | sed 's/\..*//'`
13454     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13455     if test $as_major -eq 2 && test $as_minor -lt 11
13456     then :
13457     else gcc_cv_as_leb128=yes
13458     fi
13459   fi
13460     else
13461       echo "configure: failed program was" >&5
13462       cat conftest.s >&5
13463     fi
13464     rm -f conftest.o conftest.s
13465   fi
13466 fi
13467 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13468 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13469 if test $gcc_cv_as_leb128 = yes; then
13470
13471 cat >>confdefs.h <<\_ACEOF
13472 #define HAVE_AS_LEB128 1
13473 _ACEOF
13474
13475 fi
13476
13477 # GAS versions up to and including 2.11.0 may mis-optimize
13478 # .eh_frame data.
13479 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13480 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13481 if test "${gcc_cv_as_eh_frame+set}" = set; then
13482   echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484   gcc_cv_as_eh_frame=no
13485     if test $in_tree_gas = yes; then
13486     if test $in_tree_gas_is_elf = yes \
13487   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13488   then gcc_cv_as_eh_frame=yes
13489 fi
13490   elif test x$gcc_cv_as != x; then
13491     echo '      .text
13492 .LFB1:
13493         .4byte  0
13494 .L1:
13495         .4byte  0
13496 .LFE1:
13497         .section        .eh_frame,"aw",@progbits
13498 __FRAME_BEGIN__:
13499         .4byte  .LECIE1-.LSCIE1
13500 .LSCIE1:
13501         .4byte  0x0
13502         .byte   0x1
13503         .ascii "z\0"
13504         .byte   0x1
13505         .byte   0x78
13506         .byte   0x1a
13507         .byte   0x0
13508         .byte   0x4
13509         .4byte  1
13510         .p2align 1
13511 .LECIE1:
13512 .LSFDE1:
13513         .4byte  .LEFDE1-.LASFDE1
13514 .LASFDE1:
13515         .4byte  .LASFDE1-__FRAME_BEGIN__
13516         .4byte  .LFB1
13517         .4byte  .LFE1-.LFB1
13518         .byte   0x4
13519         .4byte  .LFE1-.LFB1
13520         .byte   0x4
13521         .4byte  .L1-.LFB1
13522 .LEFDE1:' > conftest.s
13523     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }
13529     then
13530           cat > conftest.lit <<EOF
13531  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13532  0010 01000000 12000000 18000000 00000000  ................
13533  0020 08000000 04080000 0044               .........D      
13534 EOF
13535 cat > conftest.big <<EOF
13536  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13537  0010 00000001 00000012 00000018 00000000  ................
13538  0020 00000008 04000000 0844               .........D      
13539 EOF
13540   # If the assembler didn't choke, and we can objdump,
13541   # and we got the correct data, then succeed.
13542   if test x$gcc_cv_objdump != x \
13543   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13544      | tail -3 > conftest.got \
13545   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13546     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13547   then
13548     gcc_cv_as_eh_frame=yes
13549   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; }; then
13555     gcc_cv_as_eh_frame=buggy
13556   else
13557     # Uh oh, what do we do now?
13558     gcc_cv_as_eh_frame=no
13559   fi
13560     else
13561       echo "configure: failed program was" >&5
13562       cat conftest.s >&5
13563     fi
13564     rm -f conftest.o conftest.s
13565   fi
13566 fi
13567 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13568 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13569
13570
13571 if test $gcc_cv_as_eh_frame = buggy; then
13572
13573 cat >>confdefs.h <<\_ACEOF
13574 #define USE_AS_TRADITIONAL_FORMAT 1
13575 _ACEOF
13576
13577 fi
13578
13579 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13580 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13581 if test "${gcc_cv_as_shf_merge+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   gcc_cv_as_shf_merge=no
13585     if test $in_tree_gas = yes; then
13586     if test $in_tree_gas_is_elf = yes \
13587   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13588   then gcc_cv_as_shf_merge=yes
13589 fi
13590   elif test x$gcc_cv_as != x; then
13591     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13592     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }
13598     then
13599         gcc_cv_as_shf_merge=yes
13600     else
13601       echo "configure: failed program was" >&5
13602       cat conftest.s >&5
13603     fi
13604     rm -f conftest.o conftest.s
13605   fi
13606 fi
13607 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13608 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13609
13610 if test $gcc_cv_as_shf_merge = no; then
13611   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13612 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13613 if test "${gcc_cv_as_shf_merge+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   gcc_cv_as_shf_merge=no
13617     if test $in_tree_gas = yes; then
13618     if test $in_tree_gas_is_elf = yes \
13619   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13620   then gcc_cv_as_shf_merge=yes
13621 fi
13622   elif test x$gcc_cv_as != x; then
13623     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13624     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }
13630     then
13631         gcc_cv_as_shf_merge=yes
13632     else
13633       echo "configure: failed program was" >&5
13634       cat conftest.s >&5
13635     fi
13636     rm -f conftest.o conftest.s
13637   fi
13638 fi
13639 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13640 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13641
13642 fi
13643
13644 cat >>confdefs.h <<_ACEOF
13645 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13646 _ACEOF
13647
13648
13649 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13650 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13651 if test "${gcc_cv_as_comdat_group+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   gcc_cv_as_comdat_group=no
13655     if test $in_tree_gas = yes; then
13656     if test $in_tree_gas_is_elf = yes \
13657   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13658   then gcc_cv_as_comdat_group=yes
13659 fi
13660   elif test x$gcc_cv_as != x; then
13661     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13662     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664   (eval $ac_try) 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }; }
13668     then
13669         gcc_cv_as_comdat_group=yes
13670     else
13671       echo "configure: failed program was" >&5
13672       cat conftest.s >&5
13673     fi
13674     rm -f conftest.o conftest.s
13675   fi
13676 fi
13677 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13678 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13679
13680 if test $gcc_cv_as_comdat_group = yes; then
13681   gcc_cv_as_comdat_group_percent=no
13682 else
13683  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13684 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13685 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13686   echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688   gcc_cv_as_comdat_group_percent=no
13689     if test $in_tree_gas = yes; then
13690     if test $in_tree_gas_is_elf = yes \
13691   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13692   then gcc_cv_as_comdat_group_percent=yes
13693 fi
13694   elif test x$gcc_cv_as != x; then
13695     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13696     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698   (eval $ac_try) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }; }
13702     then
13703         gcc_cv_as_comdat_group_percent=yes
13704     else
13705       echo "configure: failed program was" >&5
13706       cat conftest.s >&5
13707     fi
13708     rm -f conftest.o conftest.s
13709   fi
13710 fi
13711 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13712 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13713
13714 fi
13715 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13716   comdat_group=yes
13717   if test 0"$ld_date" -lt 20050308; then
13718     if test -n "$ld_date"; then
13719       # If there was date string, but was earlier than 2005-03-08, fail
13720       comdat_group=no
13721     elif test "$ld_vers_major" -lt 2; then
13722       comdat_group=no
13723     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13724       comdat_group=no
13725     fi
13726   fi
13727   if test $comdat_group = no; then
13728     gcc_cv_as_comdat_group=no
13729     gcc_cv_as_comdat_group_percent=no
13730   fi
13731 fi
13732
13733 cat >>confdefs.h <<_ACEOF
13734 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13735 _ACEOF
13736
13737
13738 # Thread-local storage - the check is heavily parametrized.
13739 conftest_s=
13740 tls_first_major=
13741 tls_first_minor=
13742 tls_as_opt=
13743 case "$target" in
13744   alpha*-*-*)
13745     conftest_s='
13746         .section ".tdata","awT",@progbits
13747 foo:    .long   25
13748         .text
13749         ldq     $27,__tls_get_addr($29)         !literal!1
13750         lda     $16,foo($29)                    !tlsgd!1
13751         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13752         ldq     $27,__tls_get_addr($29)         !literal!2
13753         lda     $16,foo($29)                    !tlsldm!2
13754         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13755         ldq     $1,foo($29)                     !gotdtprel
13756         ldah    $2,foo($29)                     !dtprelhi
13757         lda     $3,foo($2)                      !dtprello
13758         lda     $4,foo($29)                     !dtprel
13759         ldq     $1,foo($29)                     !gottprel
13760         ldah    $2,foo($29)                     !tprelhi
13761         lda     $3,foo($2)                      !tprello
13762         lda     $4,foo($29)                     !tprel'
13763         tls_first_major=2
13764         tls_first_minor=13
13765         tls_as_opt=--fatal-warnings
13766         ;;
13767   frv*-*-*)
13768     conftest_s='
13769         .section ".tdata","awT",@progbits
13770 x:      .long   25
13771         .text
13772         call    #gettlsoff(x)'
13773         tls_first_major=2
13774         tls_first_minor=14
13775         ;;
13776   i[34567]86-*-*)
13777     conftest_s='
13778         .section ".tdata","awT",@progbits
13779 foo:    .long   25
13780         .text
13781         movl    %gs:0, %eax
13782         leal    foo@TLSGD(,%ebx,1), %eax
13783         leal    foo@TLSLDM(%ebx), %eax
13784         leal    foo@DTPOFF(%eax), %edx
13785         movl    foo@GOTTPOFF(%ebx), %eax
13786         subl    foo@GOTTPOFF(%ebx), %eax
13787         addl    foo@GOTNTPOFF(%ebx), %eax
13788         movl    foo@INDNTPOFF, %eax
13789         movl    $foo@TPOFF, %eax
13790         subl    $foo@TPOFF, %eax
13791         leal    foo@NTPOFF(%ecx), %eax'
13792         tls_first_major=2
13793         tls_first_minor=14
13794         tls_as_opt=--fatal-warnings
13795         ;;
13796   x86_64-*-*)
13797     conftest_s='
13798         .section ".tdata","awT",@progbits
13799 foo:    .long   25
13800         .text
13801         movq    %fs:0, %rax
13802         leaq    foo@TLSGD(%rip), %rdi
13803         leaq    foo@TLSLD(%rip), %rdi
13804         leaq    foo@DTPOFF(%rax), %rdx
13805         movq    foo@GOTTPOFF(%rip), %rax
13806         movq    $foo@TPOFF, %rax'
13807         tls_first_major=2
13808         tls_first_minor=14
13809         tls_as_opt=--fatal-warnings
13810         ;;
13811   ia64-*-*)
13812     conftest_s='
13813         .section ".tdata","awT",@progbits
13814 foo:    data8   25
13815         .text
13816         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13817         addl    r17 = @ltoff(@dtprel(foo#)), gp
13818         addl    r18 = @ltoff(@tprel(foo#)), gp
13819         addl    r19 = @dtprel(foo#), gp
13820         adds    r21 = @dtprel(foo#), r13
13821         movl    r23 = @dtprel(foo#)
13822         addl    r20 = @tprel(foo#), gp
13823         adds    r22 = @tprel(foo#), r13
13824         movl    r24 = @tprel(foo#)'
13825         tls_first_major=2
13826         tls_first_minor=13
13827         tls_as_opt=--fatal-warnings
13828         ;;
13829   mips*-*-*)
13830     conftest_s='
13831         .section .tdata,"awT",@progbits
13832 x:
13833         .word 2
13834         .text
13835         addiu $4, $28, %tlsgd(x)
13836         addiu $4, $28, %tlsldm(x)
13837         lui $4, %dtprel_hi(x)
13838         addiu $4, $4, %dtprel_lo(x)
13839         lw $4, %gottprel(x)($28)
13840         lui $4, %tprel_hi(x)
13841         addiu $4, $4, %tprel_lo(x)'
13842         tls_first_major=2
13843         tls_first_minor=16
13844         tls_as_opt='-32 --fatal-warnings'
13845         ;;
13846   powerpc-*-*)
13847     conftest_s='
13848         .section ".tdata","awT",@progbits
13849         .align 2
13850 ld0:    .space 4
13851 ld1:    .space 4
13852 x1:     .space 4
13853 x2:     .space 4
13854 x3:     .space 4
13855         .text
13856         addi 3,31,ld0@got@tlsgd
13857         bl __tls_get_addr
13858         addi 3,31,x1@got@tlsld
13859         bl __tls_get_addr
13860         addi 9,3,x1@dtprel
13861         addis 9,3,x2@dtprel@ha
13862         addi 9,9,x2@dtprel@l
13863         lwz 9,x3@got@tprel(31)
13864         add 9,9,x@tls
13865         addi 9,2,x1@tprel
13866         addis 9,2,x2@tprel@ha
13867         addi 9,9,x2@tprel@l'
13868         tls_first_major=2
13869         tls_first_minor=14
13870         tls_as_opt="-a32 --fatal-warnings"
13871         ;;
13872   powerpc64-*-*)
13873     conftest_s='
13874         .section ".tdata","awT",@progbits
13875         .align 3
13876 ld0:    .space 8
13877 ld1:    .space 8
13878 x1:     .space 8
13879 x2:     .space 8
13880 x3:     .space 8
13881         .text
13882         addi 3,2,ld0@got@tlsgd
13883         bl .__tls_get_addr
13884         nop
13885         addi 3,2,ld1@toc
13886         bl .__tls_get_addr
13887         nop
13888         addi 3,2,x1@got@tlsld
13889         bl .__tls_get_addr
13890         nop
13891         addi 9,3,x1@dtprel
13892         bl .__tls_get_addr
13893         nop
13894         addis 9,3,x2@dtprel@ha
13895         addi 9,9,x2@dtprel@l
13896         bl .__tls_get_addr
13897         nop
13898         ld 9,x3@got@dtprel(2)
13899         add 9,9,3
13900         bl .__tls_get_addr
13901         nop'
13902         tls_first_major=2
13903         tls_first_minor=14
13904         tls_as_opt="-a64 --fatal-warnings"
13905         ;;
13906   s390-*-*)
13907     conftest_s='
13908         .section ".tdata","awT",@progbits
13909 foo:    .long   25
13910         .text
13911         .long   foo@TLSGD
13912         .long   foo@TLSLDM
13913         .long   foo@DTPOFF
13914         .long   foo@NTPOFF
13915         .long   foo@GOTNTPOFF
13916         .long   foo@INDNTPOFF
13917         l       %r1,foo@GOTNTPOFF(%r12)
13918         l       %r1,0(%r1):tls_load:foo
13919         bas     %r14,0(%r1,%r13):tls_gdcall:foo
13920         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
13921         tls_first_major=2
13922         tls_first_minor=14
13923         tls_as_opt="-m31 --fatal-warnings"
13924         ;;
13925   s390x-*-*)
13926     conftest_s='
13927         .section ".tdata","awT",@progbits
13928 foo:    .long   25
13929         .text
13930         .quad   foo@TLSGD
13931         .quad   foo@TLSLDM
13932         .quad   foo@DTPOFF
13933         .quad   foo@NTPOFF
13934         .quad   foo@GOTNTPOFF
13935         lg      %r1,foo@GOTNTPOFF(%r12)
13936         larl    %r1,foo@INDNTPOFF
13937         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
13938         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13939         tls_first_major=2
13940         tls_first_minor=14
13941         tls_as_opt="-m64 -Aesame --fatal-warnings"
13942         ;;
13943   sh-*-* | sh[34]-*-*)
13944     conftest_s='
13945         .section ".tdata","awT",@progbits
13946 foo:    .long   25
13947         .text
13948         .long   foo@TLSGD
13949         .long   foo@TLSLDM
13950         .long   foo@DTPOFF
13951         .long   foo@GOTTPOFF
13952         .long   foo@TPOFF'
13953         tls_first_major=2
13954         tls_first_minor=13
13955         tls_as_opt=--fatal-warnings
13956         ;;
13957   sparc*-*-*)
13958     case "$target" in
13959       sparc*-sun-solaris2.*)
13960         on_solaris=yes
13961         ;;
13962       *)
13963         on_solaris=no
13964         ;;
13965     esac
13966     if test x$on_solaris = xyes && test x$gas_flag = xno; then
13967       conftest_s='
13968         .section ".tdata",#alloc,#write,#tls
13969 foo:    .long   25
13970         .text
13971         sethi   %tgd_hi22(foo), %o0
13972         add     %o0, %tgd_lo10(foo), %o1
13973         add     %l7, %o1, %o0, %tgd_add(foo)
13974         call    __tls_get_addr, %tgd_call(foo)
13975         sethi   %tldm_hi22(foo), %l1
13976         add     %l1, %tldm_lo10(foo), %l2
13977         add     %l7, %l2, %o0, %tldm_add(foo)
13978         call    __tls_get_addr, %tldm_call(foo)
13979         sethi   %tldo_hix22(foo), %l3
13980         xor     %l3, %tldo_lox10(foo), %l4
13981         add     %o0, %l4, %l5, %tldo_add(foo)
13982         sethi   %tie_hi22(foo), %o3
13983         add     %o3, %tie_lo10(foo), %o3
13984         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13985         add     %g7, %o2, %o4, %tie_add(foo)
13986         sethi   %tle_hix22(foo), %l1
13987         xor     %l1, %tle_lox10(foo), %o5
13988         ld      [%g7 + %o5], %o1'
13989         tls_first_major=0
13990         tls_first_minor=0
13991     else
13992       conftest_s='
13993         .section ".tdata","awT",@progbits
13994 foo:    .long   25
13995         .text
13996         sethi   %tgd_hi22(foo), %o0
13997         add     %o0, %tgd_lo10(foo), %o1
13998         add     %l7, %o1, %o0, %tgd_add(foo)
13999         call    __tls_get_addr, %tgd_call(foo)
14000         sethi   %tldm_hi22(foo), %l1
14001         add     %l1, %tldm_lo10(foo), %l2
14002         add     %l7, %l2, %o0, %tldm_add(foo)
14003         call    __tls_get_addr, %tldm_call(foo)
14004         sethi   %tldo_hix22(foo), %l3
14005         xor     %l3, %tldo_lox10(foo), %l4
14006         add     %o0, %l4, %l5, %tldo_add(foo)
14007         sethi   %tie_hi22(foo), %o3
14008         add     %o3, %tie_lo10(foo), %o3
14009         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14010         add     %g7, %o2, %o4, %tie_add(foo)
14011         sethi   %tle_hix22(foo), %l1
14012         xor     %l1, %tle_lox10(foo), %o5
14013         ld      [%g7 + %o5], %o1'
14014         tls_first_major=2
14015         tls_first_minor=14
14016         tls_as_opt="-32 --fatal-warnings"
14017       fi
14018         ;;
14019 esac
14020 if test -z "$tls_first_major"; then
14021   : # If we don't have a check, assume no support.
14022 else
14023   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14024 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14025 if test "${gcc_cv_as_tls+set}" = set; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028   gcc_cv_as_tls=no
14029     if test $in_tree_gas = yes; then
14030     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14031   then gcc_cv_as_tls=yes
14032 fi
14033   elif test x$gcc_cv_as != x; then
14034     echo "$conftest_s" > conftest.s
14035     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }
14041     then
14042         gcc_cv_as_tls=yes
14043     else
14044       echo "configure: failed program was" >&5
14045       cat conftest.s >&5
14046     fi
14047     rm -f conftest.o conftest.s
14048   fi
14049 fi
14050 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14051 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14052 if test $gcc_cv_as_tls = yes; then
14053
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_AS_TLS 1
14056 _ACEOF
14057
14058 fi
14059 fi
14060
14061 # Target-specific assembler checks.
14062
14063 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14064 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14065 gcc_cv_ld_static_dynamic=no
14066 if test $in_tree_ld = yes ; then
14067   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14068     gcc_cv_ld_static_dynamic=yes
14069   fi
14070 elif test x$gcc_cv_ld != x; then
14071         # Check if linker supports -Bstatic/-Bdynamic option
14072         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14073           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14074                 gcc_cv_ld_static_dynamic=yes
14075         fi
14076 fi
14077 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14078
14079 cat >>confdefs.h <<\_ACEOF
14080 #define HAVE_LD_STATIC_DYNAMIC 1
14081 _ACEOF
14082
14083 fi
14084 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14085 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14086
14087 if test x"$demangler_in_ld" = xyes; then
14088   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14089 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14090   gcc_cv_ld_demangle=no
14091   if test $in_tree_ld = yes; then
14092     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 \
14093       gcc_cv_ld_demangle=yes
14094     fi
14095   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14096     # Check if the GNU linker supports --demangle option
14097     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14098       gcc_cv_ld_demangle=yes
14099     fi
14100   fi
14101   if test x"$gcc_cv_ld_demangle" = xyes; then
14102
14103 cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_LD_DEMANGLE 1
14105 _ACEOF
14106
14107   fi
14108   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14109 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14110 fi
14111
14112 case "$target" in
14113   # All TARGET_ABI_OSF targets.
14114   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14115     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14116 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14117 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   gcc_cv_as_alpha_explicit_relocs=no
14121     if test $in_tree_gas = yes; then
14122     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14123   then gcc_cv_as_alpha_explicit_relocs=yes
14124 fi
14125   elif test x$gcc_cv_as != x; then
14126     echo '      .set nomacro
14127         .text
14128         extbl   $3, $2, $3      !lituse_bytoff!1
14129         ldq     $2, a($29)      !literal!1
14130         ldq     $4, b($29)      !literal!2
14131         ldq_u   $3, 0($2)       !lituse_base!1
14132         ldq     $27, f($29)     !literal!5
14133         jsr     $26, ($27), f   !lituse_jsr!5
14134         ldah    $29, 0($26)     !gpdisp!3
14135         lda     $0, c($29)      !gprel
14136         ldah    $1, d($29)      !gprelhigh
14137         lda     $1, d($1)       !gprellow
14138         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14139     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141   (eval $ac_try) 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; }
14145     then
14146         gcc_cv_as_alpha_explicit_relocs=yes
14147     else
14148       echo "configure: failed program was" >&5
14149       cat conftest.s >&5
14150     fi
14151     rm -f conftest.o conftest.s
14152   fi
14153 fi
14154 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14155 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14156 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14157
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_AS_EXPLICIT_RELOCS 1
14160 _ACEOF
14161
14162 fi
14163     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14164 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14165 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   gcc_cv_as_alpha_jsrdirect_relocs=no
14169     if test $in_tree_gas = yes; then
14170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14171   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14172 fi
14173   elif test x$gcc_cv_as != x; then
14174     echo '      .set nomacro
14175         .text
14176         ldq     $27, a($29)     !literal!1
14177         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14178     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; }
14184     then
14185         gcc_cv_as_alpha_jsrdirect_relocs=yes
14186     else
14187       echo "configure: failed program was" >&5
14188       cat conftest.s >&5
14189     fi
14190     rm -f conftest.o conftest.s
14191   fi
14192 fi
14193 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14194 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14195 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14196
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_AS_JSRDIRECT_RELOCS 1
14199 _ACEOF
14200
14201 fi
14202     ;;
14203
14204   cris-*-*)
14205     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14206 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14207 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   gcc_cv_as_cris_no_mul_bug=no
14211     if test $in_tree_gas = yes; then
14212     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14213   then gcc_cv_as_cris_no_mul_bug=yes
14214 fi
14215   elif test x$gcc_cv_as != x; then
14216     echo '.text' > conftest.s
14217     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }
14223     then
14224         gcc_cv_as_cris_no_mul_bug=yes
14225     else
14226       echo "configure: failed program was" >&5
14227       cat conftest.s >&5
14228     fi
14229     rm -f conftest.o conftest.s
14230   fi
14231 fi
14232 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14233 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14234 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14235
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14238 _ACEOF
14239
14240 fi
14241     ;;
14242
14243   sparc*-*-*)
14244     echo "$as_me:$LINENO: checking assembler for .register" >&5
14245 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14246 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   gcc_cv_as_sparc_register_op=no
14250   if test x$gcc_cv_as != x; then
14251     echo '.register %g2, #scratch' > conftest.s
14252     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }
14258     then
14259         gcc_cv_as_sparc_register_op=yes
14260     else
14261       echo "configure: failed program was" >&5
14262       cat conftest.s >&5
14263     fi
14264     rm -f conftest.o conftest.s
14265   fi
14266 fi
14267 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14268 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14269 if test $gcc_cv_as_sparc_register_op = yes; then
14270
14271 cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14273 _ACEOF
14274
14275 fi
14276
14277     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14278 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14279 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   gcc_cv_as_sparc_relax=no
14283   if test x$gcc_cv_as != x; then
14284     echo '.text' > conftest.s
14285     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }
14291     then
14292         gcc_cv_as_sparc_relax=yes
14293     else
14294       echo "configure: failed program was" >&5
14295       cat conftest.s >&5
14296     fi
14297     rm -f conftest.o conftest.s
14298   fi
14299 fi
14300 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14301 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14302 if test $gcc_cv_as_sparc_relax = yes; then
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_AS_RELAX_OPTION 1
14306 _ACEOF
14307
14308 fi
14309
14310     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14311 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14312 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   gcc_cv_as_sparc_ua_pcrel=no
14316   if test x$gcc_cv_as != x; then
14317     echo '.text
14318 foo:
14319         nop
14320 .data
14321 .align 4
14322 .byte 0
14323 .uaword %r_disp32(foo)' > conftest.s
14324     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326   (eval $ac_try) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }
14330     then
14331         if test x$gcc_cv_ld != x \
14332        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14333          gcc_cv_as_sparc_ua_pcrel=yes
14334        fi
14335        rm -f conftest
14336     else
14337       echo "configure: failed program was" >&5
14338       cat conftest.s >&5
14339     fi
14340     rm -f conftest.o conftest.s
14341   fi
14342 fi
14343 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14344 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14345 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14346
14347 cat >>confdefs.h <<\_ACEOF
14348 #define HAVE_AS_SPARC_UA_PCREL 1
14349 _ACEOF
14350
14351
14352       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14353 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14354 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14355   echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357   gcc_cv_as_sparc_ua_pcrel_hidden=no
14358   if test x$gcc_cv_as != x; then
14359     echo '.data
14360 .align 4
14361 .byte 0x31
14362 .uaword %r_disp32(foo)
14363 .byte 0x32, 0x33, 0x34
14364 .global foo
14365 .hidden foo
14366 foo:
14367 .skip 4' > conftest.s
14368     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370   (eval $ac_try) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); }; }
14374     then
14375         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14376          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14377          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14378             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14379             if $gcc_cv_objdump -R conftest 2> /dev/null \
14380                | grep 'DISP32' > /dev/null 2>&1; then
14381                 :
14382             else
14383                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14384             fi
14385          fi
14386          rm -f conftest
14387     else
14388       echo "configure: failed program was" >&5
14389       cat conftest.s >&5
14390     fi
14391     rm -f conftest.o conftest.s
14392   fi
14393 fi
14394 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14395 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14396 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14397
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14400 _ACEOF
14401
14402 fi
14403
14404 fi # unaligned pcrel relocs
14405
14406     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14407 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14408 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14409   echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411   gcc_cv_as_sparc_offsetable_lo10=no
14412   if test x$gcc_cv_as != x; then
14413     echo '.text
14414         or %g1, %lo(ab) + 12, %g1
14415         or %g1, %lo(ab + 12), %g1' > conftest.s
14416     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }
14422     then
14423         if test x$gcc_cv_objdump != x \
14424        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14425           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14426          gcc_cv_as_sparc_offsetable_lo10=yes
14427        fi
14428     else
14429       echo "configure: failed program was" >&5
14430       cat conftest.s >&5
14431     fi
14432     rm -f conftest.o conftest.s
14433   fi
14434 fi
14435 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14436 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14437 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14438
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_AS_OFFSETABLE_LO10 1
14441 _ACEOF
14442
14443 fi
14444     ;;
14445
14446   i[34567]86-*-* | x86_64-*-*)
14447     case $target_os in
14448       cygwin* | pe | mingw32*)
14449         # Used for DWARF 2 in PE
14450         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14451 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14452 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14453   echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455   gcc_cv_as_ix86_pe_secrel32=no
14456     if test $in_tree_gas = yes; then
14457     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14458   then gcc_cv_as_ix86_pe_secrel32=yes
14459 fi
14460   elif test x$gcc_cv_as != x; then
14461     echo '.text
14462 foo:    nop
14463 .data
14464         .secrel32 foo' > conftest.s
14465     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }
14471     then
14472         if test x$gcc_cv_ld != x \
14473            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14474              gcc_cv_as_ix86_pe_secrel32=yes
14475            fi
14476            rm -f conftest
14477     else
14478       echo "configure: failed program was" >&5
14479       cat conftest.s >&5
14480     fi
14481     rm -f conftest.o conftest.s
14482   fi
14483 fi
14484 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14485 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14486 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14487
14488 cat >>confdefs.h <<\_ACEOF
14489 #define HAVE_GAS_PE_SECREL32_RELOC 1
14490 _ACEOF
14491
14492 fi
14493         ;;
14494     esac
14495
14496     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14497 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14498 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   gcc_cv_as_ix86_filds_fists=no
14502     if test $in_tree_gas = yes; then
14503     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14504   then gcc_cv_as_ix86_filds_fists=yes
14505 fi
14506   elif test x$gcc_cv_as != x; then
14507     echo 'filds mem; fists mem' > conftest.s
14508     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510   (eval $ac_try) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; }
14514     then
14515         gcc_cv_as_ix86_filds_fists=yes
14516     else
14517       echo "configure: failed program was" >&5
14518       cat conftest.s >&5
14519     fi
14520     rm -f conftest.o conftest.s
14521   fi
14522 fi
14523 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14524 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14525 if test $gcc_cv_as_ix86_filds_fists = yes; then
14526
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_GAS_FILDS_FISTS 1
14529 _ACEOF
14530
14531 fi
14532
14533     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14534 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14535 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   gcc_cv_as_ix86_cmov_sun_syntax=no
14539   if test x$gcc_cv_as != x; then
14540     echo 'cmovl.l %edx, %eax' > conftest.s
14541     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }
14547     then
14548         gcc_cv_as_ix86_cmov_sun_syntax=yes
14549     else
14550       echo "configure: failed program was" >&5
14551       cat conftest.s >&5
14552     fi
14553     rm -f conftest.o conftest.s
14554   fi
14555 fi
14556 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14557 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14558 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14559
14560 cat >>confdefs.h <<\_ACEOF
14561 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14562 _ACEOF
14563
14564 fi
14565
14566     # This one is used unconditionally by i386.[ch]; it is to be defined
14567     # to 1 if the feature is present, 0 otherwise.
14568     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14569 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14570 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573   gcc_cv_as_ix86_gotoff_in_data=no
14574     if test $in_tree_gas = yes; then
14575     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14576   then gcc_cv_as_ix86_gotoff_in_data=yes
14577 fi
14578   elif test x$gcc_cv_as != x; then
14579     echo '      .text
14580 .L0:
14581         nop
14582         .data
14583         .long .L0@GOTOFF' > conftest.s
14584     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }
14590     then
14591         gcc_cv_as_ix86_gotoff_in_data=yes
14592     else
14593       echo "configure: failed program was" >&5
14594       cat conftest.s >&5
14595     fi
14596     rm -f conftest.o conftest.s
14597   fi
14598 fi
14599 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14600 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14601
14602
14603 cat >>confdefs.h <<_ACEOF
14604 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14605 _ACEOF
14606
14607     ;;
14608
14609   ia64*-*-*)
14610     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14611 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14612 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14616     if test $in_tree_gas = yes; then
14617     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14618   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14619 fi
14620   elif test x$gcc_cv_as != x; then
14621     echo '      .text
14622         addl r15 = @ltoffx(x#), gp
14623         ;;
14624         ld8.mov r16 = [r15], x#' > conftest.s
14625     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; }
14631     then
14632         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14633     else
14634       echo "configure: failed program was" >&5
14635       cat conftest.s >&5
14636     fi
14637     rm -f conftest.o conftest.s
14638   fi
14639 fi
14640 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14641 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14642 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14643
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14646 _ACEOF
14647
14648 fi
14649
14650     ;;
14651
14652   powerpc*-*-*)
14653     case $target in
14654       *-*-aix*) conftest_s='    .machine "pwr5"
14655         .csect .text[PR]
14656         mfcr 3,128';;
14657       *-*-darwin*)
14658         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14659 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14660 if test "${gcc_cv_as_machine_directive+set}" = set; then
14661   echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663   gcc_cv_as_machine_directive=no
14664   if test x$gcc_cv_as != x; then
14665     echo '      .machine ppc7400' > conftest.s
14666     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668   (eval $ac_try) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; }
14672     then
14673         gcc_cv_as_machine_directive=yes
14674     else
14675       echo "configure: failed program was" >&5
14676       cat conftest.s >&5
14677     fi
14678     rm -f conftest.o conftest.s
14679   fi
14680 fi
14681 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14682 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14683
14684         if test x$gcc_cv_as_machine_directive != xyes; then
14685           echo "*** This target requires an assembler supporting \".machine\"" >&2
14686           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14687           test x$build = x$target && exit 1
14688         fi
14689         conftest_s='    .text
14690         mfcr r3,128';;
14691       *) conftest_s='   .machine power4
14692         .text
14693         mfcr 3,128';;
14694     esac
14695
14696     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14697 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14698 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   gcc_cv_as_powerpc_mfcrf=no
14702     if test $in_tree_gas = yes; then
14703     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14704   then gcc_cv_as_powerpc_mfcrf=yes
14705 fi
14706   elif test x$gcc_cv_as != x; then
14707     echo "$conftest_s" > conftest.s
14708     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; }
14714     then
14715         gcc_cv_as_powerpc_mfcrf=yes
14716     else
14717       echo "configure: failed program was" >&5
14718       cat conftest.s >&5
14719     fi
14720     rm -f conftest.o conftest.s
14721   fi
14722 fi
14723 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14724 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14725 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14726
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_AS_MFCRF 1
14729 _ACEOF
14730
14731 fi
14732
14733     case $target in
14734       *-*-aix*) conftest_s='    .machine "pwr5"
14735         .csect .text[PR]
14736         popcntb 3,3';;
14737       *) conftest_s='   .machine power5
14738         .text
14739         popcntb 3,3';;
14740     esac
14741
14742     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14743 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14744 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   gcc_cv_as_powerpc_popcntb=no
14748     if test $in_tree_gas = yes; then
14749     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14750   then gcc_cv_as_powerpc_popcntb=yes
14751 fi
14752   elif test x$gcc_cv_as != x; then
14753     echo "$conftest_s" > conftest.s
14754     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }
14760     then
14761         gcc_cv_as_powerpc_popcntb=yes
14762     else
14763       echo "configure: failed program was" >&5
14764       cat conftest.s >&5
14765     fi
14766     rm -f conftest.o conftest.s
14767   fi
14768 fi
14769 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14770 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14771 if test $gcc_cv_as_powerpc_popcntb = yes; then
14772
14773 cat >>confdefs.h <<\_ACEOF
14774 #define HAVE_AS_POPCNTB 1
14775 _ACEOF
14776
14777 fi
14778
14779     case $target in
14780       *-*-aix*) conftest_s='    .csect .text[PR]
14781 LCF..0:
14782         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
14783       *-*-darwin*)
14784         conftest_s='    .text
14785 LCF0:
14786         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
14787       *) conftest_s='   .text
14788 .LCF0:
14789         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
14790     esac
14791
14792     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
14793 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
14794 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   gcc_cv_as_powerpc_rel16=no
14798     if test $in_tree_gas = yes; then
14799     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14800   then gcc_cv_as_powerpc_rel16=yes
14801 fi
14802   elif test x$gcc_cv_as != x; then
14803     echo "$conftest_s" > conftest.s
14804     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }
14810     then
14811         gcc_cv_as_powerpc_rel16=yes
14812     else
14813       echo "configure: failed program was" >&5
14814       cat conftest.s >&5
14815     fi
14816     rm -f conftest.o conftest.s
14817   fi
14818 fi
14819 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
14820 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
14821 if test $gcc_cv_as_powerpc_rel16 = yes; then
14822
14823 cat >>confdefs.h <<\_ACEOF
14824 #define HAVE_AS_REL16 1
14825 _ACEOF
14826
14827 fi
14828     ;;
14829
14830   mips*-*-*)
14831     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14832 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14833 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836   gcc_cv_as_mips_explicit_relocs=no
14837     if test $in_tree_gas = yes; then
14838     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14839   then gcc_cv_as_mips_explicit_relocs=yes
14840 fi
14841   elif test x$gcc_cv_as != x; then
14842     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
14843     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }
14849     then
14850         gcc_cv_as_mips_explicit_relocs=yes
14851     else
14852       echo "configure: failed program was" >&5
14853       cat conftest.s >&5
14854     fi
14855     rm -f conftest.o conftest.s
14856   fi
14857 fi
14858 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14859 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14860 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14861   if test x$target_cpu_default = x
14862        then target_cpu_default=MASK_EXPLICIT_RELOCS
14863        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14864        fi
14865 fi
14866
14867     if test x$gas_flag = xyes \
14868        || test x"$host" != x"$build" \
14869        || test ! -x "$gcc_cv_as" \
14870        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14871       :
14872     else
14873       echo "*** This configuration requires the GNU assembler" >&2
14874       exit 1
14875     fi
14876     ;;
14877 esac
14878 # ??? Not all targets support dwarf2 debug_line, even within a version
14879 # of gas.  Moreover, we need to emit a valid instruction to trigger any
14880 # info to the output file.  So, as supported targets are added to gas 2.11,
14881 # add some instruction here to (also) show we expect this might work.
14882 # ??? Once 2.11 is released, probably need to add first known working
14883 # version to the per-target configury.
14884 case "$target" in
14885   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14886   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14887   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14888     insn="nop"
14889     ;;
14890   ia64*-*-* | s390*-*-*)
14891     insn="nop 0"
14892     ;;
14893   mmix-*-*)
14894     insn="swym 0"
14895     ;;
14896 esac
14897 if test x"$insn" != x; then
14898  conftest_s="\
14899         .file 1 \"conftest.s\"
14900         .loc 1 3 0
14901         $insn"
14902  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14903 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14904 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   gcc_cv_as_dwarf2_debug_line=no
14908     if test $in_tree_gas = yes; then
14909     if test $in_tree_gas_is_elf = yes \
14910   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14911   then gcc_cv_as_dwarf2_debug_line=yes
14912 fi
14913   elif test x$gcc_cv_as != x; then
14914     echo "$conftest_s" > conftest.s
14915     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }
14921     then
14922         if test x$gcc_cv_objdump != x \
14923    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14924       | grep debug_line > /dev/null 2>&1; then
14925      gcc_cv_as_dwarf2_debug_line=yes
14926    fi
14927     else
14928       echo "configure: failed program was" >&5
14929       cat conftest.s >&5
14930     fi
14931     rm -f conftest.o conftest.s
14932   fi
14933 fi
14934 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14935 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14936
14937
14938 # The .debug_line file table must be in the exact order that
14939 # we specified the files, since these indices are also used
14940 # by DW_AT_decl_file.  Approximate this test by testing if
14941 # the assembler bitches if the same index is assigned twice.
14942  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14943 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14944 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   gcc_cv_as_dwarf2_file_buggy=no
14948   if test x$gcc_cv_as != x; then
14949     echo '      .file 1 "foo.s"
14950         .file 1 "bar.s"' > conftest.s
14951     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953   (eval $ac_try) 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); }; }
14957     then
14958         gcc_cv_as_dwarf2_file_buggy=yes
14959     else
14960       echo "configure: failed program was" >&5
14961       cat conftest.s >&5
14962     fi
14963     rm -f conftest.o conftest.s
14964   fi
14965 fi
14966 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14967 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14968
14969
14970  if test $gcc_cv_as_dwarf2_debug_line = yes \
14971  && test $gcc_cv_as_dwarf2_file_buggy = no; then
14972
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14975 _ACEOF
14976
14977  fi
14978
14979  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14980 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14981 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   gcc_cv_as_gdwarf2_flag=no
14985     if test $in_tree_gas = yes; then
14986     if test $in_tree_gas_is_elf = yes \
14987   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14988   then gcc_cv_as_gdwarf2_flag=yes
14989 fi
14990   elif test x$gcc_cv_as != x; then
14991     echo "$insn" > conftest.s
14992     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994   (eval $ac_try) 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); }; }
14998     then
14999         gcc_cv_as_gdwarf2_flag=yes
15000     else
15001       echo "configure: failed program was" >&5
15002       cat conftest.s >&5
15003     fi
15004     rm -f conftest.o conftest.s
15005   fi
15006 fi
15007 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15008 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15009 if test $gcc_cv_as_gdwarf2_flag = yes; then
15010
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15013 _ACEOF
15014
15015 fi
15016
15017  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15018 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15019 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   gcc_cv_as_gstabs_flag=no
15023     if test $in_tree_gas = yes; then
15024     if test $in_tree_gas_is_elf = yes \
15025   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15026   then gcc_cv_as_gstabs_flag=yes
15027 fi
15028   elif test x$gcc_cv_as != x; then
15029     echo "$insn" > conftest.s
15030     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032   (eval $ac_try) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; }
15036     then
15037         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15038    # and warns about it, but still exits successfully.  So check for
15039    # this.
15040    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }
15046    then :
15047    else gcc_cv_as_gstabs_flag=yes
15048    fi
15049     else
15050       echo "configure: failed program was" >&5
15051       cat conftest.s >&5
15052     fi
15053     rm -f conftest.o conftest.s
15054   fi
15055 fi
15056 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15057 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15058 if test $gcc_cv_as_gstabs_flag = yes; then
15059
15060 cat >>confdefs.h <<\_ACEOF
15061 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15062 _ACEOF
15063
15064 fi
15065 fi
15066
15067 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15068 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15069 gcc_cv_ld_ro_rw_mix=unknown
15070 if test $in_tree_ld = yes ; then
15071   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 \
15072      && test $in_tree_ld_is_elf = yes; then
15073     gcc_cv_ld_ro_rw_mix=read-write
15074   fi
15075 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15076   echo '.section myfoosect, "a"' > conftest1.s
15077   echo '.section myfoosect, "aw"' > conftest2.s
15078   echo '.byte 1' >> conftest2.s
15079   echo '.section myfoosect, "a"' > conftest3.s
15080   echo '.byte 0' >> conftest3.s
15081   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15082      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15083      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15084      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15085         conftest2.o conftest3.o > /dev/null 2>&1; then
15086     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15087                          | sed -e '/myfoosect/!d' -e N`
15088     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15089       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15090         gcc_cv_ld_ro_rw_mix=read-only
15091       else
15092         gcc_cv_ld_ro_rw_mix=read-write
15093       fi
15094     fi
15095   fi
15096   rm -f conftest.* conftest[123].*
15097 fi
15098 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15099
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15102 _ACEOF
15103
15104 fi
15105 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15106 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15107
15108 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15109 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15110 gcc_cv_ld_eh_frame_hdr=no
15111 if test $in_tree_ld = yes ; then
15112   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 \
15113      && test $in_tree_ld_is_elf = yes; then
15114     gcc_cv_ld_eh_frame_hdr=yes
15115   fi
15116 elif test x$gcc_cv_ld != x; then
15117         # Check if linker supports --eh-frame-hdr option
15118         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15119                 gcc_cv_ld_eh_frame_hdr=yes
15120         fi
15121 fi
15122
15123 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15124
15125 cat >>confdefs.h <<\_ACEOF
15126 #define HAVE_LD_EH_FRAME_HDR 1
15127 _ACEOF
15128
15129 fi
15130 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15131 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15132
15133 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15134 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15135 gcc_cv_ld_pie=no
15136 if test $in_tree_ld = yes ; then
15137   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 \
15138      && test $in_tree_ld_is_elf = yes; then
15139     gcc_cv_ld_pie=yes
15140   fi
15141 elif test x$gcc_cv_ld != x; then
15142         # Check if linker supports -pie option
15143         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15144                 gcc_cv_ld_pie=yes
15145         fi
15146 fi
15147 if test x"$gcc_cv_ld_pie" = xyes; then
15148
15149 cat >>confdefs.h <<\_ACEOF
15150 #define HAVE_LD_PIE 1
15151 _ACEOF
15152
15153 fi
15154 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15155 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15156
15157 # --------
15158 # UNSORTED
15159 # --------
15160
15161 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15162 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15163 if test "${gcc_cv_ld_as_needed+set}" = set; then
15164   echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166   gcc_cv_ld_as_needed=no
15167 if test $in_tree_ld = yes ; then
15168   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 \
15169      && test $in_tree_ld_is_elf = yes; then
15170     gcc_cv_ld_as_needed=yes
15171   fi
15172 elif test x$gcc_cv_ld != x; then
15173         # Check if linker supports --as-needed and --no-as-needed options
15174         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15175                 gcc_cv_ld_as_needed=yes
15176         fi
15177 fi
15178
15179 fi
15180 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15181 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15182 if test x"$gcc_cv_ld_as_needed" = xyes; then
15183
15184 cat >>confdefs.h <<\_ACEOF
15185 #define HAVE_LD_AS_NEEDED 1
15186 _ACEOF
15187
15188 fi
15189
15190 case "$target" in
15191   powerpc64*-*-linux*)
15192     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15193 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15194 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   gcc_cv_ld_no_dot_syms=no
15198     if test $in_tree_ld = yes ; then
15199       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
15200         gcc_cv_ld_no_dot_syms=yes
15201       fi
15202     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15203       cat > conftest1.s <<EOF
15204         .text
15205         bl .foo
15206 EOF
15207       cat > conftest2.s <<EOF
15208         .section ".opd","aw"
15209         .align 3
15210         .globl foo
15211         .type foo,@function
15212 foo:
15213         .quad .LEfoo,.TOC.@tocbase,0
15214         .text
15215 .LEfoo:
15216         blr
15217         .size foo,.-.LEfoo
15218 EOF
15219       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15220          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15221          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15222         gcc_cv_ld_no_dot_syms=yes
15223       fi
15224       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15225     fi
15226
15227 fi
15228 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15229 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15230     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15231
15232 cat >>confdefs.h <<\_ACEOF
15233 #define HAVE_LD_NO_DOT_SYMS 1
15234 _ACEOF
15235
15236     fi
15237     ;;
15238 esac
15239
15240 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15241 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15242 if test "${gcc_cv_ld_sysroot+set}" = set; then
15243   echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245   gcc_cv_ld_sysroot=no
15246   if test $in_tree_ld = yes ; then
15247       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
15248         gcc_cv_ld_sysroot=yes
15249       fi
15250   elif test x$gcc_cv_ld != x; then
15251     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15252       gcc_cv_ld_sysroot=yes
15253     fi
15254   fi
15255 fi
15256 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15257 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15258 if test x"$gcc_cv_ld_sysroot" = xyes; then
15259
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_LD_SYSROOT 1
15262 _ACEOF
15263
15264 fi
15265
15266 if test x$with_sysroot = x && test x$host = x$target \
15267    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15268
15269 cat >>confdefs.h <<_ACEOF
15270 #define PREFIX_INCLUDE_DIR "$prefix/include"
15271 _ACEOF
15272
15273 fi
15274
15275 # Find out what GC implementation we want, or may, use.
15276
15277 # Check whether --with-gc or --without-gc was given.
15278 if test "${with_gc+set}" = set; then
15279   withval="$with_gc"
15280   case "$withval" in
15281   page)
15282     GGC=ggc-$withval
15283     ;;
15284   zone)
15285     GGC=ggc-$withval
15286
15287 cat >>confdefs.h <<\_ACEOF
15288 #define GGC_ZONE 1
15289 _ACEOF
15290
15291     ;;
15292   *)
15293     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15294 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15295    { (exit 1); exit 1; }; }
15296     ;;
15297 esac
15298 else
15299   GGC=ggc-page
15300 fi;
15301
15302 echo "Using $GGC for garbage collection."
15303
15304 # Use the system's zlib library.
15305 zlibdir=-L../zlib
15306 zlibinc="-I\$(srcdir)/../zlib"
15307
15308 # Check whether --with-system-zlib or --without-system-zlib was given.
15309 if test "${with_system_zlib+set}" = set; then
15310   withval="$with_system_zlib"
15311   zlibdir=
15312 zlibinc=
15313
15314 fi;
15315
15316
15317
15318
15319 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15320 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15321     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15322 if test "${enable_maintainer_mode+set}" = set; then
15323   enableval="$enable_maintainer_mode"
15324   maintainer_mode=$enableval
15325 else
15326   maintainer_mode=no
15327 fi;
15328
15329 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15330 echo "${ECHO_T}$maintainer_mode" >&6
15331
15332 if test "$maintainer_mode" = "yes"; then
15333   MAINT=''
15334 else
15335   MAINT='#'
15336 fi
15337
15338 # --------------
15339 # Language hooks
15340 # --------------
15341
15342 # Make empty files to contain the specs and options for each language.
15343 # Then add #include lines to for a compiler that has specs and/or options.
15344
15345 lang_opt_files=
15346 lang_specs_files=
15347 lang_tree_files=
15348 for subdir in . $subdirs
15349 do
15350         if test -f $srcdir/$subdir/lang.opt; then
15351             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15352         fi
15353         if test -f $srcdir/$subdir/lang-specs.h; then
15354             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15355         fi
15356         if test -f $srcdir/$subdir/$subdir-tree.def; then
15357             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15358         fi
15359 done
15360
15361 # These (without "all_") are set in each config-lang.in.
15362 # `language' must be a single word so is spelled singularly.
15363 all_languages=
15364 all_boot_languages=
15365 all_compilers=
15366 all_stagestuff=
15367 all_outputs='Makefile gccbug mklibgcc libada-mk'
15368 # List of language makefile fragments.
15369 all_lang_makefrags=
15370 # List of language subdirectory makefiles.  Deprecated.
15371 all_lang_makefiles=
15372 # Files for gengtype
15373 all_gtfiles="$target_gtfiles"
15374 # Files for gengtype with language
15375 all_gtfiles_files_langs=
15376 all_gtfiles_files_files=
15377
15378 # Add the language fragments.
15379 # Languages are added via two mechanisms.  Some information must be
15380 # recorded in makefile variables, these are defined in config-lang.in.
15381 # We accumulate them and plug them into the main Makefile.
15382 # The other mechanism is a set of hooks for each of the main targets
15383 # like `clean', `install', etc.
15384
15385 language_hooks="Make-hooks"
15386
15387 for s in $subdirs
15388 do
15389                 language=
15390                 boot_language=
15391                 compilers=
15392                 stagestuff=
15393                 outputs=
15394                 gtfiles=
15395                 . ${srcdir}/$s/config-lang.in
15396                 if test "x$language" = x
15397                 then
15398                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15399                         exit 1
15400                 fi
15401                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15402                 if test -f ${srcdir}/$s/Makefile.in
15403                 then all_lang_makefiles="$s/Makefile"
15404                 fi
15405                 all_languages="$all_languages $language"
15406                 if test "x$boot_language" = xyes
15407                 then
15408                         all_boot_languages="$all_boot_languages $language"
15409                 fi
15410                 all_compilers="$all_compilers $compilers"
15411                 all_stagestuff="$all_stagestuff $stagestuff"
15412                 all_outputs="$all_outputs $outputs"
15413                 all_gtfiles="$all_gtfiles $gtfiles"
15414                 for f in $gtfiles
15415                 do
15416                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15417                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15418                 done
15419 done
15420
15421 # Pick up gtfiles for c
15422 gtfiles=
15423 s="c"
15424 . ${srcdir}/c-config-lang.in
15425 all_gtfiles="$all_gtfiles $gtfiles"
15426 for f in $gtfiles
15427 do
15428         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15429         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15430 done
15431
15432 check_languages=
15433 for language in $all_languages
15434 do
15435                 check_languages="$check_languages check-$language"
15436 done
15437
15438 # We link each language in with a set of hooks, reached indirectly via
15439 # lang.${target}.
15440
15441 rm -f Make-hooks
15442 touch Make-hooks
15443 target_list="all.build all.cross start.encap rest.encap tags \
15444         install-normal install-common install-man \
15445         uninstall info man srcextra srcman srcinfo \
15446         mostlyclean clean distclean maintainer-clean \
15447         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15448 for t in $target_list
15449 do
15450         x=
15451         for lang in $all_languages
15452         do
15453                         x="$x $lang.$t"
15454         done
15455         echo "lang.$t: $x" >> Make-hooks
15456 done
15457
15458 # --------
15459 # UNSORTED
15460 # --------
15461
15462 # Create .gdbinit.
15463
15464 echo "dir ." > .gdbinit
15465 echo "dir ${srcdir}" >> .gdbinit
15466 if test x$gdb_needs_out_file_path = xyes
15467 then
15468         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15469 fi
15470 if test "x$subdirs" != x; then
15471         for s in $subdirs
15472         do
15473                 echo "dir ${srcdir}/$s" >> .gdbinit
15474         done
15475 fi
15476 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15477
15478 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15479 # absolute path for gcc_tooldir based on inserting the number of up-directory
15480 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15481 # $(libsubdir)/@(unlibsubdir) based path.
15482 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15483 # make and thus we'd get different behavior depending on where we built the
15484 # sources.
15485 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15486     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15487 else
15488 # An explanation of the sed strings:
15489 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15490 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15491 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15492 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15493 #
15494 # (*) Note this pattern overwrites the first character of the string
15495 # with a forward slash if one is not already present.  This is not a
15496 # problem because the exact names of the sub-directories concerned is
15497 # unimportant, just the number of them matters.
15498 #
15499 # The practical upshot of these patterns is like this:
15500 #
15501 #  prefix     exec_prefix        result
15502 #  ------     -----------        ------
15503 #   /foo        /foo/bar          ../
15504 #   /foo/       /foo/bar          ../
15505 #   /foo        /foo/bar/         ../
15506 #   /foo/       /foo/bar/         ../
15507 #   /foo        /foo/bar/ugg      ../../
15508 #
15509     dollar='$$'
15510     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15511 fi
15512
15513
15514
15515 # Find a directory in which to install a shared libgcc.
15516
15517 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15518 if test "${enable_version_specific_runtime_libs+set}" = set; then
15519   enableval="$enable_version_specific_runtime_libs"
15520
15521 fi;
15522
15523
15524 # Check whether --with-slibdir or --without-slibdir was given.
15525 if test "${with_slibdir+set}" = set; then
15526   withval="$with_slibdir"
15527   slibdir="$with_slibdir"
15528 else
15529   if test "${enable_version_specific_runtime_libs+set}" = set; then
15530   slibdir='$(libsubdir)'
15531 elif test "$host" != "$target"; then
15532   slibdir='$(build_tooldir)/lib'
15533 else
15534   slibdir='$(libdir)'
15535 fi
15536 fi;
15537
15538
15539 objdir=`${PWDCMD-pwd}`
15540
15541
15542 # Substitute configuration variables
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606 # Echo link setup.
15607 if test x${build} = x${host} ; then
15608   if test x${host} = x${target} ; then
15609     echo "Links are now set up to build a native compiler for ${target}." 1>&2
15610   else
15611     echo "Links are now set up to build a cross-compiler" 1>&2
15612     echo " from ${host} to ${target}." 1>&2
15613   fi
15614 else
15615   if test x${host} = x${target} ; then
15616     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15617     echo " for ${target}." 1>&2
15618   else
15619     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15620     echo " from ${host} to ${target}." 1>&2
15621   fi
15622 fi
15623
15624
15625
15626
15627 # Configure the subdirectories
15628 # AC_CONFIG_SUBDIRS($subdirs)
15629
15630 # Create the Makefile
15631 # and configure language subdirectories
15632           ac_config_files="$ac_config_files $all_outputs"
15633
15634
15635           ac_config_commands="$ac_config_commands default"
15636
15637 cat >confcache <<\_ACEOF
15638 # This file is a shell script that caches the results of configure
15639 # tests run on this system so they can be shared between configure
15640 # scripts and configure runs, see configure's option --config-cache.
15641 # It is not useful on other systems.  If it contains results you don't
15642 # want to keep, you may remove or edit it.
15643 #
15644 # config.status only pays attention to the cache file if you give it
15645 # the --recheck option to rerun configure.
15646 #
15647 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15648 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15649 # following values.
15650
15651 _ACEOF
15652
15653 # The following way of writing the cache mishandles newlines in values,
15654 # but we know of no workaround that is simple, portable, and efficient.
15655 # So, don't put newlines in cache variables' values.
15656 # Ultrix sh set writes to stderr and can't be redirected directly,
15657 # and sets the high bit in the cache file unless we assign to the vars.
15658 {
15659   (set) 2>&1 |
15660     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15661     *ac_space=\ *)
15662       # `set' does not quote correctly, so add quotes (double-quote
15663       # substitution turns \\\\ into \\, and sed turns \\ into \).
15664       sed -n \
15665         "s/'/'\\\\''/g;
15666           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15667       ;;
15668     *)
15669       # `set' quotes correctly as required by POSIX, so do not add quotes.
15670       sed -n \
15671         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15672       ;;
15673     esac;
15674 } |
15675   sed '
15676      t clear
15677      : clear
15678      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15679      t end
15680      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15681      : end' >>confcache
15682 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15683   if test -w $cache_file; then
15684     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15685     cat confcache >$cache_file
15686   else
15687     echo "not updating unwritable cache $cache_file"
15688   fi
15689 fi
15690 rm -f confcache
15691
15692 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15693 # Let make expand exec_prefix.
15694 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15695
15696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15698 # trailing colons and then remove the whole line if VPATH becomes empty
15699 # (actually we leave an empty line to preserve line numbers).
15700 if test "x$srcdir" = x.; then
15701   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15702 s/:*\$(srcdir):*/:/;
15703 s/:*\${srcdir}:*/:/;
15704 s/:*@srcdir@:*/:/;
15705 s/^\([^=]*=[     ]*\):*/\1/;
15706 s/:*$//;
15707 s/^[^=]*=[       ]*$//;
15708 }'
15709 fi
15710
15711 DEFS=-DHAVE_CONFIG_H
15712
15713 ac_libobjs=
15714 ac_ltlibobjs=
15715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15716   # 1. Remove the extension, and $U if already installed.
15717   ac_i=`echo "$ac_i" |
15718          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15719   # 2. Add them.
15720   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15721   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15722 done
15723 LIBOBJS=$ac_libobjs
15724
15725 LTLIBOBJS=$ac_ltlibobjs
15726
15727
15728
15729 : ${CONFIG_STATUS=./config.status}
15730 ac_clean_files_save=$ac_clean_files
15731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15732 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15733 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15734 cat >$CONFIG_STATUS <<_ACEOF
15735 #! $SHELL
15736 # Generated by $as_me.
15737 # Run this file to recreate the current configuration.
15738 # Compiler output produced by configure, useful for debugging
15739 # configure, is in config.log if it exists.
15740
15741 debug=false
15742 ac_cs_recheck=false
15743 ac_cs_silent=false
15744 SHELL=\${CONFIG_SHELL-$SHELL}
15745 _ACEOF
15746
15747 cat >>$CONFIG_STATUS <<\_ACEOF
15748 ## --------------------- ##
15749 ## M4sh Initialization.  ##
15750 ## --------------------- ##
15751
15752 # Be Bourne compatible
15753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15754   emulate sh
15755   NULLCMD=:
15756   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15757   # is contrary to our usage.  Disable this feature.
15758   alias -g '${1+"$@"}'='"$@"'
15759 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15760   set -o posix
15761 fi
15762 DUALCASE=1; export DUALCASE # for MKS sh
15763
15764 # Support unset when possible.
15765 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15766   as_unset=unset
15767 else
15768   as_unset=false
15769 fi
15770
15771
15772 # Work around bugs in pre-3.0 UWIN ksh.
15773 $as_unset ENV MAIL MAILPATH
15774 PS1='$ '
15775 PS2='> '
15776 PS4='+ '
15777
15778 # NLS nuisances.
15779 for as_var in \
15780   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15781   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15782   LC_TELEPHONE LC_TIME
15783 do
15784   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15785     eval $as_var=C; export $as_var
15786   else
15787     $as_unset $as_var
15788   fi
15789 done
15790
15791 # Required to use basename.
15792 if expr a : '\(a\)' >/dev/null 2>&1; then
15793   as_expr=expr
15794 else
15795   as_expr=false
15796 fi
15797
15798 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15799   as_basename=basename
15800 else
15801   as_basename=false
15802 fi
15803
15804
15805 # Name of the executable.
15806 as_me=`$as_basename "$0" ||
15807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15808          X"$0" : 'X\(//\)$' \| \
15809          X"$0" : 'X\(/\)$' \| \
15810          .     : '\(.\)' 2>/dev/null ||
15811 echo X/"$0" |
15812     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15813           /^X\/\(\/\/\)$/{ s//\1/; q; }
15814           /^X\/\(\/\).*/{ s//\1/; q; }
15815           s/.*/./; q'`
15816
15817
15818 # PATH needs CR, and LINENO needs CR and PATH.
15819 # Avoid depending upon Character Ranges.
15820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15823 as_cr_digits='0123456789'
15824 as_cr_alnum=$as_cr_Letters$as_cr_digits
15825
15826 # The user is always right.
15827 if test "${PATH_SEPARATOR+set}" != set; then
15828   echo "#! /bin/sh" >conf$$.sh
15829   echo  "exit 0"   >>conf$$.sh
15830   chmod +x conf$$.sh
15831   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15832     PATH_SEPARATOR=';'
15833   else
15834     PATH_SEPARATOR=:
15835   fi
15836   rm -f conf$$.sh
15837 fi
15838
15839
15840   as_lineno_1=$LINENO
15841   as_lineno_2=$LINENO
15842   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15843   test "x$as_lineno_1" != "x$as_lineno_2" &&
15844   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15845   # Find who we are.  Look in the path if we contain no path at all
15846   # relative or not.
15847   case $0 in
15848     *[\\/]* ) as_myself=$0 ;;
15849     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15851 do
15852   IFS=$as_save_IFS
15853   test -z "$as_dir" && as_dir=.
15854   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15855 done
15856
15857        ;;
15858   esac
15859   # We did not find ourselves, most probably we were run as `sh COMMAND'
15860   # in which case we are not to be found in the path.
15861   if test "x$as_myself" = x; then
15862     as_myself=$0
15863   fi
15864   if test ! -f "$as_myself"; then
15865     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15866 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15867    { (exit 1); exit 1; }; }
15868   fi
15869   case $CONFIG_SHELL in
15870   '')
15871     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15873 do
15874   IFS=$as_save_IFS
15875   test -z "$as_dir" && as_dir=.
15876   for as_base in sh bash ksh sh5; do
15877          case $as_dir in
15878          /*)
15879            if ("$as_dir/$as_base" -c '
15880   as_lineno_1=$LINENO
15881   as_lineno_2=$LINENO
15882   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15883   test "x$as_lineno_1" != "x$as_lineno_2" &&
15884   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15885              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15886              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15887              CONFIG_SHELL=$as_dir/$as_base
15888              export CONFIG_SHELL
15889              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15890            fi;;
15891          esac
15892        done
15893 done
15894 ;;
15895   esac
15896
15897   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15898   # uniformly replaced by the line number.  The first 'sed' inserts a
15899   # line-number line before each line; the second 'sed' does the real
15900   # work.  The second script uses 'N' to pair each line-number line
15901   # with the numbered line, and appends trailing '-' during
15902   # substitution so that $LINENO is not a special case at line end.
15903   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15904   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15905   sed '=' <$as_myself |
15906     sed '
15907       N
15908       s,$,-,
15909       : loop
15910       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15911       t loop
15912       s,-$,,
15913       s,^['$as_cr_digits']*\n,,
15914     ' >$as_me.lineno &&
15915   chmod +x $as_me.lineno ||
15916     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15917 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15918    { (exit 1); exit 1; }; }
15919
15920   # Don't try to exec as it changes $[0], causing all sort of problems
15921   # (the dirname of $[0] is not the place where we might find the
15922   # original and so on.  Autoconf is especially sensible to this).
15923   . ./$as_me.lineno
15924   # Exit status is that of the last command.
15925   exit
15926 }
15927
15928
15929 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15930   *c*,-n*) ECHO_N= ECHO_C='
15931 ' ECHO_T='      ' ;;
15932   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15933   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15934 esac
15935
15936 if expr a : '\(a\)' >/dev/null 2>&1; then
15937   as_expr=expr
15938 else
15939   as_expr=false
15940 fi
15941
15942 rm -f conf$$ conf$$.exe conf$$.file
15943 echo >conf$$.file
15944 if ln -s conf$$.file conf$$ 2>/dev/null; then
15945   # We could just check for DJGPP; but this test a) works b) is more generic
15946   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15947   if test -f conf$$.exe; then
15948     # Don't use ln at all; we don't have any links
15949     as_ln_s='cp -p'
15950   else
15951     as_ln_s='ln -s'
15952   fi
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15954   as_ln_s=ln
15955 else
15956   as_ln_s='cp -p'
15957 fi
15958 rm -f conf$$ conf$$.exe conf$$.file
15959
15960 if mkdir -p . 2>/dev/null; then
15961   as_mkdir_p=:
15962 else
15963   test -d ./-p && rmdir ./-p
15964   as_mkdir_p=false
15965 fi
15966
15967 as_executable_p="test -f"
15968
15969 # Sed expression to map a string onto a valid CPP name.
15970 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15971
15972 # Sed expression to map a string onto a valid variable name.
15973 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15974
15975
15976 # IFS
15977 # We need space, tab and new line, in precisely that order.
15978 as_nl='
15979 '
15980 IFS="   $as_nl"
15981
15982 # CDPATH.
15983 $as_unset CDPATH
15984
15985 exec 6>&1
15986
15987 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15988 # report actual input values of CONFIG_FILES etc. instead of their
15989 # values after options handling.  Logging --version etc. is OK.
15990 exec 5>>config.log
15991 {
15992   echo
15993   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15994 ## Running $as_me. ##
15995 _ASBOX
15996 } >&5
15997 cat >&5 <<_CSEOF
15998
15999 This file was extended by $as_me, which was
16000 generated by GNU Autoconf 2.59.  Invocation command line was
16001
16002   CONFIG_FILES    = $CONFIG_FILES
16003   CONFIG_HEADERS  = $CONFIG_HEADERS
16004   CONFIG_LINKS    = $CONFIG_LINKS
16005   CONFIG_COMMANDS = $CONFIG_COMMANDS
16006   $ $0 $@
16007
16008 _CSEOF
16009 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16010 echo >&5
16011 _ACEOF
16012
16013 # Files that config.status was made for.
16014 if test -n "$ac_config_files"; then
16015   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16016 fi
16017
16018 if test -n "$ac_config_headers"; then
16019   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16020 fi
16021
16022 if test -n "$ac_config_links"; then
16023   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16024 fi
16025
16026 if test -n "$ac_config_commands"; then
16027   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16028 fi
16029
16030 cat >>$CONFIG_STATUS <<\_ACEOF
16031
16032 ac_cs_usage="\
16033 \`$as_me' instantiates files from templates according to the
16034 current configuration.
16035
16036 Usage: $0 [OPTIONS] [FILE]...
16037
16038   -h, --help       print this help, then exit
16039   -V, --version    print version number, then exit
16040   -q, --quiet      do not print progress messages
16041   -d, --debug      don't remove temporary files
16042       --recheck    update $as_me by reconfiguring in the same conditions
16043   --file=FILE[:TEMPLATE]
16044                    instantiate the configuration file FILE
16045   --header=FILE[:TEMPLATE]
16046                    instantiate the configuration header FILE
16047
16048 Configuration files:
16049 $config_files
16050
16051 Configuration headers:
16052 $config_headers
16053
16054 Configuration commands:
16055 $config_commands
16056
16057 Report bugs to <bug-autoconf@gnu.org>."
16058 _ACEOF
16059
16060 cat >>$CONFIG_STATUS <<_ACEOF
16061 ac_cs_version="\\
16062 config.status
16063 configured by $0, generated by GNU Autoconf 2.59,
16064   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16065
16066 Copyright (C) 2003 Free Software Foundation, Inc.
16067 This config.status script is free software; the Free Software Foundation
16068 gives unlimited permission to copy, distribute and modify it."
16069 srcdir=$srcdir
16070 _ACEOF
16071
16072 cat >>$CONFIG_STATUS <<\_ACEOF
16073 # If no file are specified by the user, then we need to provide default
16074 # value.  By we need to know if files were specified by the user.
16075 ac_need_defaults=:
16076 while test $# != 0
16077 do
16078   case $1 in
16079   --*=*)
16080     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16081     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16082     ac_shift=:
16083     ;;
16084   -*)
16085     ac_option=$1
16086     ac_optarg=$2
16087     ac_shift=shift
16088     ;;
16089   *) # This is not an option, so the user has probably given explicit
16090      # arguments.
16091      ac_option=$1
16092      ac_need_defaults=false;;
16093   esac
16094
16095   case $ac_option in
16096   # Handling of the options.
16097 _ACEOF
16098 cat >>$CONFIG_STATUS <<\_ACEOF
16099   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16100     ac_cs_recheck=: ;;
16101   --version | --vers* | -V )
16102     echo "$ac_cs_version"; exit 0 ;;
16103   --he | --h)
16104     # Conflict between --help and --header
16105     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16106 Try \`$0 --help' for more information." >&5
16107 echo "$as_me: error: ambiguous option: $1
16108 Try \`$0 --help' for more information." >&2;}
16109    { (exit 1); exit 1; }; };;
16110   --help | --hel | -h )
16111     echo "$ac_cs_usage"; exit 0 ;;
16112   --debug | --d* | -d )
16113     debug=: ;;
16114   --file | --fil | --fi | --f )
16115     $ac_shift
16116     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16117     ac_need_defaults=false;;
16118   --header | --heade | --head | --hea )
16119     $ac_shift
16120     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16121     ac_need_defaults=false;;
16122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16124     ac_cs_silent=: ;;
16125
16126   # This is an error.
16127   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16128 Try \`$0 --help' for more information." >&5
16129 echo "$as_me: error: unrecognized option: $1
16130 Try \`$0 --help' for more information." >&2;}
16131    { (exit 1); exit 1; }; } ;;
16132
16133   *) ac_config_targets="$ac_config_targets $1" ;;
16134
16135   esac
16136   shift
16137 done
16138
16139 ac_configure_extra_args=
16140
16141 if $ac_cs_silent; then
16142   exec 6>/dev/null
16143   ac_configure_extra_args="$ac_configure_extra_args --silent"
16144 fi
16145
16146 _ACEOF
16147 cat >>$CONFIG_STATUS <<_ACEOF
16148 if \$ac_cs_recheck; then
16149   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16150   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16151 fi
16152
16153 _ACEOF
16154
16155 cat >>$CONFIG_STATUS <<_ACEOF
16156 #
16157 # INIT-COMMANDS section.
16158 #
16159
16160 subdirs='$subdirs'
16161
16162 _ACEOF
16163
16164
16165
16166 cat >>$CONFIG_STATUS <<\_ACEOF
16167 for ac_config_target in $ac_config_targets
16168 do
16169   case "$ac_config_target" in
16170   # Handling of arguments.
16171   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16172   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16173   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16174   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16175 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16176    { (exit 1); exit 1; }; };;
16177   esac
16178 done
16179
16180 # If the user did not use the arguments to specify the items to instantiate,
16181 # then the envvar interface is used.  Set only those that are not.
16182 # We use the long form for the default assignment because of an extremely
16183 # bizarre bug on SunOS 4.1.3.
16184 if $ac_need_defaults; then
16185   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16186   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16187   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16188 fi
16189
16190 # Have a temporary directory for convenience.  Make it in the build tree
16191 # simply because there is no reason to put it here, and in addition,
16192 # creating and moving files from /tmp can sometimes cause problems.
16193 # Create a temporary directory, and hook for its removal unless debugging.
16194 $debug ||
16195 {
16196   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16197   trap '{ (exit 1); exit 1; }' 1 2 13 15
16198 }
16199
16200 # Create a (secure) tmp directory for tmp files.
16201
16202 {
16203   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16204   test -n "$tmp" && test -d "$tmp"
16205 }  ||
16206 {
16207   tmp=./confstat$$-$RANDOM
16208   (umask 077 && mkdir $tmp)
16209 } ||
16210 {
16211    echo "$me: cannot create a temporary directory in ." >&2
16212    { (exit 1); exit 1; }
16213 }
16214
16215 _ACEOF
16216
16217 cat >>$CONFIG_STATUS <<_ACEOF
16218
16219 #
16220 # CONFIG_FILES section.
16221 #
16222
16223 # No need to generate the scripts if there are no CONFIG_FILES.
16224 # This happens for instance when ./config.status config.h
16225 if test -n "\$CONFIG_FILES"; then
16226   # Protect against being on the right side of a sed subst in config.status.
16227   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16228    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16229 s,@SHELL@,$SHELL,;t t
16230 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16231 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16232 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16233 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16234 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16235 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16236 s,@exec_prefix@,$exec_prefix,;t t
16237 s,@prefix@,$prefix,;t t
16238 s,@program_transform_name@,$program_transform_name,;t t
16239 s,@bindir@,$bindir,;t t
16240 s,@sbindir@,$sbindir,;t t
16241 s,@libexecdir@,$libexecdir,;t t
16242 s,@datadir@,$datadir,;t t
16243 s,@sysconfdir@,$sysconfdir,;t t
16244 s,@sharedstatedir@,$sharedstatedir,;t t
16245 s,@localstatedir@,$localstatedir,;t t
16246 s,@libdir@,$libdir,;t t
16247 s,@includedir@,$includedir,;t t
16248 s,@oldincludedir@,$oldincludedir,;t t
16249 s,@infodir@,$infodir,;t t
16250 s,@mandir@,$mandir,;t t
16251 s,@build_alias@,$build_alias,;t t
16252 s,@host_alias@,$host_alias,;t t
16253 s,@target_alias@,$target_alias,;t t
16254 s,@DEFS@,$DEFS,;t t
16255 s,@ECHO_C@,$ECHO_C,;t t
16256 s,@ECHO_N@,$ECHO_N,;t t
16257 s,@ECHO_T@,$ECHO_T,;t t
16258 s,@LIBS@,$LIBS,;t t
16259 s,@build@,$build,;t t
16260 s,@build_cpu@,$build_cpu,;t t
16261 s,@build_vendor@,$build_vendor,;t t
16262 s,@build_os@,$build_os,;t t
16263 s,@host@,$host,;t t
16264 s,@host_cpu@,$host_cpu,;t t
16265 s,@host_vendor@,$host_vendor,;t t
16266 s,@host_os@,$host_os,;t t
16267 s,@target@,$target,;t t
16268 s,@target_cpu@,$target_cpu,;t t
16269 s,@target_vendor@,$target_vendor,;t t
16270 s,@target_os@,$target_os,;t t
16271 s,@target_noncanonical@,$target_noncanonical,;t t
16272 s,@build_subdir@,$build_subdir,;t t
16273 s,@host_subdir@,$host_subdir,;t t
16274 s,@target_subdir@,$target_subdir,;t t
16275 s,@GENINSRC@,$GENINSRC,;t t
16276 s,@CC@,$CC,;t t
16277 s,@CFLAGS@,$CFLAGS,;t t
16278 s,@LDFLAGS@,$LDFLAGS,;t t
16279 s,@CPPFLAGS@,$CPPFLAGS,;t t
16280 s,@ac_ct_CC@,$ac_ct_CC,;t t
16281 s,@EXEEXT@,$EXEEXT,;t t
16282 s,@OBJEXT@,$OBJEXT,;t t
16283 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16284 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16285 s,@CPP@,$CPP,;t t
16286 s,@EGREP@,$EGREP,;t t
16287 s,@strict1_warn@,$strict1_warn,;t t
16288 s,@warn_cflags@,$warn_cflags,;t t
16289 s,@WERROR@,$WERROR,;t t
16290 s,@nocommon_flag@,$nocommon_flag,;t t
16291 s,@TREEBROWSER@,$TREEBROWSER,;t t
16292 s,@valgrind_path@,$valgrind_path,;t t
16293 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16294 s,@valgrind_command@,$valgrind_command,;t t
16295 s,@coverage_flags@,$coverage_flags,;t t
16296 s,@enable_multilib@,$enable_multilib,;t t
16297 s,@enable_shared@,$enable_shared,;t t
16298 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16299 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16300 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16301 s,@onestep@,$onestep,;t t
16302 s,@SET_MAKE@,$SET_MAKE,;t t
16303 s,@AWK@,$AWK,;t t
16304 s,@LN_S@,$LN_S,;t t
16305 s,@LN@,$LN,;t t
16306 s,@RANLIB@,$RANLIB,;t t
16307 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16308 s,@ranlib_flags@,$ranlib_flags,;t t
16309 s,@INSTALL@,$INSTALL,;t t
16310 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16311 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16312 s,@make_compare_target@,$make_compare_target,;t t
16313 s,@have_mktemp_command@,$have_mktemp_command,;t t
16314 s,@MAKEINFO@,$MAKEINFO,;t t
16315 s,@BUILD_INFO@,$BUILD_INFO,;t t
16316 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16317 s,@FLEX@,$FLEX,;t t
16318 s,@BISON@,$BISON,;t t
16319 s,@NM@,$NM,;t t
16320 s,@AR@,$AR,;t t
16321 s,@stage1_cflags@,$stage1_cflags,;t t
16322 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16323 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16324 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16325 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16326 s,@LIBICONV@,$LIBICONV,;t t
16327 s,@LTLIBICONV@,$LTLIBICONV,;t t
16328 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16329 s,@manext@,$manext,;t t
16330 s,@objext@,$objext,;t t
16331 s,@gthread_flags@,$gthread_flags,;t t
16332 s,@extra_modes_file@,$extra_modes_file,;t t
16333 s,@extra_opt_files@,$extra_opt_files,;t t
16334 s,@USE_NLS@,$USE_NLS,;t t
16335 s,@LIBINTL@,$LIBINTL,;t t
16336 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16337 s,@INCINTL@,$INCINTL,;t t
16338 s,@XGETTEXT@,$XGETTEXT,;t t
16339 s,@GMSGFMT@,$GMSGFMT,;t t
16340 s,@POSUB@,$POSUB,;t t
16341 s,@CATALOGS@,$CATALOGS,;t t
16342 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16343 s,@CROSS@,$CROSS,;t t
16344 s,@ALL@,$ALL,;t t
16345 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16346 s,@inhibit_libc@,$inhibit_libc,;t t
16347 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16348 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16349 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16350 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16351 s,@collect2@,$collect2,;t t
16352 s,@libgcc_visibility@,$libgcc_visibility,;t t
16353 s,@GGC@,$GGC,;t t
16354 s,@zlibdir@,$zlibdir,;t t
16355 s,@zlibinc@,$zlibinc,;t t
16356 s,@MAINT@,$MAINT,;t t
16357 s,@gcc_tooldir@,$gcc_tooldir,;t t
16358 s,@dollar@,$dollar,;t t
16359 s,@slibdir@,$slibdir,;t t
16360 s,@objdir@,$objdir,;t t
16361 s,@subdirs@,$subdirs,;t t
16362 s,@srcdir@,$srcdir,;t t
16363 s,@all_boot_languages@,$all_boot_languages,;t t
16364 s,@all_compilers@,$all_compilers,;t t
16365 s,@all_gtfiles@,$all_gtfiles,;t t
16366 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16367 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16368 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16369 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16370 s,@all_languages@,$all_languages,;t t
16371 s,@all_stagestuff@,$all_stagestuff,;t t
16372 s,@build_exeext@,$build_exeext,;t t
16373 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16374 s,@build_xm_file_list@,$build_xm_file_list,;t t
16375 s,@build_xm_include_list@,$build_xm_include_list,;t t
16376 s,@build_xm_defines@,$build_xm_defines,;t t
16377 s,@check_languages@,$check_languages,;t t
16378 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16379 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16380 s,@cpp_install_dir@,$cpp_install_dir,;t t
16381 s,@xmake_file@,$xmake_file,;t t
16382 s,@tmake_file@,$tmake_file,;t t
16383 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16384 s,@extra_headers_list@,$extra_headers_list,;t t
16385 s,@extra_objs@,$extra_objs,;t t
16386 s,@extra_parts@,$extra_parts,;t t
16387 s,@extra_passes@,$extra_passes,;t t
16388 s,@extra_programs@,$extra_programs,;t t
16389 s,@float_h_file@,$float_h_file,;t t
16390 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16391 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16392 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16393 s,@host_exeext@,$host_exeext,;t t
16394 s,@host_xm_file_list@,$host_xm_file_list,;t t
16395 s,@host_xm_include_list@,$host_xm_include_list,;t t
16396 s,@host_xm_defines@,$host_xm_defines,;t t
16397 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16398 s,@install@,$install,;t t
16399 s,@lang_opt_files@,$lang_opt_files,;t t
16400 s,@lang_specs_files@,$lang_specs_files,;t t
16401 s,@lang_tree_files@,$lang_tree_files,;t t
16402 s,@local_prefix@,$local_prefix,;t t
16403 s,@md_file@,$md_file,;t t
16404 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16405 s,@out_file@,$out_file,;t t
16406 s,@out_object_file@,$out_object_file,;t t
16407 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16408 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16409 s,@thread_file@,$thread_file,;t t
16410 s,@tm_file_list@,$tm_file_list,;t t
16411 s,@tm_include_list@,$tm_include_list,;t t
16412 s,@tm_defines@,$tm_defines,;t t
16413 s,@tm_p_file_list@,$tm_p_file_list,;t t
16414 s,@tm_p_include_list@,$tm_p_include_list,;t t
16415 s,@xm_file_list@,$xm_file_list,;t t
16416 s,@xm_include_list@,$xm_include_list,;t t
16417 s,@xm_defines@,$xm_defines,;t t
16418 s,@c_target_objs@,$c_target_objs,;t t
16419 s,@cxx_target_objs@,$cxx_target_objs,;t t
16420 s,@target_cpu_default@,$target_cpu_default,;t t
16421 s,@GMPLIBS@,$GMPLIBS,;t t
16422 s,@GMPINC@,$GMPINC,;t t
16423 s,@LIBOBJS@,$LIBOBJS,;t t
16424 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16425 /@language_hooks@/r $language_hooks
16426 s,@language_hooks@,,;t t
16427 CEOF
16428
16429 _ACEOF
16430
16431   cat >>$CONFIG_STATUS <<\_ACEOF
16432   # Split the substitutions into bite-sized pieces for seds with
16433   # small command number limits, like on Digital OSF/1 and HP-UX.
16434   ac_max_sed_lines=48
16435   ac_sed_frag=1 # Number of current file.
16436   ac_beg=1 # First line for current file.
16437   ac_end=$ac_max_sed_lines # Line after last line for current file.
16438   ac_more_lines=:
16439   ac_sed_cmds=
16440   while $ac_more_lines; do
16441     if test $ac_beg -gt 1; then
16442       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16443     else
16444       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16445     fi
16446     if test ! -s $tmp/subs.frag; then
16447       ac_more_lines=false
16448     else
16449       # The purpose of the label and of the branching condition is to
16450       # speed up the sed processing (if there are no `@' at all, there
16451       # is no need to browse any of the substitutions).
16452       # These are the two extra sed commands mentioned above.
16453       (echo ':t
16454   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16455       if test -z "$ac_sed_cmds"; then
16456         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16457       else
16458         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16459       fi
16460       ac_sed_frag=`expr $ac_sed_frag + 1`
16461       ac_beg=$ac_end
16462       ac_end=`expr $ac_end + $ac_max_sed_lines`
16463     fi
16464   done
16465   if test -z "$ac_sed_cmds"; then
16466     ac_sed_cmds=cat
16467   fi
16468 fi # test -n "$CONFIG_FILES"
16469
16470 _ACEOF
16471 cat >>$CONFIG_STATUS <<\_ACEOF
16472 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16473   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16474   case $ac_file in
16475   - | *:- | *:-:* ) # input from stdin
16476         cat >$tmp/stdin
16477         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16478         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16479   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16480         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16481   * )   ac_file_in=$ac_file.in ;;
16482   esac
16483
16484   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16485   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487          X"$ac_file" : 'X\(//\)[^/]' \| \
16488          X"$ac_file" : 'X\(//\)$' \| \
16489          X"$ac_file" : 'X\(/\)' \| \
16490          .     : '\(.\)' 2>/dev/null ||
16491 echo X"$ac_file" |
16492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16493           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16494           /^X\(\/\/\)$/{ s//\1/; q; }
16495           /^X\(\/\).*/{ s//\1/; q; }
16496           s/.*/./; q'`
16497   { if $as_mkdir_p; then
16498     mkdir -p "$ac_dir"
16499   else
16500     as_dir="$ac_dir"
16501     as_dirs=
16502     while test ! -d "$as_dir"; do
16503       as_dirs="$as_dir $as_dirs"
16504       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16506          X"$as_dir" : 'X\(//\)[^/]' \| \
16507          X"$as_dir" : 'X\(//\)$' \| \
16508          X"$as_dir" : 'X\(/\)' \| \
16509          .     : '\(.\)' 2>/dev/null ||
16510 echo X"$as_dir" |
16511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16512           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16513           /^X\(\/\/\)$/{ s//\1/; q; }
16514           /^X\(\/\).*/{ s//\1/; q; }
16515           s/.*/./; q'`
16516     done
16517     test ! -n "$as_dirs" || mkdir $as_dirs
16518   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16519 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16520    { (exit 1); exit 1; }; }; }
16521
16522   ac_builddir=.
16523
16524 if test "$ac_dir" != .; then
16525   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16526   # A "../" for each directory in $ac_dir_suffix.
16527   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16528 else
16529   ac_dir_suffix= ac_top_builddir=
16530 fi
16531
16532 case $srcdir in
16533   .)  # No --srcdir option.  We are building in place.
16534     ac_srcdir=.
16535     if test -z "$ac_top_builddir"; then
16536        ac_top_srcdir=.
16537     else
16538        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16539     fi ;;
16540   [\\/]* | ?:[\\/]* )  # Absolute path.
16541     ac_srcdir=$srcdir$ac_dir_suffix;
16542     ac_top_srcdir=$srcdir ;;
16543   *) # Relative path.
16544     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16545     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16546 esac
16547
16548 # Do not use `cd foo && pwd` to compute absolute paths, because
16549 # the directories may not exist.
16550 case `pwd` in
16551 .) ac_abs_builddir="$ac_dir";;
16552 *)
16553   case "$ac_dir" in
16554   .) ac_abs_builddir=`pwd`;;
16555   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16556   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16557   esac;;
16558 esac
16559 case $ac_abs_builddir in
16560 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16561 *)
16562   case ${ac_top_builddir}. in
16563   .) ac_abs_top_builddir=$ac_abs_builddir;;
16564   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16565   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16566   esac;;
16567 esac
16568 case $ac_abs_builddir in
16569 .) ac_abs_srcdir=$ac_srcdir;;
16570 *)
16571   case $ac_srcdir in
16572   .) ac_abs_srcdir=$ac_abs_builddir;;
16573   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16574   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16575   esac;;
16576 esac
16577 case $ac_abs_builddir in
16578 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16579 *)
16580   case $ac_top_srcdir in
16581   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16582   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16583   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16584   esac;;
16585 esac
16586
16587
16588
16589   if test x"$ac_file" != x-; then
16590     { echo "$as_me:$LINENO: creating $ac_file" >&5
16591 echo "$as_me: creating $ac_file" >&6;}
16592     rm -f "$ac_file"
16593   fi
16594   # Let's still pretend it is `configure' which instantiates (i.e., don't
16595   # use $as_me), people would be surprised to read:
16596   #    /* config.h.  Generated by config.status.  */
16597   if test x"$ac_file" = x-; then
16598     configure_input=
16599   else
16600     configure_input="$ac_file.  "
16601   fi
16602   configure_input=$configure_input"Generated from `echo $ac_file_in |
16603                                      sed 's,.*/,,'` by configure."
16604
16605   # First look for the input files in the build tree, otherwise in the
16606   # src tree.
16607   ac_file_inputs=`IFS=:
16608     for f in $ac_file_in; do
16609       case $f in
16610       -) echo $tmp/stdin ;;
16611       [\\/$]*)
16612          # Absolute (can't be DOS-style, as IFS=:)
16613          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16614 echo "$as_me: error: cannot find input file: $f" >&2;}
16615    { (exit 1); exit 1; }; }
16616          echo "$f";;
16617       *) # Relative
16618          if test -f "$f"; then
16619            # Build tree
16620            echo "$f"
16621          elif test -f "$srcdir/$f"; then
16622            # Source tree
16623            echo "$srcdir/$f"
16624          else
16625            # /dev/null tree
16626            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16627 echo "$as_me: error: cannot find input file: $f" >&2;}
16628    { (exit 1); exit 1; }; }
16629          fi;;
16630       esac
16631     done` || { (exit 1); exit 1; }
16632 _ACEOF
16633 cat >>$CONFIG_STATUS <<_ACEOF
16634   sed "$ac_vpsub
16635 $extrasub
16636 _ACEOF
16637 cat >>$CONFIG_STATUS <<\_ACEOF
16638 :t
16639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16640 s,@configure_input@,$configure_input,;t t
16641 s,@srcdir@,$ac_srcdir,;t t
16642 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16643 s,@top_srcdir@,$ac_top_srcdir,;t t
16644 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16645 s,@builddir@,$ac_builddir,;t t
16646 s,@abs_builddir@,$ac_abs_builddir,;t t
16647 s,@top_builddir@,$ac_top_builddir,;t t
16648 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16649 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16650   rm -f $tmp/stdin
16651   if test x"$ac_file" != x-; then
16652     mv $tmp/out $ac_file
16653   else
16654     cat $tmp/out
16655     rm -f $tmp/out
16656   fi
16657
16658 done
16659 _ACEOF
16660 cat >>$CONFIG_STATUS <<\_ACEOF
16661
16662 #
16663 # CONFIG_HEADER section.
16664 #
16665
16666 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16667 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16668 #
16669 # ac_d sets the value in "#define NAME VALUE" lines.
16670 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16671 ac_dB='[         ].*$,\1#\2'
16672 ac_dC=' '
16673 ac_dD=',;t'
16674 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16675 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16676 ac_uB='$,\1#\2define\3'
16677 ac_uC=' '
16678 ac_uD=',;t'
16679
16680 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16681   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16682   case $ac_file in
16683   - | *:- | *:-:* ) # input from stdin
16684         cat >$tmp/stdin
16685         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16686         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16687   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16688         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16689   * )   ac_file_in=$ac_file.in ;;
16690   esac
16691
16692   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16693 echo "$as_me: creating $ac_file" >&6;}
16694
16695   # First look for the input files in the build tree, otherwise in the
16696   # src tree.
16697   ac_file_inputs=`IFS=:
16698     for f in $ac_file_in; do
16699       case $f in
16700       -) echo $tmp/stdin ;;
16701       [\\/$]*)
16702          # Absolute (can't be DOS-style, as IFS=:)
16703          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16704 echo "$as_me: error: cannot find input file: $f" >&2;}
16705    { (exit 1); exit 1; }; }
16706          # Do quote $f, to prevent DOS paths from being IFS'd.
16707          echo "$f";;
16708       *) # Relative
16709          if test -f "$f"; then
16710            # Build tree
16711            echo "$f"
16712          elif test -f "$srcdir/$f"; then
16713            # Source tree
16714            echo "$srcdir/$f"
16715          else
16716            # /dev/null tree
16717            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16718 echo "$as_me: error: cannot find input file: $f" >&2;}
16719    { (exit 1); exit 1; }; }
16720          fi;;
16721       esac
16722     done` || { (exit 1); exit 1; }
16723   # Remove the trailing spaces.
16724   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16725
16726 _ACEOF
16727
16728 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16729 # `conftest.undefs', that substitutes the proper values into
16730 # config.h.in to produce config.h.  The first handles `#define'
16731 # templates, and the second `#undef' templates.
16732 # And first: Protect against being on the right side of a sed subst in
16733 # config.status.  Protect against being in an unquoted here document
16734 # in config.status.
16735 rm -f conftest.defines conftest.undefs
16736 # Using a here document instead of a string reduces the quoting nightmare.
16737 # Putting comments in sed scripts is not portable.
16738 #
16739 # `end' is used to avoid that the second main sed command (meant for
16740 # 0-ary CPP macros) applies to n-ary macro definitions.
16741 # See the Autoconf documentation for `clear'.
16742 cat >confdef2sed.sed <<\_ACEOF
16743 s/[\\&,]/\\&/g
16744 s,[\\$`],\\&,g
16745 t clear
16746 : clear
16747 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16748 t end
16749 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16750 : end
16751 _ACEOF
16752 # If some macros were called several times there might be several times
16753 # the same #defines, which is useless.  Nevertheless, we may not want to
16754 # sort them, since we want the *last* AC-DEFINE to be honored.
16755 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16756 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16757 rm -f confdef2sed.sed
16758
16759 # This sed command replaces #undef with comments.  This is necessary, for
16760 # example, in the case of _POSIX_SOURCE, which is predefined and required
16761 # on some systems where configure will not decide to define it.
16762 cat >>conftest.undefs <<\_ACEOF
16763 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16764 _ACEOF
16765
16766 # Break up conftest.defines because some shells have a limit on the size
16767 # of here documents, and old seds have small limits too (100 cmds).
16768 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16769 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16770 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16771 echo '  :' >>$CONFIG_STATUS
16772 rm -f conftest.tail
16773 while grep . conftest.defines >/dev/null
16774 do
16775   # Write a limited-size here document to $tmp/defines.sed.
16776   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16777   # Speed up: don't consider the non `#define' lines.
16778   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16779   # Work around the forget-to-reset-the-flag bug.
16780   echo 't clr' >>$CONFIG_STATUS
16781   echo ': clr' >>$CONFIG_STATUS
16782   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16783   echo 'CEOF
16784   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16785   rm -f $tmp/in
16786   mv $tmp/out $tmp/in
16787 ' >>$CONFIG_STATUS
16788   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16789   rm -f conftest.defines
16790   mv conftest.tail conftest.defines
16791 done
16792 rm -f conftest.defines
16793 echo '  fi # grep' >>$CONFIG_STATUS
16794 echo >>$CONFIG_STATUS
16795
16796 # Break up conftest.undefs because some shells have a limit on the size
16797 # of here documents, and old seds have small limits too (100 cmds).
16798 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16799 rm -f conftest.tail
16800 while grep . conftest.undefs >/dev/null
16801 do
16802   # Write a limited-size here document to $tmp/undefs.sed.
16803   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16804   # Speed up: don't consider the non `#undef'
16805   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16806   # Work around the forget-to-reset-the-flag bug.
16807   echo 't clr' >>$CONFIG_STATUS
16808   echo ': clr' >>$CONFIG_STATUS
16809   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16810   echo 'CEOF
16811   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16812   rm -f $tmp/in
16813   mv $tmp/out $tmp/in
16814 ' >>$CONFIG_STATUS
16815   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16816   rm -f conftest.undefs
16817   mv conftest.tail conftest.undefs
16818 done
16819 rm -f conftest.undefs
16820
16821 cat >>$CONFIG_STATUS <<\_ACEOF
16822   # Let's still pretend it is `configure' which instantiates (i.e., don't
16823   # use $as_me), people would be surprised to read:
16824   #    /* config.h.  Generated by config.status.  */
16825   if test x"$ac_file" = x-; then
16826     echo "/* Generated by configure.  */" >$tmp/config.h
16827   else
16828     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16829   fi
16830   cat $tmp/in >>$tmp/config.h
16831   rm -f $tmp/in
16832   if test x"$ac_file" != x-; then
16833     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16834       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16835 echo "$as_me: $ac_file is unchanged" >&6;}
16836     else
16837       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839          X"$ac_file" : 'X\(//\)[^/]' \| \
16840          X"$ac_file" : 'X\(//\)$' \| \
16841          X"$ac_file" : 'X\(/\)' \| \
16842          .     : '\(.\)' 2>/dev/null ||
16843 echo X"$ac_file" |
16844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16846           /^X\(\/\/\)$/{ s//\1/; q; }
16847           /^X\(\/\).*/{ s//\1/; q; }
16848           s/.*/./; q'`
16849       { if $as_mkdir_p; then
16850     mkdir -p "$ac_dir"
16851   else
16852     as_dir="$ac_dir"
16853     as_dirs=
16854     while test ! -d "$as_dir"; do
16855       as_dirs="$as_dir $as_dirs"
16856       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16858          X"$as_dir" : 'X\(//\)[^/]' \| \
16859          X"$as_dir" : 'X\(//\)$' \| \
16860          X"$as_dir" : 'X\(/\)' \| \
16861          .     : '\(.\)' 2>/dev/null ||
16862 echo X"$as_dir" |
16863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16865           /^X\(\/\/\)$/{ s//\1/; q; }
16866           /^X\(\/\).*/{ s//\1/; q; }
16867           s/.*/./; q'`
16868     done
16869     test ! -n "$as_dirs" || mkdir $as_dirs
16870   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16872    { (exit 1); exit 1; }; }; }
16873
16874       rm -f $ac_file
16875       mv $tmp/config.h $ac_file
16876     fi
16877   else
16878     cat $tmp/config.h
16879     rm -f $tmp/config.h
16880   fi
16881 done
16882 _ACEOF
16883 cat >>$CONFIG_STATUS <<\_ACEOF
16884
16885 #
16886 # CONFIG_COMMANDS section.
16887 #
16888 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16889   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16890   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16891   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893          X"$ac_dest" : 'X\(//\)[^/]' \| \
16894          X"$ac_dest" : 'X\(//\)$' \| \
16895          X"$ac_dest" : 'X\(/\)' \| \
16896          .     : '\(.\)' 2>/dev/null ||
16897 echo X"$ac_dest" |
16898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16900           /^X\(\/\/\)$/{ s//\1/; q; }
16901           /^X\(\/\).*/{ s//\1/; q; }
16902           s/.*/./; q'`
16903   { if $as_mkdir_p; then
16904     mkdir -p "$ac_dir"
16905   else
16906     as_dir="$ac_dir"
16907     as_dirs=
16908     while test ! -d "$as_dir"; do
16909       as_dirs="$as_dir $as_dirs"
16910       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16912          X"$as_dir" : 'X\(//\)[^/]' \| \
16913          X"$as_dir" : 'X\(//\)$' \| \
16914          X"$as_dir" : 'X\(/\)' \| \
16915          .     : '\(.\)' 2>/dev/null ||
16916 echo X"$as_dir" |
16917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16919           /^X\(\/\/\)$/{ s//\1/; q; }
16920           /^X\(\/\).*/{ s//\1/; q; }
16921           s/.*/./; q'`
16922     done
16923     test ! -n "$as_dirs" || mkdir $as_dirs
16924   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16926    { (exit 1); exit 1; }; }; }
16927
16928   ac_builddir=.
16929
16930 if test "$ac_dir" != .; then
16931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16932   # A "../" for each directory in $ac_dir_suffix.
16933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16934 else
16935   ac_dir_suffix= ac_top_builddir=
16936 fi
16937
16938 case $srcdir in
16939   .)  # No --srcdir option.  We are building in place.
16940     ac_srcdir=.
16941     if test -z "$ac_top_builddir"; then
16942        ac_top_srcdir=.
16943     else
16944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16945     fi ;;
16946   [\\/]* | ?:[\\/]* )  # Absolute path.
16947     ac_srcdir=$srcdir$ac_dir_suffix;
16948     ac_top_srcdir=$srcdir ;;
16949   *) # Relative path.
16950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16952 esac
16953
16954 # Do not use `cd foo && pwd` to compute absolute paths, because
16955 # the directories may not exist.
16956 case `pwd` in
16957 .) ac_abs_builddir="$ac_dir";;
16958 *)
16959   case "$ac_dir" in
16960   .) ac_abs_builddir=`pwd`;;
16961   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16962   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16963   esac;;
16964 esac
16965 case $ac_abs_builddir in
16966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16967 *)
16968   case ${ac_top_builddir}. in
16969   .) ac_abs_top_builddir=$ac_abs_builddir;;
16970   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16971   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16972   esac;;
16973 esac
16974 case $ac_abs_builddir in
16975 .) ac_abs_srcdir=$ac_srcdir;;
16976 *)
16977   case $ac_srcdir in
16978   .) ac_abs_srcdir=$ac_abs_builddir;;
16979   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16980   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16981   esac;;
16982 esac
16983 case $ac_abs_builddir in
16984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16985 *)
16986   case $ac_top_srcdir in
16987   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16988   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16989   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16990   esac;;
16991 esac
16992
16993
16994   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16995 echo "$as_me: executing $ac_dest commands" >&6;}
16996   case $ac_dest in
16997     default )
16998 case ${CONFIG_HEADERS} in
16999   *auto-host.h:config.in*)
17000   echo > cstamp-h ;;
17001 esac
17002 # Make sure all the subdirs exist.
17003 for d in $subdirs doc build
17004 do
17005     test -d $d || mkdir $d
17006 done
17007 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17008 # bootstrapping and the installation procedure can still use
17009 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17010 # FLAGS_TO_PASS has been modified to solve the problem there.
17011 # This is virtually a duplicate of what happens in configure.lang; we do
17012 # an extra check to make sure this only happens if ln -s can be used.
17013 case "$LN_S" in
17014   *-s*)
17015     for d in ${subdirs} ; do
17016         STARTDIR=`${PWDCMD-pwd}`
17017         cd $d
17018         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17019         do
17020                 rm -f $t
17021                 $LN_S ../$t $t 2>/dev/null
17022         done
17023         cd $STARTDIR
17024     done
17025   ;;
17026 esac
17027  ;;
17028   esac
17029 done
17030 _ACEOF
17031
17032 cat >>$CONFIG_STATUS <<\_ACEOF
17033
17034 { (exit 0); exit 0; }
17035 _ACEOF
17036 chmod +x $CONFIG_STATUS
17037 ac_clean_files=$ac_clean_files_save
17038
17039
17040 # configure is writing to config.log, and then calls config.status.
17041 # config.status does its own redirection, appending to config.log.
17042 # Unfortunately, on DOS this fails, as config.log is still kept open
17043 # by configure, so config.status won't be able to write to it; its
17044 # output is simply discarded.  So we exec the FD to /dev/null,
17045 # effectively closing config.log, so it can be properly (re)opened and
17046 # appended to by config.status.  When coming back to configure, we
17047 # need to make the FD available again.
17048 if test "$no_create" != yes; then
17049   ac_cs_success=:
17050   ac_config_status_args=
17051   test "$silent" = yes &&
17052     ac_config_status_args="$ac_config_status_args --quiet"
17053   exec 5>/dev/null
17054   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17055   exec 5>>config.log
17056   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17057   # would make configure fail if this is the last instruction.
17058   $ac_cs_success || { (exit 1); exit 1; }
17059 fi
17060