OSDN Git Service

* tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
[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 gcc_version_trigger gcc_version_full gcc_version 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 PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir 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 set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: assert,fold,gc,gcac,misc,
871                           rtlflag,rtl,tree,valgrind,release,yes,all;
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler's code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-threads        enable thread usage for target GCC
883   --enable-threads=LIB    use LIB thread package for target GCC
884   --enable-objc-gc        enable the use of Boehm's garbage collector with
885                           the GNU Objective-C runtime
886   --disable-shared        don't provide a shared libgcc
887   --enable-intermodule    build the compiler in one step
888   --enable-languages=LIST specify which front-ends to build
889   --disable-rpath         do not hardcode runtime library paths
890   --enable-initfini-array       use .init_array/.fini_array sections
891   --enable-sjlj-exceptions
892                           arrange to use setjmp/longjmp exception handling
893   --disable-win32-registry
894                           disable lookup of installation paths in the
895                           Registry on Windows hosts
896   --enable-win32-registry enable registry lookup (default)
897   --enable-win32-registry=KEY
898                           use KEY instead of GCC version as the last portion
899                           of the registry key
900   --enable-maintainer-mode
901                           enable make rules and dependencies not useful
902                           (and sometimes confusing) to the casual installer
903   --enable-version-specific-runtime-libs
904                           specify that runtime libraries should be
905                           installed in a compiler-specific directory
906
907 Optional Packages:
908   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910   --with-local-prefix=DIR specifies directory to put local include
911   --with-gxx-include-dir=DIR
912                           specifies directory to put g++ header files
913   --with-cpp-install-dir=DIR
914                           install the user visible C preprocessor in DIR
915                           (relative to PREFIX) as well as PREFIX/bin
916   --with-gnu-ld           arrange to work with GNU ld.
917   --with-ld               arrange to use the specified ld (full pathname)
918   --with-demangler-in-ld  try to use demangler in GNU ld.
919   --with-gnu-as           arrange to work with GNU as
920   --with-as               arrange to use the specified as (full pathname)
921   --with-stabs            arrange to use stabs instead of host debug format
922   --with-dwarf2           force the default debug format to be DWARF 2
923   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924   --with-gnu-ld           assume the C compiler uses GNU ld default=no
925   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
926   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
927   --with-system-libunwind use installed libunwind
928   --with-gc={page,zone}   choose the garbage collection mechanism to use
929                           with the compiler
930   --with-system-zlib      use installed libz
931   --with-slibdir=DIR      shared libraries in DIR LIBDIR
932
933 Some influential environment variables:
934   CC          C compiler command
935   CFLAGS      C compiler flags
936   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
937               nonstandard directory <lib dir>
938   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
939               headers in a nonstandard directory <include dir>
940   CPP         C preprocessor
941   GMPLIBS     How to link GMP
942   GMPINC      How to find GMP include files
943
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
946
947 _ACEOF
948 fi
949
950 if test "$ac_init_help" = "recursive"; then
951   # If there are subdirs, report their specific --help.
952   ac_popdir=`pwd`
953   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954     test -d $ac_dir || continue
955     ac_builddir=.
956
957 if test "$ac_dir" != .; then
958   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959   # A "../" for each directory in $ac_dir_suffix.
960   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962   ac_dir_suffix= ac_top_builddir=
963 fi
964
965 case $srcdir in
966   .)  # No --srcdir option.  We are building in place.
967     ac_srcdir=.
968     if test -z "$ac_top_builddir"; then
969        ac_top_srcdir=.
970     else
971        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972     fi ;;
973   [\\/]* | ?:[\\/]* )  # Absolute path.
974     ac_srcdir=$srcdir$ac_dir_suffix;
975     ac_top_srcdir=$srcdir ;;
976   *) # Relative path.
977     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978     ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
980
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
985 *)
986   case "$ac_dir" in
987   .) ac_abs_builddir=`pwd`;;
988   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989   *) ac_abs_builddir=`pwd`/"$ac_dir";;
990   esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *)
995   case ${ac_top_builddir}. in
996   .) ac_abs_top_builddir=$ac_abs_builddir;;
997   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999   esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1003 *)
1004   case $ac_srcdir in
1005   .) ac_abs_srcdir=$ac_abs_builddir;;
1006   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008   esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *)
1013   case $ac_top_srcdir in
1014   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017   esac;;
1018 esac
1019
1020     cd $ac_dir
1021     # Check for guested configure; otherwise get Cygnus style configure.
1022     if test -f $ac_srcdir/configure.gnu; then
1023       echo
1024       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1025     elif test -f $ac_srcdir/configure; then
1026       echo
1027       $SHELL $ac_srcdir/configure  --help=recursive
1028     elif test -f $ac_srcdir/configure.ac ||
1029            test -f $ac_srcdir/configure.in; then
1030       echo
1031       $ac_configure --help
1032     else
1033       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034     fi
1035     cd $ac_popdir
1036   done
1037 fi
1038
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041   cat <<\_ACEOF
1042
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047   exit 0
1048 fi
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1053
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59.  Invocation command line was
1056
1057   $ $0 $@
1058
1059 _ACEOF
1060 {
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1065
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1074
1075 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1076 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1079 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1080 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1081 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1082
1083 _ASUNAME
1084
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1087 do
1088   IFS=$as_save_IFS
1089   test -z "$as_dir" && as_dir=.
1090   echo "PATH: $as_dir"
1091 done
1092
1093 } >&5
1094
1095 cat >&5 <<_ACEOF
1096
1097
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1101
1102 _ACEOF
1103
1104
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1116 do
1117   for ac_arg
1118   do
1119     case $ac_arg in
1120     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122     | -silent | --silent | --silen | --sile | --sil)
1123       continue ;;
1124     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126     esac
1127     case $ac_pass in
1128     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129     2)
1130       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131       if test $ac_must_keep_next = true; then
1132         ac_must_keep_next=false # Got value, back to normal.
1133       else
1134         case $ac_arg in
1135           *=* | --config-cache | -C | -disable-* | --disable-* \
1136           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138           | -with-* | --with-* | -without-* | --without-* | --x)
1139             case "$ac_configure_args0 " in
1140               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141             esac
1142             ;;
1143           -* ) ac_must_keep_next=true ;;
1144         esac
1145       fi
1146       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147       # Get rid of the leading space.
1148       ac_sep=" "
1149       ;;
1150     esac
1151   done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1155
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log.  We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162   # Save into config.log some information that might help in debugging.
1163   {
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171     echo
1172     # The following way of writing the cache mishandles newlines in values,
1173 {
1174   (set) 2>&1 |
1175     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176     *ac_space=\ *)
1177       sed -n \
1178         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180       ;;
1181     *)
1182       sed -n \
1183         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184       ;;
1185     esac;
1186 }
1187     echo
1188
1189     cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194     echo
1195     for ac_var in $ac_subst_vars
1196     do
1197       eval ac_val=$`echo $ac_var`
1198       echo "$ac_var='"'"'$ac_val'"'"'"
1199     done | sort
1200     echo
1201
1202     if test -n "$ac_subst_files"; then
1203       cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208       echo
1209       for ac_var in $ac_subst_files
1210       do
1211         eval ac_val=$`echo $ac_var`
1212         echo "$ac_var='"'"'$ac_val'"'"'"
1213       done | sort
1214       echo
1215     fi
1216
1217     if test -s confdefs.h; then
1218       cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223       echo
1224       sed "/^$/d" confdefs.h | sort
1225       echo
1226     fi
1227     test "$ac_signal" != 0 &&
1228       echo "$as_me: caught signal $ac_signal"
1229     echo "$as_me: exit $exit_status"
1230   } >&5
1231   rm -f core *.core &&
1232   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233     exit $exit_status
1234      ' 0
1235 for ac_signal in 1 2 13 15; do
1236   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1239
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1244
1245 # Predefined preprocessor variables.
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1270
1271
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275   if test "x$prefix" != xNONE; then
1276     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277   else
1278     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279   fi
1280 fi
1281 for ac_site_file in $CONFIG_SITE; do
1282   if test -r "$ac_site_file"; then
1283     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285     sed 's/^/| /' "$ac_site_file" >&5
1286     . "$ac_site_file"
1287   fi
1288 done
1289
1290 if test -r "$cache_file"; then
1291   # Some versions of bash will fail to source /dev/null (special
1292   # files actually), so we avoid doing that.
1293   if test -f "$cache_file"; then
1294     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296     case $cache_file in
1297       [\\/]* | ?:[\\/]* ) . $cache_file;;
1298       *)                      . ./$cache_file;;
1299     esac
1300   fi
1301 else
1302   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304   >$cache_file
1305 fi
1306
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313   eval ac_new_set=\$ac_env_${ac_var}_set
1314   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315   eval ac_new_val="\$ac_env_${ac_var}_value"
1316   case $ac_old_set,$ac_new_set in
1317     set,)
1318       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320       ac_cache_corrupted=: ;;
1321     ,set)
1322       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324       ac_cache_corrupted=: ;;
1325     ,);;
1326     *)
1327       if test "x$ac_old_val" != "x$ac_new_val"; then
1328         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1331 echo "$as_me:   former value:  $ac_old_val" >&2;}
1332         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1333 echo "$as_me:   current value: $ac_new_val" >&2;}
1334         ac_cache_corrupted=:
1335       fi;;
1336   esac
1337   # Pass precious variables to config.status.
1338   if test "$ac_new_set" = set; then
1339     case $ac_new_val in
1340     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342     *) ac_arg=$ac_var=$ac_new_val ;;
1343     esac
1344     case " $ac_configure_args " in
1345       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1346       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347     esac
1348   fi
1349 done
1350 if $ac_cache_corrupted; then
1351   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384
1385
1386 #Set to 1 on a release branch
1387 is_release=
1388
1389 # Determine the host, build, and target systems
1390 ac_aux_dir=
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392   if test -f $ac_dir/install-sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install-sh -c"
1395     break
1396   elif test -f $ac_dir/install.sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install.sh -c"
1399     break
1400   elif test -f $ac_dir/shtool; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/shtool install -c"
1403     break
1404   fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409    { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428   ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432    { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436    { (exit 1); exit 1; }; }
1437
1438 fi
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1441 build=$ac_cv_build
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450   echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452   ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454   ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458    { (exit 1); exit 1; }; }
1459
1460 fi
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1463 host=$ac_cv_host
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467
1468
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472   echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474   ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476   ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480    { (exit 1); exit 1; }; }
1481
1482 fi
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489
1490
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494   test "$program_prefix$program_suffix$program_transform_name" = \
1495     NONENONEs,x,x, &&
1496   program_prefix=${target_alias}-
1497
1498 # Determine the noncanonical target name, for directory use.
1499  case ${build_alias} in
1500   "") build_noncanonical=${build} ;;
1501   *) build_noncanonical=${build_alias} ;;
1502 esac
1503
1504  case ${host_alias} in
1505   "") host_noncanonical=${build_noncanonical} ;;
1506   *) host_noncanonical=${host_alias} ;;
1507 esac
1508
1509  case ${target_alias} in
1510   "") target_noncanonical=${host_noncanonical} ;;
1511   *) target_noncanonical=${target_alias} ;;
1512 esac
1513
1514
1515
1516
1517 # Determine the target- and build-specific subdirectories
1518   # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1521 host_subdir=.
1522 # No prefix.
1523 target_subdir=${target_noncanonical}
1524
1525
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $.  echo might interpret backslashes.
1533 # By default was `s,x,x', remove it if useless.
1534 cat <<\_ACEOF >conftest.sed
1535 s/[\\$]/&&/g;s/;s,x,x,$//
1536 _ACEOF
1537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1538 rm conftest.sed
1539
1540
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1545 # is true:
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1553     library_path_setting="contains current directory"
1554     ;;
1555   *)
1556     library_path_setting="ok"
1557     ;;
1558 esac
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570    { (exit 1); exit 1; }; }
1571 fi
1572
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1576 # is true:
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1584     gcc_exec_prefix_setting="contains current directory"
1585     ;;
1586   *)
1587     gcc_exec_prefix_setting="ok"
1588     ;;
1589 esac
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: 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." >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604
1605 if test "${with_gcc_version_trigger+set}" = set; then
1606   gcc_version_trigger=$with_gcc_version_trigger
1607 else
1608   gcc_version_trigger=$srcdir/../gcc/version.c
1609 fi
1610 if test -f "${gcc_version_trigger}"; then
1611   gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1612 else
1613   gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1614 fi
1615 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1616
1617
1618
1619
1620
1621 # -----------
1622 # Directories
1623 # -----------
1624
1625 # Specify the local prefix
1626 local_prefix=
1627
1628 # Check whether --with-local-prefix or --without-local-prefix was given.
1629 if test "${with_local_prefix+set}" = set; then
1630   withval="$with_local_prefix"
1631   case "${withval}" in
1632 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1633 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1634    { (exit 1); exit 1; }; } ;;
1635 no)     ;;
1636 *)      local_prefix=$with_local_prefix ;;
1637 esac
1638 fi;
1639
1640 # Default local prefix if it is empty
1641 if test x$local_prefix = x; then
1642         local_prefix=/usr/local
1643 fi
1644
1645 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1646 # passed in by the toplevel make and thus we'd get different behavior
1647 # depending on where we built the sources.
1648 gcc_gxx_include_dir=
1649 # Specify the g++ header file directory
1650
1651 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1652 if test "${with_gxx_include_dir+set}" = set; then
1653   withval="$with_gxx_include_dir"
1654   case "${withval}" in
1655 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1656 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1657    { (exit 1); exit 1; }; } ;;
1658 no)     ;;
1659 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1660 esac
1661 fi;
1662
1663 if test x${gcc_gxx_include_dir} = x; then
1664   if test x${enable_version_specific_runtime_libs} = xyes; then
1665     gcc_gxx_include_dir='${libsubdir}/include/c++'
1666   else
1667     libstdcxx_incdir=c++/${gcc_version}
1668     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1669   fi
1670 fi
1671
1672
1673 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1674 if test "${with_cpp_install_dir+set}" = set; then
1675   withval="$with_cpp_install_dir"
1676   if test x$withval = xyes; then
1677   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1678 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1679    { (exit 1); exit 1; }; }
1680 elif test x$withval != xno; then
1681   cpp_install_dir=$withval
1682 fi
1683 fi;
1684
1685 # We would like to our source tree to be readonly.  However when releases or
1686 # pre-releases are generated, the flex/bison generated files as well as the
1687 # various formats of manuals need to be included along with the rest of the
1688 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1689 # just that.
1690
1691 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1692 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1693     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1694 if test "${enable_generated_files_in_srcdir+set}" = set; then
1695   enableval="$enable_generated_files_in_srcdir"
1696   generated_files_in_srcdir=$enableval
1697 else
1698   generated_files_in_srcdir=no
1699 fi;
1700
1701 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1702 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1703
1704 if test "$generated_files_in_srcdir" = "yes"; then
1705   GENINSRC=''
1706 else
1707   GENINSRC='#'
1708 fi
1709
1710
1711 # -------------------
1712 # Find default linker
1713 # -------------------
1714
1715 # With GNU ld
1716
1717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1718 if test "${with_gnu_ld+set}" = set; then
1719   withval="$with_gnu_ld"
1720   gnu_ld_flag="$with_gnu_ld"
1721 else
1722   gnu_ld_flag=no
1723 fi;
1724
1725 # With pre-defined ld
1726
1727 # Check whether --with-ld or --without-ld was given.
1728 if test "${with_ld+set}" = set; then
1729   withval="$with_ld"
1730   DEFAULT_LINKER="$with_ld"
1731 fi;
1732 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1733   if test ! -x "$DEFAULT_LINKER"; then
1734     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1735 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1736    { (exit 1); exit 1; }; }
1737   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1738     gnu_ld_flag=yes
1739   fi
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1743 _ACEOF
1744
1745 fi
1746
1747 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1748 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1749 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1750   if test x"$gnu_ld_flag" = x"no"; then
1751     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1752 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1753   else
1754     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1755 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1756   fi
1757 else
1758   echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 fi
1761
1762 # With demangler in GNU ld
1763
1764 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1765 if test "${with_demangler_in_ld+set}" = set; then
1766   withval="$with_demangler_in_ld"
1767   demangler_in_ld="$with_demangler_in_ld"
1768 else
1769   demangler_in_ld=no
1770 fi;
1771
1772 # ----------------------
1773 # Find default assembler
1774 # ----------------------
1775
1776 # With GNU as
1777
1778 # Check whether --with-gnu-as or --without-gnu-as was given.
1779 if test "${with_gnu_as+set}" = set; then
1780   withval="$with_gnu_as"
1781   gas_flag="$with_gnu_as"
1782 else
1783   gas_flag=no
1784 fi;
1785
1786
1787 # Check whether --with-as or --without-as was given.
1788 if test "${with_as+set}" = set; then
1789   withval="$with_as"
1790   DEFAULT_ASSEMBLER="$with_as"
1791 fi;
1792 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1793   if test ! -x "$DEFAULT_ASSEMBLER"; then
1794     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1795 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1796    { (exit 1); exit 1; }; }
1797   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1798     gas_flag=yes
1799   fi
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1803 _ACEOF
1804
1805 fi
1806
1807 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1808 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1809 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1810   if test x"$gas_flag" = x"no"; then
1811     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1812 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1813   else
1814     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1815 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1816   fi
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 fi
1821
1822 # ---------------
1823 # Find C compiler
1824 # ---------------
1825
1826 # If a non-executable a.out is present (e.g. created by GNU as above even if
1827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1828 # file, even when creating an executable, so an execution test fails.
1829 # Remove possible default executable files to avoid this.
1830 #
1831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1832 # Autoconf includes it.
1833 rm -f a.out a.exe b.out
1834
1835 # Find the native compiler
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test -n "$CC"; then
1850   ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857   for ac_exec_ext in '' $ac_executable_extensions; do
1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1865
1866 fi
1867 fi
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870   echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 fi
1876
1877 fi
1878 if test -z "$ac_cv_prog_CC"; then
1879   ac_ct_CC=$CC
1880   # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$ac_ct_CC"; then
1888   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_ac_ct_CC="gcc"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915   CC=$ac_ct_CC
1916 else
1917   CC="$ac_cv_prog_CC"
1918 fi
1919
1920 if test -z "$CC"; then
1921   if test -n "$ac_tool_prefix"; then
1922   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}cc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$CC"; then
1930   ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     ac_cv_prog_CC="${ac_tool_prefix}cc"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945
1946 fi
1947 fi
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950   echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957 fi
1958 if test -z "$ac_cv_prog_CC"; then
1959   ac_ct_CC=$CC
1960   # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$ac_ct_CC"; then
1968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_ac_ct_CC="cc"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995   CC=$ac_ct_CC
1996 else
1997   CC="$ac_cv_prog_CC"
1998 fi
1999
2000 fi
2001 if test -z "$CC"; then
2002   # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012   ac_prog_rejected=no
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021        ac_prog_rejected=yes
2022        continue
2023      fi
2024     ac_cv_prog_CC="cc"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031 if test $ac_prog_rejected = yes; then
2032   # We found a bogon in the path, so make sure we never use it.
2033   set dummy $ac_cv_prog_CC
2034   shift
2035   if test $# != 0; then
2036     # We chose a different compiler from the bogus one.
2037     # However, it has the same basename, so the bogon will be chosen
2038     # first if we set CC to just the basename; use the full file name.
2039     shift
2040     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2041   fi
2042 fi
2043 fi
2044 fi
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047   echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2049 else
2050   echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2052 fi
2053
2054 fi
2055 if test -z "$CC"; then
2056   if test -n "$ac_tool_prefix"; then
2057   for ac_prog in cl
2058   do
2059     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test -n "$CC"; then
2067   ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072   IFS=$as_save_IFS
2073   test -z "$as_dir" && as_dir=.
2074   for ac_exec_ext in '' $ac_executable_extensions; do
2075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078     break 2
2079   fi
2080 done
2081 done
2082
2083 fi
2084 fi
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087   echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090   echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094     test -n "$CC" && break
2095   done
2096 fi
2097 if test -z "$CC"; then
2098   ac_ct_CC=$CC
2099   for ac_prog in cl
2100 do
2101   # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test -n "$ac_ct_CC"; then
2109   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   test -z "$as_dir" && as_dir=.
2116   for ac_exec_ext in '' $ac_executable_extensions; do
2117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118     ac_cv_prog_ac_ct_CC="$ac_prog"
2119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120     break 2
2121   fi
2122 done
2123 done
2124
2125 fi
2126 fi
2127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2131 else
2132   echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2134 fi
2135
2136   test -n "$ac_ct_CC" && break
2137 done
2138
2139   CC=$ac_ct_CC
2140 fi
2141
2142 fi
2143
2144
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149    { (exit 1); exit 1; }; }
2150
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153      "checking for C compiler version" >&5
2154 ac_compiler=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156   (eval $ac_compiler --version </dev/null >&5) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161   (eval $ac_compiler -v </dev/null >&5) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166   (eval $ac_compiler -V </dev/null >&5) 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }
2170
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h.  */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h.  */
2177
2178 int
2179 main ()
2180 {
2181
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 ac_clean_files_save=$ac_clean_files
2187 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2188 # Try to create an executable without -o first, disregard a.out.
2189 # It will help us diagnose broken compilers, and finding out an intuition
2190 # of exeext.
2191 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195   (eval $ac_link_default) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; then
2199   # Find the output, starting from the most likely.  This scheme is
2200 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2201 # resort.
2202
2203 # Be careful to initialize this variable, since it used to be cached.
2204 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2205 ac_cv_exeext=
2206 # b.out is created by i960 compilers.
2207 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2208 do
2209   test -f "$ac_file" || continue
2210   case $ac_file in
2211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2212         ;;
2213     conftest.$ac_ext )
2214         # This is the source file.
2215         ;;
2216     [ab].out )
2217         # We found the default executable, but exeext='' is most
2218         # certainly right.
2219         break;;
2220     *.* )
2221         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222         # FIXME: I believe we export ac_cv_exeext for Libtool,
2223         # but it would be cool to find out if it's true.  Does anybody
2224         # maintain Libtool? --akim.
2225         export ac_cv_exeext
2226         break;;
2227     * )
2228         break;;
2229   esac
2230 done
2231 else
2232   echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239    { (exit 77); exit 77; }; }
2240 fi
2241
2242 ac_exeext=$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6
2245
2246 # Check the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253   if { ac_try='./$ac_file'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6
2285
2286 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289   (eval $ac_link) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; then
2293   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2296 # `rm'.
2297 for ac_file in conftest.exe conftest conftest.*; do
2298   test -f "$ac_file" || continue
2299   case $ac_file in
2300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2301     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302           export ac_cv_exeext
2303           break;;
2304     * ) break;;
2305   esac
2306 done
2307 else
2308   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312    { (exit 1); exit 1; }; }
2313 fi
2314
2315 rm -f conftest$ac_cv_exeext
2316 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6
2318
2319 rm -f conftest.$ac_ext
2320 EXEEXT=$ac_cv_exeext
2321 ac_exeext=$EXEEXT
2322 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324 if test "${ac_cv_objext+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h.  */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h.  */
2333
2334 int
2335 main ()
2336 {
2337
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.o conftest.obj
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }; then
2348   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2349   case $ac_file in
2350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2351     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352        break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363    { (exit 1); exit 1; }; }
2364 fi
2365
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367 fi
2368 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383
2384 int
2385 main ()
2386 {
2387 #ifndef __GNUC__
2388        choke me
2389 #endif
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -z "$ac_c_werror_flag"
2405                          || test ! -s conftest.err'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; } &&
2411          { ac_try='test -s conftest.$ac_objext'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417   ac_compiler_gnu=yes
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_compiler_gnu=no
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427 fi
2428 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 CFLAGS="-g"
2434 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445
2446 int
2447 main ()
2448 {
2449
2450   ;
2451   return 0;
2452 }
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456   (eval $ac_compile) 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag"
2464                          || test ! -s conftest.err'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476   ac_cv_prog_cc_g=yes
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 ac_cv_prog_cc_g=no
2482 fi
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 fi
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487 if test "$ac_test_CFLAGS" = set; then
2488   CFLAGS=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490   if test "$GCC" = yes; then
2491     CFLAGS="-g -O2"
2492   else
2493     CFLAGS="-g"
2494   fi
2495 else
2496   if test "$GCC" = yes; then
2497     CFLAGS="-O2"
2498   else
2499     CFLAGS=
2500   fi
2501 fi
2502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   ac_cv_prog_cc_stdc=no
2508 ac_save_CC=$CC
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515 #include <stdarg.h>
2516 #include <stdio.h>
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2523      char **p;
2524      int i;
2525 {
2526   return p[i];
2527 }
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2529 {
2530   char *s;
2531   va_list v;
2532   va_start (v,p);
2533   s = g (p, va_arg (v,int));
2534   va_end (v);
2535   return s;
2536 }
2537
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2539    function prototypes and stuff, but not '\xHH' hex character constants.
2540    These don't provoke an error unfortunately, instead are silently treated
2541    as 'x'.  The following induces an error, until -std1 is added to get
2542    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2543    array size at least.  It's necessary to write '\x00'==0 to get something
2544    that's true only with -std1.  */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2546
2547 int test (int i, double x);
2548 struct s1 {int (*f) (int a);};
2549 struct s2 {int (*f) (double a);};
2550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2551 int argc;
2552 char **argv;
2553 int
2554 main ()
2555 {
2556 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 # Don't try gcc -ansi; that turns off useful extensions and
2562 # breaks some systems' header files.
2563 # AIX                   -qlanglvl=ansi
2564 # Ultrix and OSF/1      -std1
2565 # HP-UX 10.20 and later -Ae
2566 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2567 # SVR4                  -Xc -D__EXTENSIONS__
2568 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2569 do
2570   CC="$ac_save_CC $ac_arg"
2571   rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573   (eval $ac_compile) 2>conftest.er1
2574   ac_status=$?
2575   grep -v '^ *+' conftest.er1 >conftest.err
2576   rm -f conftest.er1
2577   cat conftest.err >&5
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -z "$ac_c_werror_flag"
2581                          || test ! -s conftest.err'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; } &&
2587          { ac_try='test -s conftest.$ac_objext'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; }; then
2593   ac_cv_prog_cc_stdc=$ac_arg
2594 break
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 fi
2600 rm -f conftest.err conftest.$ac_objext
2601 done
2602 rm -f conftest.$ac_ext conftest.$ac_objext
2603 CC=$ac_save_CC
2604
2605 fi
2606
2607 case "x$ac_cv_prog_cc_stdc" in
2608   x|xno)
2609     echo "$as_me:$LINENO: result: none needed" >&5
2610 echo "${ECHO_T}none needed" >&6 ;;
2611   *)
2612     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614     CC="$CC $ac_cv_prog_cc_stdc" ;;
2615 esac
2616
2617 # Some people use a C++ compiler to compile C.  Since we use `exit',
2618 # in C++ we need to declare it.  In case someone uses the same compiler
2619 # for both compiling C and C++ we need to have the C++ compiler decide
2620 # the declaration of exit, since it's the most demanding environment.
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #ifndef __cplusplus
2623   choke me
2624 #endif
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>conftest.er1
2629   ac_status=$?
2630   grep -v '^ *+' conftest.er1 >conftest.err
2631   rm -f conftest.er1
2632   cat conftest.err >&5
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -z "$ac_c_werror_flag"
2636                          || test ! -s conftest.err'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; } &&
2642          { ac_try='test -s conftest.$ac_objext'
2643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644   (eval $ac_try) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; }; then
2648   for ac_declaration in \
2649    '' \
2650    'extern "C" void std::exit (int) throw (); using std::exit;' \
2651    'extern "C" void std::exit (int); using std::exit;' \
2652    'extern "C" void exit (int) throw ();' \
2653    'extern "C" void exit (int);' \
2654    'void exit (int);'
2655 do
2656   cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662 $ac_declaration
2663 #include <stdlib.h>
2664 int
2665 main ()
2666 {
2667 exit (42);
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>conftest.er1
2675   ac_status=$?
2676   grep -v '^ *+' conftest.er1 >conftest.err
2677   rm -f conftest.er1
2678   cat conftest.err >&5
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -z "$ac_c_werror_flag"
2682                          || test ! -s conftest.err'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; } &&
2688          { ac_try='test -s conftest.$ac_objext'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; }; then
2694   :
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 continue
2700 fi
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702   cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708 $ac_declaration
2709 int
2710 main ()
2711 {
2712 exit (42);
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } &&
2726          { ac_try='test -z "$ac_c_werror_flag"
2727                          || test ! -s conftest.err'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest.$ac_objext'
2734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   break
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 done
2747 rm -f conftest*
2748 if test -n "$ac_declaration"; then
2749   echo '#ifdef __cplusplus' >>confdefs.h
2750   echo $ac_declaration      >>confdefs.h
2751   echo '#endif'             >>confdefs.h
2752 fi
2753
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766 if test "x$CC" != xcc; then
2767   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2768 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2769 else
2770   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2771 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2772 fi
2773 set dummy $CC; ac_cc=`echo $2 |
2774                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2775 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 # Make sure it works both with $CC and with simple cc.
2794 # We do the test twice because some compilers refuse to overwrite an
2795 # existing .o file with -o, though they will create one.
2796 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2797 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803   (eval $ac_try) 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); };
2807 then
2808   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2809   if test "x$CC" != xcc; then
2810     # Test first that cc exists at all.
2811     if { ac_try='cc -c conftest.$ac_ext >&5'
2812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819   (eval $ac_try) 2>&5
2820   ac_status=$?
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); };
2828       then
2829         # cc works too.
2830         :
2831       else
2832         # cc exists but doesn't like -o.
2833         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2834       fi
2835     fi
2836   fi
2837 else
2838   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2839 fi
2840 rm -f conftest*
2841
2842 fi
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2844   echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6
2846 else
2847   echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849
2850 cat >>confdefs.h <<\_ACEOF
2851 #define NO_MINUS_C_MINUS_O 1
2852 _ACEOF
2853
2854 fi
2855
2856 # expand $ac_aux_dir to an absolute path
2857 am_aux_dir=`cd $ac_aux_dir && pwd`
2858
2859 # FIXME: we rely on the cache variable name because
2860 # there is no other way.
2861 set dummy $CC
2862 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2864    # Losing compiler, so override with the script.
2865    # FIXME: It is wrong to rewrite CC.
2866    # But if we don't then we get into trouble of one sort or another.
2867    # A longer-term fix would be to have automake use am__CC in this case,
2868    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2869    CC="$am_aux_dir/compile $CC"
2870 fi
2871
2872 # autoconf is lame and doesn't give us any substitution variable for this.
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2874   NO_MINUS_C_MINUS_O=yes
2875 else
2876   OUTPUT_OPTION='-o $@'
2877 fi
2878
2879
2880
2881 # -------------------------
2882 # Check C compiler features
2883 # -------------------------
2884
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2892 # On Suns, sometimes $CPP names a directory.
2893 if test -n "$CPP" && test -d "$CPP"; then
2894   CPP=
2895 fi
2896 if test -z "$CPP"; then
2897   if test "${ac_cv_prog_CPP+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900       # Double quotes because CPP needs to be expanded
2901     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2902     do
2903       ac_preproc_ok=false
2904 for ac_c_preproc_warn_flag in '' yes
2905 do
2906   # Use a header file that comes with gcc, so configuring glibc
2907   # with a fresh cross-compiler works.
2908   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909   # <limits.h> exists even on freestanding compilers.
2910   # On the NeXT, cc -E runs the code through the compiler's parser,
2911   # not just through cpp. "Syntax error" is here to catch this case.
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918 #ifdef __STDC__
2919 # include <limits.h>
2920 #else
2921 # include <assert.h>
2922 #endif
2923                      Syntax error
2924 _ACEOF
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927   ac_status=$?
2928   grep -v '^ *+' conftest.er1 >conftest.err
2929   rm -f conftest.er1
2930   cat conftest.err >&5
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } >/dev/null; then
2933   if test -s conftest.err; then
2934     ac_cpp_err=$ac_c_preproc_warn_flag
2935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2936   else
2937     ac_cpp_err=
2938   fi
2939 else
2940   ac_cpp_err=yes
2941 fi
2942 if test -z "$ac_cpp_err"; then
2943   :
2944 else
2945   echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948   # Broken: fails on valid input.
2949 continue
2950 fi
2951 rm -f conftest.err conftest.$ac_ext
2952
2953   # OK, works on sane cases.  Now check whether non-existent headers
2954   # can be detected and how.
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 #include <ac_nonexistent.h>
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965   ac_status=$?
2966   grep -v '^ *+' conftest.er1 >conftest.err
2967   rm -f conftest.er1
2968   cat conftest.err >&5
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); } >/dev/null; then
2971   if test -s conftest.err; then
2972     ac_cpp_err=$ac_c_preproc_warn_flag
2973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2974   else
2975     ac_cpp_err=
2976   fi
2977 else
2978   ac_cpp_err=yes
2979 fi
2980 if test -z "$ac_cpp_err"; then
2981   # Broken: success on invalid input.
2982 continue
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987   # Passes both tests.
2988 ac_preproc_ok=:
2989 break
2990 fi
2991 rm -f conftest.err conftest.$ac_ext
2992
2993 done
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2997   break
2998 fi
2999
3000     done
3001     ac_cv_prog_CPP=$CPP
3002
3003 fi
3004   CPP=$ac_cv_prog_CPP
3005 else
3006   ac_cv_prog_CPP=$CPP
3007 fi
3008 echo "$as_me:$LINENO: result: $CPP" >&5
3009 echo "${ECHO_T}$CPP" >&6
3010 ac_preproc_ok=false
3011 for ac_c_preproc_warn_flag in '' yes
3012 do
3013   # Use a header file that comes with gcc, so configuring glibc
3014   # with a fresh cross-compiler works.
3015   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016   # <limits.h> exists even on freestanding compilers.
3017   # On the NeXT, cc -E runs the code through the compiler's parser,
3018   # not just through cpp. "Syntax error" is here to catch this case.
3019   cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 #ifdef __STDC__
3026 # include <limits.h>
3027 #else
3028 # include <assert.h>
3029 #endif
3030                      Syntax error
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } >/dev/null; then
3040   if test -s conftest.err; then
3041     ac_cpp_err=$ac_c_preproc_warn_flag
3042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043   else
3044     ac_cpp_err=
3045   fi
3046 else
3047   ac_cpp_err=yes
3048 fi
3049 if test -z "$ac_cpp_err"; then
3050   :
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055   # Broken: fails on valid input.
3056 continue
3057 fi
3058 rm -f conftest.err conftest.$ac_ext
3059
3060   # OK, works on sane cases.  Now check whether non-existent headers
3061   # can be detected and how.
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068 #include <ac_nonexistent.h>
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } >/dev/null; then
3078   if test -s conftest.err; then
3079     ac_cpp_err=$ac_c_preproc_warn_flag
3080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081   else
3082     ac_cpp_err=
3083   fi
3084 else
3085   ac_cpp_err=yes
3086 fi
3087 if test -z "$ac_cpp_err"; then
3088   # Broken: success on invalid input.
3089 continue
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094   # Passes both tests.
3095 ac_preproc_ok=:
3096 break
3097 fi
3098 rm -f conftest.err conftest.$ac_ext
3099
3100 done
3101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102 rm -f conftest.err conftest.$ac_ext
3103 if $ac_preproc_ok; then
3104   :
3105 else
3106   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3109 See \`config.log' for more details." >&2;}
3110    { (exit 1); exit 1; }; }
3111 fi
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119
3120 echo "$as_me:$LINENO: checking for inline" >&5
3121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3122 if test "${ac_cv_c_inline+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   ac_cv_c_inline=no
3126 for ac_kw in inline __inline__ __inline; do
3127   cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133 #ifndef __cplusplus
3134 typedef int foo_t;
3135 static $ac_kw foo_t static_foo () {return 0; }
3136 $ac_kw foo_t foo () {return 0; }
3137 #endif
3138
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142   (eval $ac_compile) 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_c_werror_flag"
3150                          || test ! -s conftest.err'
3151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152   (eval $ac_try) 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158   (eval $ac_try) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; }; then
3162   ac_cv_c_inline=$ac_kw; break
3163 else
3164   echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 fi
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 done
3170
3171 fi
3172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3173 echo "${ECHO_T}$ac_cv_c_inline" >&6
3174
3175
3176 case $ac_cv_c_inline in
3177   inline | yes) ;;
3178   *)
3179     case $ac_cv_c_inline in
3180       no) ac_val=;;
3181       *) ac_val=$ac_cv_c_inline;;
3182     esac
3183     cat >>confdefs.h <<_ACEOF
3184 #ifndef __cplusplus
3185 #define inline $ac_val
3186 #endif
3187 _ACEOF
3188     ;;
3189 esac
3190
3191
3192 echo "$as_me:$LINENO: checking for long long int" >&5
3193 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3194 if test "${ac_cv_c_long_long+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 int
3205 main ()
3206 {
3207 long long int i;
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214   (eval $ac_compile) 2>conftest.er1
3215   ac_status=$?
3216   grep -v '^ *+' conftest.er1 >conftest.err
3217   rm -f conftest.er1
3218   cat conftest.err >&5
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); } &&
3221          { ac_try='test -z "$ac_c_werror_flag"
3222                          || test ! -s conftest.err'
3223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224   (eval $ac_try) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; } &&
3228          { ac_try='test -s conftest.$ac_objext'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_c_long_long=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 ac_cv_c_long_long=no
3240 fi
3241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3242 fi
3243 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3244 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3245   if test $ac_cv_c_long_long = yes; then
3246
3247 cat >>confdefs.h <<\_ACEOF
3248 #define HAVE_LONG_LONG 1
3249 _ACEOF
3250
3251   fi
3252 echo "$as_me:$LINENO: checking for __int64" >&5
3253 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3254 if test "${ac_cv_c___int64+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267 __int64 i;
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274   (eval $ac_compile) 2>conftest.er1
3275   ac_status=$?
3276   grep -v '^ *+' conftest.er1 >conftest.err
3277   rm -f conftest.er1
3278   cat conftest.err >&5
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } &&
3281          { ac_try='test -z "$ac_c_werror_flag"
3282                          || test ! -s conftest.err'
3283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284   (eval $ac_try) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }; } &&
3288          { ac_try='test -s conftest.$ac_objext'
3289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; }; then
3294   ac_cv_c___int64=yes
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 ac_cv_c___int64=no
3300 fi
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3304 echo "${ECHO_T}$ac_cv_c___int64" >&6
3305   if test $ac_cv_c___int64 = yes; then
3306
3307 cat >>confdefs.h <<\_ACEOF
3308 #define HAVE___INT64 1
3309 _ACEOF
3310
3311   fi
3312
3313
3314 # sizeof(char) is 1 by definition.
3315
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3322     then ac_cv_prog_egrep='grep -E'
3323     else ac_cv_prog_egrep='egrep'
3324     fi
3325 fi
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328  EGREP=$ac_cv_prog_egrep
3329
3330
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #include <stdlib.h>
3343 #include <stdarg.h>
3344 #include <string.h>
3345 #include <float.h>
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357   (eval $ac_compile) 2>conftest.er1
3358   ac_status=$?
3359   grep -v '^ *+' conftest.er1 >conftest.err
3360   rm -f conftest.er1
3361   cat conftest.err >&5
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } &&
3364          { ac_try='test -z "$ac_c_werror_flag"
3365                          || test ! -s conftest.err'
3366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367   (eval $ac_try) 2>&5
3368   ac_status=$?
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }; } &&
3371          { ac_try='test -s conftest.$ac_objext'
3372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373   (eval $ac_try) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; }; then
3377   ac_cv_header_stdc=yes
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 ac_cv_header_stdc=no
3383 fi
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385
3386 if test $ac_cv_header_stdc = yes; then
3387   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <string.h>
3395
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398   $EGREP "memchr" >/dev/null 2>&1; then
3399   :
3400 else
3401   ac_cv_header_stdc=no
3402 fi
3403 rm -f conftest*
3404
3405 fi
3406
3407 if test $ac_cv_header_stdc = yes; then
3408   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #include <stdlib.h>
3416
3417 _ACEOF
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419   $EGREP "free" >/dev/null 2>&1; then
3420   :
3421 else
3422   ac_cv_header_stdc=no
3423 fi
3424 rm -f conftest*
3425
3426 fi
3427
3428 if test $ac_cv_header_stdc = yes; then
3429   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430   if test "$cross_compiling" = yes; then
3431   :
3432 else
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #include <ctype.h>
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3443 #else
3444 # define ISLOWER(c) \
3445                    (('a' <= (c) && (c) <= 'i') \
3446                      || ('j' <= (c) && (c) <= 'r') \
3447                      || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3449 #endif
3450
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3452 int
3453 main ()
3454 {
3455   int i;
3456   for (i = 0; i < 256; i++)
3457     if (XOR (islower (i), ISLOWER (i))
3458         || toupper (i) != TOUPPER (i))
3459       exit(2);
3460   exit (0);
3461 }
3462 _ACEOF
3463 rm -f conftest$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465   (eval $ac_link) 2>&5
3466   ac_status=$?
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470   (eval $ac_try) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; }; then
3474   :
3475 else
3476   echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 ( exit $ac_status )
3481 ac_cv_header_stdc=no
3482 fi
3483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3484 fi
3485 fi
3486 fi
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3490
3491 cat >>confdefs.h <<\_ACEOF
3492 #define STDC_HEADERS 1
3493 _ACEOF
3494
3495 fi
3496
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508                   inttypes.h stdint.h unistd.h
3509 do
3510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522 $ac_includes_default
3523
3524 #include <$ac_header>
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528   (eval $ac_compile) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_c_werror_flag"
3536                          || test ! -s conftest.err'
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); }; } &&
3542          { ac_try='test -s conftest.$ac_objext'
3543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544   (eval $ac_try) 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; }; then
3548   eval "$as_ac_Header=yes"
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 eval "$as_ac_Header=no"
3554 fi
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560   cat >>confdefs.h <<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3562 _ACEOF
3563
3564 fi
3565
3566 done
3567
3568
3569 echo "$as_me:$LINENO: checking for void *" >&5
3570 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3571 if test "${ac_cv_type_void_p+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h.  */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h.  */
3580 $ac_includes_default
3581 int
3582 main ()
3583 {
3584 if ((void * *) 0)
3585   return 0;
3586 if (sizeof (void *))
3587   return 0;
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594   (eval $ac_compile) 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag"
3602                          || test ! -s conftest.err'
3603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604   (eval $ac_try) 2>&5
3605   ac_status=$?
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); }; } &&
3608          { ac_try='test -s conftest.$ac_objext'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; }; then
3614   ac_cv_type_void_p=yes
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 ac_cv_type_void_p=no
3620 fi
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3624 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3625
3626 echo "$as_me:$LINENO: checking size of void *" >&5
3627 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3628 if test "${ac_cv_sizeof_void_p+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   if test "$ac_cv_type_void_p" = yes; then
3632   # The cast to unsigned long works around a bug in the HP C Compiler
3633   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3634   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3635   # This bug is HP SR number 8606223364.
3636   if test "$cross_compiling" = yes; then
3637   # Depending upon the size, compute the lo and hi bounds.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644 $ac_includes_default
3645 int
3646 main ()
3647 {
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3649 test_array [0] = 0
3650
3651   ;
3652   return 0;
3653 }
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657   (eval $ac_compile) 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } &&
3664          { ac_try='test -z "$ac_c_werror_flag"
3665                          || test ! -s conftest.err'
3666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667   (eval $ac_try) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; } &&
3671          { ac_try='test -s conftest.$ac_objext'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; }; then
3677   ac_lo=0 ac_mid=0
3678   while :; do
3679     cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h.  */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h.  */
3685 $ac_includes_default
3686 int
3687 main ()
3688 {
3689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3690 test_array [0] = 0
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698   (eval $ac_compile) 2>conftest.er1
3699   ac_status=$?
3700   grep -v '^ *+' conftest.er1 >conftest.err
3701   rm -f conftest.er1
3702   cat conftest.err >&5
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } &&
3705          { ac_try='test -z "$ac_c_werror_flag"
3706                          || test ! -s conftest.err'
3707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708   (eval $ac_try) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); }; } &&
3712          { ac_try='test -s conftest.$ac_objext'
3713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; }; then
3718   ac_hi=$ac_mid; break
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ac_lo=`expr $ac_mid + 1`
3724                     if test $ac_lo -le $ac_mid; then
3725                       ac_lo= ac_hi=
3726                       break
3727                     fi
3728                     ac_mid=`expr 2 '*' $ac_mid + 1`
3729 fi
3730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731   done
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h.  */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h.  */
3742 $ac_includes_default
3743 int
3744 main ()
3745 {
3746 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3747 test_array [0] = 0
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755   (eval $ac_compile) 2>conftest.er1
3756   ac_status=$?
3757   grep -v '^ *+' conftest.er1 >conftest.err
3758   rm -f conftest.er1
3759   cat conftest.err >&5
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } &&
3762          { ac_try='test -z "$ac_c_werror_flag"
3763                          || test ! -s conftest.err'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; } &&
3769          { ac_try='test -s conftest.$ac_objext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_hi=-1 ac_mid=-1
3776   while :; do
3777     cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 $ac_includes_default
3784 int
3785 main ()
3786 {
3787 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3788 test_array [0] = 0
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796   (eval $ac_compile) 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } &&
3803          { ac_try='test -z "$ac_c_werror_flag"
3804                          || test ! -s conftest.err'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; } &&
3810          { ac_try='test -s conftest.$ac_objext'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; }; then
3816   ac_lo=$ac_mid; break
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 ac_hi=`expr '(' $ac_mid ')' - 1`
3822                        if test $ac_mid -le $ac_hi; then
3823                          ac_lo= ac_hi=
3824                          break
3825                        fi
3826                        ac_mid=`expr 2 '*' $ac_mid`
3827 fi
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829   done
3830 else
3831   echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 ac_lo= ac_hi=
3835 fi
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837 fi
3838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839 # Binary search between lo and hi bounds.
3840 while test "x$ac_lo" != "x$ac_hi"; do
3841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3842   cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h.  */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h.  */
3848 $ac_includes_default
3849 int
3850 main ()
3851 {
3852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3853 test_array [0] = 0
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>conftest.er1
3862   ac_status=$?
3863   grep -v '^ *+' conftest.er1 >conftest.err
3864   rm -f conftest.er1
3865   cat conftest.err >&5
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); } &&
3868          { ac_try='test -z "$ac_c_werror_flag"
3869                          || test ! -s conftest.err'
3870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; } &&
3875          { ac_try='test -s conftest.$ac_objext'
3876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877   (eval $ac_try) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; }; then
3881   ac_hi=$ac_mid
3882 else
3883   echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ac_lo=`expr '(' $ac_mid ')' + 1`
3887 fi
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 done
3890 case $ac_lo in
3891 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3893 See \`config.log' for more details." >&5
3894 echo "$as_me: error: cannot compute sizeof (void *), 77
3895 See \`config.log' for more details." >&2;}
3896    { (exit 1); exit 1; }; } ;;
3897 esac
3898 else
3899   if test "$cross_compiling" = yes; then
3900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&5
3902 echo "$as_me: error: cannot run test program while cross compiling
3903 See \`config.log' for more details." >&2;}
3904    { (exit 1); exit 1; }; }
3905 else
3906   cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912 $ac_includes_default
3913 long longval () { return (long) (sizeof (void *)); }
3914 unsigned long ulongval () { return (long) (sizeof (void *)); }
3915 #include <stdio.h>
3916 #include <stdlib.h>
3917 int
3918 main ()
3919 {
3920
3921   FILE *f = fopen ("conftest.val", "w");
3922   if (! f)
3923     exit (1);
3924   if (((long) (sizeof (void *))) < 0)
3925     {
3926       long i = longval ();
3927       if (i != ((long) (sizeof (void *))))
3928         exit (1);
3929       fprintf (f, "%ld\n", i);
3930     }
3931   else
3932     {
3933       unsigned long i = ulongval ();
3934       if (i != ((long) (sizeof (void *))))
3935         exit (1);
3936       fprintf (f, "%lu\n", i);
3937     }
3938   exit (ferror (f) || fclose (f) != 0);
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946   (eval $ac_link) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951   (eval $ac_try) 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); }; }; then
3955   ac_cv_sizeof_void_p=`cat conftest.val`
3956 else
3957   echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 ( exit $ac_status )
3962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: cannot compute sizeof (void *), 77
3965 See \`config.log' for more details." >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 fi
3971 rm -f conftest.val
3972 else
3973   ac_cv_sizeof_void_p=0
3974 fi
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3977 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3978 cat >>confdefs.h <<_ACEOF
3979 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3980 _ACEOF
3981
3982
3983 echo "$as_me:$LINENO: checking for short" >&5
3984 echo $ECHO_N "checking for short... $ECHO_C" >&6
3985 if test "${ac_cv_type_short+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 $ac_includes_default
3995 int
3996 main ()
3997 {
3998 if ((short *) 0)
3999   return 0;
4000 if (sizeof (short))
4001   return 0;
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008   (eval $ac_compile) 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } &&
4015          { ac_try='test -z "$ac_c_werror_flag"
4016                          || test ! -s conftest.err'
4017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018   (eval $ac_try) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   ac_cv_type_short=yes
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_cv_type_short=no
4034 fi
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4038 echo "${ECHO_T}$ac_cv_type_short" >&6
4039
4040 echo "$as_me:$LINENO: checking size of short" >&5
4041 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4042 if test "${ac_cv_sizeof_short+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test "$ac_cv_type_short" = yes; then
4046   # The cast to unsigned long works around a bug in the HP C Compiler
4047   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4048   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4049   # This bug is HP SR number 8606223364.
4050   if test "$cross_compiling" = yes; then
4051   # Depending upon the size, compute the lo and hi bounds.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 $ac_includes_default
4059 int
4060 main ()
4061 {
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4063 test_array [0] = 0
4064
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071   (eval $ac_compile) 2>conftest.er1
4072   ac_status=$?
4073   grep -v '^ *+' conftest.er1 >conftest.err
4074   rm -f conftest.er1
4075   cat conftest.err >&5
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } &&
4078          { ac_try='test -z "$ac_c_werror_flag"
4079                          || test ! -s conftest.err'
4080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081   (eval $ac_try) 2>&5
4082   ac_status=$?
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); }; } &&
4085          { ac_try='test -s conftest.$ac_objext'
4086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087   (eval $ac_try) 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; }; then
4091   ac_lo=0 ac_mid=0
4092   while :; do
4093     cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 $ac_includes_default
4100 int
4101 main ()
4102 {
4103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4104 test_array [0] = 0
4105
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112   (eval $ac_compile) 2>conftest.er1
4113   ac_status=$?
4114   grep -v '^ *+' conftest.er1 >conftest.err
4115   rm -f conftest.er1
4116   cat conftest.err >&5
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } &&
4119          { ac_try='test -z "$ac_c_werror_flag"
4120                          || test ! -s conftest.err'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; } &&
4126          { ac_try='test -s conftest.$ac_objext'
4127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128   (eval $ac_try) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; }; then
4132   ac_hi=$ac_mid; break
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 ac_lo=`expr $ac_mid + 1`
4138                     if test $ac_lo -le $ac_mid; then
4139                       ac_lo= ac_hi=
4140                       break
4141                     fi
4142                     ac_mid=`expr 2 '*' $ac_mid + 1`
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145   done
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 $ac_includes_default
4157 int
4158 main ()
4159 {
4160 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4161 test_array [0] = 0
4162
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } &&
4176          { ac_try='test -z "$ac_c_werror_flag"
4177                          || test ! -s conftest.err'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; } &&
4183          { ac_try='test -s conftest.$ac_objext'
4184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185   (eval $ac_try) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; }; then
4189   ac_hi=-1 ac_mid=-1
4190   while :; do
4191     cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 $ac_includes_default
4198 int
4199 main ()
4200 {
4201 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4202 test_array [0] = 0
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210   (eval $ac_compile) 2>conftest.er1
4211   ac_status=$?
4212   grep -v '^ *+' conftest.er1 >conftest.err
4213   rm -f conftest.er1
4214   cat conftest.err >&5
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } &&
4217          { ac_try='test -z "$ac_c_werror_flag"
4218                          || test ! -s conftest.err'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; } &&
4224          { ac_try='test -s conftest.$ac_objext'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; }; then
4230   ac_lo=$ac_mid; break
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_hi=`expr '(' $ac_mid ')' - 1`
4236                        if test $ac_mid -le $ac_hi; then
4237                          ac_lo= ac_hi=
4238                          break
4239                        fi
4240                        ac_mid=`expr 2 '*' $ac_mid`
4241 fi
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243   done
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_lo= ac_hi=
4249 fi
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 fi
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 # Binary search between lo and hi bounds.
4254 while test "x$ac_lo" != "x$ac_hi"; do
4255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 $ac_includes_default
4263 int
4264 main ()
4265 {
4266 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4267 test_array [0] = 0
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275   (eval $ac_compile) 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -z "$ac_c_werror_flag"
4283                          || test ! -s conftest.err'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest.$ac_objext'
4290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   ac_hi=$ac_mid
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ac_lo=`expr '(' $ac_mid ')' + 1`
4301 fi
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 done
4304 case $ac_lo in
4305 ?*) ac_cv_sizeof_short=$ac_lo;;
4306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: cannot compute sizeof (short), 77
4309 See \`config.log' for more details." >&2;}
4310    { (exit 1); exit 1; }; } ;;
4311 esac
4312 else
4313   if test "$cross_compiling" = yes; then
4314   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run test program while cross compiling
4317 See \`config.log' for more details." >&2;}
4318    { (exit 1); exit 1; }; }
4319 else
4320   cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h.  */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h.  */
4326 $ac_includes_default
4327 long longval () { return (long) (sizeof (short)); }
4328 unsigned long ulongval () { return (long) (sizeof (short)); }
4329 #include <stdio.h>
4330 #include <stdlib.h>
4331 int
4332 main ()
4333 {
4334
4335   FILE *f = fopen ("conftest.val", "w");
4336   if (! f)
4337     exit (1);
4338   if (((long) (sizeof (short))) < 0)
4339     {
4340       long i = longval ();
4341       if (i != ((long) (sizeof (short))))
4342         exit (1);
4343       fprintf (f, "%ld\n", i);
4344     }
4345   else
4346     {
4347       unsigned long i = ulongval ();
4348       if (i != ((long) (sizeof (short))))
4349         exit (1);
4350       fprintf (f, "%lu\n", i);
4351     }
4352   exit (ferror (f) || fclose (f) != 0);
4353
4354   ;
4355   return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360   (eval $ac_link) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365   (eval $ac_try) 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; }; then
4369   ac_cv_sizeof_short=`cat conftest.val`
4370 else
4371   echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ( exit $ac_status )
4376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: cannot compute sizeof (short), 77
4379 See \`config.log' for more details." >&2;}
4380    { (exit 1); exit 1; }; }
4381 fi
4382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 fi
4385 rm -f conftest.val
4386 else
4387   ac_cv_sizeof_short=0
4388 fi
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4391 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4392 cat >>confdefs.h <<_ACEOF
4393 #define SIZEOF_SHORT $ac_cv_sizeof_short
4394 _ACEOF
4395
4396
4397 echo "$as_me:$LINENO: checking for int" >&5
4398 echo $ECHO_N "checking for int... $ECHO_C" >&6
4399 if test "${ac_cv_type_int+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408 $ac_includes_default
4409 int
4410 main ()
4411 {
4412 if ((int *) 0)
4413   return 0;
4414 if (sizeof (int))
4415   return 0;
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422   (eval $ac_compile) 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } &&
4429          { ac_try='test -z "$ac_c_werror_flag"
4430                          || test ! -s conftest.err'
4431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432   (eval $ac_try) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; } &&
4436          { ac_try='test -s conftest.$ac_objext'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   ac_cv_type_int=yes
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 ac_cv_type_int=no
4448 fi
4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4450 fi
4451 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4452 echo "${ECHO_T}$ac_cv_type_int" >&6
4453
4454 echo "$as_me:$LINENO: checking size of int" >&5
4455 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4456 if test "${ac_cv_sizeof_int+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test "$ac_cv_type_int" = yes; then
4460   # The cast to unsigned long works around a bug in the HP C Compiler
4461   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4462   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4463   # This bug is HP SR number 8606223364.
4464   if test "$cross_compiling" = yes; then
4465   # Depending upon the size, compute the lo and hi bounds.
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472 $ac_includes_default
4473 int
4474 main ()
4475 {
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4477 test_array [0] = 0
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485   (eval $ac_compile) 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag"
4493                          || test ! -s conftest.err'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; } &&
4499          { ac_try='test -s conftest.$ac_objext'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   ac_lo=0 ac_mid=0
4506   while :; do
4507     cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513 $ac_includes_default
4514 int
4515 main ()
4516 {
4517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4518 test_array [0] = 0
4519
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526   (eval $ac_compile) 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } &&
4533          { ac_try='test -z "$ac_c_werror_flag"
4534                          || test ! -s conftest.err'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; } &&
4540          { ac_try='test -s conftest.$ac_objext'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   ac_hi=$ac_mid; break
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 ac_lo=`expr $ac_mid + 1`
4552                     if test $ac_lo -le $ac_mid; then
4553                       ac_lo= ac_hi=
4554                       break
4555                     fi
4556                     ac_mid=`expr 2 '*' $ac_mid + 1`
4557 fi
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559   done
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570 $ac_includes_default
4571 int
4572 main ()
4573 {
4574 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4575 test_array [0] = 0
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } &&
4590          { ac_try='test -z "$ac_c_werror_flag"
4591                          || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_hi=-1 ac_mid=-1
4604   while :; do
4605     cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h.  */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h.  */
4611 $ac_includes_default
4612 int
4613 main ()
4614 {
4615 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4616 test_array [0] = 0
4617
4618   ;
4619   return 0;
4620 }
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624   (eval $ac_compile) 2>conftest.er1
4625   ac_status=$?
4626   grep -v '^ *+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } &&
4631          { ac_try='test -z "$ac_c_werror_flag"
4632                          || test ! -s conftest.err'
4633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634   (eval $ac_try) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; } &&
4638          { ac_try='test -s conftest.$ac_objext'
4639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640   (eval $ac_try) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); }; }; then
4644   ac_lo=$ac_mid; break
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_hi=`expr '(' $ac_mid ')' - 1`
4650                        if test $ac_mid -le $ac_hi; then
4651                          ac_lo= ac_hi=
4652                          break
4653                        fi
4654                        ac_mid=`expr 2 '*' $ac_mid`
4655 fi
4656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657   done
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_lo= ac_hi=
4663 fi
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 fi
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667 # Binary search between lo and hi bounds.
4668 while test "x$ac_lo" != "x$ac_hi"; do
4669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4670   cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676 $ac_includes_default
4677 int
4678 main ()
4679 {
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4681 test_array [0] = 0
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689   (eval $ac_compile) 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } &&
4696          { ac_try='test -z "$ac_c_werror_flag"
4697                          || test ! -s conftest.err'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; } &&
4703          { ac_try='test -s conftest.$ac_objext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_hi=$ac_mid
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 ac_lo=`expr '(' $ac_mid ')' + 1`
4715 fi
4716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717 done
4718 case $ac_lo in
4719 ?*) ac_cv_sizeof_int=$ac_lo;;
4720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute sizeof (int), 77
4723 See \`config.log' for more details." >&2;}
4724    { (exit 1); exit 1; }; } ;;
4725 esac
4726 else
4727   if test "$cross_compiling" = yes; then
4728   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot run test program while cross compiling
4731 See \`config.log' for more details." >&2;}
4732    { (exit 1); exit 1; }; }
4733 else
4734   cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h.  */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h.  */
4740 $ac_includes_default
4741 long longval () { return (long) (sizeof (int)); }
4742 unsigned long ulongval () { return (long) (sizeof (int)); }
4743 #include <stdio.h>
4744 #include <stdlib.h>
4745 int
4746 main ()
4747 {
4748
4749   FILE *f = fopen ("conftest.val", "w");
4750   if (! f)
4751     exit (1);
4752   if (((long) (sizeof (int))) < 0)
4753     {
4754       long i = longval ();
4755       if (i != ((long) (sizeof (int))))
4756         exit (1);
4757       fprintf (f, "%ld\n", i);
4758     }
4759   else
4760     {
4761       unsigned long i = ulongval ();
4762       if (i != ((long) (sizeof (int))))
4763         exit (1);
4764       fprintf (f, "%lu\n", i);
4765     }
4766   exit (ferror (f) || fclose (f) != 0);
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774   (eval $ac_link) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; }; then
4783   ac_cv_sizeof_int=`cat conftest.val`
4784 else
4785   echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 ( exit $ac_status )
4790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: cannot compute sizeof (int), 77
4793 See \`config.log' for more details." >&2;}
4794    { (exit 1); exit 1; }; }
4795 fi
4796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 fi
4799 rm -f conftest.val
4800 else
4801   ac_cv_sizeof_int=0
4802 fi
4803 fi
4804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4805 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4806 cat >>confdefs.h <<_ACEOF
4807 #define SIZEOF_INT $ac_cv_sizeof_int
4808 _ACEOF
4809
4810
4811 echo "$as_me:$LINENO: checking for long" >&5
4812 echo $ECHO_N "checking for long... $ECHO_C" >&6
4813 if test "${ac_cv_type_long+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822 $ac_includes_default
4823 int
4824 main ()
4825 {
4826 if ((long *) 0)
4827   return 0;
4828 if (sizeof (long))
4829   return 0;
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836   (eval $ac_compile) 2>conftest.er1
4837   ac_status=$?
4838   grep -v '^ *+' conftest.er1 >conftest.err
4839   rm -f conftest.er1
4840   cat conftest.err >&5
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } &&
4843          { ac_try='test -z "$ac_c_werror_flag"
4844                          || test ! -s conftest.err'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; } &&
4850          { ac_try='test -s conftest.$ac_objext'
4851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852   (eval $ac_try) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; }; then
4856   ac_cv_type_long=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 ac_cv_type_long=no
4862 fi
4863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4866 echo "${ECHO_T}$ac_cv_type_long" >&6
4867
4868 echo "$as_me:$LINENO: checking size of long" >&5
4869 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4870 if test "${ac_cv_sizeof_long+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test "$ac_cv_type_long" = yes; then
4874   # The cast to unsigned long works around a bug in the HP C Compiler
4875   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4876   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4877   # This bug is HP SR number 8606223364.
4878   if test "$cross_compiling" = yes; then
4879   # Depending upon the size, compute the lo and hi bounds.
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886 $ac_includes_default
4887 int
4888 main ()
4889 {
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4891 test_array [0] = 0
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899   (eval $ac_compile) 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } &&
4906          { ac_try='test -z "$ac_c_werror_flag"
4907                          || test ! -s conftest.err'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; } &&
4913          { ac_try='test -s conftest.$ac_objext'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919   ac_lo=0 ac_mid=0
4920   while :; do
4921     cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 $ac_includes_default
4928 int
4929 main ()
4930 {
4931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4932 test_array [0] = 0
4933
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940   (eval $ac_compile) 2>conftest.er1
4941   ac_status=$?
4942   grep -v '^ *+' conftest.er1 >conftest.err
4943   rm -f conftest.er1
4944   cat conftest.err >&5
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); } &&
4947          { ac_try='test -z "$ac_c_werror_flag"
4948                          || test ! -s conftest.err'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; } &&
4954          { ac_try='test -s conftest.$ac_objext'
4955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956   (eval $ac_try) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }; }; then
4960   ac_hi=$ac_mid; break
4961 else
4962   echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 ac_lo=`expr $ac_mid + 1`
4966                     if test $ac_lo -le $ac_mid; then
4967                       ac_lo= ac_hi=
4968                       break
4969                     fi
4970                     ac_mid=`expr 2 '*' $ac_mid + 1`
4971 fi
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973   done
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 $ac_includes_default
4985 int
4986 main ()
4987 {
4988 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4989 test_array [0] = 0
4990
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997   (eval $ac_compile) 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } &&
5004          { ac_try='test -z "$ac_c_werror_flag"
5005                          || test ! -s conftest.err'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; } &&
5011          { ac_try='test -s conftest.$ac_objext'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; }; then
5017   ac_hi=-1 ac_mid=-1
5018   while :; do
5019     cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 $ac_includes_default
5026 int
5027 main ()
5028 {
5029 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5030 test_array [0] = 0
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038   (eval $ac_compile) 2>conftest.er1
5039   ac_status=$?
5040   grep -v '^ *+' conftest.er1 >conftest.err
5041   rm -f conftest.er1
5042   cat conftest.err >&5
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } &&
5045          { ac_try='test -z "$ac_c_werror_flag"
5046                          || test ! -s conftest.err'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; } &&
5052          { ac_try='test -s conftest.$ac_objext'
5053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054   (eval $ac_try) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; }; then
5058   ac_lo=$ac_mid; break
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_hi=`expr '(' $ac_mid ')' - 1`
5064                        if test $ac_mid -le $ac_hi; then
5065                          ac_lo= ac_hi=
5066                          break
5067                        fi
5068                        ac_mid=`expr 2 '*' $ac_mid`
5069 fi
5070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071   done
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 ac_lo= ac_hi=
5077 fi
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079 fi
5080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 # Binary search between lo and hi bounds.
5082 while test "x$ac_lo" != "x$ac_hi"; do
5083   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5084   cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091 int
5092 main ()
5093 {
5094 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5095 test_array [0] = 0
5096
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103   (eval $ac_compile) 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -z "$ac_c_werror_flag"
5111                          || test ! -s conftest.err'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; } &&
5117          { ac_try='test -s conftest.$ac_objext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_hi=$ac_mid
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_lo=`expr '(' $ac_mid ')' + 1`
5129 fi
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 done
5132 case $ac_lo in
5133 ?*) ac_cv_sizeof_long=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (long), 77
5137 See \`config.log' for more details." >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5140 else
5141   if test "$cross_compiling" = yes; then
5142   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146    { (exit 1); exit 1; }; }
5147 else
5148   cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (long)); }
5156 unsigned long ulongval () { return (long) (sizeof (long)); }
5157 #include <stdio.h>
5158 #include <stdlib.h>
5159 int
5160 main ()
5161 {
5162
5163   FILE *f = fopen ("conftest.val", "w");
5164   if (! f)
5165     exit (1);
5166   if (((long) (sizeof (long))) < 0)
5167     {
5168       long i = longval ();
5169       if (i != ((long) (sizeof (long))))
5170         exit (1);
5171       fprintf (f, "%ld\n", i);
5172     }
5173   else
5174     {
5175       unsigned long i = ulongval ();
5176       if (i != ((long) (sizeof (long))))
5177         exit (1);
5178       fprintf (f, "%lu\n", i);
5179     }
5180   exit (ferror (f) || fclose (f) != 0);
5181
5182   ;
5183   return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188   (eval $ac_link) 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long=`cat conftest.val`
5198 else
5199   echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 ( exit $ac_status )
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (long), 77
5207 See \`config.log' for more details." >&2;}
5208    { (exit 1); exit 1; }; }
5209 fi
5210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5211 fi
5212 fi
5213 rm -f conftest.val
5214 else
5215   ac_cv_sizeof_long=0
5216 fi
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5220 cat >>confdefs.h <<_ACEOF
5221 #define SIZEOF_LONG $ac_cv_sizeof_long
5222 _ACEOF
5223
5224
5225 if test $ac_cv_c_long_long = yes; then
5226   echo "$as_me:$LINENO: checking for long long" >&5
5227 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5228 if test "${ac_cv_type_long_long+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 $ac_includes_default
5238 int
5239 main ()
5240 {
5241 if ((long long *) 0)
5242   return 0;
5243 if (sizeof (long long))
5244   return 0;
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251   (eval $ac_compile) 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -z "$ac_c_werror_flag"
5259                          || test ! -s conftest.err'
5260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261   (eval $ac_try) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; } &&
5265          { ac_try='test -s conftest.$ac_objext'
5266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267   (eval $ac_try) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; }; then
5271   ac_cv_type_long_long=yes
5272 else
5273   echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 ac_cv_type_long_long=no
5277 fi
5278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5281 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5282
5283 echo "$as_me:$LINENO: checking size of long long" >&5
5284 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5285 if test "${ac_cv_sizeof_long_long+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   if test "$ac_cv_type_long_long" = yes; then
5289   # The cast to unsigned long works around a bug in the HP C Compiler
5290   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5291   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5292   # This bug is HP SR number 8606223364.
5293   if test "$cross_compiling" = yes; then
5294   # Depending upon the size, compute the lo and hi bounds.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 $ac_includes_default
5302 int
5303 main ()
5304 {
5305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5306 test_array [0] = 0
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314   (eval $ac_compile) 2>conftest.er1
5315   ac_status=$?
5316   grep -v '^ *+' conftest.er1 >conftest.err
5317   rm -f conftest.er1
5318   cat conftest.err >&5
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } &&
5321          { ac_try='test -z "$ac_c_werror_flag"
5322                          || test ! -s conftest.err'
5323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324   (eval $ac_try) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; } &&
5328          { ac_try='test -s conftest.$ac_objext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_lo=0 ac_mid=0
5335   while :; do
5336     cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342 $ac_includes_default
5343 int
5344 main ()
5345 {
5346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5347 test_array [0] = 0
5348
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355   (eval $ac_compile) 2>conftest.er1
5356   ac_status=$?
5357   grep -v '^ *+' conftest.er1 >conftest.err
5358   rm -f conftest.er1
5359   cat conftest.err >&5
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); } &&
5362          { ac_try='test -z "$ac_c_werror_flag"
5363                          || test ! -s conftest.err'
5364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365   (eval $ac_try) 2>&5
5366   ac_status=$?
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); }; } &&
5369          { ac_try='test -s conftest.$ac_objext'
5370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371   (eval $ac_try) 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; }; then
5375   ac_hi=$ac_mid; break
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 ac_lo=`expr $ac_mid + 1`
5381                     if test $ac_lo -le $ac_mid; then
5382                       ac_lo= ac_hi=
5383                       break
5384                     fi
5385                     ac_mid=`expr 2 '*' $ac_mid + 1`
5386 fi
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5388   done
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 $ac_includes_default
5400 int
5401 main ()
5402 {
5403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5404 test_array [0] = 0
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412   (eval $ac_compile) 2>conftest.er1
5413   ac_status=$?
5414   grep -v '^ *+' conftest.er1 >conftest.err
5415   rm -f conftest.er1
5416   cat conftest.err >&5
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); } &&
5419          { ac_try='test -z "$ac_c_werror_flag"
5420                          || test ! -s conftest.err'
5421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422   (eval $ac_try) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); }; } &&
5426          { ac_try='test -s conftest.$ac_objext'
5427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428   (eval $ac_try) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; }; then
5432   ac_hi=-1 ac_mid=-1
5433   while :; do
5434     cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440 $ac_includes_default
5441 int
5442 main ()
5443 {
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5445 test_array [0] = 0
5446
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453   (eval $ac_compile) 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } &&
5460          { ac_try='test -z "$ac_c_werror_flag"
5461                          || test ! -s conftest.err'
5462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463   (eval $ac_try) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; } &&
5467          { ac_try='test -s conftest.$ac_objext'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   ac_lo=$ac_mid; break
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_hi=`expr '(' $ac_mid ')' - 1`
5479                        if test $ac_mid -le $ac_hi; then
5480                          ac_lo= ac_hi=
5481                          break
5482                        fi
5483                        ac_mid=`expr 2 '*' $ac_mid`
5484 fi
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486   done
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_lo= ac_hi=
5492 fi
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499   cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505 $ac_includes_default
5506 int
5507 main ()
5508 {
5509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5510 test_array [0] = 0
5511
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518   (eval $ac_compile) 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -z "$ac_c_werror_flag"
5526                          || test ! -s conftest.err'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; } &&
5532          { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 ac_lo=`expr '(' $ac_mid ')' + 1`
5544 fi
5545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5546 done
5547 case $ac_lo in
5548 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553    { (exit 1); exit 1; }; } ;;
5554 esac
5555 else
5556   if test "$cross_compiling" = yes; then
5557   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&5
5559 echo "$as_me: error: cannot run test program while cross compiling
5560 See \`config.log' for more details." >&2;}
5561    { (exit 1); exit 1; }; }
5562 else
5563   cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569 $ac_includes_default
5570 long longval () { return (long) (sizeof (long long)); }
5571 unsigned long ulongval () { return (long) (sizeof (long long)); }
5572 #include <stdio.h>
5573 #include <stdlib.h>
5574 int
5575 main ()
5576 {
5577
5578   FILE *f = fopen ("conftest.val", "w");
5579   if (! f)
5580     exit (1);
5581   if (((long) (sizeof (long long))) < 0)
5582     {
5583       long i = longval ();
5584       if (i != ((long) (sizeof (long long))))
5585         exit (1);
5586       fprintf (f, "%ld\n", i);
5587     }
5588   else
5589     {
5590       unsigned long i = ulongval ();
5591       if (i != ((long) (sizeof (long long))))
5592         exit (1);
5593       fprintf (f, "%lu\n", i);
5594     }
5595   exit (ferror (f) || fclose (f) != 0);
5596
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603   (eval $ac_link) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   ac_cv_sizeof_long_long=`cat conftest.val`
5613 else
5614   echo "$as_me: program exited with status $ac_status" >&5
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 ( exit $ac_status )
5619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5620 See \`config.log' for more details." >&5
5621 echo "$as_me: error: cannot compute sizeof (long long), 77
5622 See \`config.log' for more details." >&2;}
5623    { (exit 1); exit 1; }; }
5624 fi
5625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 fi
5628 rm -f conftest.val
5629 else
5630   ac_cv_sizeof_long_long=0
5631 fi
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5634 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5635 cat >>confdefs.h <<_ACEOF
5636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5637 _ACEOF
5638
5639
5640 fi
5641 if test $ac_cv_c___int64 = yes; then
5642   echo "$as_me:$LINENO: checking for __int64" >&5
5643 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5644 if test "${ac_cv_type___int64+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 $ac_includes_default
5654 int
5655 main ()
5656 {
5657 if ((__int64 *) 0)
5658   return 0;
5659 if (sizeof (__int64))
5660   return 0;
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -z "$ac_c_werror_flag"
5675                          || test ! -s conftest.err'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; } &&
5681          { ac_try='test -s conftest.$ac_objext'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; then
5687   ac_cv_type___int64=yes
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 ac_cv_type___int64=no
5693 fi
5694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5695 fi
5696 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5697 echo "${ECHO_T}$ac_cv_type___int64" >&6
5698
5699 echo "$as_me:$LINENO: checking size of __int64" >&5
5700 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5701 if test "${ac_cv_sizeof___int64+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   if test "$ac_cv_type___int64" = yes; then
5705   # The cast to unsigned long works around a bug in the HP C Compiler
5706   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5707   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5708   # This bug is HP SR number 8606223364.
5709   if test "$cross_compiling" = yes; then
5710   # Depending upon the size, compute the lo and hi bounds.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717 $ac_includes_default
5718 int
5719 main ()
5720 {
5721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5722 test_array [0] = 0
5723
5724   ;
5725   return 0;
5726 }
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730   (eval $ac_compile) 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } &&
5737          { ac_try='test -z "$ac_c_werror_flag"
5738                          || test ! -s conftest.err'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; } &&
5744          { ac_try='test -s conftest.$ac_objext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_lo=0 ac_mid=0
5751   while :; do
5752     cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 $ac_includes_default
5759 int
5760 main ()
5761 {
5762 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5763 test_array [0] = 0
5764
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771   (eval $ac_compile) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -z "$ac_c_werror_flag"
5779                          || test ! -s conftest.err'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; } &&
5785          { ac_try='test -s conftest.$ac_objext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_hi=$ac_mid; break
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_lo=`expr $ac_mid + 1`
5797                     if test $ac_lo -le $ac_mid; then
5798                       ac_lo= ac_hi=
5799                       break
5800                     fi
5801                     ac_mid=`expr 2 '*' $ac_mid + 1`
5802 fi
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804   done
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h.  */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h.  */
5815 $ac_includes_default
5816 int
5817 main ()
5818 {
5819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5820 test_array [0] = 0
5821
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828   (eval $ac_compile) 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } &&
5835          { ac_try='test -z "$ac_c_werror_flag"
5836                          || test ! -s conftest.err'
5837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838   (eval $ac_try) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; } &&
5842          { ac_try='test -s conftest.$ac_objext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_hi=-1 ac_mid=-1
5849   while :; do
5850     cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 $ac_includes_default
5857 int
5858 main ()
5859 {
5860 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5861 test_array [0] = 0
5862
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -z "$ac_c_werror_flag"
5877                          || test ! -s conftest.err'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; } &&
5883          { ac_try='test -s conftest.$ac_objext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_lo=$ac_mid; break
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_hi=`expr '(' $ac_mid ')' - 1`
5895                        if test $ac_mid -le $ac_hi; then
5896                          ac_lo= ac_hi=
5897                          break
5898                        fi
5899                        ac_mid=`expr 2 '*' $ac_mid`
5900 fi
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902   done
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_lo= ac_hi=
5908 fi
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 fi
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 # Binary search between lo and hi bounds.
5913 while test "x$ac_lo" != "x$ac_hi"; do
5914   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5915   cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h.  */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h.  */
5921 $ac_includes_default
5922 int
5923 main ()
5924 {
5925 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5926 test_array [0] = 0
5927
5928   ;
5929   return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934   (eval $ac_compile) 2>conftest.er1
5935   ac_status=$?
5936   grep -v '^ *+' conftest.er1 >conftest.err
5937   rm -f conftest.er1
5938   cat conftest.err >&5
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -z "$ac_c_werror_flag"
5942                          || test ! -s conftest.err'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; } &&
5948          { ac_try='test -s conftest.$ac_objext'
5949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950   (eval $ac_try) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); }; }; then
5954   ac_hi=$ac_mid
5955 else
5956   echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_lo=`expr '(' $ac_mid ')' + 1`
5960 fi
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962 done
5963 case $ac_lo in
5964 ?*) ac_cv_sizeof___int64=$ac_lo;;
5965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (__int64), 77
5968 See \`config.log' for more details." >&2;}
5969    { (exit 1); exit 1; }; } ;;
5970 esac
5971 else
5972   if test "$cross_compiling" = yes; then
5973   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5974 See \`config.log' for more details." >&5
5975 echo "$as_me: error: cannot run test program while cross compiling
5976 See \`config.log' for more details." >&2;}
5977    { (exit 1); exit 1; }; }
5978 else
5979   cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 $ac_includes_default
5986 long longval () { return (long) (sizeof (__int64)); }
5987 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5988 #include <stdio.h>
5989 #include <stdlib.h>
5990 int
5991 main ()
5992 {
5993
5994   FILE *f = fopen ("conftest.val", "w");
5995   if (! f)
5996     exit (1);
5997   if (((long) (sizeof (__int64))) < 0)
5998     {
5999       long i = longval ();
6000       if (i != ((long) (sizeof (__int64))))
6001         exit (1);
6002       fprintf (f, "%ld\n", i);
6003     }
6004   else
6005     {
6006       unsigned long i = ulongval ();
6007       if (i != ((long) (sizeof (__int64))))
6008         exit (1);
6009       fprintf (f, "%lu\n", i);
6010     }
6011   exit (ferror (f) || fclose (f) != 0);
6012
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_sizeof___int64=`cat conftest.val`
6029 else
6030   echo "$as_me: program exited with status $ac_status" >&5
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 ( exit $ac_status )
6035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: cannot compute sizeof (__int64), 77
6038 See \`config.log' for more details." >&2;}
6039    { (exit 1); exit 1; }; }
6040 fi
6041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6042 fi
6043 fi
6044 rm -f conftest.val
6045 else
6046   ac_cv_sizeof___int64=0
6047 fi
6048 fi
6049 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6050 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6051 cat >>confdefs.h <<_ACEOF
6052 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6053 _ACEOF
6054
6055
6056 fi
6057
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6061
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6064 # * 'long long'
6065 # * variadic macros
6066 # So, we only use -pedantic if we can disable those warnings.
6067
6068 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6069 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6070 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   save_CFLAGS="$CFLAGS"
6074   CFLAGS="-Wno-long-long"
6075   cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085   (eval $ac_compile) 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -z "$ac_c_werror_flag"
6093                          || test ! -s conftest.err'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; } &&
6099          { ac_try='test -s conftest.$ac_objext'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; }; then
6105   ac_cv_prog_cc_w_no_long_long=yes
6106 else
6107   echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 ac_cv_prog_cc_w_no_long_long=no
6111 fi
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113   CFLAGS="$save_CFLAGS"
6114
6115 fi
6116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6118
6119 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6120 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6121 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   save_CFLAGS="$CFLAGS"
6125   CFLAGS="-Wno-variadic-macros"
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136   (eval $ac_compile) 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } &&
6143          { ac_try='test -z "$ac_c_werror_flag"
6144                          || test ! -s conftest.err'
6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; } &&
6150          { ac_try='test -s conftest.$ac_objext'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; }; then
6156   ac_cv_prog_cc_w_no_variadic_macros=yes
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_cv_prog_cc_w_no_variadic_macros=no
6162 fi
6163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164   CFLAGS="$save_CFLAGS"
6165
6166 fi
6167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6168 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6169
6170 strict1_warn=
6171 if test $ac_cv_prog_cc_w_no_long_long = yes \
6172    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6173   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6174 fi
6175
6176
6177 # Add -Wold-style-definition if it's accepted
6178 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6179 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6180 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   save_CFLAGS="$CFLAGS"
6184   CFLAGS="-Wold-style-definition"
6185   cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195   (eval $ac_compile) 2>conftest.er1
6196   ac_status=$?
6197   grep -v '^ *+' conftest.er1 >conftest.err
6198   rm -f conftest.er1
6199   cat conftest.err >&5
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } &&
6202          { ac_try='test -z "$ac_c_werror_flag"
6203                          || test ! -s conftest.err'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; } &&
6209          { ac_try='test -s conftest.$ac_objext'
6210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211   (eval $ac_try) 2>&5
6212   ac_status=$?
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); }; }; then
6215   ac_cv_prog_cc_w_old_style_definition=yes
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_cv_prog_cc_w_old_style_definition=no
6221 fi
6222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6223   CFLAGS="$save_CFLAGS"
6224
6225 fi
6226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6228 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6229   strict1_warn="${strict1_warn} -Wold-style-definition"
6230 fi
6231
6232 # Enable -Werror, period.
6233 # Check whether --enable-werror_always or --disable-werror_always was given.
6234 if test "${enable_werror_always+set}" = set; then
6235   enableval="$enable_werror_always"
6236
6237 else
6238   enable_werror_always=no
6239 fi;
6240 if test x${enable_werror_always} = xyes ; then
6241   strict1_warn="${strict1_warn} -Werror"
6242   WERROR=-Werror
6243 fi
6244
6245 # If the native compiler is GCC, we can enable warnings even in stage1.
6246 # That's useful for people building cross-compilers, or just running a
6247 # quick `make'.
6248 warn_cflags=
6249 if test "x$GCC" = "xyes"; then
6250   warn_cflags='$(GCC_WARN_CFLAGS)'
6251 fi
6252
6253
6254 # Enable -Werror in bootstrap stage2 and later.
6255 # Check whether --enable-werror or --disable-werror was given.
6256 if test "${enable_werror+set}" = set; then
6257   enableval="$enable_werror"
6258
6259 else
6260   if test x$is_release = x ; then
6261   # Default to "yes" on development branches.
6262   enable_werror=yes
6263 else
6264   # Default to "no" on release branches.
6265   enable_werror=no
6266 fi
6267 fi;
6268 if test x$enable_werror = xyes ; then
6269   WERROR=-Werror
6270 fi
6271
6272
6273 # Enable expensive internal checks
6274 # Check whether --enable-checking or --disable-checking was given.
6275 if test "${enable_checking+set}" = set; then
6276   enableval="$enable_checking"
6277   ac_checking_flags="${enableval}"
6278 else
6279
6280 # Determine the default checks.
6281 if test x$is_release = x ; then
6282   ac_checking_flags=yes
6283 else
6284   ac_checking_flags=release
6285 fi
6286 fi;
6287 ac_assert_checking=1
6288 ac_checking=
6289 ac_tree_checking=
6290 ac_rtl_checking=
6291 ac_rtlflag_checking=
6292 ac_gc_checking=
6293 ac_gc_always_collect=
6294 ac_fold_checking=
6295 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6296 for check in $ac_checking_flags
6297 do
6298         case $check in
6299         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6300                         ac_tree_checking=1 ; ac_gc_checking=1 ;
6301                         ac_rtlflag_checking=1 ;;
6302         no)             ac_assert_checking= ; ac_checking= ;
6303                         ac_tree_checking= ; ac_rtl_checking= ;
6304                         ac_rtlflag_checking= ; ac_gc_checking= ;
6305                         ac_gc_always_collect= ; ac_fold_checking= ;;
6306         all)            ac_assert_checking=1 ; ac_checking=1 ;
6307                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
6308                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6309                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6310         release)        ac_assert_checking=1 ;;
6311         assert)         ac_assert_checking=1 ;;
6312         fold)           ac_fold_checking=1 ;;
6313         gc)             ac_gc_checking=1 ;;
6314         gcac)           ac_gc_always_collect=1 ;;
6315         misc)           ac_checking=1 ;;
6316         rtlflag)        ac_rtlflag_checking=1 ;;
6317         rtl)            ac_rtl_checking=1 ;;
6318         tree)           ac_tree_checking=1 ;;
6319         valgrind)       ac_checking_valgrind=1 ;;
6320         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6321 echo "$as_me: error: unknown check category $check" >&2;}
6322    { (exit 1); exit 1; }; } ;;
6323         esac
6324 done
6325 IFS="$ac_save_IFS"
6326
6327 nocommon_flag=""
6328 if test x$ac_checking != x ; then
6329
6330 cat >>confdefs.h <<\_ACEOF
6331 #define ENABLE_CHECKING 1
6332 _ACEOF
6333
6334   nocommon_flag=-fno-common
6335 fi
6336
6337 if test x$ac_assert_checking != x ; then
6338
6339 cat >>confdefs.h <<\_ACEOF
6340 #define ENABLE_ASSERT_CHECKING 1
6341 _ACEOF
6342
6343 fi
6344 if test x$ac_tree_checking != x ; then
6345
6346 cat >>confdefs.h <<\_ACEOF
6347 #define ENABLE_TREE_CHECKING 1
6348 _ACEOF
6349
6350   TREEBROWSER=tree-browser.o
6351 fi
6352
6353 if test x$ac_rtl_checking != x ; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define ENABLE_RTL_CHECKING 1
6357 _ACEOF
6358
6359 fi
6360 if test x$ac_rtlflag_checking != x ; then
6361
6362 cat >>confdefs.h <<\_ACEOF
6363 #define ENABLE_RTL_FLAG_CHECKING 1
6364 _ACEOF
6365
6366 fi
6367 if test x$ac_gc_checking != x ; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define ENABLE_GC_CHECKING 1
6371 _ACEOF
6372
6373 fi
6374 if test x$ac_gc_always_collect != x ; then
6375
6376 cat >>confdefs.h <<\_ACEOF
6377 #define ENABLE_GC_ALWAYS_COLLECT 1
6378 _ACEOF
6379
6380 fi
6381 if test x$ac_fold_checking != x ; then
6382
6383 cat >>confdefs.h <<\_ACEOF
6384 #define ENABLE_FOLD_CHECKING 1
6385 _ACEOF
6386
6387 fi
6388 valgrind_path_defines=
6389 valgrind_command=
6390
6391 if test "${ac_cv_header_valgrind_h+set}" = set; then
6392   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6393 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6394 if test "${ac_cv_header_valgrind_h+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 fi
6397 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6398 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6399 else
6400   # Is the header compilable?
6401 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6402 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409 $ac_includes_default
6410 #include <valgrind.h>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414   (eval $ac_compile) 2>conftest.er1
6415   ac_status=$?
6416   grep -v '^ *+' conftest.er1 >conftest.err
6417   rm -f conftest.er1
6418   cat conftest.err >&5
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } &&
6421          { ac_try='test -z "$ac_c_werror_flag"
6422                          || test ! -s conftest.err'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; } &&
6428          { ac_try='test -s conftest.$ac_objext'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; }; then
6434   ac_header_compiler=yes
6435 else
6436   echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 ac_header_compiler=no
6440 fi
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6444
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6447 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 #include <valgrind.h>
6455 _ACEOF
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458   ac_status=$?
6459   grep -v '^ *+' conftest.er1 >conftest.err
6460   rm -f conftest.er1
6461   cat conftest.err >&5
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } >/dev/null; then
6464   if test -s conftest.err; then
6465     ac_cpp_err=$ac_c_preproc_warn_flag
6466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6467   else
6468     ac_cpp_err=
6469   fi
6470 else
6471   ac_cpp_err=yes
6472 fi
6473 if test -z "$ac_cpp_err"; then
6474   ac_header_preproc=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479   ac_header_preproc=no
6480 fi
6481 rm -f conftest.err conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6484
6485 # So?  What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487   yes:no: )
6488     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6492     ac_header_preproc=yes
6493     ;;
6494   no:yes:* )
6495     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6497     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6499     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6507     (
6508       cat <<\_ASBOX
6509 ## ------------------------------------------ ##
6510 ## Report this to the AC_PACKAGE_NAME lists.  ##
6511 ## ------------------------------------------ ##
6512 _ASBOX
6513     ) |
6514       sed "s/^/$as_me: WARNING:     /" >&2
6515     ;;
6516 esac
6517 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6518 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6519 if test "${ac_cv_header_valgrind_h+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   ac_cv_header_valgrind_h=$ac_header_preproc
6523 fi
6524 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6525 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6526
6527 fi
6528 if test $ac_cv_header_valgrind_h = yes; then
6529   have_valgrind_h=yes
6530 else
6531   have_valgrind_h=no
6532 fi
6533
6534
6535
6536 if test x$ac_checking_valgrind != x ; then
6537   # It is certainly possible that there's valgrind but no valgrind.h.
6538   # GCC relies on making annotations so we must have both.
6539   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6540 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6541   cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 #include <valgrind/memcheck.h>
6548 #ifndef VALGRIND_DISCARD
6549 #error VALGRIND_DISCARD not defined
6550 #endif
6551 _ACEOF
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } >/dev/null; then
6560   if test -s conftest.err; then
6561     ac_cpp_err=$ac_c_preproc_warn_flag
6562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6563   else
6564     ac_cpp_err=
6565   fi
6566 else
6567   ac_cpp_err=yes
6568 fi
6569 if test -z "$ac_cpp_err"; then
6570   gcc_cv_header_valgrind_memcheck_h=yes
6571 else
6572   echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575   gcc_cv_header_valgrind_memcheck_h=no
6576 fi
6577 rm -f conftest.err conftest.$ac_ext
6578   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6579 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6580   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6581 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6582   cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 #include <memcheck.h>
6589 #ifndef VALGRIND_DISCARD
6590 #error VALGRIND_DISCARD not defined
6591 #endif
6592 _ACEOF
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595   ac_status=$?
6596   grep -v '^ *+' conftest.er1 >conftest.err
6597   rm -f conftest.er1
6598   cat conftest.err >&5
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } >/dev/null; then
6601   if test -s conftest.err; then
6602     ac_cpp_err=$ac_c_preproc_warn_flag
6603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6604   else
6605     ac_cpp_err=
6606   fi
6607 else
6608   ac_cpp_err=yes
6609 fi
6610 if test -z "$ac_cpp_err"; then
6611   gcc_cv_header_memcheck_h=yes
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616   gcc_cv_header_memcheck_h=no
6617 fi
6618 rm -f conftest.err conftest.$ac_ext
6619   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6620 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6621
6622 # Prepare PATH_SEPARATOR.
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625   echo "#! /bin/sh" >conf$$.sh
6626   echo  "exit 0"   >>conf$$.sh
6627   chmod +x conf$$.sh
6628   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6629     PATH_SEPARATOR=';'
6630   else
6631     PATH_SEPARATOR=:
6632   fi
6633   rm -f conf$$.sh
6634 fi
6635
6636 # Find out how to test for executable files. Don't use a zero-byte file,
6637 # as systems may use methods other than mode bits to determine executability.
6638 cat >conf$$.file <<_ASEOF
6639 #! /bin/sh
6640 exit 0
6641 _ASEOF
6642 chmod +x conf$$.file
6643 if test -x conf$$.file >/dev/null 2>&1; then
6644   ac_executable_p="test -x"
6645 else
6646   ac_executable_p="test -f"
6647 fi
6648 rm -f conf$$.file
6649
6650 # Extract the first word of "valgrind", so it can be a program name with args.
6651 set dummy valgrind; ac_word=$2
6652 echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6654 if test "${ac_cv_path_valgrind_path+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   case "$valgrind_path" in
6658   [\\/]* | ?:[\\/]*)
6659     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6660     ;;
6661   *)
6662     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6663     for ac_dir in $PATH; do
6664       IFS="$ac_save_IFS"
6665       test -z "$ac_dir" && ac_dir=.
6666       for ac_exec_ext in '' $ac_executable_extensions; do
6667         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6668           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6669             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6670             break 2
6671           fi
6672         fi
6673       done
6674     done
6675     IFS="$ac_save_IFS"
6676     ;;
6677 esac
6678 fi
6679 valgrind_path="$ac_cv_path_valgrind_path"
6680 if test -n "$valgrind_path"; then
6681   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6682 echo "${ECHO_T}$valgrind_path" >&6
6683 else
6684   echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6686 fi
6687
6688   if test "x$valgrind_path" = "x" \
6689     || (test $have_valgrind_h = no \
6690         && test $gcc_cv_header_memcheck_h = no \
6691         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6692         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6693 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6694    { (exit 1); exit 1; }; }
6695   fi
6696   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6697   valgrind_command="$valgrind_path -q"
6698
6699 cat >>confdefs.h <<\_ACEOF
6700 #define ENABLE_VALGRIND_CHECKING 1
6701 _ACEOF
6702
6703   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6704
6705 cat >>confdefs.h <<\_ACEOF
6706 #define HAVE_VALGRIND_MEMCHECK_H 1
6707 _ACEOF
6708
6709   fi
6710   if test $gcc_cv_header_memcheck_h = yes; then
6711
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_MEMCHECK_H 1
6714 _ACEOF
6715
6716   fi
6717 fi
6718
6719
6720
6721 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6722 if test "${enable_mapped_location+set}" = set; then
6723   enableval="$enable_mapped_location"
6724
6725 else
6726   enable_mapped_location=no
6727 fi;
6728
6729 if test "$enable_mapped_location" = yes ; then
6730
6731 cat >>confdefs.h <<\_ACEOF
6732 #define USE_MAPPED_LOCATION 1
6733 _ACEOF
6734
6735 fi
6736
6737 # Enable code coverage collection
6738 # Check whether --enable-coverage or --disable-coverage was given.
6739 if test "${enable_coverage+set}" = set; then
6740   enableval="$enable_coverage"
6741   case "${enableval}" in
6742   yes|noopt)
6743     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6744     ;;
6745   opt)
6746     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6747     ;;
6748   no)
6749     # a.k.a. --disable-coverage
6750     coverage_flags=""
6751     ;;
6752   *)
6753     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6754 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6755    { (exit 1); exit 1; }; }
6756     ;;
6757 esac
6758 else
6759   coverage_flags=""
6760 fi;
6761
6762
6763 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6764 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6765   enableval="$enable_gather_detailed_mem_stats"
6766
6767 else
6768   enable_gather_detailed_mem_stats=no
6769 fi;
6770 if test x$enable_gather_detailed_mem_stats = xyes ; then
6771
6772 cat >>confdefs.h <<\_ACEOF
6773 #define GATHER_STATISTICS 1
6774 _ACEOF
6775
6776 fi
6777
6778 # -------------------------------
6779 # Miscenalleous configure options
6780 # -------------------------------
6781
6782 # With stabs
6783
6784 # Check whether --with-stabs or --without-stabs was given.
6785 if test "${with_stabs+set}" = set; then
6786   withval="$with_stabs"
6787   stabs="$with_stabs"
6788 else
6789   stabs=no
6790 fi;
6791
6792 # Determine whether or not multilibs are enabled.
6793 # Check whether --enable-multilib or --disable-multilib was given.
6794 if test "${enable_multilib+set}" = set; then
6795   enableval="$enable_multilib"
6796
6797 else
6798   enable_multilib=yes
6799 fi;
6800
6801
6802 # Enable __cxa_atexit for C++.
6803 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6804 if test "${enable___cxa_atexit+set}" = set; then
6805   enableval="$enable___cxa_atexit"
6806
6807 fi;
6808
6809 # Enable threads
6810 # Pass with no value to take the default
6811 # Pass with a value to specify a thread package
6812 # Check whether --enable-threads or --disable-threads was given.
6813 if test "${enable_threads+set}" = set; then
6814   enableval="$enable_threads"
6815
6816 else
6817   enable_threads=''
6818 fi;
6819
6820 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6821 if test "${enable_objc_gc+set}" = set; then
6822   enableval="$enable_objc_gc"
6823   if test x$enable_objc_gc = xno; then
6824         objc_boehm_gc=''
6825 else
6826         objc_boehm_gc=1
6827 fi
6828 else
6829   objc_boehm_gc=''
6830 fi;
6831
6832
6833 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6834 if test "${with_dwarf2+set}" = set; then
6835   withval="$with_dwarf2"
6836   dwarf2="$with_dwarf2"
6837 else
6838   dwarf2=no
6839 fi;
6840
6841 # Check whether --enable-shared or --disable-shared was given.
6842 if test "${enable_shared+set}" = set; then
6843   enableval="$enable_shared"
6844
6845   case $enable_shared in
6846   yes | no) ;;
6847   *)
6848     enable_shared=no
6849     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6850     for pkg in $enableval; do
6851       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6852         enable_shared=yes
6853       fi
6854     done
6855     IFS="$ac_save_ifs"
6856     ;;
6857   esac
6858
6859 else
6860   enable_shared=yes
6861 fi;
6862
6863
6864
6865 # Check whether --with-sysroot or --without-sysroot was given.
6866 if test "${with_sysroot+set}" = set; then
6867   withval="$with_sysroot"
6868
6869  case ${with_sysroot} in
6870  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6871  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6872  esac
6873
6874  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6875  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6876
6877  if test "x$exec_prefix" = xNONE; then
6878   if test "x$prefix" = xNONE; then
6879    test_prefix=/usr/local
6880   else
6881    test_prefix=$prefix
6882   fi
6883  else
6884   test_prefix=$exec_prefix
6885  fi
6886  case ${TARGET_SYSTEM_ROOT} in
6887  "${test_prefix}"|"${test_prefix}/"*|\
6888  '${exec_prefix}'|'${exec_prefix}/'*)
6889    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6890    TARGET_SYSTEM_ROOT_DEFINE="$t"
6891    ;;
6892  esac
6893
6894 else
6895
6896  TARGET_SYSTEM_ROOT=
6897  TARGET_SYSTEM_ROOT_DEFINE=
6898  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6899
6900 fi;
6901
6902
6903
6904
6905 # Build with intermodule optimisations
6906 # Check whether --enable-intermodule or --disable-intermodule was given.
6907 if test "${enable_intermodule+set}" = set; then
6908   enableval="$enable_intermodule"
6909   case ${enable_intermodule} in
6910   yes) onestep="-onestep";;
6911   *) onestep="";;
6912 esac
6913 else
6914   onestep=""
6915 fi;
6916
6917
6918 # Sanity check enable_languages in case someone does not run the toplevel
6919 # configure # script.
6920 # Check whether --enable-languages or --disable-languages was given.
6921 if test "${enable_languages+set}" = set; then
6922   enableval="$enable_languages"
6923   case ,${enable_languages}, in
6924        ,,|,yes,)
6925                 # go safe -- we cannot be much sure without the toplevel
6926                 # configure's
6927                 # analysis of which target libs are present and usable
6928                 enable_languages=c
6929                 ;;
6930          *,all,*)
6931                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6932 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6933    { (exit 1); exit 1; }; }
6934                 ;;
6935         *,c,*)
6936                 ;;
6937         *)
6938                 enable_languages=c,${enable_languages}
6939                 ;;
6940 esac
6941 else
6942   enable_languages=c
6943 fi;
6944
6945 subdirs=
6946 for lang in ${srcdir}/*/config-lang.in
6947 do
6948         case $lang in
6949         # The odd quoting in the next line works around
6950         # an apparent bug in bash 1.12 on linux.
6951         ${srcdir}/[*]/config-lang.in) ;;
6952         *)
6953           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6954           if test "x$lang_alias" = x
6955           then
6956                 echo "$lang doesn't set \$language." 1>&2
6957                 exit 1
6958           fi
6959           case ",$enable_languages," in
6960           *,$lang_alias,*)
6961             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6962           esac
6963           ;;
6964         esac
6965 done
6966
6967
6968 # -------------------------
6969 # Checks for other programs
6970 # -------------------------
6971
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   cat >conftest.make <<\_ACEOF
6979 all:
6980         @echo 'ac_maketemp="$(MAKE)"'
6981 _ACEOF
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985   eval ac_cv_prog_make_${ac_make}_set=yes
6986 else
6987   eval ac_cv_prog_make_${ac_make}_set=no
6988 fi
6989 rm -f conftest.make
6990 fi
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992   echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6994   SET_MAKE=
6995 else
6996   echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998   SET_MAKE="MAKE=${MAKE-make}"
6999 fi
7000
7001
7002 # Find some useful tools
7003 for ac_prog in gawk mawk nawk awk
7004 do
7005   # Extract the first word of "$ac_prog", so it can be a program name with args.
7006 set dummy $ac_prog; ac_word=$2
7007 echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009 if test "${ac_cv_prog_AWK+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   if test -n "$AWK"; then
7013   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022     ac_cv_prog_AWK="$ac_prog"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028
7029 fi
7030 fi
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033   echo "$as_me:$LINENO: result: $AWK" >&5
7034 echo "${ECHO_T}$AWK" >&6
7035 else
7036   echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7038 fi
7039
7040   test -n "$AWK" && break
7041 done
7042
7043 # We need awk to create options.c and options.h.
7044 # Bail out if it's missing.
7045 case ${AWK} in
7046   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7047 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7048    { (exit 1); exit 1; }; } ;;
7049 esac
7050
7051 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7053 if test "${gcc_cv_prog_LN_S+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   rm -f conftestdata_t
7057 echo >conftestdata_f
7058 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7059 then
7060   gcc_cv_prog_LN_S="ln -s"
7061 else
7062   if ln conftestdata_f conftestdata_t 2>/dev/null
7063   then
7064     gcc_cv_prog_LN_S=ln
7065   else
7066     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7067     then
7068       gcc_cv_prog_LN_S="cp -p"
7069     else
7070       gcc_cv_prog_LN_S=cp
7071     fi
7072   fi
7073 fi
7074 rm -f conftestdata_f conftestdata_t
7075
7076 fi
7077 LN_S="$gcc_cv_prog_LN_S"
7078 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7079   echo "$as_me:$LINENO: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7081 else
7082   if test "$gcc_cv_prog_LN_S" = "ln"; then
7083     echo "$as_me:$LINENO: result: no, using ln" >&5
7084 echo "${ECHO_T}no, using ln" >&6
7085   else
7086     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7087 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7088   fi
7089 fi
7090
7091 echo "$as_me:$LINENO: checking whether ln works" >&5
7092 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7093 if test "${acx_cv_prog_LN+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   rm -f conftestdata_t
7097 echo >conftestdata_f
7098 if ln conftestdata_f conftestdata_t 2>/dev/null
7099 then
7100   acx_cv_prog_LN=ln
7101 else
7102   acx_cv_prog_LN=no
7103 fi
7104 rm -f conftestdata_f conftestdata_t
7105
7106 fi
7107 if test $acx_cv_prog_LN = no; then
7108   LN="$LN_S"
7109   echo "$as_me:$LINENO: result: no, using $LN" >&5
7110 echo "${ECHO_T}no, using $LN" >&6
7111 else
7112   LN="$acx_cv_prog_LN"
7113   echo "$as_me:$LINENO: result: yes" >&5
7114 echo "${ECHO_T}yes" >&6
7115 fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_RANLIB+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   if test -n "$RANLIB"; then
7126   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133   for ac_exec_ext in '' $ac_executable_extensions; do
7134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140 done
7141
7142 fi
7143 fi
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146   echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6
7148 else
7149   echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7151 fi
7152
7153 fi
7154 if test -z "$ac_cv_prog_RANLIB"; then
7155   ac_ct_RANLIB=$RANLIB
7156   # Extract the first word of "ranlib", so it can be a program name with args.
7157 set dummy ranlib; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   if test -n "$ac_ct_RANLIB"; then
7164   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_ac_ct_RANLIB="ranlib"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179
7180   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7181 fi
7182 fi
7183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7184 if test -n "$ac_ct_RANLIB"; then
7185   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7187 else
7188   echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190 fi
7191
7192   RANLIB=$ac_ct_RANLIB
7193 else
7194   RANLIB="$ac_cv_prog_RANLIB"
7195 fi
7196
7197 case "${host}" in
7198 *-*-darwin*)
7199   # By default, the Darwin ranlib will not treat common symbols as
7200   # definitions when  building the archive table of contents.  Other
7201   # ranlibs do that; pass an option to the Darwin ranlib that makes
7202   # it behave similarly.
7203   ranlib_flags="-c"
7204   ;;
7205 *)
7206   ranlib_flags=""
7207 esac
7208
7209
7210 # Find a good install program.  We prefer a C program (faster),
7211 # so one script is as good as another.  But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7216 # AIX /bin/install
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # ./install, which can be erroneously created by make from ./install.sh.
7220 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7222 if test -z "$INSTALL"; then
7223 if test "${ac_cv_path_install+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7227   for ac_dir in $PATH; do
7228     # Account for people who put trailing slashes in PATH elements.
7229     case "$ac_dir/" in
7230     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7231     *)
7232       # OSF1 and SCO ODT 3.0 have their own names for install.
7233       for ac_prog in ginstall scoinst install; do
7234         if test -f $ac_dir/$ac_prog; then
7235           if test $ac_prog = install &&
7236             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7237             # AIX install.  It has an incompatible calling convention.
7238             # OSF/1 installbsd also uses dspmsg, but is usable.
7239             :
7240           else
7241             ac_cv_path_install="$ac_dir/$ac_prog -c"
7242             break 2
7243           fi
7244         fi
7245       done
7246       ;;
7247     esac
7248   done
7249   IFS="$ac_save_IFS"
7250
7251 fi
7252   if test "${ac_cv_path_install+set}" = set; then
7253     INSTALL="$ac_cv_path_install"
7254   else
7255     # As a last resort, use the slow shell script.  We don't cache a
7256     # path for INSTALL within a source directory, because that will
7257     # break other packages using the cache if that directory is
7258     # removed, or if the path is relative.
7259     INSTALL="$ac_install_sh"
7260   fi
7261 fi
7262 echo "$as_me:$LINENO: result: $INSTALL" >&5
7263 echo "${ECHO_T}$INSTALL" >&6
7264
7265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7266 # It thinks the first close brace ends the variable substitution.
7267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7268
7269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7270
7271
7272 # See if cmp has --ignore-initial.
7273 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7274 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7275 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278    echo abfoo >t1
7279   echo cdfoo >t2
7280   gcc_cv_prog_cmp_skip=slowcompare
7281   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7282     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7283       :
7284     else
7285       gcc_cv_prog_cmp_skip=gnucompare
7286     fi
7287   fi
7288   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7289     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7290       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7291         :
7292       else
7293         gcc_cv_prog_cmp_skip=fastcompare
7294       fi
7295     fi
7296   fi
7297   rm t1 t2
7298
7299 fi
7300 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7301 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7302 make_compare_target=$gcc_cv_prog_cmp_skip
7303
7304
7305
7306 # See if we have the mktemp command.
7307 # Extract the first word of "mktemp", so it can be a program name with args.
7308 set dummy mktemp; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   if test -n "$have_mktemp_command"; then
7315   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322   for ac_exec_ext in '' $ac_executable_extensions; do
7323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_prog_have_mktemp_command="yes"
7325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329 done
7330
7331   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7332 fi
7333 fi
7334 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7335 if test -n "$have_mktemp_command"; then
7336   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7337 echo "${ECHO_T}$have_mktemp_command" >&6
7338 else
7339   echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341 fi
7342
7343
7344 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7345
7346 # See if makeinfo has been installed and is modern enough
7347 # that we can use it.
7348 # Extract the first word of "makeinfo", so it can be a program name with args.
7349 set dummy makeinfo; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   if test -n "$MAKEINFO"; then
7356   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363   for ac_exec_ext in '' $ac_executable_extensions; do
7364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365     ac_cv_prog_MAKEINFO="makeinfo"
7366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370 done
7371
7372 fi
7373 fi
7374 MAKEINFO=$ac_cv_prog_MAKEINFO
7375 if test -n "$MAKEINFO"; then
7376   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7377 echo "${ECHO_T}$MAKEINFO" >&6
7378 else
7379   echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7381 fi
7382
7383 if test -n "$MAKEINFO"; then
7384   # Found it, now check the version.
7385   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7386 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7387 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390     ac_prog_version=`$MAKEINFO --version 2>&1 |
7391                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7392   echo "configure:7392: version of makeinfo is $ac_prog_version" >&5
7393   case $ac_prog_version in
7394     '')     gcc_cv_prog_makeinfo_modern=no;;
7395     4.[2-9]*)
7396             gcc_cv_prog_makeinfo_modern=yes;;
7397     *)      gcc_cv_prog_makeinfo_modern=no;;
7398   esac
7399
7400 fi
7401 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7402 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7403 else
7404   gcc_cv_prog_makeinfo_modern=no
7405 fi
7406
7407 if test $gcc_cv_prog_makeinfo_modern = no; then
7408   MAKEINFO="$MISSING makeinfo"
7409   { echo "$as_me:$LINENO: WARNING:
7410 *** Makeinfo is missing or too old.
7411 *** Info documentation will not be built." >&5
7412 echo "$as_me: WARNING:
7413 *** Makeinfo is missing or too old.
7414 *** Info documentation will not be built." >&2;}
7415   BUILD_INFO=
7416 else
7417   BUILD_INFO=info
7418 fi
7419
7420
7421 # Is pod2man recent enough to regenerate manpages?
7422 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7423 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7424 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7425   echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427   GENERATED_MANPAGES=generated-manpages
7428 else
7429   echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431   GENERATED_MANPAGES=
7432 fi
7433
7434
7435 # How about lex?
7436 for ac_prog in flex
7437 do
7438   # Extract the first word of "$ac_prog", so it can be a program name with args.
7439 set dummy $ac_prog; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_FLEX+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   if test -n "$FLEX"; then
7446   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453   for ac_exec_ext in '' $ac_executable_extensions; do
7454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_prog_FLEX="$ac_prog"
7456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460 done
7461
7462 fi
7463 fi
7464 FLEX=$ac_cv_prog_FLEX
7465 if test -n "$FLEX"; then
7466   echo "$as_me:$LINENO: result: $FLEX" >&5
7467 echo "${ECHO_T}$FLEX" >&6
7468 else
7469   echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471 fi
7472
7473   test -n "$FLEX" && break
7474 done
7475 test -n "$FLEX" || FLEX="$MISSING flex"
7476
7477
7478 # Bison?
7479 for ac_prog in bison
7480 do
7481   # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485 if test "${ac_cv_prog_BISON+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   if test -n "$BISON"; then
7489   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498     ac_cv_prog_BISON="$ac_prog"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504
7505 fi
7506 fi
7507 BISON=$ac_cv_prog_BISON
7508 if test -n "$BISON"; then
7509   echo "$as_me:$LINENO: result: $BISON" >&5
7510 echo "${ECHO_T}$BISON" >&6
7511 else
7512   echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7514 fi
7515
7516   test -n "$BISON" && break
7517 done
7518 test -n "$BISON" || BISON="$MISSING bison"
7519
7520
7521 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7522 # check for build == host before using them.
7523
7524 # NM
7525 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7526   && test -d ../binutils ; then
7527   NM='$(objdir)/../binutils/nm-new'
7528 else
7529   # Extract the first word of "nm", so it can be a program name with args.
7530 set dummy nm; ac_word=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_NM+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   if test -n "$NM"; then
7537   ac_cv_prog_NM="$NM" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546     ac_cv_prog_NM="nm"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552
7553   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7554 fi
7555 fi
7556 NM=$ac_cv_prog_NM
7557 if test -n "$NM"; then
7558   echo "$as_me:$LINENO: result: $NM" >&5
7559 echo "${ECHO_T}$NM" >&6
7560 else
7561   echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7563 fi
7564
7565 fi
7566
7567 # AR
7568 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7569   && test -d ../binutils ; then
7570   AR='$(objdir)/../binutils/ar'
7571 else
7572   # Extract the first word of "ar", so it can be a program name with args.
7573 set dummy ar; ac_word=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_AR+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   if test -n "$AR"; then
7580   ac_cv_prog_AR="$AR" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587   for ac_exec_ext in '' $ac_executable_extensions; do
7588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589     ac_cv_prog_AR="ar"
7590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594 done
7595
7596   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7597 fi
7598 fi
7599 AR=$ac_cv_prog_AR
7600 if test -n "$AR"; then
7601   echo "$as_me:$LINENO: result: $AR" >&5
7602 echo "${ECHO_T}$AR" >&6
7603 else
7604   echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7606 fi
7607
7608 fi
7609
7610
7611 # --------------------
7612 # Checks for C headers
7613 # --------------------
7614
7615 echo "$as_me:$LINENO: checking for GNU C library" >&5
7616 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7617 if test "${gcc_cv_glibc+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h.  */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h.  */
7626 #include <features.h>
7627 int
7628 main ()
7629 {
7630
7631 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7632 #error Not a GNU C library system
7633 #endif
7634   ;
7635   return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640   (eval $ac_compile) 2>conftest.er1
7641   ac_status=$?
7642   grep -v '^ *+' conftest.er1 >conftest.err
7643   rm -f conftest.er1
7644   cat conftest.err >&5
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); } &&
7647          { ac_try='test -z "$ac_c_werror_flag"
7648                          || test ! -s conftest.err'
7649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650   (eval $ac_try) 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; } &&
7654          { ac_try='test -s conftest.$ac_objext'
7655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656   (eval $ac_try) 2>&5
7657   ac_status=$?
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); }; }; then
7660   gcc_cv_glibc=yes
7661 else
7662   echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 gcc_cv_glibc=no
7666 fi
7667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7668 fi
7669
7670 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7671 echo "${ECHO_T}$gcc_cv_glibc" >&6
7672 if test $gcc_cv_glibc = yes; then
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define _GNU_SOURCE 1
7676 _ACEOF
7677
7678 fi
7679
7680 # Need to reject headers which give warnings, so that the -Werror bootstrap
7681 # works later. *sigh*  This needs to come before all header checks.
7682
7683 ac_c_preproc_warn_flag=yes
7684
7685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7687 if test "${ac_cv_header_stdc+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 #include <stdlib.h>
7697 #include <stdarg.h>
7698 #include <string.h>
7699 #include <float.h>
7700
7701 int
7702 main ()
7703 {
7704
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711   (eval $ac_compile) 2>conftest.er1
7712   ac_status=$?
7713   grep -v '^ *+' conftest.er1 >conftest.err
7714   rm -f conftest.er1
7715   cat conftest.err >&5
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); } &&
7718          { ac_try='test -z "$ac_c_werror_flag"
7719                          || test ! -s conftest.err'
7720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721   (eval $ac_try) 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); }; } &&
7725          { ac_try='test -s conftest.$ac_objext'
7726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; }; then
7731   ac_cv_header_stdc=yes
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 ac_cv_header_stdc=no
7737 fi
7738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7739
7740 if test $ac_cv_header_stdc = yes; then
7741   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748 #include <string.h>
7749
7750 _ACEOF
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752   $EGREP "memchr" >/dev/null 2>&1; then
7753   :
7754 else
7755   ac_cv_header_stdc=no
7756 fi
7757 rm -f conftest*
7758
7759 fi
7760
7761 if test $ac_cv_header_stdc = yes; then
7762   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763   cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h.  */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h.  */
7769 #include <stdlib.h>
7770
7771 _ACEOF
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773   $EGREP "free" >/dev/null 2>&1; then
7774   :
7775 else
7776   ac_cv_header_stdc=no
7777 fi
7778 rm -f conftest*
7779
7780 fi
7781
7782 if test $ac_cv_header_stdc = yes; then
7783   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784   if test "$cross_compiling" = yes; then
7785   :
7786 else
7787   cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793 #include <ctype.h>
7794 #if ((' ' & 0x0FF) == 0x020)
7795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7797 #else
7798 # define ISLOWER(c) \
7799                    (('a' <= (c) && (c) <= 'i') \
7800                      || ('j' <= (c) && (c) <= 'r') \
7801                      || ('s' <= (c) && (c) <= 'z'))
7802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7803 #endif
7804
7805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7806 int
7807 main ()
7808 {
7809   int i;
7810   for (i = 0; i < 256; i++)
7811     if (XOR (islower (i), ISLOWER (i))
7812         || toupper (i) != TOUPPER (i))
7813       exit(2);
7814   exit (0);
7815 }
7816 _ACEOF
7817 rm -f conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819   (eval $ac_link) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824   (eval $ac_try) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); }; }; then
7828   :
7829 else
7830   echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834 ( exit $ac_status )
7835 ac_cv_header_stdc=no
7836 fi
7837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 fi
7840 fi
7841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7843 if test $ac_cv_header_stdc = yes; then
7844
7845 cat >>confdefs.h <<\_ACEOF
7846 #define STDC_HEADERS 1
7847 _ACEOF
7848
7849 fi
7850
7851 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7852 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7853 if test "${ac_cv_header_time+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862 #include <sys/types.h>
7863 #include <sys/time.h>
7864 #include <time.h>
7865
7866 int
7867 main ()
7868 {
7869 if ((struct tm *) 0)
7870 return 0;
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877   (eval $ac_compile) 2>conftest.er1
7878   ac_status=$?
7879   grep -v '^ *+' conftest.er1 >conftest.err
7880   rm -f conftest.er1
7881   cat conftest.err >&5
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } &&
7884          { ac_try='test -z "$ac_c_werror_flag"
7885                          || test ! -s conftest.err'
7886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887   (eval $ac_try) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; } &&
7891          { ac_try='test -s conftest.$ac_objext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   ac_cv_header_time=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902 ac_cv_header_time=no
7903 fi
7904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7905 fi
7906 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7907 echo "${ECHO_T}$ac_cv_header_time" >&6
7908 if test $ac_cv_header_time = yes; then
7909
7910 cat >>confdefs.h <<\_ACEOF
7911 #define TIME_WITH_SYS_TIME 1
7912 _ACEOF
7913
7914 fi
7915
7916 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7917 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7918 if test "${gcc_cv_header_string+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 #include <string.h>
7928 #include <strings.h>
7929 int
7930 main ()
7931 {
7932
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -z "$ac_c_werror_flag"
7947                          || test ! -s conftest.err'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest.$ac_objext'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   gcc_cv_header_string=yes
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 gcc_cv_header_string=no
7965 fi
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 fi
7968 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7969 echo "${ECHO_T}$gcc_cv_header_string" >&6
7970 if test $gcc_cv_header_string = yes; then
7971
7972 cat >>confdefs.h <<\_ACEOF
7973 #define STRING_WITH_STRINGS 1
7974 _ACEOF
7975
7976 fi
7977
7978 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <sys/types.h>
7990 #include <sys/wait.h>
7991 #ifndef WEXITSTATUS
7992 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7993 #endif
7994 #ifndef WIFEXITED
7995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7996 #endif
7997
7998 int
7999 main ()
8000 {
8001   int s;
8002   wait (&s);
8003   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8004   ;
8005   return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010   (eval $ac_compile) 2>conftest.er1
8011   ac_status=$?
8012   grep -v '^ *+' conftest.er1 >conftest.err
8013   rm -f conftest.er1
8014   cat conftest.err >&5
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } &&
8017          { ac_try='test -z "$ac_c_werror_flag"
8018                          || test ! -s conftest.err'
8019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020   (eval $ac_try) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; } &&
8024          { ac_try='test -s conftest.$ac_objext'
8025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026   (eval $ac_try) 2>&5
8027   ac_status=$?
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); }; }; then
8030   ac_cv_header_sys_wait_h=yes
8031 else
8032   echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035 ac_cv_header_sys_wait_h=no
8036 fi
8037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8038 fi
8039 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8041 if test $ac_cv_header_sys_wait_h = yes; then
8042
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_SYS_WAIT_H 1
8045 _ACEOF
8046
8047 fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8072                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8073                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8074                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8075 do
8076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 #include <$ac_header>
8089 _ACEOF
8090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8092   ac_status=$?
8093   grep -v '^ *+' conftest.er1 >conftest.err
8094   rm -f conftest.er1
8095   cat conftest.err >&5
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } >/dev/null; then
8098   if test -s conftest.err; then
8099     ac_cpp_err=$ac_c_preproc_warn_flag
8100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8101   else
8102     ac_cpp_err=
8103   fi
8104 else
8105   ac_cpp_err=yes
8106 fi
8107 if test -z "$ac_cpp_err"; then
8108   eval "$as_ac_Header=yes"
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113   eval "$as_ac_Header=no"
8114 fi
8115 rm -f conftest.err conftest.$ac_ext
8116 fi
8117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120   cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8122 _ACEOF
8123
8124 fi
8125 done
8126
8127
8128 # Check for thread headers.
8129 echo "$as_me:$LINENO: checking for thread.h" >&5
8130 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8131 if test "${ac_cv_header_thread_h+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <thread.h>
8141 _ACEOF
8142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8144   ac_status=$?
8145   grep -v '^ *+' conftest.er1 >conftest.err
8146   rm -f conftest.er1
8147   cat conftest.err >&5
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } >/dev/null; then
8150   if test -s conftest.err; then
8151     ac_cpp_err=$ac_c_preproc_warn_flag
8152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8153   else
8154     ac_cpp_err=
8155   fi
8156 else
8157   ac_cpp_err=yes
8158 fi
8159 if test -z "$ac_cpp_err"; then
8160   ac_cv_header_thread_h=yes
8161 else
8162   echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165   ac_cv_header_thread_h=no
8166 fi
8167 rm -f conftest.err conftest.$ac_ext
8168 fi
8169 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8171 if test $ac_cv_header_thread_h = yes; then
8172   have_thread_h=yes
8173 else
8174   have_thread_h=
8175 fi
8176
8177 echo "$as_me:$LINENO: checking for pthread.h" >&5
8178 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8179 if test "${ac_cv_header_pthread_h+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188 #include <pthread.h>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } >/dev/null; then
8198   if test -s conftest.err; then
8199     ac_cpp_err=$ac_c_preproc_warn_flag
8200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201   else
8202     ac_cpp_err=
8203   fi
8204 else
8205   ac_cpp_err=yes
8206 fi
8207 if test -z "$ac_cpp_err"; then
8208   ac_cv_header_pthread_h=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213   ac_cv_header_pthread_h=no
8214 fi
8215 rm -f conftest.err conftest.$ac_ext
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8219 if test $ac_cv_header_pthread_h = yes; then
8220   have_pthread_h=yes
8221 else
8222   have_pthread_h=
8223 fi
8224
8225
8226 # These tests can't be done till we know if we have limits.h.
8227 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8228 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8229 if test "${gcc_cv_decl_char_bit+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 #ifdef HAVE_LIMITS_H
8239 #include <limits.h>
8240 #endif
8241 #ifdef CHAR_BIT
8242 found
8243 #endif
8244 _ACEOF
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246   $EGREP "found" >/dev/null 2>&1; then
8247   gcc_cv_decl_char_bit=yes
8248 else
8249   gcc_cv_decl_char_bit=no
8250 fi
8251 rm -f conftest*
8252
8253
8254 fi
8255 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8256 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8257 if test $gcc_cv_decl_char_bit = no; then
8258   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8259 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8260 if test "${gcc_cv_c_nbby+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   i=8
8264  gcc_cv_c_nbby=
8265  while test $i -lt 65; do
8266    cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272
8273 int
8274 main ()
8275 {
8276 switch(0) {
8277   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8279   ; }
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286   (eval $ac_compile) 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } &&
8293          { ac_try='test -z "$ac_c_werror_flag"
8294                          || test ! -s conftest.err'
8295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296   (eval $ac_try) 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; } &&
8300          { ac_try='test -s conftest.$ac_objext'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; }; then
8306   gcc_cv_c_nbby=$i; break
8307 else
8308   echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 fi
8312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313    i=`expr $i + 1`
8314  done
8315  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8316
8317 fi
8318 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8319 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8320 if test $gcc_cv_c_nbby = failed; then
8321   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8322 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8323    { (exit 1); exit 1; }; }
8324 else
8325
8326 cat >>confdefs.h <<_ACEOF
8327 #define CHAR_BIT $gcc_cv_c_nbby
8328 _ACEOF
8329
8330 fi
8331 fi
8332 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8334 if test "${ac_cv_c_bigendian+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   ac_cv_c_bigendian=unknown
8338 # See if sys/param.h defines the BYTE_ORDER macro.
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h.  */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h.  */
8345 #include <sys/types.h>
8346 #include <sys/param.h>
8347 int
8348 main ()
8349 {
8350
8351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8352  bogus endian macros
8353 #endif
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360   (eval $ac_compile) 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag"
8368                          || test ! -s conftest.err'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; } &&
8374          { ac_try='test -s conftest.$ac_objext'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h.  */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h.  */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8389 int
8390 main ()
8391 {
8392
8393 #if BYTE_ORDER != BIG_ENDIAN
8394  not big endian
8395 #endif
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402   (eval $ac_compile) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag"
8410                          || test ! -s conftest.err'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest.$ac_objext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   ac_cv_c_bigendian=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_c_bigendian=no
8428 fi
8429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430 else
8431   echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 fi
8435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436 if test $ac_cv_c_bigendian = unknown; then
8437 if test "$cross_compiling" = yes; then
8438    echo $ac_n "cross-compiling... " 2>&6
8439 else
8440   cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 main () {
8447   /* Are we little or big endian?  From Harbison&Steele.  */
8448   union
8449   {
8450     long l;
8451     char c[sizeof (long)];
8452   } u;
8453   u.l = 1;
8454   exit (u.c[sizeof (long) - 1] == 1);
8455 }
8456 _ACEOF
8457 rm -f conftest$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459   (eval $ac_link) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_c_bigendian=no
8469 else
8470   echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ( exit $ac_status )
8475 ac_cv_c_bigendian=yes
8476 fi
8477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 fi
8480 fi
8481 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8483 if test $ac_cv_c_bigendian = unknown; then
8484 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8485 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8486
8487 cat >conftest.c <<EOF
8488 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8491 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8492 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8494 int main() { _ascii (); _ebcdic (); return 0; }
8495 EOF
8496  if test -f conftest.c ; then
8497      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8498         if test `grep -l BIGenDianSyS conftest.o` ; then
8499            echo $ac_n ' big endian probe OK, ' 1>&6
8500            ac_cv_c_bigendian=yes
8501         fi
8502         if test `grep -l LiTTleEnDian conftest.o` ; then
8503            echo $ac_n ' little endian probe OK, ' 1>&6
8504            if test $ac_cv_c_bigendian = yes ; then
8505             ac_cv_c_bigendian=unknown;
8506            else
8507             ac_cv_c_bigendian=no
8508            fi
8509         fi
8510         echo $ac_n 'guessing bigendian ...  ' >&6
8511      fi
8512   fi
8513 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8514 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8515 fi
8516 if test $ac_cv_c_bigendian = yes; then
8517
8518 cat >>confdefs.h <<\_ACEOF
8519 #define WORDS_BIGENDIAN 1
8520 _ACEOF
8521
8522
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HOST_WORDS_BIG_ENDIAN 1
8525 _ACEOF
8526
8527   BYTEORDER=4321
8528 else
8529   BYTEORDER=1234
8530 fi
8531
8532 cat >>confdefs.h <<_ACEOF
8533 #define BYTEORDER $BYTEORDER
8534 _ACEOF
8535
8536 if test $ac_cv_c_bigendian = unknown; then
8537   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8538 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8539    { (exit 1); exit 1; }; }
8540 fi
8541
8542
8543 # --------
8544 # UNSORTED
8545 # --------
8546
8547 # Stage specific cflags for build.
8548 stage1_cflags=
8549 case $build in
8550 vax-*-*)
8551   if test x$GCC = xyes
8552   then
8553     stage1_cflags="-Wa,-J"
8554   else
8555     stage1_cflags="-J"
8556   fi
8557   ;;
8558 powerpc-*-darwin*)
8559   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8560   # sources; use -no-cpp-precomp to get to GNU cpp.
8561   # Apple's GCC has bugs in designated initializer handling, so disable
8562   # that too.
8563   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8564   ;;
8565 esac
8566
8567
8568 # These libraries may be used by collect2.
8569 # We may need a special search path to get them linked.
8570 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8571 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8572 if test "${gcc_cv_collect2_libs+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   save_LIBS="$LIBS"
8576 for libs in '' -lld -lmld \
8577                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8578                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8579 do
8580         LIBS="$libs"
8581         cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587
8588 /* Override any gcc2 internal prototype to avoid an error.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 /* We use char because int might match the return type of a gcc2
8593    builtin and then its argument prototype would still apply.  */
8594 char ldopen ();
8595 int
8596 main ()
8597 {
8598 ldopen ();
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605   (eval $ac_link) 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -z "$ac_c_werror_flag"
8613                          || test ! -s conftest.err'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest$ac_exeext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   gcc_cv_collect2_libs="$libs"; break
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 fi
8631 rm -f conftest.err conftest.$ac_objext \
8632       conftest$ac_exeext conftest.$ac_ext
8633 done
8634 LIBS="$save_LIBS"
8635 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8636 fi
8637 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8638 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8639 case $gcc_cv_collect2_libs in
8640         "none required")        ;;
8641         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8642 esac
8643
8644
8645 # When building Ada code on Alpha, we need exc_resume which is usually in
8646 # -lexc.  So test for it.
8647 save_LIBS="$LIBS"
8648 LIBS=
8649 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8650 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8651 if test "${ac_cv_search_exc_resume+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   ac_func_search_save_LIBS=$LIBS
8655 ac_cv_search_exc_resume=no
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 /* Override any gcc2 internal prototype to avoid an error.  */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char exc_resume ();
8670 int
8671 main ()
8672 {
8673 exc_resume ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680   (eval $ac_link) 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag"
8688                          || test ! -s conftest.err'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest$ac_exeext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_cv_search_exc_resume="none required"
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 fi
8706 rm -f conftest.err conftest.$ac_objext \
8707       conftest$ac_exeext conftest.$ac_ext
8708 if test "$ac_cv_search_exc_resume" = no; then
8709   for ac_lib in exc; do
8710     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8711     cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h.  */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h.  */
8717
8718 /* Override any gcc2 internal prototype to avoid an error.  */
8719 #ifdef __cplusplus
8720 extern "C"
8721 #endif
8722 /* We use char because int might match the return type of a gcc2
8723    builtin and then its argument prototype would still apply.  */
8724 char exc_resume ();
8725 int
8726 main ()
8727 {
8728 exc_resume ();
8729   ;
8730   return 0;
8731 }
8732 _ACEOF
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735   (eval $ac_link) 2>conftest.er1
8736   ac_status=$?
8737   grep -v '^ *+' conftest.er1 >conftest.err
8738   rm -f conftest.er1
8739   cat conftest.err >&5
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } &&
8742          { ac_try='test -z "$ac_c_werror_flag"
8743                          || test ! -s conftest.err'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; } &&
8749          { ac_try='test -s conftest$ac_exeext'
8750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751   (eval $ac_try) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }; }; then
8755   ac_cv_search_exc_resume="-l$ac_lib"
8756 break
8757 else
8758   echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8760
8761 fi
8762 rm -f conftest.err conftest.$ac_objext \
8763       conftest$ac_exeext conftest.$ac_ext
8764   done
8765 fi
8766 LIBS=$ac_func_search_save_LIBS
8767 fi
8768 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8769 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8770 if test "$ac_cv_search_exc_resume" != no; then
8771   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8772
8773 fi
8774
8775 GNAT_LIBEXC="$LIBS"
8776 LIBS="$save_LIBS"
8777
8778
8779 # Some systems put ldexp and frexp in libm instead of libc; assume
8780 # they're both in the same place.  jcf-dump needs them.
8781 save_LIBS="$LIBS"
8782 LIBS=
8783 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8784 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8785 if test "${ac_cv_search_ldexp+set}" = set; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   ac_func_search_save_LIBS=$LIBS
8789 ac_cv_search_ldexp=no
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 /* We use char because int might match the return type of a gcc2
8802    builtin and then its argument prototype would still apply.  */
8803 char ldexp ();
8804 int
8805 main ()
8806 {
8807 ldexp ();
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814   (eval $ac_link) 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } &&
8821          { ac_try='test -z "$ac_c_werror_flag"
8822                          || test ! -s conftest.err'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; } &&
8828          { ac_try='test -s conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   ac_cv_search_ldexp="none required"
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 fi
8840 rm -f conftest.err conftest.$ac_objext \
8841       conftest$ac_exeext conftest.$ac_ext
8842 if test "$ac_cv_search_ldexp" = no; then
8843   for ac_lib in m; do
8844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8845     cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h.  */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h.  */
8851
8852 /* Override any gcc2 internal prototype to avoid an error.  */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857    builtin and then its argument prototype would still apply.  */
8858 char ldexp ();
8859 int
8860 main ()
8861 {
8862 ldexp ();
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869   (eval $ac_link) 2>conftest.er1
8870   ac_status=$?
8871   grep -v '^ *+' conftest.er1 >conftest.err
8872   rm -f conftest.er1
8873   cat conftest.err >&5
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -z "$ac_c_werror_flag"
8877                          || test ! -s conftest.err'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; } &&
8883          { ac_try='test -s conftest$ac_exeext'
8884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885   (eval $ac_try) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); }; }; then
8889   ac_cv_search_ldexp="-l$ac_lib"
8890 break
8891 else
8892   echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 fi
8896 rm -f conftest.err conftest.$ac_objext \
8897       conftest$ac_exeext conftest.$ac_ext
8898   done
8899 fi
8900 LIBS=$ac_func_search_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8903 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8904 if test "$ac_cv_search_ldexp" != no; then
8905   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8906
8907 fi
8908
8909 LDEXP_LIB="$LIBS"
8910 LIBS="$save_LIBS"
8911
8912
8913 # Use <inttypes.h> only if it exists,
8914 # doesn't clash with <sys/types.h>, and declares intmax_t.
8915 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8916 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8917 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920   cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h.  */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h.  */
8926 #include <sys/types.h>
8927 #include <inttypes.h>
8928 int
8929 main ()
8930 {
8931 intmax_t i = -1;
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938   (eval $ac_compile) 2>conftest.er1
8939   ac_status=$?
8940   grep -v '^ *+' conftest.er1 >conftest.err
8941   rm -f conftest.er1
8942   cat conftest.err >&5
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -z "$ac_c_werror_flag"
8946                          || test ! -s conftest.err'
8947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948   (eval $ac_try) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; } &&
8952          { ac_try='test -s conftest.$ac_objext'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; }; then
8958   gcc_cv_header_inttypes_h=yes
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 gcc_cv_header_inttypes_h=no
8964 fi
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8966 fi
8967
8968 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8969 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8970 if test $gcc_cv_header_inttypes_h = yes; then
8971
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_INTTYPES_H 1
8974 _ACEOF
8975
8976 fi
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9005         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9006         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9007         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9008         setlocale
9009 do
9010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9011 echo "$as_me:$LINENO: checking for $ac_func" >&5
9012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9013 if eval "test \"\${$as_ac_var+set}\" = set"; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9024 #define $ac_func innocuous_$ac_func
9025
9026 /* System header to define __stub macros and hopefully few prototypes,
9027     which can conflict with char $ac_func (); below.
9028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9029     <limits.h> exists even on freestanding compilers.  */
9030
9031 #ifdef __STDC__
9032 # include <limits.h>
9033 #else
9034 # include <assert.h>
9035 #endif
9036
9037 #undef $ac_func
9038
9039 /* Override any gcc2 internal prototype to avoid an error.  */
9040 #ifdef __cplusplus
9041 extern "C"
9042 {
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045    builtin and then its argument prototype would still apply.  */
9046 char $ac_func ();
9047 /* The GNU C library defines this for functions which it implements
9048     to always fail with ENOSYS.  Some functions are actually named
9049     something starting with __ and the normal name is an alias.  */
9050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9051 choke me
9052 #else
9053 char (*f) () = $ac_func;
9054 #endif
9055 #ifdef __cplusplus
9056 }
9057 #endif
9058
9059 int
9060 main ()
9061 {
9062 return f != $ac_func;
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069   (eval $ac_link) 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag"
9077                          || test ! -s conftest.err'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; } &&
9083          { ac_try='test -s conftest$ac_exeext'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; }; then
9089   eval "$as_ac_var=yes"
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 eval "$as_ac_var=no"
9095 fi
9096 rm -f conftest.err conftest.$ac_objext \
9097       conftest$ac_exeext conftest.$ac_ext
9098 fi
9099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9101 if test `eval echo '${'$as_ac_var'}'` = yes; then
9102   cat >>confdefs.h <<_ACEOF
9103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 _ACEOF
9105
9106 fi
9107 done
9108
9109
9110 if test x$ac_cv_func_mbstowcs = xyes; then
9111   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9112 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9113 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116       if test "$cross_compiling" = yes; then
9117   gcc_cv_func_mbstowcs_works=yes
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125 #include <stdlib.h>
9126 int main()
9127 {
9128   mbstowcs(0, "", 0);
9129   return 0;
9130 }
9131 _ACEOF
9132 rm -f conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134   (eval $ac_link) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   gcc_cv_func_mbstowcs_works=yes
9144 else
9145   echo "$as_me: program exited with status $ac_status" >&5
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149 ( exit $ac_status )
9150 gcc_cv_func_mbstowcs_works=no
9151 fi
9152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 fi
9155 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9156 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9157   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9158
9159 cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_WORKING_MBSTOWCS 1
9161 _ACEOF
9162
9163   fi
9164 fi
9165
9166 echo "$as_me:$LINENO: checking for ssize_t" >&5
9167 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9168 if test "${ac_cv_type_ssize_t+set}" = set; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h.  */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h.  */
9177 $ac_includes_default
9178 int
9179 main ()
9180 {
9181 if ((ssize_t *) 0)
9182   return 0;
9183 if (sizeof (ssize_t))
9184   return 0;
9185   ;
9186   return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191   (eval $ac_compile) 2>conftest.er1
9192   ac_status=$?
9193   grep -v '^ *+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -z "$ac_c_werror_flag"
9199                          || test ! -s conftest.err'
9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201   (eval $ac_try) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; } &&
9205          { ac_try='test -s conftest.$ac_objext'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; }; then
9211   ac_cv_type_ssize_t=yes
9212 else
9213   echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 ac_cv_type_ssize_t=no
9217 fi
9218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219 fi
9220 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9221 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9222 if test $ac_cv_type_ssize_t = yes; then
9223   :
9224 else
9225
9226 cat >>confdefs.h <<_ACEOF
9227 #define ssize_t int
9228 _ACEOF
9229
9230 fi
9231
9232
9233 # Try to determine the array type of the second argument of getgroups
9234 # for the target system (int or gid_t).
9235 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9236 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9237 if test "${ac_cv_type_uid_t+set}" = set; then
9238   echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240   cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h.  */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h.  */
9246 #include <sys/types.h>
9247
9248 _ACEOF
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250   $EGREP "uid_t" >/dev/null 2>&1; then
9251   ac_cv_type_uid_t=yes
9252 else
9253   ac_cv_type_uid_t=no
9254 fi
9255 rm -f conftest*
9256
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9259 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9260 if test $ac_cv_type_uid_t = no; then
9261
9262 cat >>confdefs.h <<\_ACEOF
9263 #define uid_t int
9264 _ACEOF
9265
9266
9267 cat >>confdefs.h <<\_ACEOF
9268 #define gid_t int
9269 _ACEOF
9270
9271 fi
9272
9273 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9274 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9275 if test "${ac_cv_type_getgroups+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   if test "$cross_compiling" = yes; then
9279   ac_cv_type_getgroups=cross
9280 else
9281   cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h.  */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h.  */
9287 /* Thanks to Mike Rendell for this test.  */
9288 #include <sys/types.h>
9289 #define NGID 256
9290 #undef MAX
9291 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9292
9293 int
9294 main ()
9295 {
9296   gid_t gidset[NGID];
9297   int i, n;
9298   union { gid_t gval; long lval; }  val;
9299
9300   val.lval = -1;
9301   for (i = 0; i < NGID; i++)
9302     gidset[i] = val.gval;
9303   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9304                  gidset);
9305   /* Exit non-zero if getgroups seems to require an array of ints.  This
9306      happens when gid_t is short but getgroups modifies an array of ints.  */
9307   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9308 }
9309 _ACEOF
9310 rm -f conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312   (eval $ac_link) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317   (eval $ac_try) 2>&5
9318   ac_status=$?
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); }; }; then
9321   ac_cv_type_getgroups=gid_t
9322 else
9323   echo "$as_me: program exited with status $ac_status" >&5
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 ( exit $ac_status )
9328 ac_cv_type_getgroups=int
9329 fi
9330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 if test $ac_cv_type_getgroups = cross; then
9333         cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339 #include <unistd.h>
9340
9341 _ACEOF
9342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9343   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9344   ac_cv_type_getgroups=gid_t
9345 else
9346   ac_cv_type_getgroups=int
9347 fi
9348 rm -f conftest*
9349
9350 fi
9351 fi
9352 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9353 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9354
9355 cat >>confdefs.h <<_ACEOF
9356 #define GETGROUPS_T $ac_cv_type_getgroups
9357 _ACEOF
9358
9359
9360 if test "${target}" = "${build}"; then
9361   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9362 else
9363   case "${target}" in
9364         # This condition may need some tweaking.  It should include all
9365         # targets where the array type of the second argument of getgroups
9366         # is int and the type of gid_t is not equivalent to int.
9367         *-*-sunos* | *-*-ultrix*)
9368                 TARGET_GETGROUPS_T=int
9369                 ;;
9370         *)
9371                 TARGET_GETGROUPS_T=gid_t
9372                 ;;
9373   esac
9374 fi
9375
9376
9377 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9378 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9379 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   if test "$cross_compiling" = yes; then
9383   gcc_cv_func_printf_ptr=no
9384 else
9385   cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 #include <stdio.h>
9392
9393 int main()
9394 {
9395   char buf[64];
9396   char *p = buf, *q = NULL;
9397   sprintf(buf, "%p", p);
9398   sscanf(buf, "%p", &q);
9399   return (p != q);
9400 }
9401 _ACEOF
9402 rm -f conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404   (eval $ac_link) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   gcc_cv_func_printf_ptr=yes
9414 else
9415   echo "$as_me: program exited with status $ac_status" >&5
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 ( exit $ac_status )
9420 gcc_cv_func_printf_ptr=no
9421 fi
9422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9423 fi
9424 rm -f core core.* *.core
9425 fi
9426 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9427 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9428 if test $gcc_cv_func_printf_ptr = yes ; then
9429
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_PRINTF_PTR 1
9432 _ACEOF
9433
9434 fi
9435
9436
9437 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9438 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9439 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9440   echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442   cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448 #include <sys/mman.h>
9449 _ACEOF
9450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9452   ac_status=$?
9453   grep -v '^ *+' conftest.er1 >conftest.err
9454   rm -f conftest.er1
9455   cat conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } >/dev/null; then
9458   if test -s conftest.err; then
9459     ac_cpp_err=$ac_c_preproc_warn_flag
9460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9461   else
9462     ac_cpp_err=
9463   fi
9464 else
9465   ac_cpp_err=yes
9466 fi
9467 if test -z "$ac_cpp_err"; then
9468   ac_cv_header_sys_mman_h=yes
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473   ac_cv_header_sys_mman_h=no
9474 fi
9475 rm -f conftest.err conftest.$ac_ext
9476 fi
9477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9478 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9479 if test $ac_cv_header_sys_mman_h = yes; then
9480   gcc_header_sys_mman_h=yes
9481 else
9482   gcc_header_sys_mman_h=no
9483 fi
9484
9485 echo "$as_me:$LINENO: checking for mmap" >&5
9486 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9487 if test "${ac_cv_func_mmap+set}" = set; then
9488   echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490   cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9498 #define mmap innocuous_mmap
9499
9500 /* System header to define __stub macros and hopefully few prototypes,
9501     which can conflict with char mmap (); below.
9502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503     <limits.h> exists even on freestanding compilers.  */
9504
9505 #ifdef __STDC__
9506 # include <limits.h>
9507 #else
9508 # include <assert.h>
9509 #endif
9510
9511 #undef mmap
9512
9513 /* Override any gcc2 internal prototype to avoid an error.  */
9514 #ifdef __cplusplus
9515 extern "C"
9516 {
9517 #endif
9518 /* We use char because int might match the return type of a gcc2
9519    builtin and then its argument prototype would still apply.  */
9520 char mmap ();
9521 /* The GNU C library defines this for functions which it implements
9522     to always fail with ENOSYS.  Some functions are actually named
9523     something starting with __ and the normal name is an alias.  */
9524 #if defined (__stub_mmap) || defined (__stub___mmap)
9525 choke me
9526 #else
9527 char (*f) () = mmap;
9528 #endif
9529 #ifdef __cplusplus
9530 }
9531 #endif
9532
9533 int
9534 main ()
9535 {
9536 return f != mmap;
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543   (eval $ac_link) 2>conftest.er1
9544   ac_status=$?
9545   grep -v '^ *+' conftest.er1 >conftest.err
9546   rm -f conftest.er1
9547   cat conftest.err >&5
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); } &&
9550          { ac_try='test -z "$ac_c_werror_flag"
9551                          || test ! -s conftest.err'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_func_mmap=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_cv_func_mmap=no
9569 fi
9570 rm -f conftest.err conftest.$ac_objext \
9571       conftest$ac_exeext conftest.$ac_ext
9572 fi
9573 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9574 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9575 if test $ac_cv_func_mmap = yes; then
9576   gcc_func_mmap=yes
9577 else
9578   gcc_func_mmap=no
9579 fi
9580
9581 if test "$gcc_header_sys_mman_h" != yes \
9582  || test "$gcc_func_mmap" != yes; then
9583    gcc_cv_func_mmap_file=no
9584    gcc_cv_func_mmap_dev_zero=no
9585    gcc_cv_func_mmap_anon=no
9586 else
9587    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9588 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9589 if test "${gcc_cv_func_mmap_file+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   # Add a system to this blacklist if
9593    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9594    # memory area containing the same data that you'd get if you applied
9595    # read() to the same fd.  The only system known to have a problem here
9596    # is VMS, where text files have record structure.
9597    case "$host_os" in
9598      vms* | ultrix*)
9599         gcc_cv_func_mmap_file=no ;;
9600      *)
9601         gcc_cv_func_mmap_file=yes;;
9602    esac
9603 fi
9604 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9605 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9606    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9607 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9608 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   # Add a system to this blacklist if it has mmap() but /dev/zero
9612    # does not exist, or if mmapping /dev/zero does not give anonymous
9613    # zeroed pages with both the following properties:
9614    # 1. If you map N consecutive pages in with one call, and then
9615    #    unmap any subset of those pages, the pages that were not
9616    #    explicitly unmapped remain accessible.
9617    # 2. If you map two adjacent blocks of memory and then unmap them
9618    #    both at once, they must both go away.
9619    # Systems known to be in this category are Windows (all variants),
9620    # VMS, and Darwin.
9621    case "$host_os" in
9622      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9623         gcc_cv_func_mmap_dev_zero=no ;;
9624      *)
9625         gcc_cv_func_mmap_dev_zero=yes;;
9626    esac
9627 fi
9628 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9629 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9630
9631    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9632    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9633 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9634 if test "${gcc_cv_decl_map_anon+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h.  */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h.  */
9643 #include <sys/types.h>
9644 #include <sys/mman.h>
9645 #include <unistd.h>
9646
9647 #ifndef MAP_ANONYMOUS
9648 #define MAP_ANONYMOUS MAP_ANON
9649 #endif
9650
9651 int
9652 main ()
9653 {
9654 int n = MAP_ANONYMOUS;
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661   (eval $ac_compile) 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -z "$ac_c_werror_flag"
9669                          || test ! -s conftest.err'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; } &&
9675          { ac_try='test -s conftest.$ac_objext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   gcc_cv_decl_map_anon=yes
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 gcc_cv_decl_map_anon=no
9687 fi
9688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9689 fi
9690 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9691 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9692
9693    if test $gcc_cv_decl_map_anon = no; then
9694      gcc_cv_func_mmap_anon=no
9695    else
9696      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9697 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9698 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9702    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9703    # doesn't give anonymous zeroed pages with the same properties listed
9704    # above for use of /dev/zero.
9705    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9706    case "$host_os" in
9707      vms* | cygwin* | pe | mingw* | sco* | udk* )
9708         gcc_cv_func_mmap_anon=no ;;
9709      *)
9710         gcc_cv_func_mmap_anon=yes;;
9711    esac
9712 fi
9713 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9714 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9715    fi
9716 fi
9717
9718 if test $gcc_cv_func_mmap_file = yes; then
9719
9720 cat >>confdefs.h <<\_ACEOF
9721 #define HAVE_MMAP_FILE 1
9722 _ACEOF
9723
9724 fi
9725 if test $gcc_cv_func_mmap_dev_zero = yes; then
9726
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_MMAP_DEV_ZERO 1
9729 _ACEOF
9730
9731 fi
9732 if test $gcc_cv_func_mmap_anon = yes; then
9733
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_MMAP_ANON 1
9736 _ACEOF
9737
9738 fi
9739
9740
9741 case "${host}" in
9742 *-*-*vms*)
9743   # Under VMS, vfork works very differently than on Unix. The standard test
9744   # won't work, and it isn't easily adaptable. It makes more sense to
9745   # just force it.
9746   ac_cv_func_vfork_works=yes
9747   ;;
9748 esac
9749 echo "$as_me:$LINENO: checking for pid_t" >&5
9750 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9751 if test "${ac_cv_type_pid_t+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760 $ac_includes_default
9761 int
9762 main ()
9763 {
9764 if ((pid_t *) 0)
9765   return 0;
9766 if (sizeof (pid_t))
9767   return 0;
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774   (eval $ac_compile) 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } &&
9781          { ac_try='test -z "$ac_c_werror_flag"
9782                          || test ! -s conftest.err'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest.$ac_objext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_type_pid_t=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_cv_type_pid_t=no
9800 fi
9801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9804 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9805 if test $ac_cv_type_pid_t = yes; then
9806   :
9807 else
9808
9809 cat >>confdefs.h <<_ACEOF
9810 #define pid_t int
9811 _ACEOF
9812
9813 fi
9814
9815
9816
9817 for ac_header in unistd.h vfork.h
9818 do
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 echo "$as_me:$LINENO: checking for $ac_header" >&5
9821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #include <$ac_header>
9832 _ACEOF
9833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } >/dev/null; then
9841   if test -s conftest.err; then
9842     ac_cpp_err=$ac_c_preproc_warn_flag
9843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9844   else
9845     ac_cpp_err=
9846   fi
9847 else
9848   ac_cpp_err=yes
9849 fi
9850 if test -z "$ac_cpp_err"; then
9851   eval "$as_ac_Header=yes"
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856   eval "$as_ac_Header=no"
9857 fi
9858 rm -f conftest.err conftest.$ac_ext
9859 fi
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863   cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 _ACEOF
9866
9867 fi
9868 done
9869
9870
9871
9872 for ac_func in fork vfork
9873 do
9874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_var+set}\" = set"; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9888 #define $ac_func innocuous_$ac_func
9889
9890 /* System header to define __stub macros and hopefully few prototypes,
9891     which can conflict with char $ac_func (); below.
9892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893     <limits.h> exists even on freestanding compilers.  */
9894
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9900
9901 #undef $ac_func
9902
9903 /* Override any gcc2 internal prototype to avoid an error.  */
9904 #ifdef __cplusplus
9905 extern "C"
9906 {
9907 #endif
9908 /* We use char because int might match the return type of a gcc2
9909    builtin and then its argument prototype would still apply.  */
9910 char $ac_func ();
9911 /* The GNU C library defines this for functions which it implements
9912     to always fail with ENOSYS.  Some functions are actually named
9913     something starting with __ and the normal name is an alias.  */
9914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9915 choke me
9916 #else
9917 char (*f) () = $ac_func;
9918 #endif
9919 #ifdef __cplusplus
9920 }
9921 #endif
9922
9923 int
9924 main ()
9925 {
9926 return f != $ac_func;
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933   (eval $ac_link) 2>conftest.er1
9934   ac_status=$?
9935   grep -v '^ *+' conftest.er1 >conftest.err
9936   rm -f conftest.er1
9937   cat conftest.err >&5
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } &&
9940          { ac_try='test -z "$ac_c_werror_flag"
9941                          || test ! -s conftest.err'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; } &&
9947          { ac_try='test -s conftest$ac_exeext'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953   eval "$as_ac_var=yes"
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958 eval "$as_ac_var=no"
9959 fi
9960 rm -f conftest.err conftest.$ac_objext \
9961       conftest$ac_exeext conftest.$ac_ext
9962 fi
9963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9965 if test `eval echo '${'$as_ac_var'}'` = yes; then
9966   cat >>confdefs.h <<_ACEOF
9967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9968 _ACEOF
9969
9970 fi
9971 done
9972
9973 if test "x$ac_cv_func_fork" = xyes; then
9974   echo "$as_me:$LINENO: checking for working fork" >&5
9975 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9976 if test "${ac_cv_func_fork_works+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   if test "$cross_compiling" = yes; then
9980   ac_cv_func_fork_works=cross
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 /* By Ruediger Kuhlmann. */
9984       #include <sys/types.h>
9985       #if HAVE_UNISTD_H
9986       # include <unistd.h>
9987       #endif
9988       /* Some systems only have a dummy stub for fork() */
9989       int main ()
9990       {
9991         if (fork() < 0)
9992           exit (1);
9993         exit (0);
9994       }
9995 _ACEOF
9996 rm -f conftest$ac_exeext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998   (eval $ac_link) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003   (eval $ac_try) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; }; then
10007   ac_cv_func_fork_works=yes
10008 else
10009   echo "$as_me: program exited with status $ac_status" >&5
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013 ( exit $ac_status )
10014 ac_cv_func_fork_works=no
10015 fi
10016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10017 fi
10018 fi
10019 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10020 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10021
10022 else
10023   ac_cv_func_fork_works=$ac_cv_func_fork
10024 fi
10025 if test "x$ac_cv_func_fork_works" = xcross; then
10026   case $host in
10027     *-*-amigaos* | *-*-msdosdjgpp*)
10028       # Override, as these systems have only a dummy fork() stub
10029       ac_cv_func_fork_works=no
10030       ;;
10031     *)
10032       ac_cv_func_fork_works=yes
10033       ;;
10034   esac
10035   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10036 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10037 fi
10038 ac_cv_func_vfork_works=$ac_cv_func_vfork
10039 if test "x$ac_cv_func_vfork" = xyes; then
10040   echo "$as_me:$LINENO: checking for working vfork" >&5
10041 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10042 if test "${ac_cv_func_vfork_works+set}" = set; then
10043   echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045   if test "$cross_compiling" = yes; then
10046   ac_cv_func_vfork_works=cross
10047 else
10048   cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h.  */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h.  */
10054 /* Thanks to Paul Eggert for this test.  */
10055 #include <stdio.h>
10056 #include <stdlib.h>
10057 #include <sys/types.h>
10058 #include <sys/stat.h>
10059 #include <sys/wait.h>
10060 #if HAVE_UNISTD_H
10061 # include <unistd.h>
10062 #endif
10063 #if HAVE_VFORK_H
10064 # include <vfork.h>
10065 #endif
10066 /* On some sparc systems, changes by the child to local and incoming
10067    argument registers are propagated back to the parent.  The compiler
10068    is told about this with #include <vfork.h>, but some compilers
10069    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10070    static variable whose address is put into a register that is
10071    clobbered by the vfork.  */
10072 static void
10073 #ifdef __cplusplus
10074 sparc_address_test (int arg)
10075 # else
10076 sparc_address_test (arg) int arg;
10077 #endif
10078 {
10079   static pid_t child;
10080   if (!child) {
10081     child = vfork ();
10082     if (child < 0) {
10083       perror ("vfork");
10084       _exit(2);
10085     }
10086     if (!child) {
10087       arg = getpid();
10088       write(-1, "", 0);
10089       _exit (arg);
10090     }
10091   }
10092 }
10093
10094 int
10095 main ()
10096 {
10097   pid_t parent = getpid ();
10098   pid_t child;
10099
10100   sparc_address_test (0);
10101
10102   child = vfork ();
10103
10104   if (child == 0) {
10105     /* Here is another test for sparc vfork register problems.  This
10106        test uses lots of local variables, at least as many local
10107        variables as main has allocated so far including compiler
10108        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10109        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10110        reuse the register of parent for one of the local variables,
10111        since it will think that parent can't possibly be used any more
10112        in this routine.  Assigning to the local variable will thus
10113        munge parent in the parent process.  */
10114     pid_t
10115       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10116       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10117     /* Convince the compiler that p..p7 are live; otherwise, it might
10118        use the same hardware register for all 8 local variables.  */
10119     if (p != p1 || p != p2 || p != p3 || p != p4
10120         || p != p5 || p != p6 || p != p7)
10121       _exit(1);
10122
10123     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10124        from child file descriptors.  If the child closes a descriptor
10125        before it execs or exits, this munges the parent's descriptor
10126        as well.  Test for this by closing stdout in the child.  */
10127     _exit(close(fileno(stdout)) != 0);
10128   } else {
10129     int status;
10130     struct stat st;
10131
10132     while (wait(&status) != child)
10133       ;
10134     exit(
10135          /* Was there some problem with vforking?  */
10136          child < 0
10137
10138          /* Did the child fail?  (This shouldn't happen.)  */
10139          || status
10140
10141          /* Did the vfork/compiler bug occur?  */
10142          || parent != getpid()
10143
10144          /* Did the file descriptor bug occur?  */
10145          || fstat(fileno(stdout), &st) != 0
10146          );
10147   }
10148 }
10149 _ACEOF
10150 rm -f conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152   (eval $ac_link) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   ac_cv_func_vfork_works=yes
10162 else
10163   echo "$as_me: program exited with status $ac_status" >&5
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ( exit $ac_status )
10168 ac_cv_func_vfork_works=no
10169 fi
10170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 fi
10173 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10174 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10175
10176 fi;
10177 if test "x$ac_cv_func_fork_works" = xcross; then
10178   ac_cv_func_vfork_works=$ac_cv_func_vfork
10179   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10180 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10181 fi
10182
10183 if test "x$ac_cv_func_vfork_works" = xyes; then
10184
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_WORKING_VFORK 1
10187 _ACEOF
10188
10189 else
10190
10191 cat >>confdefs.h <<\_ACEOF
10192 #define vfork fork
10193 _ACEOF
10194
10195 fi
10196 if test "x$ac_cv_func_fork_works" = xyes; then
10197
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_WORKING_FORK 1
10200 _ACEOF
10201
10202 fi
10203
10204
10205
10206       if test "X$prefix" = "XNONE"; then
10207     acl_final_prefix="$ac_default_prefix"
10208   else
10209     acl_final_prefix="$prefix"
10210   fi
10211   if test "X$exec_prefix" = "XNONE"; then
10212     acl_final_exec_prefix='${prefix}'
10213   else
10214     acl_final_exec_prefix="$exec_prefix"
10215   fi
10216   acl_save_prefix="$prefix"
10217   prefix="$acl_final_prefix"
10218   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10219   prefix="$acl_save_prefix"
10220
10221
10222 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10223 if test "${with_gnu_ld+set}" = set; then
10224   withval="$with_gnu_ld"
10225   test "$withval" = no || with_gnu_ld=yes
10226 else
10227   with_gnu_ld=no
10228 fi;
10229 # Prepare PATH_SEPARATOR.
10230 # The user is always right.
10231 if test "${PATH_SEPARATOR+set}" != set; then
10232   echo "#! /bin/sh" >conf$$.sh
10233   echo  "exit 0"   >>conf$$.sh
10234   chmod +x conf$$.sh
10235   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10236     PATH_SEPARATOR=';'
10237   else
10238     PATH_SEPARATOR=:
10239   fi
10240   rm -f conf$$.sh
10241 fi
10242 ac_prog=ld
10243 if test "$GCC" = yes; then
10244   # Check if gcc -print-prog-name=ld gives a path.
10245   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10246 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10247   case $host in
10248   *-*-mingw*)
10249     # gcc leaves a trailing carriage return which upsets mingw
10250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10251   *)
10252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10253   esac
10254   case $ac_prog in
10255     # Accept absolute paths.
10256     [\\/]* | [A-Za-z]:[\\/]*)
10257       re_direlt='/[^/][^/]*/\.\./'
10258       # Canonicalize the path of ld
10259       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10260       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10261         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10262       done
10263       test -z "$LD" && LD="$ac_prog"
10264       ;;
10265   "")
10266     # If it fails, then pretend we aren't using GCC.
10267     ac_prog=ld
10268     ;;
10269   *)
10270     # If it is relative, then search for the first ld in PATH.
10271     with_gnu_ld=unknown
10272     ;;
10273   esac
10274 elif test "$with_gnu_ld" = yes; then
10275   echo "$as_me:$LINENO: checking for GNU ld" >&5
10276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10277 else
10278   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10280 fi
10281 if test "${acl_cv_path_LD+set}" = set; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   if test -z "$LD"; then
10285   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10286   for ac_dir in $PATH; do
10287     test -z "$ac_dir" && ac_dir=.
10288     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10289       acl_cv_path_LD="$ac_dir/$ac_prog"
10290       # Check to see if the program is GNU ld.  I'd rather use --version,
10291       # but apparently some GNU ld's only accept -v.
10292       # Break only if it was the GNU/non-GNU ld that we prefer.
10293       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10294         test "$with_gnu_ld" != no && break
10295       else
10296         test "$with_gnu_ld" != yes && break
10297       fi
10298     fi
10299   done
10300   IFS="$ac_save_ifs"
10301 else
10302   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10303 fi
10304 fi
10305
10306 LD="$acl_cv_path_LD"
10307 if test -n "$LD"; then
10308   echo "$as_me:$LINENO: result: $LD" >&5
10309 echo "${ECHO_T}$LD" >&6
10310 else
10311   echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6
10313 fi
10314 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10315 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10316    { (exit 1); exit 1; }; }
10317 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10318 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10319 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10323 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10324   acl_cv_prog_gnu_ld=yes
10325 else
10326   acl_cv_prog_gnu_ld=no
10327 fi
10328 fi
10329 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10330 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10331 with_gnu_ld=$acl_cv_prog_gnu_ld
10332
10333
10334
10335                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10336 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10337 if test "${acl_cv_rpath+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340
10341     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10342     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10343     . ./conftest.sh
10344     rm -f ./conftest.sh
10345     acl_cv_rpath=done
10346
10347 fi
10348 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10349 echo "${ECHO_T}$acl_cv_rpath" >&6
10350   wl="$acl_cv_wl"
10351   libext="$acl_cv_libext"
10352   shlibext="$acl_cv_shlibext"
10353   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10354   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10355   hardcode_direct="$acl_cv_hardcode_direct"
10356   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10357     # Check whether --enable-rpath or --disable-rpath was given.
10358 if test "${enable_rpath+set}" = set; then
10359   enableval="$enable_rpath"
10360   :
10361 else
10362   enable_rpath=yes
10363 fi;
10364
10365
10366
10367
10368
10369
10370
10371     use_additional=yes
10372
10373   acl_save_prefix="$prefix"
10374   prefix="$acl_final_prefix"
10375   acl_save_exec_prefix="$exec_prefix"
10376   exec_prefix="$acl_final_exec_prefix"
10377
10378     eval additional_includedir=\"$includedir\"
10379     eval additional_libdir=\"$libdir\"
10380
10381   exec_prefix="$acl_save_exec_prefix"
10382   prefix="$acl_save_prefix"
10383
10384
10385 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10386 if test "${with_libiconv_prefix+set}" = set; then
10387   withval="$with_libiconv_prefix"
10388
10389     if test "X$withval" = "Xno"; then
10390       use_additional=no
10391     else
10392       if test "X$withval" = "X"; then
10393
10394   acl_save_prefix="$prefix"
10395   prefix="$acl_final_prefix"
10396   acl_save_exec_prefix="$exec_prefix"
10397   exec_prefix="$acl_final_exec_prefix"
10398
10399           eval additional_includedir=\"$includedir\"
10400           eval additional_libdir=\"$libdir\"
10401
10402   exec_prefix="$acl_save_exec_prefix"
10403   prefix="$acl_save_prefix"
10404
10405       else
10406         additional_includedir="$withval/include"
10407         additional_libdir="$withval/lib"
10408       fi
10409     fi
10410
10411 fi;
10412       LIBICONV=
10413   LTLIBICONV=
10414   INCICONV=
10415   rpathdirs=
10416   ltrpathdirs=
10417   names_already_handled=
10418   names_next_round='iconv '
10419   while test -n "$names_next_round"; do
10420     names_this_round="$names_next_round"
10421     names_next_round=
10422     for name in $names_this_round; do
10423       already_handled=
10424       for n in $names_already_handled; do
10425         if test "$n" = "$name"; then
10426           already_handled=yes
10427           break
10428         fi
10429       done
10430       if test -z "$already_handled"; then
10431         names_already_handled="$names_already_handled $name"
10432                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10433         eval value=\"\$HAVE_LIB$uppername\"
10434         if test -n "$value"; then
10435           if test "$value" = yes; then
10436             eval value=\"\$LIB$uppername\"
10437             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10438             eval value=\"\$LTLIB$uppername\"
10439             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10440           else
10441                                     :
10442           fi
10443         else
10444                               found_dir=
10445           found_la=
10446           found_so=
10447           found_a=
10448           if test $use_additional = yes; then
10449             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10450               found_dir="$additional_libdir"
10451               found_so="$additional_libdir/lib$name.$shlibext"
10452               if test -f "$additional_libdir/lib$name.la"; then
10453                 found_la="$additional_libdir/lib$name.la"
10454               fi
10455             else
10456               if test -f "$additional_libdir/lib$name.$libext"; then
10457                 found_dir="$additional_libdir"
10458                 found_a="$additional_libdir/lib$name.$libext"
10459                 if test -f "$additional_libdir/lib$name.la"; then
10460                   found_la="$additional_libdir/lib$name.la"
10461                 fi
10462               fi
10463             fi
10464           fi
10465           if test "X$found_dir" = "X"; then
10466             for x in $LDFLAGS $LTLIBICONV; do
10467
10468   acl_save_prefix="$prefix"
10469   prefix="$acl_final_prefix"
10470   acl_save_exec_prefix="$exec_prefix"
10471   exec_prefix="$acl_final_exec_prefix"
10472   eval x=\"$x\"
10473   exec_prefix="$acl_save_exec_prefix"
10474   prefix="$acl_save_prefix"
10475
10476               case "$x" in
10477                 -L*)
10478                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10479                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10480                     found_dir="$dir"
10481                     found_so="$dir/lib$name.$shlibext"
10482                     if test -f "$dir/lib$name.la"; then
10483                       found_la="$dir/lib$name.la"
10484                     fi
10485                   else
10486                     if test -f "$dir/lib$name.$libext"; then
10487                       found_dir="$dir"
10488                       found_a="$dir/lib$name.$libext"
10489                       if test -f "$dir/lib$name.la"; then
10490                         found_la="$dir/lib$name.la"
10491                       fi
10492                     fi
10493                   fi
10494                   ;;
10495               esac
10496               if test "X$found_dir" != "X"; then
10497                 break
10498               fi
10499             done
10500           fi
10501           if test "X$found_dir" != "X"; then
10502                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10503             if test "X$found_so" != "X"; then
10504                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10505                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10506               else
10507                                                                                 haveit=
10508                 for x in $ltrpathdirs; do
10509                   if test "X$x" = "X$found_dir"; then
10510                     haveit=yes
10511                     break
10512                   fi
10513                 done
10514                 if test -z "$haveit"; then
10515                   ltrpathdirs="$ltrpathdirs $found_dir"
10516                 fi
10517                                 if test "$hardcode_direct" = yes; then
10518                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10519                 else
10520                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10521                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10522                                                             haveit=
10523                     for x in $rpathdirs; do
10524                       if test "X$x" = "X$found_dir"; then
10525                         haveit=yes
10526                         break
10527                       fi
10528                     done
10529                     if test -z "$haveit"; then
10530                       rpathdirs="$rpathdirs $found_dir"
10531                     fi
10532                   else
10533                                                                                 haveit=
10534                     for x in $LDFLAGS $LIBICONV; do
10535
10536   acl_save_prefix="$prefix"
10537   prefix="$acl_final_prefix"
10538   acl_save_exec_prefix="$exec_prefix"
10539   exec_prefix="$acl_final_exec_prefix"
10540   eval x=\"$x\"
10541   exec_prefix="$acl_save_exec_prefix"
10542   prefix="$acl_save_prefix"
10543
10544                       if test "X$x" = "X-L$found_dir"; then
10545                         haveit=yes
10546                         break
10547                       fi
10548                     done
10549                     if test -z "$haveit"; then
10550                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10551                     fi
10552                     if test "$hardcode_minus_L" != no; then
10553                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10554                     else
10555                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10556                     fi
10557                   fi
10558                 fi
10559               fi
10560             else
10561               if test "X$found_a" != "X"; then
10562                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10563               else
10564                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10565               fi
10566             fi
10567                         additional_includedir=
10568             case "$found_dir" in
10569               */lib | */lib/)
10570                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10571                 additional_includedir="$basedir/include"
10572                 ;;
10573             esac
10574             if test "X$additional_includedir" != "X"; then
10575                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10576                 haveit=
10577                 if test "X$additional_includedir" = "X/usr/local/include"; then
10578                   if test -n "$GCC"; then
10579                     case $host_os in
10580                       linux*) haveit=yes;;
10581                     esac
10582                   fi
10583                 fi
10584                 if test -z "$haveit"; then
10585                   for x in $CPPFLAGS $INCICONV; do
10586
10587   acl_save_prefix="$prefix"
10588   prefix="$acl_final_prefix"
10589   acl_save_exec_prefix="$exec_prefix"
10590   exec_prefix="$acl_final_exec_prefix"
10591   eval x=\"$x\"
10592   exec_prefix="$acl_save_exec_prefix"
10593   prefix="$acl_save_prefix"
10594
10595                     if test "X$x" = "X-I$additional_includedir"; then
10596                       haveit=yes
10597                       break
10598                     fi
10599                   done
10600                   if test -z "$haveit"; then
10601                     if test -d "$additional_includedir"; then
10602                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10603                     fi
10604                   fi
10605                 fi
10606               fi
10607             fi
10608                         if test -n "$found_la"; then
10609                                                         save_libdir="$libdir"
10610               case "$found_la" in
10611                 */* | *\\*) . "$found_la" ;;
10612                 *) . "./$found_la" ;;
10613               esac
10614               libdir="$save_libdir"
10615                             for dep in $dependency_libs; do
10616                 case "$dep" in
10617                   -L*)
10618                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10619                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10620                       haveit=
10621                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10622                         if test -n "$GCC"; then
10623                           case $host_os in
10624                             linux*) haveit=yes;;
10625                           esac
10626                         fi
10627                       fi
10628                       if test -z "$haveit"; then
10629                         haveit=
10630                         for x in $LDFLAGS $LIBICONV; 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-L$additional_libdir"; then
10641                             haveit=yes
10642                             break
10643                           fi
10644                         done
10645                         if test -z "$haveit"; then
10646                           if test -d "$additional_libdir"; then
10647                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10648                           fi
10649                         fi
10650                         haveit=
10651                         for x in $LDFLAGS $LTLIBICONV; do
10652
10653   acl_save_prefix="$prefix"
10654   prefix="$acl_final_prefix"
10655   acl_save_exec_prefix="$exec_prefix"
10656   exec_prefix="$acl_final_exec_prefix"
10657   eval x=\"$x\"
10658   exec_prefix="$acl_save_exec_prefix"
10659   prefix="$acl_save_prefix"
10660
10661                           if test "X$x" = "X-L$additional_libdir"; then
10662                             haveit=yes
10663                             break
10664                           fi
10665                         done
10666                         if test -z "$haveit"; then
10667                           if test -d "$additional_libdir"; then
10668                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10669                           fi
10670                         fi
10671                       fi
10672                     fi
10673                     ;;
10674                   -R*)
10675                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10676                     if test "$enable_rpath" != no; then
10677                                                                   haveit=
10678                       for x in $rpathdirs; do
10679                         if test "X$x" = "X$dir"; then
10680                           haveit=yes
10681                           break
10682                         fi
10683                       done
10684                       if test -z "$haveit"; then
10685                         rpathdirs="$rpathdirs $dir"
10686                       fi
10687                                                                   haveit=
10688                       for x in $ltrpathdirs; do
10689                         if test "X$x" = "X$dir"; then
10690                           haveit=yes
10691                           break
10692                         fi
10693                       done
10694                       if test -z "$haveit"; then
10695                         ltrpathdirs="$ltrpathdirs $dir"
10696                       fi
10697                     fi
10698                     ;;
10699                   -l*)
10700                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10701                     ;;
10702                   *.la)
10703                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10704                     ;;
10705                   *)
10706                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10707                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10708                     ;;
10709                 esac
10710               done
10711             fi
10712           else
10713                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10714             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10715           fi
10716         fi
10717       fi
10718     done
10719   done
10720   if test "X$rpathdirs" != "X"; then
10721     if test -n "$hardcode_libdir_separator"; then
10722                         alldirs=
10723       for found_dir in $rpathdirs; do
10724         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10725       done
10726             acl_save_libdir="$libdir"
10727       libdir="$alldirs"
10728       eval flag=\"$hardcode_libdir_flag_spec\"
10729       libdir="$acl_save_libdir"
10730       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10731     else
10732             for found_dir in $rpathdirs; do
10733         acl_save_libdir="$libdir"
10734         libdir="$found_dir"
10735         eval flag=\"$hardcode_libdir_flag_spec\"
10736         libdir="$acl_save_libdir"
10737         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10738       done
10739     fi
10740   fi
10741   if test "X$ltrpathdirs" != "X"; then
10742             for found_dir in $ltrpathdirs; do
10743       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10744     done
10745   fi
10746
10747
10748
10749
10750
10751
10752
10753           am_save_CPPFLAGS="$CPPFLAGS"
10754
10755   for element in $INCICONV; do
10756     haveit=
10757     for x in $CPPFLAGS; do
10758
10759   acl_save_prefix="$prefix"
10760   prefix="$acl_final_prefix"
10761   acl_save_exec_prefix="$exec_prefix"
10762   exec_prefix="$acl_final_exec_prefix"
10763   eval x=\"$x\"
10764   exec_prefix="$acl_save_exec_prefix"
10765   prefix="$acl_save_prefix"
10766
10767       if test "X$x" = "X$element"; then
10768         haveit=yes
10769         break
10770       fi
10771     done
10772     if test -z "$haveit"; then
10773       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10774     fi
10775   done
10776
10777
10778   echo "$as_me:$LINENO: checking for iconv" >&5
10779 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10780 if test "${am_cv_func_iconv+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783
10784     am_cv_func_iconv="no, consider installing GNU libiconv"
10785     am_cv_lib_iconv=no
10786     cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h.  */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h.  */
10792 #include <stdlib.h>
10793 #include <iconv.h>
10794 int
10795 main ()
10796 {
10797 iconv_t cd = iconv_open("","");
10798        iconv(cd,NULL,NULL,NULL,NULL);
10799        iconv_close(cd);
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806   (eval $ac_link) 2>conftest.er1
10807   ac_status=$?
10808   grep -v '^ *+' conftest.er1 >conftest.err
10809   rm -f conftest.er1
10810   cat conftest.err >&5
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -z "$ac_c_werror_flag"
10814                          || test ! -s conftest.err'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; } &&
10820          { ac_try='test -s conftest$ac_exeext'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826   am_cv_func_iconv=yes
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 fi
10832 rm -f conftest.err conftest.$ac_objext \
10833       conftest$ac_exeext conftest.$ac_ext
10834     if test "$am_cv_func_iconv" != yes; then
10835       am_save_LIBS="$LIBS"
10836       LIBS="$LIBS $LIBICONV"
10837       cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 #include <stdlib.h>
10844 #include <iconv.h>
10845 int
10846 main ()
10847 {
10848 iconv_t cd = iconv_open("","");
10849          iconv(cd,NULL,NULL,NULL,NULL);
10850          iconv_close(cd);
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857   (eval $ac_link) 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag"
10865                          || test ! -s conftest.err'
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); }; } &&
10871          { ac_try='test -s conftest$ac_exeext'
10872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873   (eval $ac_try) 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; }; then
10877   am_cv_lib_iconv=yes
10878         am_cv_func_iconv=yes
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 fi
10884 rm -f conftest.err conftest.$ac_objext \
10885       conftest$ac_exeext conftest.$ac_ext
10886       LIBS="$am_save_LIBS"
10887     fi
10888
10889 fi
10890 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10891 echo "${ECHO_T}$am_cv_func_iconv" >&6
10892   if test "$am_cv_func_iconv" = yes; then
10893
10894 cat >>confdefs.h <<\_ACEOF
10895 #define HAVE_ICONV 1
10896 _ACEOF
10897
10898   fi
10899   if test "$am_cv_lib_iconv" = yes; then
10900     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10901 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10902     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10903 echo "${ECHO_T}$LIBICONV" >&6
10904   else
10905             CPPFLAGS="$am_save_CPPFLAGS"
10906     LIBICONV=
10907     LTLIBICONV=
10908   fi
10909
10910
10911
10912   if test "$am_cv_func_iconv" = yes; then
10913     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10914 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10915     if test "${am_cv_proto_iconv+set}" = set; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918
10919       cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925
10926 #include <stdlib.h>
10927 #include <iconv.h>
10928 extern
10929 #ifdef __cplusplus
10930 "C"
10931 #endif
10932 #if defined(__STDC__) || defined(__cplusplus)
10933 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10934 #else
10935 size_t iconv();
10936 #endif
10937
10938 int
10939 main ()
10940 {
10941
10942   ;
10943   return 0;
10944 }
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948   (eval $ac_compile) 2>conftest.er1
10949   ac_status=$?
10950   grep -v '^ *+' conftest.er1 >conftest.err
10951   rm -f conftest.er1
10952   cat conftest.err >&5
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); } &&
10955          { ac_try='test -z "$ac_c_werror_flag"
10956                          || test ! -s conftest.err'
10957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958   (eval $ac_try) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; } &&
10962          { ac_try='test -s conftest.$ac_objext'
10963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964   (eval $ac_try) 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; }; then
10968   am_cv_proto_iconv_arg1=""
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973 am_cv_proto_iconv_arg1="const"
10974 fi
10975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10976       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);"
10977 fi
10978
10979     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10980     echo "$as_me:$LINENO: result: ${ac_t:-
10981          }$am_cv_proto_iconv" >&5
10982 echo "${ECHO_T}${ac_t:-
10983          }$am_cv_proto_iconv" >&6
10984
10985 cat >>confdefs.h <<_ACEOF
10986 #define ICONV_CONST $am_cv_proto_iconv_arg1
10987 _ACEOF
10988
10989   fi
10990
10991 # Until we have in-tree GNU iconv:
10992 LIBICONV_DEP=
10993
10994
10995
10996   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10997 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10998 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 #include <locale.h>
11008 int
11009 main ()
11010 {
11011 return LC_MESSAGES
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018   (eval $ac_link) 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -z "$ac_c_werror_flag"
11026                          || test ! -s conftest.err'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; } &&
11032          { ac_try='test -s conftest$ac_exeext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   am_cv_val_LC_MESSAGES=yes
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 am_cv_val_LC_MESSAGES=no
11044 fi
11045 rm -f conftest.err conftest.$ac_objext \
11046       conftest$ac_exeext conftest.$ac_ext
11047 fi
11048 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11049 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11050   if test $am_cv_val_LC_MESSAGES = yes; then
11051
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_LC_MESSAGES 1
11054 _ACEOF
11055
11056   fi
11057
11058
11059
11060   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11061 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11062 if test "${am_cv_langinfo_codeset+set}" = set; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065   cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 #include <langinfo.h>
11072 int
11073 main ()
11074 {
11075 char* cs = nl_langinfo(CODESET);
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 rm -f conftest.$ac_objext conftest$ac_exeext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082   (eval $ac_link) 2>conftest.er1
11083   ac_status=$?
11084   grep -v '^ *+' conftest.er1 >conftest.err
11085   rm -f conftest.er1
11086   cat conftest.err >&5
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } &&
11089          { ac_try='test -z "$ac_c_werror_flag"
11090                          || test ! -s conftest.err'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; } &&
11096          { ac_try='test -s conftest$ac_exeext'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   am_cv_langinfo_codeset=yes
11103 else
11104   echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11106
11107 am_cv_langinfo_codeset=no
11108 fi
11109 rm -f conftest.err conftest.$ac_objext \
11110       conftest$ac_exeext conftest.$ac_ext
11111
11112 fi
11113 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11114 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11115   if test $am_cv_langinfo_codeset = yes; then
11116
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_LANGINFO_CODESET 1
11119 _ACEOF
11120
11121   fi
11122
11123
11124 # We will need to find libiberty.h and ansidecl.h
11125 saved_CFLAGS="$CFLAGS"
11126 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11152         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11153         fprintf_unlocked strstr errno snprintf vasprintf \
11154         malloc realloc calloc free basename getopt clock getpagesize
11155 do
11156   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11157 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11158 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11159 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11160   echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162   cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 #undef $ac_tr_decl
11169 #define $ac_tr_decl 1
11170
11171 #include "ansidecl.h"
11172 #include "system.h"
11173
11174 int
11175 main ()
11176 {
11177 #ifndef $ac_func
11178 char *(*pfn) = (char *(*)) $ac_func ;
11179 #endif
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186   (eval $ac_compile) 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } &&
11193          { ac_try='test -z "$ac_c_werror_flag"
11194                          || test ! -s conftest.err'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; } &&
11200          { ac_try='test -s conftest.$ac_objext'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   eval "gcc_cv_have_decl_$ac_func=yes"
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 eval "gcc_cv_have_decl_$ac_func=no"
11212 fi
11213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11214 fi
11215
11216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11217   echo "$as_me:$LINENO: result: yes" >&5
11218 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11219 #define $ac_tr_decl 1
11220 _ACEOF
11221
11222 else
11223   echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11225 #define $ac_tr_decl 0
11226 _ACEOF
11227
11228 fi
11229
11230 done
11231
11232
11233
11234
11235
11236 for ac_func in getrlimit setrlimit getrusage
11237 do
11238   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11239 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11240 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11241 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250 #undef $ac_tr_decl
11251 #define $ac_tr_decl 1
11252
11253 #include "ansidecl.h"
11254 #include "system.h"
11255 #ifdef HAVE_SYS_RESOURCE_H
11256 #include <sys/resource.h>
11257 #endif
11258
11259
11260 int
11261 main ()
11262 {
11263 #ifndef $ac_func
11264 char *(*pfn) = (char *(*)) $ac_func ;
11265 #endif
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272   (eval $ac_compile) 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -z "$ac_c_werror_flag"
11280                          || test ! -s conftest.err'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; } &&
11286          { ac_try='test -s conftest.$ac_objext'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   eval "gcc_cv_have_decl_$ac_func=yes"
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 eval "gcc_cv_have_decl_$ac_func=no"
11298 fi
11299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11300 fi
11301
11302 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11303   echo "$as_me:$LINENO: result: yes" >&5
11304 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11305 #define $ac_tr_decl 1
11306 _ACEOF
11307
11308 else
11309   echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11311 #define $ac_tr_decl 0
11312 _ACEOF
11313
11314 fi
11315
11316 done
11317
11318
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h.  */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h.  */
11325
11326 #include "ansidecl.h"
11327 #include "system.h"
11328 #ifdef HAVE_SYS_RESOURCE_H
11329 #include <sys/resource.h>
11330 #endif
11331
11332 int
11333 main ()
11334 {
11335 rlim_t l = 0;
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342   (eval $ac_compile) 2>conftest.er1
11343   ac_status=$?
11344   grep -v '^ *+' conftest.er1 >conftest.err
11345   rm -f conftest.er1
11346   cat conftest.err >&5
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } &&
11349          { ac_try='test -z "$ac_c_werror_flag"
11350                          || test ! -s conftest.err'
11351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352   (eval $ac_try) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; } &&
11356          { ac_try='test -s conftest.$ac_objext'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   :
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367
11368 cat >>confdefs.h <<\_ACEOF
11369 #define rlim_t long
11370 _ACEOF
11371
11372 fi
11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11374
11375 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11376 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11377 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11378 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11379
11380 for ac_func in ldgetname
11381 do
11382   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11383 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11384 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11385 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h.  */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h.  */
11394 #undef $ac_tr_decl
11395 #define $ac_tr_decl 1
11396
11397 #include "ansidecl.h"
11398 #include "system.h"
11399 #ifdef HAVE_LDFCN_H
11400 #undef FREAD
11401 #undef FWRITE
11402 #include <ldfcn.h>
11403 #endif
11404
11405
11406 int
11407 main ()
11408 {
11409 #ifndef $ac_func
11410 char *(*pfn) = (char *(*)) $ac_func ;
11411 #endif
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418   (eval $ac_compile) 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -z "$ac_c_werror_flag"
11426                          || test ! -s conftest.err'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; } &&
11432          { ac_try='test -s conftest.$ac_objext'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; }; then
11438   eval "gcc_cv_have_decl_$ac_func=yes"
11439 else
11440   echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11442
11443 eval "gcc_cv_have_decl_$ac_func=no"
11444 fi
11445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11446 fi
11447
11448 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11449   echo "$as_me:$LINENO: result: yes" >&5
11450 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11451 #define $ac_tr_decl 1
11452 _ACEOF
11453
11454 else
11455   echo "$as_me:$LINENO: result: no" >&5
11456 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11457 #define $ac_tr_decl 0
11458 _ACEOF
11459
11460 fi
11461
11462 done
11463
11464
11465
11466 for ac_func in times
11467 do
11468   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11469 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11470 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11471 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 #undef $ac_tr_decl
11481 #define $ac_tr_decl 1
11482
11483 #include "ansidecl.h"
11484 #include "system.h"
11485 #ifdef HAVE_SYS_TIMES_H
11486 #include <sys/times.h>
11487 #endif
11488
11489
11490 int
11491 main ()
11492 {
11493 #ifndef $ac_func
11494 char *(*pfn) = (char *(*)) $ac_func ;
11495 #endif
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502   (eval $ac_compile) 2>conftest.er1
11503   ac_status=$?
11504   grep -v '^ *+' conftest.er1 >conftest.err
11505   rm -f conftest.er1
11506   cat conftest.err >&5
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); } &&
11509          { ac_try='test -z "$ac_c_werror_flag"
11510                          || test ! -s conftest.err'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; } &&
11516          { ac_try='test -s conftest.$ac_objext'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; }; then
11522   eval "gcc_cv_have_decl_$ac_func=yes"
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527 eval "gcc_cv_have_decl_$ac_func=no"
11528 fi
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 fi
11531
11532 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11533   echo "$as_me:$LINENO: result: yes" >&5
11534 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11535 #define $ac_tr_decl 1
11536 _ACEOF
11537
11538 else
11539   echo "$as_me:$LINENO: result: no" >&5
11540 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11541 #define $ac_tr_decl 0
11542 _ACEOF
11543
11544 fi
11545
11546 done
11547
11548
11549 # More time-related stuff.
11550 echo "$as_me:$LINENO: checking for struct tms" >&5
11551 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11552 if test "${ac_cv_struct_tms+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h.  */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h.  */
11562
11563 #include "ansidecl.h"
11564 #include "system.h"
11565 #ifdef HAVE_SYS_TIMES_H
11566 #include <sys/times.h>
11567 #endif
11568
11569 int
11570 main ()
11571 {
11572 struct tms tms;
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579   (eval $ac_compile) 2>conftest.er1
11580   ac_status=$?
11581   grep -v '^ *+' conftest.er1 >conftest.err
11582   rm -f conftest.er1
11583   cat conftest.err >&5
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } &&
11586          { ac_try='test -z "$ac_c_werror_flag"
11587                          || test ! -s conftest.err'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; } &&
11593          { ac_try='test -s conftest.$ac_objext'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; }; then
11599   ac_cv_struct_tms=yes
11600 else
11601   echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 ac_cv_struct_tms=no
11605 fi
11606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11607 fi
11608 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11609 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11610 if test $ac_cv_struct_tms = yes; then
11611
11612 cat >>confdefs.h <<\_ACEOF
11613 #define HAVE_STRUCT_TMS 1
11614 _ACEOF
11615
11616 fi
11617
11618 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11619 # revisit after autoconf 2.50.
11620 echo "$as_me:$LINENO: checking for clock_t" >&5
11621 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11622 if test "${gcc_cv_type_clock_t+set}" = set; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632
11633 #include "ansidecl.h"
11634 #include "system.h"
11635
11636 int
11637 main ()
11638 {
11639 clock_t x;
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646   (eval $ac_compile) 2>conftest.er1
11647   ac_status=$?
11648   grep -v '^ *+' conftest.er1 >conftest.err
11649   rm -f conftest.er1
11650   cat conftest.err >&5
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } &&
11653          { ac_try='test -z "$ac_c_werror_flag"
11654                          || test ! -s conftest.err'
11655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656   (eval $ac_try) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; } &&
11660          { ac_try='test -s conftest.$ac_objext'
11661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662   (eval $ac_try) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; }; then
11666   gcc_cv_type_clock_t=yes
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 gcc_cv_type_clock_t=no
11672 fi
11673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 fi
11675 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11676 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11677 if test $gcc_cv_type_clock_t = yes; then
11678
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_CLOCK_T 1
11681 _ACEOF
11682
11683 fi
11684
11685 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11686 CFLAGS="$saved_CFLAGS"
11687
11688 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11689 if test "${enable_initfini_array+set}" = set; then
11690   enableval="$enable_initfini_array"
11691
11692 else
11693
11694 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11695 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11696 if test "${gcc_cv_initfini_array+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699     if test "$cross_compiling" = yes; then
11700   gcc_cv_initfini_array=no
11701 else
11702   cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708
11709 static int x = -1;
11710 int main (void) { return x; }
11711 int foo (void) { x = 0; }
11712 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11713 _ACEOF
11714 rm -f conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716   (eval $ac_link) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   gcc_cv_initfini_array=yes
11726 else
11727   echo "$as_me: program exited with status $ac_status" >&5
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 ( exit $ac_status )
11732 gcc_cv_initfini_array=no
11733 fi
11734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11735 fi
11736 fi
11737 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11738 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11739   enable_initfini_array=$gcc_cv_initfini_array
11740
11741 fi;
11742 if test $enable_initfini_array = yes; then
11743
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_INITFINI_ARRAY 1
11746 _ACEOF
11747
11748 fi
11749
11750 # mkdir takes a single argument on some systems.
11751 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11752 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11753 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 #include <sys/types.h>
11764 #ifdef HAVE_SYS_STAT_H
11765 # include <sys/stat.h>
11766 #endif
11767 #ifdef HAVE_UNISTD_H
11768 # include <unistd.h>
11769 #endif
11770 #ifdef HAVE_DIRECT_H
11771 # include <direct.h>
11772 #endif
11773 int
11774 main ()
11775 {
11776 mkdir ("foo", 0);
11777   ;
11778   return 0;
11779 }
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783   (eval $ac_compile) 2>conftest.er1
11784   ac_status=$?
11785   grep -v '^ *+' conftest.er1 >conftest.err
11786   rm -f conftest.er1
11787   cat conftest.err >&5
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -z "$ac_c_werror_flag"
11791                          || test ! -s conftest.err'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; } &&
11797          { ac_try='test -s conftest.$ac_objext'
11798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799   (eval $ac_try) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; }; then
11803   gcc_cv_mkdir_takes_one_arg=no
11804 else
11805   echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 gcc_cv_mkdir_takes_one_arg=yes
11809 fi
11810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 fi
11812 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11813 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11814 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11815
11816 cat >>confdefs.h <<\_ACEOF
11817 #define MKDIR_TAKES_ONE_ARG 1
11818 _ACEOF
11819
11820 fi
11821
11822
11823 # File extensions
11824 manext='.1'
11825 objext='.o'
11826
11827
11828
11829 # With Setjmp/Longjmp based exception handling.
11830 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11831 if test "${enable_sjlj_exceptions+set}" = set; then
11832   enableval="$enable_sjlj_exceptions"
11833   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11834
11835 cat >>confdefs.h <<_ACEOF
11836 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11837 _ACEOF
11838
11839 fi;
11840
11841 # For platforms with the unwind ABI which includes an unwind library,
11842 # libunwind, we can choose to use the system libunwind.
11843
11844 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11845 if test "${with_system_libunwind+set}" = set; then
11846   withval="$with_system_libunwind"
11847
11848 fi;
11849
11850 # --------------------------------------------------------
11851 # Build, host, and target specific configuration fragments
11852 # --------------------------------------------------------
11853
11854 # Collect build-machine-specific information.
11855 . ${srcdir}/config.build
11856
11857 # Collect host-machine-specific information.
11858 . ${srcdir}/config.host
11859
11860 target_gtfiles=
11861
11862 # Collect target-machine-specific information.
11863 . ${srcdir}/config.gcc
11864
11865 extra_objs="${host_extra_objs} ${extra_objs}"
11866 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11867
11868 # Default the target-machine variables that were not explicitly set.
11869 if test x"$tm_file" = x
11870 then tm_file=$cpu_type/$cpu_type.h; fi
11871
11872 if test x"$extra_headers" = x
11873 then extra_headers=; fi
11874
11875 if test x$md_file = x
11876 then md_file=$cpu_type/$cpu_type.md; fi
11877
11878 if test x$out_file = x
11879 then out_file=$cpu_type/$cpu_type.c; fi
11880
11881 if test x"$tmake_file" = x
11882 then tmake_file=$cpu_type/t-$cpu_type
11883 fi
11884
11885 if test x"$dwarf2" = xyes
11886 then tm_file="$tm_file tm-dwarf2.h"
11887 fi
11888
11889 # Say what files are being used for the output code and MD file.
11890 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11891 echo "Using \`$srcdir/config/$md_file' as machine description file."
11892
11893 # If any of the xm_file variables contain nonexistent files, warn
11894 # about them and drop them.
11895
11896 bx=
11897 for x in $build_xm_file; do
11898   if    test -f $srcdir/config/$x
11899   then      bx="$bx $x"
11900   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11901 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11902   fi
11903 done
11904 build_xm_file="$bx"
11905
11906 hx=
11907 for x in $host_xm_file; do
11908   if    test -f $srcdir/config/$x
11909   then      hx="$hx $x"
11910   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11911 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11912   fi
11913 done
11914 host_xm_file="$hx"
11915
11916 tx=
11917 for x in $xm_file; do
11918   if    test -f $srcdir/config/$x
11919   then      tx="$tx $x"
11920   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11921 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11922   fi
11923 done
11924 xm_file="$tx"
11925
11926 count=a
11927 for f in $tm_file; do
11928         count=${count}x
11929 done
11930 if test $count = ax; then
11931         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11932 else
11933         echo "Using the following target machine macro files:"
11934         for f in $tm_file; do
11935                 echo "  $srcdir/config/$f"
11936         done
11937 fi
11938
11939 if test x$need_64bit_hwint = xyes; then
11940
11941 cat >>confdefs.h <<\_ACEOF
11942 #define NEED_64BIT_HOST_WIDE_INT 1
11943 _ACEOF
11944
11945 fi
11946
11947 if test x$use_long_long_for_widest_fast_int = xyes; then
11948
11949 cat >>confdefs.h <<\_ACEOF
11950 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11951 _ACEOF
11952
11953 fi
11954
11955 count=a
11956 for f in $host_xm_file; do
11957         count=${count}x
11958 done
11959 if test $count = a; then
11960         :
11961 elif test $count = ax; then
11962         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11963 else
11964         echo "Using the following host machine macro files:"
11965         for f in $host_xm_file; do
11966                 echo "  $srcdir/config/$f"
11967         done
11968 fi
11969 echo "Using ${out_host_hook_obj} for host machine hooks."
11970
11971 if test "$host_xm_file" != "$build_xm_file"; then
11972         count=a
11973         for f in $build_xm_file; do
11974                 count=${count}x
11975         done
11976         if test $count = a; then
11977                 :
11978         elif test $count = ax; then
11979                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11980         else
11981                 echo "Using the following build machine macro files:"
11982                 for f in $build_xm_file; do
11983                         echo "  $srcdir/config/$f"
11984                 done
11985         fi
11986 fi
11987
11988 # ---------
11989 # Threading
11990 # ---------
11991
11992 # Check if a valid thread package
11993 case ${enable_threads} in
11994   "" | no)
11995     # No threads
11996     target_thread_file='single'
11997     ;;
11998   yes)
11999     # default
12000     target_thread_file='single'
12001     ;;
12002   aix | dce | gnat | irix | posix | posix95 | rtems | \
12003   single | solaris | vxworks | win32 )
12004     target_thread_file=${enable_threads}
12005     ;;
12006   *)
12007     echo "${enable_threads} is an unknown thread package" 1>&2
12008     exit 1
12009     ;;
12010 esac
12011
12012 if test x${thread_file} = x; then
12013   # No thread file set by target-specific clauses in config.gcc,
12014   # so use file chosen by default logic above
12015   thread_file=${target_thread_file}
12016 fi
12017
12018 # Make gthr-default.h if we have a thread file.
12019 gthread_flags=
12020 if test $thread_file != single; then
12021   rm -f gthr-default.h
12022   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12023   gthread_flags=-DHAVE_GTHR_DEFAULT
12024 fi
12025
12026
12027 # --------
12028 # UNSORTED
12029 # --------
12030
12031 use_cxa_atexit=no
12032 if test x$enable___cxa_atexit = xyes || \
12033    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12034   if test x$host = x$target; then
12035     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12036 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12037 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12038   echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040   cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12048 #define __cxa_atexit innocuous___cxa_atexit
12049
12050 /* System header to define __stub macros and hopefully few prototypes,
12051     which can conflict with char __cxa_atexit (); below.
12052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053     <limits.h> exists even on freestanding compilers.  */
12054
12055 #ifdef __STDC__
12056 # include <limits.h>
12057 #else
12058 # include <assert.h>
12059 #endif
12060
12061 #undef __cxa_atexit
12062
12063 /* Override any gcc2 internal prototype to avoid an error.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 {
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069    builtin and then its argument prototype would still apply.  */
12070 char __cxa_atexit ();
12071 /* The GNU C library defines this for functions which it implements
12072     to always fail with ENOSYS.  Some functions are actually named
12073     something starting with __ and the normal name is an alias.  */
12074 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12075 choke me
12076 #else
12077 char (*f) () = __cxa_atexit;
12078 #endif
12079 #ifdef __cplusplus
12080 }
12081 #endif
12082
12083 int
12084 main ()
12085 {
12086 return f != __cxa_atexit;
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093   (eval $ac_link) 2>conftest.er1
12094   ac_status=$?
12095   grep -v '^ *+' conftest.er1 >conftest.err
12096   rm -f conftest.er1
12097   cat conftest.err >&5
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -z "$ac_c_werror_flag"
12101                          || test ! -s conftest.err'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; } &&
12107          { ac_try='test -s conftest$ac_exeext'
12108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109   (eval $ac_try) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; }; then
12113   ac_cv_func___cxa_atexit=yes
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 ac_cv_func___cxa_atexit=no
12119 fi
12120 rm -f conftest.err conftest.$ac_objext \
12121       conftest$ac_exeext conftest.$ac_ext
12122 fi
12123 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12124 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12125 if test $ac_cv_func___cxa_atexit = yes; then
12126   use_cxa_atexit=yes
12127 else
12128   echo "__cxa_atexit can't be enabled on this target"
12129 fi
12130
12131   else
12132     # We can't check for __cxa_atexit when building a cross, so assume
12133     # it is available
12134     use_cxa_atexit=yes
12135   fi
12136   if test x$use_cxa_atexit = xyes; then
12137
12138 cat >>confdefs.h <<\_ACEOF
12139 #define DEFAULT_USE_CXA_ATEXIT 1
12140 _ACEOF
12141
12142   fi
12143 fi
12144
12145 # Look for a file containing extra machine modes.
12146 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12147   extra_modes_file='$(srcdir)'/config/${extra_modes}
12148
12149
12150 cat >>confdefs.h <<_ACEOF
12151 #define EXTRA_MODES_FILE "config/$extra_modes"
12152 _ACEOF
12153
12154 fi
12155
12156 # auto-host.h is the file containing items generated by autoconf and is
12157 # the first file included by config.h.
12158 # If host=build, it is correct to have bconfig include auto-host.h
12159 # as well.  If host!=build, we are in error and need to do more
12160 # work to find out the build config parameters.
12161 if test x$host = x$build
12162 then
12163         build_auto=auto-host.h
12164 else
12165         # We create a subdir, then run autoconf in the subdir.
12166         # To prevent recursion we set host and build for the new
12167         # invocation of configure to the build for this invocation
12168         # of configure.
12169         tempdir=build.$$
12170         rm -rf $tempdir
12171         mkdir $tempdir
12172         cd $tempdir
12173         case ${srcdir} in
12174         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12175         *) realsrcdir=../${srcdir};;
12176         esac
12177         saved_CFLAGS="${CFLAGS}"
12178         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12179         ${realsrcdir}/configure \
12180                 --enable-languages=${enable_languages-all} \
12181                 --target=$target_alias --host=$build_alias --build=$build_alias
12182         CFLAGS="${saved_CFLAGS}"
12183
12184         # We just finished tests for the build machine, so rename
12185         # the file auto-build.h in the gcc directory.
12186         mv auto-host.h ../auto-build.h
12187         cd ..
12188         rm -rf $tempdir
12189         build_auto=auto-build.h
12190 fi
12191
12192
12193 tm_file="${tm_file} defaults.h"
12194 tm_p_file="${tm_p_file} tm-preds.h"
12195 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12196 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12197 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12198 # put this back in temporarily.
12199 xm_file="ansidecl.h ${xm_file}"
12200
12201 # --------
12202 # UNSORTED
12203 # --------
12204
12205 # Compile in configure arguments.
12206 if test -f configargs.h ; then
12207         # Being re-configured.
12208         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12209         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12210 else
12211         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12212 fi
12213
12214 # Double all backslashes and backslash all quotes to turn
12215 # gcc_config_arguments into a C string.
12216 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12217 $gcc_config_arguments
12218 EOF
12219 gcc_config_arguments_str=`cat conftest.out`
12220 rm -f conftest.out
12221
12222 cat > configargs.h <<EOF
12223 /* Generated automatically. */
12224 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12225 static const char thread_model[] = "$thread_file";
12226
12227 static const struct {
12228   const char *name, *value;
12229 } configure_default_options[] = $configure_default_options;
12230 EOF
12231
12232 # Internationalization
12233 PACKAGE=gcc
12234 VERSION="$gcc_version"
12235
12236 cat >>confdefs.h <<_ACEOF
12237 #define PACKAGE "$PACKAGE"
12238 _ACEOF
12239
12240
12241
12242
12243 # If we haven't got the data from the intl directory,
12244 # assume NLS is disabled.
12245 USE_NLS=no
12246 LIBINTL=
12247 LIBINTL_DEP=
12248 INCINTL=
12249 XGETTEXT=
12250 GMSGFMT=
12251 POSUB=
12252 if test -f ../intl/config.intl; then
12253   . ../intl/config.intl
12254 fi
12255 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12257 if test x"$USE_NLS" != xyes; then
12258   echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6
12260 else
12261   echo "$as_me:$LINENO: result: yes" >&5
12262 echo "${ECHO_T}yes" >&6
12263
12264 cat >>confdefs.h <<\_ACEOF
12265 #define ENABLE_NLS 1
12266 _ACEOF
12267
12268
12269   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12270 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12271   # Look for .po and .gmo files in the source directory.
12272   CATALOGS=
12273   XLINGUAS=
12274   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12275     # If there aren't any .gmo files the shell will give us the
12276     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12277     # weeded out.
12278     case "$cat" in *\**)
12279       continue;;
12280     esac
12281     # The quadruple backslash is collapsed to a double backslash
12282     # by the backticks, then collapsed again by the double quotes,
12283     # leaving us with one backslash in the sed expression (right
12284     # before the dot that mustn't act as a wildcard).
12285     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12286     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12287     # The user is allowed to set LINGUAS to a list of languages to
12288     # install catalogs for.  If it's empty that means "all of them."
12289     if test "x$LINGUAS" = x; then
12290       CATALOGS="$CATALOGS $cat"
12291       XLINGUAS="$XLINGUAS $lang"
12292     else
12293       case "$LINGUAS" in *$lang*)
12294         CATALOGS="$CATALOGS $cat"
12295         XLINGUAS="$XLINGUAS $lang"
12296         ;;
12297       esac
12298     fi
12299   done
12300   LINGUAS="$XLINGUAS"
12301   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12302 echo "${ECHO_T}$LINGUAS" >&6
12303 fi
12304
12305 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12306 # -liconv on the link line twice.
12307 case "$LIBINTL" in *$LIBICONV*)
12308         LIBICONV= ;;
12309 esac
12310
12311 # Windows32 Registry support for specifying GCC installation paths.
12312 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12313 if test "${enable_win32_registry+set}" = set; then
12314   enableval="$enable_win32_registry"
12315
12316 fi;
12317 case $host_os in
12318         win32 | pe | cygwin* | mingw32* | uwin*)
12319 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12320 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12321 if test "x$enable_win32_registry" != xno; then
12322
12323 cat >>confdefs.h <<\_ACEOF
12324 #define ENABLE_WIN32_REGISTRY 1
12325 _ACEOF
12326
12327   echo "$as_me:$LINENO: result: yes" >&5
12328 echo "${ECHO_T}yes" >&6
12329   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12330 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12331 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334   ac_func_search_save_LIBS=$LIBS
12335 ac_cv_search_RegOpenKeyExA=no
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342
12343 /* Override any gcc2 internal prototype to avoid an error.  */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 /* We use char because int might match the return type of a gcc2
12348    builtin and then its argument prototype would still apply.  */
12349 char RegOpenKeyExA ();
12350 int
12351 main ()
12352 {
12353 RegOpenKeyExA ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360   (eval $ac_link) 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag"
12368                          || test ! -s conftest.err'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; } &&
12374          { ac_try='test -s conftest$ac_exeext'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; }; then
12380   ac_cv_search_RegOpenKeyExA="none required"
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 fi
12386 rm -f conftest.err conftest.$ac_objext \
12387       conftest$ac_exeext conftest.$ac_ext
12388 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12389   for ac_lib in advapi32; do
12390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12391     cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397
12398 /* Override any gcc2 internal prototype to avoid an error.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 /* We use char because int might match the return type of a gcc2
12403    builtin and then its argument prototype would still apply.  */
12404 char RegOpenKeyExA ();
12405 int
12406 main ()
12407 {
12408 RegOpenKeyExA ();
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415   (eval $ac_link) 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag"
12423                          || test ! -s conftest.err'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; } &&
12429          { ac_try='test -s conftest$ac_exeext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12436 break
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 fi
12442 rm -f conftest.err conftest.$ac_objext \
12443       conftest$ac_exeext conftest.$ac_ext
12444   done
12445 fi
12446 LIBS=$ac_func_search_save_LIBS
12447 fi
12448 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12449 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12450 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12451   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12452
12453 fi
12454
12455 else
12456   echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12458 fi
12459
12460 # Check if user specified a different registry key.
12461 case "x${enable_win32_registry}" in
12462 x | xyes)
12463   # default.
12464   gcc_cv_win32_registry_key="$VERSION"
12465   ;;
12466 xno)
12467   # no registry lookup.
12468   gcc_cv_win32_registry_key=''
12469   ;;
12470 *)
12471   # user-specified key.
12472   gcc_cv_win32_registry_key="$enable_win32_registry"
12473   ;;
12474 esac
12475
12476 if test "x$enable_win32_registry" != xno; then
12477   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12478 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12479
12480 cat >>confdefs.h <<_ACEOF
12481 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12482 _ACEOF
12483
12484   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12485 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12486 fi
12487 ;;
12488 esac
12489
12490 # Get an absolute path to the GCC top-level source directory
12491 holddir=`${PWDCMD-pwd}`
12492 cd $srcdir
12493 topdir=`${PWDCMD-pwd}`
12494 cd $holddir
12495
12496 # Conditionalize the makefile for this host machine.
12497 xmake_file=
12498 for f in ${host_xmake_file}
12499 do
12500         if test -f ${srcdir}/config/$f
12501         then
12502                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12503         fi
12504 done
12505
12506 # Conditionalize the makefile for this target machine.
12507 tmake_file_=
12508 for f in ${tmake_file}
12509 do
12510         if test -f ${srcdir}/config/$f
12511         then
12512                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12513         fi
12514 done
12515 tmake_file="${tmake_file_}"
12516
12517 # If the host doesn't support symlinks, modify CC in
12518 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12519 # Otherwise, we can use "CC=$(CC)".
12520 rm -f symtest.tem
12521 case "$LN_S" in
12522         *-s*)
12523                 cc_set_by_configure="\$(CC)"
12524                 quoted_cc_set_by_configure="\$(CC)"
12525                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12526                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12527                 ;;
12528         *)
12529                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12530                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12531                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12532                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12533                 ;;
12534 esac
12535
12536 out_object_file=`basename $out_file .c`.o
12537
12538 tm_file_list=
12539 tm_include_list=
12540 for f in $tm_file; do
12541   case $f in
12542     defaults.h )
12543        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12544        tm_include_list="${tm_include_list} $f"
12545        ;;
12546     * )
12547        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12548        tm_include_list="${tm_include_list} config/$f"
12549        ;;
12550   esac
12551 done
12552
12553 tm_p_file_list=
12554 tm_p_include_list=
12555 for f in $tm_p_file; do
12556   case $f in
12557     tm-preds.h )
12558        tm_p_file_list="${tm_p_file_list} $f"
12559        tm_p_include_list="${tm_p_include_list} $f"
12560        ;;
12561     * )
12562        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12563        tm_p_include_list="${tm_p_include_list} config/$f"
12564   esac
12565 done
12566
12567 xm_file_list=
12568 xm_include_list=
12569 for f in $xm_file; do
12570   case $f in
12571     ansidecl.h )
12572        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12573        xm_include_list="${xm_include_list} $f"
12574        ;;
12575     auto-host.h )
12576        xm_file_list="${xm_file_list} $f"
12577        xm_include_list="${xm_include_list} $f"
12578        ;;
12579     * )
12580        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12581        xm_include_list="${xm_include_list} config/$f"
12582        ;;
12583   esac
12584 done
12585
12586 host_xm_file_list=
12587 host_xm_include_list=
12588 for f in $host_xm_file; do
12589   case $f in
12590     ansidecl.h )
12591        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12592        host_xm_include_list="${host_xm_include_list} $f"
12593        ;;
12594     auto-host.h )
12595        host_xm_file_list="${host_xm_file_list} $f"
12596        host_xm_include_list="${host_xm_include_list} $f"
12597        ;;
12598     * )
12599        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12600        host_xm_include_list="${host_xm_include_list} config/$f"
12601        ;;
12602   esac
12603 done
12604
12605 build_xm_file_list=
12606 for f in $build_xm_file; do
12607   case $f in
12608     ansidecl.h )
12609        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12610        build_xm_include_list="${build_xm_include_list} $f"
12611        ;;
12612     auto-build.h | auto-host.h )
12613        build_xm_file_list="${build_xm_file_list} $f"
12614        build_xm_include_list="${build_xm_include_list} $f"
12615        ;;
12616     * )
12617        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12618        build_xm_include_list="${build_xm_include_list} config/$f"
12619        ;;
12620   esac
12621 done
12622
12623 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12624 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12625 CROSS=
12626 ALL=all.internal
12627 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12628 if test x$host != x$target
12629 then
12630         CROSS="-DCROSS_COMPILE"
12631         ALL=all.cross
12632         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12633         case "$host","$target" in
12634         # Darwin crosses can use the host system's libraries and headers,
12635         # because of the fat library support.  Of course, it must be the
12636         # same version of Darwin on both sides.  Allow the user to
12637         # just say --target=foo-darwin without a version number to mean
12638         # "the version on this system".
12639             *-*-darwin*,*-*-darwin*)
12640                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12641                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12642                 if test $hostos = $targetos -o $targetos = darwin ; then
12643                     CROSS=
12644                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12645                     with_headers=yes
12646                 fi
12647                 ;;
12648
12649             i?86-*-*,x86_64-*-* \
12650             | powerpc*-*-*,powerpc64*-*-*)
12651                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12652         esac
12653 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12654         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12655         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12656 fi
12657
12658 # If this is a cross-compiler that does not
12659 # have its own set of headers then define
12660 # inhibit_libc
12661
12662 # If this is using newlib, without having the headers available now,
12663 # then define inhibit_libc in LIBGCC2_CFLAGS.
12664 # This prevents libgcc2 from containing any code which requires libc
12665 # support.
12666 inhibit_libc=
12667 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12668        test x$with_newlib = xyes ; } &&
12669      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12670        inhibit_libc=-Dinhibit_libc
12671 fi
12672
12673
12674 # When building gcc with a cross-compiler, we need to adjust things so
12675 # that the generator programs are still built with the native compiler.
12676 # Also, we cannot run fixincludes or fix-header.
12677
12678 # These are the normal (build=host) settings:
12679 CC_FOR_BUILD='$(CC)'
12680 BUILD_CFLAGS='$(ALL_CFLAGS)'
12681 STMP_FIXINC=stmp-fixinc
12682
12683 # Possibly disable fixproto, on a per-target basis.
12684 case ${use_fixproto} in
12685   no)
12686     STMP_FIXPROTO=
12687     ;;
12688   yes)
12689     STMP_FIXPROTO=stmp-fixproto
12690     ;;
12691 esac
12692
12693
12694 # And these apply if build != host, or we are generating coverage data
12695 if test x$build != x$host || test "x$coverage_flags" != x
12696 then
12697     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12698
12699     if test "x$TARGET_SYSTEM_ROOT" = x; then
12700         if  "x$STMP_FIXPROTO" != x  ; then
12701           STMP_FIXPROTO=stmp-install-fixproto
12702         fi
12703     fi
12704 fi
12705
12706 # Expand extra_headers to include complete path.
12707 # This substitutes for lots of t-* files.
12708 extra_headers_list=
12709 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12710 for file in ${extra_headers} ; do
12711   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12712 done
12713
12714 # Define collect2 in Makefile.
12715 case $host_can_use_collect2 in
12716   no) collect2= ;;
12717   *) collect2='collect2$(exeext)' ;;
12718 esac
12719
12720
12721 # Add a definition of USE_COLLECT2 if system wants one.
12722 case $use_collect2 in
12723   no) use_collect2= ;;
12724   "") ;;
12725   *)
12726     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12727     xm_defines="${xm_defines} USE_COLLECT2"
12728     case $host_can_use_collect2 in
12729       no)
12730         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12731 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12732    { (exit 1); exit 1; }; }
12733         ;;
12734     esac
12735     ;;
12736 esac
12737
12738 # ---------------------------
12739 # Assembler & linker features
12740 # ---------------------------
12741
12742 # Identify the assembler which will work hand-in-glove with the newly
12743 # built GCC, so that we can examine its features.  This is the assembler
12744 # which will be driven by the driver program.
12745 #
12746 # If build != host, and we aren't building gas in-tree, we identify a
12747 # build->target assembler and hope that it will have the same features
12748 # as the host->target assembler we'll be using.
12749 echo "$as_me:$LINENO: checking what assembler to use" >&5
12750 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12751 in_tree_gas=no
12752 gcc_cv_as=
12753 gcc_cv_gas_major_version=
12754 gcc_cv_gas_minor_version=
12755 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12756 if test -x "$DEFAULT_ASSEMBLER"; then
12757         gcc_cv_as="$DEFAULT_ASSEMBLER"
12758 elif test -x as$build_exeext; then
12759         # Build using assembler in the current directory.
12760         gcc_cv_as=./as$build_exeext
12761 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12762      && test -f ../gas/Makefile \
12763      && test x$build = x$host; then
12764   # Single tree build which includes gas.  We want to prefer it
12765   # over whatever linker top-level may have detected, since
12766   # we'll use what we're building after installation anyway.
12767   in_tree_gas=yes
12768   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12769 for f in $gcc_cv_as_bfd_srcdir/configure \
12770          $gcc_cv_as_gas_srcdir/configure \
12771          $gcc_cv_as_gas_srcdir/configure.in \
12772          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12773   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12774   if test x$gcc_cv_gas_version != x; then
12775     break
12776   fi
12777 done
12778 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12779 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12780 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12781 case $gcc_cv_gas_patch_version in
12782   "") gcc_cv_gas_patch_version="0" ;;
12783 esac
12784 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12785                             + $gcc_cv_gas_minor_version \) \* 1000 \
12786                             + $gcc_cv_gas_patch_version`
12787
12788   rm -f as$build_exeext
12789   $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12790   in_tree_gas_is_elf=no
12791   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12792      || (grep 'obj_format = multi' ../gas/Makefile \
12793          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12794   then
12795     in_tree_gas_is_elf=yes
12796   fi
12797 elif test -x "$AS_FOR_TARGET"; then
12798         gcc_cv_as="$AS_FOR_TARGET"
12799 elif test -x "$AS" && test x$host = x$target; then
12800         gcc_cv_as="$AS"
12801 fi
12802
12803 if test "x$gcc_cv_as" = x; then
12804         # Search the same directories that the installed compiler will
12805         # search.  Else we may find the wrong assembler and lose.  If we
12806         # do not find a suitable assembler binary, then try the user's
12807         # path.
12808         #
12809         # Also note we have to check MD_EXEC_PREFIX before checking the
12810         # user's path.  Unfortunately, there is no good way to get at the
12811         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12812         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12813         # to be fixed as part of the make/configure rewrite too.
12814
12815         if test "x$exec_prefix" = xNONE; then
12816                 if test "x$prefix" = xNONE; then
12817                         test_prefix=/usr/local
12818                 else
12819                         test_prefix=$prefix
12820                 fi
12821         else
12822                 test_prefix=$exec_prefix
12823         fi
12824
12825         # If the loop below does not find an assembler, then use whatever
12826         # one we can find in the users's path.
12827         # user's path.
12828         if test "x$program_prefix" != xNONE; then
12829                 gcc_cv_as=${program_prefix}as$build_exeext
12830         else
12831                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12832         fi
12833
12834         if test x$host = x$build; then
12835             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12836                        $test_prefix/libexec/gcc/$target_noncanonical \
12837                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12838                        /usr/lib/gcc/$target_noncanonical \
12839                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12840                        $test_prefix/$target_noncanonical/bin"
12841         else
12842             test_dirs=
12843         fi
12844
12845         if test x$host = x$target; then
12846             test_dirs="$test_dirs \
12847                    /usr/libexec \
12848                    /usr/ccs/gcc \
12849                    /usr/ccs/bin \
12850                    /udk/usr/ccs/bin \
12851                    /bsd43/usr/lib/cmplrs/cc \
12852                    /usr/cross64/usr/bin \
12853                    /usr/lib/cmplrs/cc \
12854                    /sysv/usr/lib/cmplrs/cc \
12855                    /svr4/usr/lib/cmplrs/cc \
12856                    /usr/bin"
12857         fi
12858
12859         for dir in $test_dirs; do
12860                 if test -x $dir/as$build_exeext; then
12861                         gcc_cv_as=$dir/as$build_exeext
12862                         break;
12863                 fi
12864         done
12865 fi
12866 case $in_tree_gas in
12867   yes)
12868     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12869 echo "${ECHO_T}\"newly built gas\"" >&6
12870     ;;
12871   no)
12872     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12873 echo "${ECHO_T}$gcc_cv_as" >&6
12874     ;;
12875 esac
12876
12877 # Identify the linker which will work hand-in-glove with the newly
12878 # built GCC, so that we can examine its features.  This is the linker
12879 # which will be driven by the driver program.
12880 #
12881 # If build != host, and we aren't building gas in-tree, we identify a
12882 # build->target linker and hope that it will have the same features
12883 # as the host->target linker we'll be using.
12884 echo "$as_me:$LINENO: checking what linker to use" >&5
12885 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12886 in_tree_ld=no
12887 gcc_cv_ld=
12888 gcc_cv_gld_major_version=
12889 gcc_cv_gld_minor_version=
12890 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12891 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12892 if test -x "$DEFAULT_LINKER"; then
12893         gcc_cv_ld="$DEFAULT_LINKER"
12894 elif test -x collect-ld$build_exeext; then
12895         # Build using linker in the current directory.
12896         gcc_cv_ld=./collect-ld$build_exeext
12897 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12898      && test -f ../ld/Makefile \
12899      && test x$build = x$host; then
12900         # Single tree build which includes ld.  We want to prefer it
12901         # over whatever linker top-level may have detected, since
12902         # we'll use what we're building after installation anyway.
12903         in_tree_ld=yes
12904         in_tree_ld_is_elf=no
12905         if (grep 'EMUL = .*elf' ../ld/Makefile \
12906             || grep 'EMUL = .*linux' ../ld/Makefile \
12907             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12908           in_tree_ld_is_elf=yes
12909         fi
12910         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
12911         do
12912                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12913                 if test x$gcc_cv_gld_version != x; then
12914                         break
12915                 fi
12916         done
12917         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12918         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12919         rm -f collect-ld$build_exeext
12920         $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12921 elif test -x "$LD_FOR_TARGET"; then
12922         gcc_cv_ld="$LD_FOR_TARGET"
12923 elif test -x "$LD" && test x$host = x$target; then
12924         gcc_cv_ld="$LD"
12925 fi
12926
12927 if test "x$gcc_cv_ld" = x; then
12928         # Search the same directories that the installed compiler will
12929         # search.  Else we may find the wrong linker and lose.  If we
12930         # do not find a suitable linker binary, then try the user's
12931         # path.
12932         #
12933         # Also note we have to check MD_EXEC_PREFIX before checking the
12934         # user's path.  Unfortunately, there is no good way to get at the
12935         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12936         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12937         # to be fixed as part of the make/configure rewrite too.
12938
12939         if test "x$exec_prefix" = xNONE; then
12940                 if test "x$prefix" = xNONE; then
12941                         test_prefix=/usr/local
12942                 else
12943                         test_prefix=$prefix
12944                 fi
12945         else
12946                 test_prefix=$exec_prefix
12947         fi
12948
12949         # If the loop below does not find an linker, then use whatever
12950         # one we can find in the users's path.
12951         # user's path.
12952         if test "x$program_prefix" != xNONE; then
12953                 gcc_cv_ld=${program_prefix}ld$build_exeext
12954         else
12955                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12956         fi
12957
12958         if test x$host = x$build; then
12959             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12960                        $test_prefix/libexec/gcc/$target_noncanonical \
12961                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12962                        /usr/lib/gcc/$target_noncanonical \
12963                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12964                        $test_prefix/$target_noncanonical/bin"
12965         else
12966             test_dirs=
12967         fi
12968
12969         if test x$host = x$target; then
12970             test_dirs="$test_dirs \
12971                    /usr/libexec \
12972                    /usr/ccs/gcc \
12973                    /usr/ccs/bin \
12974                    /udk/usr/ccs/bin \
12975                    /bsd43/usr/lib/cmplrs/cc \
12976                    /usr/cross64/usr/bin \
12977                    /usr/lib/cmplrs/cc \
12978                    /sysv/usr/lib/cmplrs/cc \
12979                    /svr4/usr/lib/cmplrs/cc \
12980                    /usr/bin"
12981         fi
12982
12983         for dir in $test_dirs; do
12984                 if test -x $dir/ld$build_exeext; then
12985                         gcc_cv_ld=$dir/ld$build_exeext
12986                         break;
12987                 fi
12988         done
12989 fi
12990 case $in_tree_ld in
12991   yes)
12992     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12993 echo "${ECHO_T}\"newly built ld\"" >&6
12994     ;;
12995   no)
12996     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12997 echo "${ECHO_T}$gcc_cv_ld" >&6
12998     ;;
12999 esac
13000
13001 # Figure out what nm we will be using.
13002 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13003 echo "$as_me:$LINENO: checking what nm to use" >&5
13004 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13005 in_tree_nm=no
13006 if test -x nm$build_exeext; then
13007         gcc_cv_nm=./nm$build_exeext
13008 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13009      && test -f ../binutils/Makefile; then
13010         # Single tree build which includes binutils.
13011         in_tree_nm=yes
13012         gcc_cv_nm=./nm$build_exeext
13013         rm -f nm$build_exeext
13014         $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13015 elif test "x$program_prefix" != xNONE; then
13016         gcc_cv_nm=${program_prefix}nm$build_exeext
13017 else
13018         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13019 fi
13020 case $in_tree_nm in
13021   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13022 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13023   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13024 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13025 esac
13026
13027 # Figure out what objdump we will be using.
13028 echo "$as_me:$LINENO: checking what objdump to use" >&5
13029 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13030 in_tree_objdump=no
13031 if test -x objdump$build_exeext; then
13032         gcc_cv_objdump=./objdump$build_exeext
13033 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13034      && test -f ../binutils/Makefile; then
13035         # Single tree build which includes binutils.
13036         in_tree_objdump=yes
13037         gcc_cv_objdump=./objdump$build_exeext
13038         rm -f objdump$build_exeext
13039         $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13040 elif test "x$program_prefix" != xNONE; then
13041         gcc_cv_objdump=${program_prefix}objdump$build_exeext
13042 else
13043         gcc_cv_objdump=`echo objdump | \
13044                 sed "${program_transform_name}"`$build_exeext
13045 fi
13046 case $in_tree_objdump in
13047   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13048 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13049   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13050 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13051 esac
13052
13053 # Figure out what assembler alignment features are present.
13054 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13055 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13056 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   gcc_cv_as_balign_and_p2align=no
13060     if test $in_tree_gas = yes; then
13061     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13062   then gcc_cv_as_balign_and_p2align=yes
13063 fi
13064   elif test x$gcc_cv_as != x; then
13065     echo '.balign 4
13066 .p2align 2' > conftest.s
13067     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069   (eval $ac_try) 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }
13073     then
13074         gcc_cv_as_balign_and_p2align=yes
13075     else
13076       echo "configure: failed program was" >&5
13077       cat conftest.s >&5
13078     fi
13079     rm -f conftest.o conftest.s
13080   fi
13081 fi
13082 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13083 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13084 if test $gcc_cv_as_balign_and_p2align = yes; then
13085
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13088 _ACEOF
13089
13090 fi
13091
13092 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13093 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13094 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   gcc_cv_as_max_skip_p2align=no
13098     if test $in_tree_gas = yes; then
13099     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13100   then gcc_cv_as_max_skip_p2align=yes
13101 fi
13102   elif test x$gcc_cv_as != x; then
13103     echo '.p2align 4,,7' > conftest.s
13104     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }
13110     then
13111         gcc_cv_as_max_skip_p2align=yes
13112     else
13113       echo "configure: failed program was" >&5
13114       cat conftest.s >&5
13115     fi
13116     rm -f conftest.o conftest.s
13117   fi
13118 fi
13119 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13120 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13121 if test $gcc_cv_as_max_skip_p2align = yes; then
13122
13123 cat >>confdefs.h <<\_ACEOF
13124 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13125 _ACEOF
13126
13127 fi
13128
13129 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13130 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13131 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   gcc_cv_as_subsection_m1=no
13135     if test $in_tree_gas = yes; then
13136     if test $in_tree_gas_is_elf = yes \
13137   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13138   then gcc_cv_as_subsection_m1=yes
13139 fi
13140   elif test x$gcc_cv_as != x; then
13141     echo 'conftest_label1: .word 0
13142 .subsection -1
13143 conftest_label2: .word 0
13144 .previous' > conftest.s
13145     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; }
13151     then
13152         if test x$gcc_cv_nm != x; then
13153     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13154     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13155     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13156     then :
13157     else gcc_cv_as_subsection_m1=yes
13158     fi
13159     rm -f conftest.nm1 conftest.nm2
13160   fi
13161     else
13162       echo "configure: failed program was" >&5
13163       cat conftest.s >&5
13164     fi
13165     rm -f conftest.o conftest.s
13166   fi
13167 fi
13168 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13169 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13170 if test $gcc_cv_as_subsection_m1 = yes; then
13171
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_GAS_SUBSECTION_ORDERING 1
13174 _ACEOF
13175
13176 fi
13177
13178 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13179 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13180 if test "${gcc_cv_as_weak+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   gcc_cv_as_weak=no
13184     if test $in_tree_gas = yes; then
13185     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13186   then gcc_cv_as_weak=yes
13187 fi
13188   elif test x$gcc_cv_as != x; then
13189     echo '      .weak foobar' > conftest.s
13190     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192   (eval $ac_try) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; }
13196     then
13197         gcc_cv_as_weak=yes
13198     else
13199       echo "configure: failed program was" >&5
13200       cat conftest.s >&5
13201     fi
13202     rm -f conftest.o conftest.s
13203   fi
13204 fi
13205 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13206 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13207 if test $gcc_cv_as_weak = yes; then
13208
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_GAS_WEAK 1
13211 _ACEOF
13212
13213 fi
13214
13215 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13216 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13217 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220   gcc_cv_as_nsubspa_comdat=no
13221     if test $in_tree_gas = yes; then
13222     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13223   then gcc_cv_as_nsubspa_comdat=yes
13224 fi
13225   elif test x$gcc_cv_as != x; then
13226     echo '      .SPACE $TEXT$
13227         .NSUBSPA $CODE$,COMDAT' > conftest.s
13228     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230   (eval $ac_try) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); }; }
13234     then
13235         gcc_cv_as_nsubspa_comdat=yes
13236     else
13237       echo "configure: failed program was" >&5
13238       cat conftest.s >&5
13239     fi
13240     rm -f conftest.o conftest.s
13241   fi
13242 fi
13243 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13244 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13245 if test $gcc_cv_as_nsubspa_comdat = yes; then
13246
13247 cat >>confdefs.h <<\_ACEOF
13248 #define HAVE_GAS_NSUBSPA_COMDAT 1
13249 _ACEOF
13250
13251 fi
13252
13253 # .hidden needs to be supported in both the assembler and the linker,
13254 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13255 # This is irritatingly difficult to feature test for; we have to check the
13256 # date string after the version number.  If we've got an in-tree
13257 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13258 # to be safe.
13259 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13260 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13261 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13262 if test "${gcc_cv_as_hidden+set}" = set; then
13263   echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265   gcc_cv_as_hidden=no
13266     if test $in_tree_gas = yes; then
13267     if test $in_tree_gas_is_elf = yes \
13268   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13269   then gcc_cv_as_hidden=yes
13270 fi
13271   elif test x$gcc_cv_as != x; then
13272     echo '      .hidden foobar
13273 foobar:' > conftest.s
13274     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }
13280     then
13281         gcc_cv_as_hidden=yes
13282     else
13283       echo "configure: failed program was" >&5
13284       cat conftest.s >&5
13285     fi
13286     rm -f conftest.o conftest.s
13287   fi
13288 fi
13289 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13290 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13291
13292
13293 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13294 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13295 if test "${gcc_cv_ld_hidden+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   if test $in_tree_ld = yes ; then
13299   gcc_cv_ld_hidden=no
13300   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 \
13301      && test $in_tree_ld_is_elf = yes; then
13302      gcc_cv_ld_hidden=yes
13303   fi
13304 else
13305   gcc_cv_ld_hidden=yes
13306   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13307   if echo "$ld_ver" | grep GNU > /dev/null; then
13308     ld_vers=`echo $ld_ver | sed -n \
13309         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13310         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13311         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13312         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13313         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13314         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
13315     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'`
13316     if test 0"$ld_date" -lt 20020404; then
13317       if test -n "$ld_date"; then
13318         # If there was date string, but was earlier than 2002-04-04, fail
13319         gcc_cv_ld_hidden=no
13320       elif test -z "$ld_vers"; then
13321         # If there was no date string nor ld version number, something is wrong
13322         gcc_cv_ld_hidden=no
13323       else
13324         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13325         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13326         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13327         test -z "$ld_vers_patch" && ld_vers_patch=0
13328         if test "$ld_vers_major" -lt 2; then
13329           gcc_cv_ld_hidden=no
13330         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13331           gcc_cv_ld_hidden="no"
13332         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13333           gcc_cv_ld_hidden=no
13334         fi
13335       fi
13336     fi
13337   else
13338     case "${target}" in
13339       hppa64*-*-hpux* | ia64*-*-hpux*)
13340         gcc_cv_ld_hidden=yes
13341         ;;
13342       *)
13343         gcc_cv_ld_hidden=no
13344         ;;
13345     esac
13346   fi
13347 fi
13348 fi
13349 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13350 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13351 libgcc_visibility=no
13352
13353 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13354   libgcc_visibility=yes
13355
13356 cat >>confdefs.h <<\_ACEOF
13357 #define HAVE_GAS_HIDDEN 1
13358 _ACEOF
13359
13360 fi
13361
13362 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13363 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13364 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13365 if test "${gcc_cv_as_leb128+set}" = set; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   gcc_cv_as_leb128=no
13369     if test $in_tree_gas = yes; then
13370     if test $in_tree_gas_is_elf = yes \
13371   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13372   then gcc_cv_as_leb128=yes
13373 fi
13374   elif test x$gcc_cv_as != x; then
13375     echo '      .data
13376         .uleb128 L2 - L1
13377 L1:
13378         .uleb128 1280
13379         .sleb128 -1010
13380 L2:' > conftest.s
13381     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383   (eval $ac_try) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }
13387     then
13388         # GAS versions before 2.11 do not support uleb128,
13389   # despite appearing to.
13390   # ??? There exists an elf-specific test that will crash
13391   # the assembler.  Perhaps it's better to figure out whether
13392   # arbitrary sections are supported and try the test.
13393   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13394   if echo "$as_ver" | grep GNU > /dev/null; then
13395     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13396     as_major=`echo $as_ver | sed 's/\..*//'`
13397     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13398     if test $as_major -eq 2 && test $as_minor -lt 11
13399     then :
13400     else gcc_cv_as_leb128=yes
13401     fi
13402   fi
13403     else
13404       echo "configure: failed program was" >&5
13405       cat conftest.s >&5
13406     fi
13407     rm -f conftest.o conftest.s
13408   fi
13409 fi
13410 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13411 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13412 if test $gcc_cv_as_leb128 = yes; then
13413
13414 cat >>confdefs.h <<\_ACEOF
13415 #define HAVE_AS_LEB128 1
13416 _ACEOF
13417
13418 fi
13419
13420 # GAS versions up to and including 2.11.0 may mis-optimize
13421 # .eh_frame data.
13422 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13423 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13424 if test "${gcc_cv_as_eh_frame+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   gcc_cv_as_eh_frame=no
13428     if test $in_tree_gas = yes; then
13429     if test $in_tree_gas_is_elf = yes \
13430   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13431   then gcc_cv_as_eh_frame=yes
13432 fi
13433   elif test x$gcc_cv_as != x; then
13434     echo '      .text
13435 .LFB1:
13436         .4byte  0
13437 .L1:
13438         .4byte  0
13439 .LFE1:
13440         .section        .eh_frame,"aw",@progbits
13441 __FRAME_BEGIN__:
13442         .4byte  .LECIE1-.LSCIE1
13443 .LSCIE1:
13444         .4byte  0x0
13445         .byte   0x1
13446         .ascii "z\0"
13447         .byte   0x1
13448         .byte   0x78
13449         .byte   0x1a
13450         .byte   0x0
13451         .byte   0x4
13452         .4byte  1
13453         .p2align 1
13454 .LECIE1:
13455 .LSFDE1:
13456         .4byte  .LEFDE1-.LASFDE1
13457 .LASFDE1:
13458         .4byte  .LASFDE1-__FRAME_BEGIN__
13459         .4byte  .LFB1
13460         .4byte  .LFE1-.LFB1
13461         .byte   0x4
13462         .4byte  .LFE1-.LFB1
13463         .byte   0x4
13464         .4byte  .L1-.LFB1
13465 .LEFDE1:' > conftest.s
13466     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468   (eval $ac_try) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); }; }
13472     then
13473           cat > conftest.lit <<EOF
13474  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13475  0010 01000000 12000000 18000000 00000000  ................
13476  0020 08000000 04080000 0044               .........D      
13477 EOF
13478 cat > conftest.big <<EOF
13479  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13480  0010 00000001 00000012 00000018 00000000  ................
13481  0020 00000008 04000000 0844               .........D      
13482 EOF
13483   # If the assembler didn't choke, and we can objdump,
13484   # and we got the correct data, then succeed.
13485   if test x$gcc_cv_objdump != x \
13486   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13487      | tail -3 > conftest.got \
13488   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13489     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13490   then
13491     gcc_cv_as_eh_frame=yes
13492   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498     gcc_cv_as_eh_frame=buggy
13499   else
13500     # Uh oh, what do we do now?
13501     gcc_cv_as_eh_frame=no
13502   fi
13503     else
13504       echo "configure: failed program was" >&5
13505       cat conftest.s >&5
13506     fi
13507     rm -f conftest.o conftest.s
13508   fi
13509 fi
13510 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13511 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13512
13513
13514 if test $gcc_cv_as_eh_frame = buggy; then
13515
13516 cat >>confdefs.h <<\_ACEOF
13517 #define USE_AS_TRADITIONAL_FORMAT 1
13518 _ACEOF
13519
13520 fi
13521
13522 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13523 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13524 if test "${gcc_cv_as_shf_merge+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527   gcc_cv_as_shf_merge=no
13528     if test $in_tree_gas = yes; then
13529     if test $in_tree_gas_is_elf = yes \
13530   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13531   then gcc_cv_as_shf_merge=yes
13532 fi
13533   elif test x$gcc_cv_as != x; then
13534     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13535     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537   (eval $ac_try) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; }
13541     then
13542         gcc_cv_as_shf_merge=yes
13543     else
13544       echo "configure: failed program was" >&5
13545       cat conftest.s >&5
13546     fi
13547     rm -f conftest.o conftest.s
13548   fi
13549 fi
13550 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13551 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13552
13553 if test $gcc_cv_as_shf_merge = no; then
13554   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13555 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13556 if test "${gcc_cv_as_shf_merge+set}" = set; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   gcc_cv_as_shf_merge=no
13560     if test $in_tree_gas = yes; then
13561     if test $in_tree_gas_is_elf = yes \
13562   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13563   then gcc_cv_as_shf_merge=yes
13564 fi
13565   elif test x$gcc_cv_as != x; then
13566     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13567     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }
13573     then
13574         gcc_cv_as_shf_merge=yes
13575     else
13576       echo "configure: failed program was" >&5
13577       cat conftest.s >&5
13578     fi
13579     rm -f conftest.o conftest.s
13580   fi
13581 fi
13582 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13583 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13584
13585 fi
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13589 _ACEOF
13590
13591
13592 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13593 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13594 if test "${gcc_cv_as_comdat_group+set}" = set; then
13595   echo $ECHO_N "(cached) $ECHO_C" >&6
13596 else
13597   gcc_cv_as_comdat_group=no
13598     if test $in_tree_gas = yes; then
13599     if test $in_tree_gas_is_elf = yes \
13600   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13601   then gcc_cv_as_comdat_group=yes
13602 fi
13603   elif test x$gcc_cv_as != x; then
13604     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13605     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }
13611     then
13612         gcc_cv_as_comdat_group=yes
13613     else
13614       echo "configure: failed program was" >&5
13615       cat conftest.s >&5
13616     fi
13617     rm -f conftest.o conftest.s
13618   fi
13619 fi
13620 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13621 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13622
13623 if test $gcc_cv_as_comdat_group = yes; then
13624   gcc_cv_as_comdat_group_percent=no
13625 else
13626  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13627 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13628 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13629   echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631   gcc_cv_as_comdat_group_percent=no
13632     if test $in_tree_gas = yes; then
13633     if test $in_tree_gas_is_elf = yes \
13634   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13635   then gcc_cv_as_comdat_group_percent=yes
13636 fi
13637   elif test x$gcc_cv_as != x; then
13638     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13639     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }
13645     then
13646         gcc_cv_as_comdat_group_percent=yes
13647     else
13648       echo "configure: failed program was" >&5
13649       cat conftest.s >&5
13650     fi
13651     rm -f conftest.o conftest.s
13652   fi
13653 fi
13654 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13655 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13656
13657 fi
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13661 _ACEOF
13662
13663
13664 # Thread-local storage - the check is heavily parametrized.
13665 conftest_s=
13666 tls_first_major=
13667 tls_first_minor=
13668 tls_as_opt=
13669 case "$target" in
13670   alpha*-*-*)
13671     conftest_s='
13672         .section ".tdata","awT",@progbits
13673 foo:    .long   25
13674         .text
13675         ldq     $27,__tls_get_addr($29)         !literal!1
13676         lda     $16,foo($29)                    !tlsgd!1
13677         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13678         ldq     $27,__tls_get_addr($29)         !literal!2
13679         lda     $16,foo($29)                    !tlsldm!2
13680         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13681         ldq     $1,foo($29)                     !gotdtprel
13682         ldah    $2,foo($29)                     !dtprelhi
13683         lda     $3,foo($2)                      !dtprello
13684         lda     $4,foo($29)                     !dtprel
13685         ldq     $1,foo($29)                     !gottprel
13686         ldah    $2,foo($29)                     !tprelhi
13687         lda     $3,foo($2)                      !tprello
13688         lda     $4,foo($29)                     !tprel'
13689         tls_first_major=2
13690         tls_first_minor=13
13691         tls_as_opt=--fatal-warnings
13692         ;;
13693   i[34567]86-*-*)
13694     conftest_s='
13695         .section ".tdata","awT",@progbits
13696 foo:    .long   25
13697         .text
13698         movl    %gs:0, %eax
13699         leal    foo@TLSGD(,%ebx,1), %eax
13700         leal    foo@TLSLDM(%ebx), %eax
13701         leal    foo@DTPOFF(%eax), %edx
13702         movl    foo@GOTTPOFF(%ebx), %eax
13703         subl    foo@GOTTPOFF(%ebx), %eax
13704         addl    foo@GOTNTPOFF(%ebx), %eax
13705         movl    foo@INDNTPOFF, %eax
13706         movl    $foo@TPOFF, %eax
13707         subl    $foo@TPOFF, %eax
13708         leal    foo@NTPOFF(%ecx), %eax'
13709         tls_first_major=2
13710         tls_first_minor=14
13711         tls_as_opt=--fatal-warnings
13712         ;;
13713   x86_64-*-*)
13714     conftest_s='
13715         .section ".tdata","awT",@progbits
13716 foo:    .long   25
13717         .text
13718         movq    %fs:0, %rax
13719         leaq    foo@TLSGD(%rip), %rdi
13720         leaq    foo@TLSLD(%rip), %rdi
13721         leaq    foo@DTPOFF(%rax), %rdx
13722         movq    foo@GOTTPOFF(%rip), %rax
13723         movq    $foo@TPOFF, %rax'
13724         tls_first_major=2
13725         tls_first_minor=14
13726         tls_as_opt=--fatal-warnings
13727         ;;
13728   ia64-*-*)
13729     conftest_s='
13730         .section ".tdata","awT",@progbits
13731 foo:    data8   25
13732         .text
13733         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13734         addl    r17 = @ltoff(@dtprel(foo#)), gp
13735         addl    r18 = @ltoff(@tprel(foo#)), gp
13736         addl    r19 = @dtprel(foo#), gp
13737         adds    r21 = @dtprel(foo#), r13
13738         movl    r23 = @dtprel(foo#)
13739         addl    r20 = @tprel(foo#), gp
13740         adds    r22 = @tprel(foo#), r13
13741         movl    r24 = @tprel(foo#)'
13742         tls_first_major=2
13743         tls_first_minor=13
13744         tls_as_opt=--fatal-warnings
13745         ;;
13746   powerpc-*-*)
13747     conftest_s='
13748         .section ".tdata","awT",@progbits
13749         .align 2
13750 ld0:    .space 4
13751 ld1:    .space 4
13752 x1:     .space 4
13753 x2:     .space 4
13754 x3:     .space 4
13755         .text
13756         addi 3,31,ld0@got@tlsgd
13757         bl __tls_get_addr
13758         addi 3,31,x1@got@tlsld
13759         bl __tls_get_addr
13760         addi 9,3,x1@dtprel
13761         addis 9,3,x2@dtprel@ha
13762         addi 9,9,x2@dtprel@l
13763         lwz 9,x3@got@tprel(31)
13764         add 9,9,x@tls
13765         addi 9,2,x1@tprel
13766         addis 9,2,x2@tprel@ha
13767         addi 9,9,x2@tprel@l'
13768         tls_first_major=2
13769         tls_first_minor=14
13770         tls_as_opt="-a32 --fatal-warnings"
13771         ;;
13772   powerpc64-*-*)
13773     conftest_s='
13774         .section ".tdata","awT",@progbits
13775         .align 3
13776 ld0:    .space 8
13777 ld1:    .space 8
13778 x1:     .space 8
13779 x2:     .space 8
13780 x3:     .space 8
13781         .text
13782         addi 3,2,ld0@got@tlsgd
13783         bl .__tls_get_addr
13784         nop
13785         addi 3,2,ld1@toc
13786         bl .__tls_get_addr
13787         nop
13788         addi 3,2,x1@got@tlsld
13789         bl .__tls_get_addr
13790         nop
13791         addi 9,3,x1@dtprel
13792         bl .__tls_get_addr
13793         nop
13794         addis 9,3,x2@dtprel@ha
13795         addi 9,9,x2@dtprel@l
13796         bl .__tls_get_addr
13797         nop
13798         ld 9,x3@got@dtprel(2)
13799         add 9,9,3
13800         bl .__tls_get_addr
13801         nop'
13802         tls_first_major=2
13803         tls_first_minor=14
13804         tls_as_opt="-a64 --fatal-warnings"
13805         ;;
13806   s390-*-*)
13807     conftest_s='
13808         .section ".tdata","awT",@progbits
13809 foo:    .long   25
13810         .text
13811         .long   foo@TLSGD
13812         .long   foo@TLSLDM
13813         .long   foo@DTPOFF
13814         .long   foo@NTPOFF
13815         .long   foo@GOTNTPOFF
13816         .long   foo@INDNTPOFF
13817         l       %r1,foo@GOTNTPOFF(%r12)
13818         l       %r1,0(%r1):tls_load:foo
13819         bas     %r14,0(%r1,%r13):tls_gdcall:foo
13820         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
13821         tls_first_major=2
13822         tls_first_minor=14
13823         tls_as_opt="-m31 --fatal-warnings"
13824         ;;
13825   s390x-*-*)
13826     conftest_s='
13827         .section ".tdata","awT",@progbits
13828 foo:    .long   25
13829         .text
13830         .quad   foo@TLSGD
13831         .quad   foo@TLSLDM
13832         .quad   foo@DTPOFF
13833         .quad   foo@NTPOFF
13834         .quad   foo@GOTNTPOFF
13835         lg      %r1,foo@GOTNTPOFF(%r12)
13836         larl    %r1,foo@INDNTPOFF
13837         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
13838         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13839         tls_first_major=2
13840         tls_first_minor=14
13841         tls_as_opt="-m64 -Aesame --fatal-warnings"
13842         ;;
13843   sh-*-* | sh[34]-*-*)
13844     conftest_s='
13845         .section ".tdata","awT",@progbits
13846 foo:    .long   25
13847         .text
13848         .long   foo@TLSGD
13849         .long   foo@TLSLDM
13850         .long   foo@DTPOFF
13851         .long   foo@GOTTPOFF
13852         .long   foo@TPOFF'
13853         tls_first_major=2
13854         tls_first_minor=13
13855         tls_as_opt=--fatal-warnings
13856         ;;
13857   sparc*-*-*)
13858     case "$target" in
13859       sparc*-sun-solaris2.*)
13860         on_solaris=yes
13861         ;;
13862       *)
13863         on_solaris=no
13864         ;;
13865     esac
13866     if test x$on_solaris = xyes && test x$gas_flag = xno; then
13867       conftest_s='
13868         .section ".tdata",#alloc,#write,#tls
13869 foo:    .long   25
13870         .text
13871         sethi   %tgd_hi22(foo), %o0
13872         add     %o0, %tgd_lo10(foo), %o1
13873         add     %l7, %o1, %o0, %tgd_add(foo)
13874         call    __tls_get_addr, %tgd_call(foo)
13875         sethi   %tldm_hi22(foo), %l1
13876         add     %l1, %tldm_lo10(foo), %l2
13877         add     %l7, %l2, %o0, %tldm_add(foo)
13878         call    __tls_get_addr, %tldm_call(foo)
13879         sethi   %tldo_hix22(foo), %l3
13880         xor     %l3, %tldo_lox10(foo), %l4
13881         add     %o0, %l4, %l5, %tldo_add(foo)
13882         sethi   %tie_hi22(foo), %o3
13883         add     %o3, %tie_lo10(foo), %o3
13884         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13885         add     %g7, %o2, %o4, %tie_add(foo)
13886         sethi   %tle_hix22(foo), %l1
13887         xor     %l1, %tle_lox10(foo), %o5
13888         ld      [%g7 + %o5], %o1'
13889         tls_first_major=0
13890         tls_first_minor=0
13891     else
13892       conftest_s='
13893         .section ".tdata","awT",@progbits
13894 foo:    .long   25
13895         .text
13896         sethi   %tgd_hi22(foo), %o0
13897         add     %o0, %tgd_lo10(foo), %o1
13898         add     %l7, %o1, %o0, %tgd_add(foo)
13899         call    __tls_get_addr, %tgd_call(foo)
13900         sethi   %tldm_hi22(foo), %l1
13901         add     %l1, %tldm_lo10(foo), %l2
13902         add     %l7, %l2, %o0, %tldm_add(foo)
13903         call    __tls_get_addr, %tldm_call(foo)
13904         sethi   %tldo_hix22(foo), %l3
13905         xor     %l3, %tldo_lox10(foo), %l4
13906         add     %o0, %l4, %l5, %tldo_add(foo)
13907         sethi   %tie_hi22(foo), %o3
13908         add     %o3, %tie_lo10(foo), %o3
13909         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13910         add     %g7, %o2, %o4, %tie_add(foo)
13911         sethi   %tle_hix22(foo), %l1
13912         xor     %l1, %tle_lox10(foo), %o5
13913         ld      [%g7 + %o5], %o1'
13914         tls_first_major=2
13915         tls_first_minor=14
13916         tls_as_opt="-32 --fatal-warnings"
13917       fi
13918         ;;
13919 esac
13920 if test -z "$tls_first_major"; then
13921   : # If we don't have a check, assume no support.
13922 else
13923   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13924 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13925 if test "${gcc_cv_as_tls+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   gcc_cv_as_tls=no
13929     if test $in_tree_gas = yes; then
13930     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13931   then gcc_cv_as_tls=yes
13932 fi
13933   elif test x$gcc_cv_as != x; then
13934     echo "$conftest_s" > conftest.s
13935     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; }
13941     then
13942         gcc_cv_as_tls=yes
13943     else
13944       echo "configure: failed program was" >&5
13945       cat conftest.s >&5
13946     fi
13947     rm -f conftest.o conftest.s
13948   fi
13949 fi
13950 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13951 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13952 if test $gcc_cv_as_tls = yes; then
13953
13954 cat >>confdefs.h <<\_ACEOF
13955 #define HAVE_AS_TLS 1
13956 _ACEOF
13957
13958 fi
13959 fi
13960
13961 # Target-specific assembler checks.
13962
13963 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13964 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13965 gcc_cv_ld_static_dynamic=no
13966 if test $in_tree_ld = yes ; then
13967   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13968     gcc_cv_ld_static_dynamic=yes
13969   fi
13970 elif test x$gcc_cv_ld != x; then
13971         # Check if linker supports -Bstatic/-Bdynamic option
13972         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13973           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13974                 gcc_cv_ld_static_dynamic=yes
13975         fi
13976 fi
13977 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13978
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_LD_STATIC_DYNAMIC 1
13981 _ACEOF
13982
13983 fi
13984 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13985 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13986
13987 if test x"$demangler_in_ld" = xyes; then
13988   echo "$as_me:$LINENO: checking linker --demangle support" >&5
13989 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13990   gcc_cv_ld_demangle=no
13991   if test $in_tree_ld = yes; then
13992     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 \
13993       gcc_cv_ld_demangle=yes
13994     fi
13995   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13996     # Check if the GNU linker supports --demangle option
13997     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13998       gcc_cv_ld_demangle=yes
13999     fi
14000   fi
14001   if test x"$gcc_cv_ld_demangle" = xyes; then
14002
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_LD_DEMANGLE 1
14005 _ACEOF
14006
14007   fi
14008   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14009 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14010 fi
14011
14012 case "$target" in
14013   # All TARGET_ABI_OSF targets.
14014   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14015     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14016 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14017 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   gcc_cv_as_alpha_explicit_relocs=no
14021     if test $in_tree_gas = yes; then
14022     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14023   then gcc_cv_as_alpha_explicit_relocs=yes
14024 fi
14025   elif test x$gcc_cv_as != x; then
14026     echo '      .set nomacro
14027         .text
14028         extbl   $3, $2, $3      !lituse_bytoff!1
14029         ldq     $2, a($29)      !literal!1
14030         ldq     $4, b($29)      !literal!2
14031         ldq_u   $3, 0($2)       !lituse_base!1
14032         ldq     $27, f($29)     !literal!5
14033         jsr     $26, ($27), f   !lituse_jsr!5
14034         ldah    $29, 0($26)     !gpdisp!3
14035         lda     $0, c($29)      !gprel
14036         ldah    $1, d($29)      !gprelhigh
14037         lda     $1, d($1)       !gprellow
14038         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14039     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }
14045     then
14046         gcc_cv_as_alpha_explicit_relocs=yes
14047     else
14048       echo "configure: failed program was" >&5
14049       cat conftest.s >&5
14050     fi
14051     rm -f conftest.o conftest.s
14052   fi
14053 fi
14054 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14055 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14056 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14057
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_AS_EXPLICIT_RELOCS 1
14060 _ACEOF
14061
14062 fi
14063     ;;
14064
14065   cris-*-*)
14066     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14067 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14068 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14069   echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071   gcc_cv_as_cris_no_mul_bug=no
14072     if test $in_tree_gas = yes; then
14073     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14074   then gcc_cv_as_cris_no_mul_bug=yes
14075 fi
14076   elif test x$gcc_cv_as != x; then
14077     echo '.text' > conftest.s
14078     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080   (eval $ac_try) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }
14084     then
14085         gcc_cv_as_cris_no_mul_bug=yes
14086     else
14087       echo "configure: failed program was" >&5
14088       cat conftest.s >&5
14089     fi
14090     rm -f conftest.o conftest.s
14091   fi
14092 fi
14093 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14094 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14095 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14096
14097 cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14099 _ACEOF
14100
14101 fi
14102     ;;
14103
14104   sparc*-*-*)
14105     echo "$as_me:$LINENO: checking assembler for .register" >&5
14106 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14107 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14108   echo $ECHO_N "(cached) $ECHO_C" >&6
14109 else
14110   gcc_cv_as_sparc_register_op=no
14111   if test x$gcc_cv_as != x; then
14112     echo '.register %g2, #scratch' > conftest.s
14113     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }
14119     then
14120         gcc_cv_as_sparc_register_op=yes
14121     else
14122       echo "configure: failed program was" >&5
14123       cat conftest.s >&5
14124     fi
14125     rm -f conftest.o conftest.s
14126   fi
14127 fi
14128 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14129 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14130 if test $gcc_cv_as_sparc_register_op = yes; then
14131
14132 cat >>confdefs.h <<\_ACEOF
14133 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14134 _ACEOF
14135
14136 fi
14137
14138     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14139 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14140 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14141   echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143   gcc_cv_as_sparc_relax=no
14144   if test x$gcc_cv_as != x; then
14145     echo '.text' > conftest.s
14146     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }
14152     then
14153         gcc_cv_as_sparc_relax=yes
14154     else
14155       echo "configure: failed program was" >&5
14156       cat conftest.s >&5
14157     fi
14158     rm -f conftest.o conftest.s
14159   fi
14160 fi
14161 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14162 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14163 if test $gcc_cv_as_sparc_relax = yes; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_AS_RELAX_OPTION 1
14167 _ACEOF
14168
14169 fi
14170
14171     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14172 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14173 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   gcc_cv_as_sparc_ua_pcrel=no
14177   if test x$gcc_cv_as != x; then
14178     echo '.text
14179 foo:
14180         nop
14181 .data
14182 .align 4
14183 .byte 0
14184 .uaword %r_disp32(foo)' > conftest.s
14185     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }
14191     then
14192         if test x$gcc_cv_ld != x \
14193        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14194          gcc_cv_as_sparc_ua_pcrel=yes
14195        fi
14196        rm -f conftest
14197     else
14198       echo "configure: failed program was" >&5
14199       cat conftest.s >&5
14200     fi
14201     rm -f conftest.o conftest.s
14202   fi
14203 fi
14204 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14205 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14206 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14207
14208 cat >>confdefs.h <<\_ACEOF
14209 #define HAVE_AS_SPARC_UA_PCREL 1
14210 _ACEOF
14211
14212
14213       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14214 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14215 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14216   echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218   gcc_cv_as_sparc_ua_pcrel_hidden=no
14219   if test x$gcc_cv_as != x; then
14220     echo '.data
14221 .align 4
14222 .byte 0x31
14223 .uaword %r_disp32(foo)
14224 .byte 0x32, 0x33, 0x34
14225 .global foo
14226 .hidden foo
14227 foo:
14228 .skip 4' > conftest.s
14229     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }
14235     then
14236         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14237          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14238          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14239             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14240             if $gcc_cv_objdump -R conftest 2> /dev/null \
14241                | grep 'DISP32' > /dev/null 2>&1; then
14242                 :
14243             else
14244                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14245             fi
14246          fi
14247          rm -f conftest
14248     else
14249       echo "configure: failed program was" >&5
14250       cat conftest.s >&5
14251     fi
14252     rm -f conftest.o conftest.s
14253   fi
14254 fi
14255 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14256 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14257 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14261 _ACEOF
14262
14263 fi
14264
14265 fi # unaligned pcrel relocs
14266
14267     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14268 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14269 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   gcc_cv_as_sparc_offsetable_lo10=no
14273   if test x$gcc_cv_as != x; then
14274     echo '.text
14275         or %g1, %lo(ab) + 12, %g1
14276         or %g1, %lo(ab + 12), %g1' > conftest.s
14277     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; }
14283     then
14284         if test x$gcc_cv_objdump != x \
14285        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14286           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14287          gcc_cv_as_sparc_offsetable_lo10=yes
14288        fi
14289     else
14290       echo "configure: failed program was" >&5
14291       cat conftest.s >&5
14292     fi
14293     rm -f conftest.o conftest.s
14294   fi
14295 fi
14296 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14297 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14298 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14299
14300 cat >>confdefs.h <<\_ACEOF
14301 #define HAVE_AS_OFFSETABLE_LO10 1
14302 _ACEOF
14303
14304 fi
14305     ;;
14306
14307   i[34567]86-*-* | x86_64-*-*)
14308     case $target_os in
14309       cygwin* | pe | mingw32*)
14310         # Used for DWARF 2 in PE
14311         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14312 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14313 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   gcc_cv_as_ix86_pe_secrel32=no
14317     if test $in_tree_gas = yes; then
14318     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14319   then gcc_cv_as_ix86_pe_secrel32=yes
14320 fi
14321   elif test x$gcc_cv_as != x; then
14322     echo '.text
14323 foo:    nop
14324 .data
14325         .secrel32 foo' > conftest.s
14326     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }
14332     then
14333         if test x$gcc_cv_ld != x \
14334            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14335              gcc_cv_as_ix86_pe_secrel32=yes
14336            fi
14337            rm -f conftest
14338     else
14339       echo "configure: failed program was" >&5
14340       cat conftest.s >&5
14341     fi
14342     rm -f conftest.o conftest.s
14343   fi
14344 fi
14345 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14346 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14347 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14348
14349 cat >>confdefs.h <<\_ACEOF
14350 #define HAVE_GAS_PE_SECREL32_RELOC 1
14351 _ACEOF
14352
14353 fi
14354         ;;
14355     esac
14356
14357     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14358 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14359 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   gcc_cv_as_ix86_filds_fists=no
14363     if test $in_tree_gas = yes; then
14364     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14365   then gcc_cv_as_ix86_filds_fists=yes
14366 fi
14367   elif test x$gcc_cv_as != x; then
14368     echo 'filds mem; fists mem' > conftest.s
14369     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371   (eval $ac_try) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; }
14375     then
14376         gcc_cv_as_ix86_filds_fists=yes
14377     else
14378       echo "configure: failed program was" >&5
14379       cat conftest.s >&5
14380     fi
14381     rm -f conftest.o conftest.s
14382   fi
14383 fi
14384 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14385 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14386 if test $gcc_cv_as_ix86_filds_fists = yes; then
14387
14388 cat >>confdefs.h <<\_ACEOF
14389 #define HAVE_GAS_FILDS_FISTS 1
14390 _ACEOF
14391
14392 fi
14393
14394     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14395 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14396 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14397   echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399   gcc_cv_as_ix86_cmov_sun_syntax=no
14400   if test x$gcc_cv_as != x; then
14401     echo 'cmovl.l %edx, %eax' > conftest.s
14402     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }
14408     then
14409         gcc_cv_as_ix86_cmov_sun_syntax=yes
14410     else
14411       echo "configure: failed program was" >&5
14412       cat conftest.s >&5
14413     fi
14414     rm -f conftest.o conftest.s
14415   fi
14416 fi
14417 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14418 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14419 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14420
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14423 _ACEOF
14424
14425 fi
14426
14427     # This one is used unconditionally by i386.[ch]; it is to be defined
14428     # to 1 if the feature is present, 0 otherwise.
14429     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14430 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14431 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   gcc_cv_as_ix86_gotoff_in_data=no
14435     if test $in_tree_gas = yes; then
14436     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14437   then gcc_cv_as_ix86_gotoff_in_data=yes
14438 fi
14439   elif test x$gcc_cv_as != x; then
14440     echo '      .text
14441 .L0:
14442         nop
14443         .data
14444         .long .L0@GOTOFF' > conftest.s
14445     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447   (eval $ac_try) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); }; }
14451     then
14452         gcc_cv_as_ix86_gotoff_in_data=yes
14453     else
14454       echo "configure: failed program was" >&5
14455       cat conftest.s >&5
14456     fi
14457     rm -f conftest.o conftest.s
14458   fi
14459 fi
14460 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14461 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14462
14463
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14466 _ACEOF
14467
14468     ;;
14469
14470   ia64*-*-*)
14471     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14472 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14473 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14477     if test $in_tree_gas = yes; then
14478     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14479   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14480 fi
14481   elif test x$gcc_cv_as != x; then
14482     echo '      .text
14483         addl r15 = @ltoffx(x#), gp
14484         ;;
14485         ld8.mov r16 = [r15], x#' > conftest.s
14486     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }
14492     then
14493         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14494     else
14495       echo "configure: failed program was" >&5
14496       cat conftest.s >&5
14497     fi
14498     rm -f conftest.o conftest.s
14499   fi
14500 fi
14501 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14502 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14503 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14504
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14507 _ACEOF
14508
14509 fi
14510
14511     ;;
14512
14513   powerpc*-*-*)
14514     case $target in
14515       *-*-aix*) conftest_s='    .csect .text[PR]
14516         mfcr 3,128';;
14517       *-*-darwin*)
14518         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14519 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14520 if test "${gcc_cv_as_machine_directive+set}" = set; then
14521   echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523   gcc_cv_as_machine_directive=no
14524   if test x$gcc_cv_as != x; then
14525     echo '      .machine ppc7400' > conftest.s
14526     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }
14532     then
14533         gcc_cv_as_machine_directive=yes
14534     else
14535       echo "configure: failed program was" >&5
14536       cat conftest.s >&5
14537     fi
14538     rm -f conftest.o conftest.s
14539   fi
14540 fi
14541 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14542 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14543
14544         if test x$gcc_cv_as_machine_directive != xyes; then
14545           echo "*** This target requires an assembler supporting \".machine\"" >&2
14546           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14547           test x$build = x$target && exit 1
14548         fi
14549         conftest_s='    .text
14550         mfcr r3,128';;
14551       *) conftest_s='   .machine power4
14552         .text
14553         mfcr 3,128';;
14554     esac
14555
14556     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14557 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14558 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561   gcc_cv_as_powerpc_mfcrf=no
14562     if test $in_tree_gas = yes; then
14563     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14564   then gcc_cv_as_powerpc_mfcrf=yes
14565 fi
14566   elif test x$gcc_cv_as != x; then
14567     echo "$conftest_s" > conftest.s
14568     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; }
14574     then
14575         gcc_cv_as_powerpc_mfcrf=yes
14576     else
14577       echo "configure: failed program was" >&5
14578       cat conftest.s >&5
14579     fi
14580     rm -f conftest.o conftest.s
14581   fi
14582 fi
14583 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14584 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14585 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_AS_MFCRF 1
14589 _ACEOF
14590
14591 fi
14592     ;;
14593
14594   mips*-*-*)
14595     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14596 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14597 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600   gcc_cv_as_mips_explicit_relocs=no
14601     if test $in_tree_gas = yes; then
14602     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14603   then gcc_cv_as_mips_explicit_relocs=yes
14604 fi
14605   elif test x$gcc_cv_as != x; then
14606     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
14607     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; }
14613     then
14614         gcc_cv_as_mips_explicit_relocs=yes
14615     else
14616       echo "configure: failed program was" >&5
14617       cat conftest.s >&5
14618     fi
14619     rm -f conftest.o conftest.s
14620   fi
14621 fi
14622 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14623 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14624 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14625   if test x$target_cpu_default = x
14626        then target_cpu_default=MASK_EXPLICIT_RELOCS
14627        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14628        fi
14629 fi
14630
14631     if test x$gas_flag = xyes \
14632        || test x"$host" != x"$build" \
14633        || test ! -x "$gcc_cv_as" \
14634        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14635       :
14636     else
14637       echo "*** This configuration requires the GNU assembler" >&2
14638       exit 1
14639     fi
14640     ;;
14641 esac
14642 # ??? Not all targets support dwarf2 debug_line, even within a version
14643 # of gas.  Moreover, we need to emit a valid instruction to trigger any
14644 # info to the output file.  So, as supported targets are added to gas 2.11,
14645 # add some instruction here to (also) show we expect this might work.
14646 # ??? Once 2.11 is released, probably need to add first known working
14647 # version to the per-target configury.
14648 case "$target" in
14649   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14650   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14651   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14652     insn="nop"
14653     ;;
14654   ia64*-*-* | s390*-*-*)
14655     insn="nop 0"
14656     ;;
14657   mmix-*-*)
14658     insn="swym 0"
14659     ;;
14660 esac
14661 if test x"$insn" != x; then
14662  conftest_s="\
14663         .file 1 \"conftest.s\"
14664         .loc 1 3 0
14665         $insn"
14666  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14667 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14668 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671   gcc_cv_as_dwarf2_debug_line=no
14672     if test $in_tree_gas = yes; then
14673     if test $in_tree_gas_is_elf = yes \
14674   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14675   then gcc_cv_as_dwarf2_debug_line=yes
14676 fi
14677   elif test x$gcc_cv_as != x; then
14678     echo "$conftest_s" > conftest.s
14679     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }
14685     then
14686         if test x$gcc_cv_objdump != x \
14687    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14688       | grep debug_line > /dev/null 2>&1; then
14689      gcc_cv_as_dwarf2_debug_line=yes
14690    fi
14691     else
14692       echo "configure: failed program was" >&5
14693       cat conftest.s >&5
14694     fi
14695     rm -f conftest.o conftest.s
14696   fi
14697 fi
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14699 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14700
14701
14702 # The .debug_line file table must be in the exact order that
14703 # we specified the files, since these indices are also used
14704 # by DW_AT_decl_file.  Approximate this test by testing if
14705 # the assembler bitches if the same index is assigned twice.
14706  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14707 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14708 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711   gcc_cv_as_dwarf2_file_buggy=no
14712   if test x$gcc_cv_as != x; then
14713     echo '      .file 1 "foo.s"
14714         .file 1 "bar.s"' > conftest.s
14715     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717   (eval $ac_try) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; }
14721     then
14722         gcc_cv_as_dwarf2_file_buggy=yes
14723     else
14724       echo "configure: failed program was" >&5
14725       cat conftest.s >&5
14726     fi
14727     rm -f conftest.o conftest.s
14728   fi
14729 fi
14730 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14731 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14732
14733
14734  if test $gcc_cv_as_dwarf2_debug_line = yes \
14735  && test $gcc_cv_as_dwarf2_file_buggy = no; then
14736
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14739 _ACEOF
14740
14741  fi
14742
14743  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14744 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14745 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748   gcc_cv_as_gdwarf2_flag=no
14749     if test $in_tree_gas = yes; then
14750     if test $in_tree_gas_is_elf = yes \
14751   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14752   then gcc_cv_as_gdwarf2_flag=yes
14753 fi
14754   elif test x$gcc_cv_as != x; then
14755     echo "$insn" > conftest.s
14756     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }
14762     then
14763         gcc_cv_as_gdwarf2_flag=yes
14764     else
14765       echo "configure: failed program was" >&5
14766       cat conftest.s >&5
14767     fi
14768     rm -f conftest.o conftest.s
14769   fi
14770 fi
14771 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14772 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14773 if test $gcc_cv_as_gdwarf2_flag = yes; then
14774
14775 cat >>confdefs.h <<\_ACEOF
14776 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14777 _ACEOF
14778
14779 fi
14780
14781  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14782 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14783 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   gcc_cv_as_gstabs_flag=no
14787     if test $in_tree_gas = yes; then
14788     if test $in_tree_gas_is_elf = yes \
14789   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14790   then gcc_cv_as_gstabs_flag=yes
14791 fi
14792   elif test x$gcc_cv_as != x; then
14793     echo "$insn" > conftest.s
14794     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796   (eval $ac_try) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); }; }
14800     then
14801         # The native Solaris 9/Intel assembler doesn't understand --gstabs
14802    # and warns about it, but still exits successfully.  So check for
14803    # this.
14804    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
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    else gcc_cv_as_gstabs_flag=yes
14812    fi
14813     else
14814       echo "configure: failed program was" >&5
14815       cat conftest.s >&5
14816     fi
14817     rm -f conftest.o conftest.s
14818   fi
14819 fi
14820 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14821 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14822 if test $gcc_cv_as_gstabs_flag = yes; then
14823
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14826 _ACEOF
14827
14828 fi
14829 fi
14830
14831 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14832 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14833 gcc_cv_ld_ro_rw_mix=unknown
14834 if test $in_tree_ld = yes ; then
14835   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 \
14836      && test $in_tree_ld_is_elf = yes; then
14837     gcc_cv_ld_ro_rw_mix=read-write
14838   fi
14839 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14840   echo '.section myfoosect, "a"' > conftest1.s
14841   echo '.section myfoosect, "aw"' > conftest2.s
14842   echo '.byte 1' >> conftest2.s
14843   echo '.section myfoosect, "a"' > conftest3.s
14844   echo '.byte 0' >> conftest3.s
14845   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14846      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14847      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14848      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14849         conftest2.o conftest3.o > /dev/null 2>&1; then
14850     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14851                          | sed -e '/myfoosect/!d' -e N`
14852     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14853       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14854         gcc_cv_ld_ro_rw_mix=read-only
14855       else
14856         gcc_cv_ld_ro_rw_mix=read-write
14857       fi
14858     fi
14859   fi
14860   rm -f conftest.* conftest[123].*
14861 fi
14862 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14863
14864 cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14866 _ACEOF
14867
14868 fi
14869 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14870 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14871
14872 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14873 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14874 gcc_cv_ld_eh_frame_hdr=no
14875 if test $in_tree_ld = yes ; then
14876   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 \
14877      && test $in_tree_ld_is_elf = yes; then
14878     gcc_cv_ld_eh_frame_hdr=yes
14879   fi
14880 elif test x$gcc_cv_ld != x; then
14881         # Check if linker supports --eh-frame-hdr option
14882         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14883                 gcc_cv_ld_eh_frame_hdr=yes
14884         fi
14885 fi
14886 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14887
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_LD_EH_FRAME_HDR 1
14890 _ACEOF
14891
14892 fi
14893 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14894 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14895
14896 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14897 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14898 gcc_cv_ld_pie=no
14899 if test $in_tree_ld = yes ; then
14900   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 \
14901      && test $in_tree_ld_is_elf = yes; then
14902     gcc_cv_ld_pie=yes
14903   fi
14904 elif test x$gcc_cv_ld != x; then
14905         # Check if linker supports -pie option
14906         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14907                 gcc_cv_ld_pie=yes
14908         fi
14909 fi
14910 if test x"$gcc_cv_ld_pie" = xyes; then
14911
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_LD_PIE 1
14914 _ACEOF
14915
14916 fi
14917 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14918 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14919
14920 # --------
14921 # UNSORTED
14922 # --------
14923
14924 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14925 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14926 if test "${gcc_cv_ld_as_needed+set}" = set; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929   gcc_cv_ld_as_needed=no
14930 if test $in_tree_ld = yes ; then
14931   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 \
14932      && test $in_tree_ld_is_elf = yes; then
14933     gcc_cv_ld_as_needed=yes
14934   fi
14935 elif test x$gcc_cv_ld != x; then
14936         # Check if linker supports --as-needed and --no-as-needed options
14937         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14938                 gcc_cv_ld_as_needed=yes
14939         fi
14940 fi
14941
14942 fi
14943 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14944 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14945 if test x"$gcc_cv_ld_as_needed" = xyes; then
14946
14947 cat >>confdefs.h <<\_ACEOF
14948 #define HAVE_LD_AS_NEEDED 1
14949 _ACEOF
14950
14951 fi
14952
14953 case "$target" in
14954   powerpc64*-*-linux*)
14955     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14956 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14957 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960   gcc_cv_ld_no_dot_syms=no
14961     if test $in_tree_ld = yes ; then
14962       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
14963         gcc_cv_ld_no_dot_syms=yes
14964       fi
14965     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14966       cat > conftest1.s <<EOF
14967         .text
14968         bl .foo
14969 EOF
14970       cat > conftest2.s <<EOF
14971         .section ".opd","aw"
14972         .align 3
14973         .globl foo
14974         .type foo,@function
14975 foo:
14976         .quad .LEfoo,.TOC.@tocbase,0
14977         .text
14978 .LEfoo:
14979         blr
14980         .size foo,.-.LEfoo
14981 EOF
14982       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14983          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14984          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14985         gcc_cv_ld_no_dot_syms=yes
14986       fi
14987       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14988     fi
14989
14990 fi
14991 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14992 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14993     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14994
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_LD_NO_DOT_SYMS 1
14997 _ACEOF
14998
14999     fi
15000     ;;
15001 esac
15002
15003 if test x$with_sysroot = x && test x$host = x$target \
15004    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15005
15006 cat >>confdefs.h <<_ACEOF
15007 #define PREFIX_INCLUDE_DIR "$prefix/include"
15008 _ACEOF
15009
15010 fi
15011
15012 # Find out what GC implementation we want, or may, use.
15013
15014 # Check whether --with-gc or --without-gc was given.
15015 if test "${with_gc+set}" = set; then
15016   withval="$with_gc"
15017   case "$withval" in
15018   page | zone)
15019     GGC=ggc-$withval
15020     ;;
15021   *)
15022     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15023 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15024    { (exit 1); exit 1; }; }
15025     ;;
15026 esac
15027 else
15028   GGC=ggc-page
15029 fi;
15030
15031 echo "Using $GGC for garbage collection."
15032
15033 # Use the system's zlib library.
15034 zlibdir=-L../zlib
15035 zlibinc="-I\$(srcdir)/../zlib"
15036
15037 # Check whether --with-system-zlib or --without-system-zlib was given.
15038 if test "${with_system_zlib+set}" = set; then
15039   withval="$with_system_zlib"
15040   zlibdir=
15041 zlibinc=
15042
15043 fi;
15044
15045
15046
15047
15048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15050     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15051 if test "${enable_maintainer_mode+set}" = set; then
15052   enableval="$enable_maintainer_mode"
15053   maintainer_mode=$enableval
15054 else
15055   maintainer_mode=no
15056 fi;
15057
15058 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15059 echo "${ECHO_T}$maintainer_mode" >&6
15060
15061 if test "$maintainer_mode" = "yes"; then
15062   MAINT=''
15063 else
15064   MAINT='#'
15065 fi
15066
15067 # --------------
15068 # Language hooks
15069 # --------------
15070
15071 # Make empty files to contain the specs and options for each language.
15072 # Then add #include lines to for a compiler that has specs and/or options.
15073
15074 lang_opt_files=
15075 lang_specs_files=
15076 lang_tree_files=
15077 for subdir in . $subdirs
15078 do
15079         if test -f $srcdir/$subdir/lang.opt; then
15080             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15081         fi
15082         if test -f $srcdir/$subdir/lang-specs.h; then
15083             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15084         fi
15085         if test -f $srcdir/$subdir/$subdir-tree.def; then
15086             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15087         fi
15088 done
15089
15090 # These (without "all_") are set in each config-lang.in.
15091 # `language' must be a single word so is spelled singularly.
15092 all_languages=
15093 all_boot_languages=
15094 all_compilers=
15095 all_stagestuff=
15096 all_outputs='Makefile gccbug mklibgcc libada-mk'
15097 # List of language makefile fragments.
15098 all_lang_makefrags=
15099 # List of language subdirectory makefiles.  Deprecated.
15100 all_lang_makefiles=
15101 # Files for gengtype
15102 all_gtfiles="$target_gtfiles"
15103 # Files for gengtype with language
15104 all_gtfiles_files_langs=
15105 all_gtfiles_files_files=
15106
15107 # Add the language fragments.
15108 # Languages are added via two mechanisms.  Some information must be
15109 # recorded in makefile variables, these are defined in config-lang.in.
15110 # We accumulate them and plug them into the main Makefile.
15111 # The other mechanism is a set of hooks for each of the main targets
15112 # like `clean', `install', etc.
15113
15114 language_hooks="Make-hooks"
15115
15116 for s in $subdirs
15117 do
15118                 language=
15119                 boot_language=
15120                 compilers=
15121                 stagestuff=
15122                 outputs=
15123                 gtfiles=
15124                 . ${srcdir}/$s/config-lang.in
15125                 if test "x$language" = x
15126                 then
15127                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15128                         exit 1
15129                 fi
15130                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15131                 if test -f ${srcdir}/$s/Makefile.in
15132                 then all_lang_makefiles="$s/Makefile"
15133                 fi
15134                 all_languages="$all_languages $language"
15135                 if test "x$boot_language" = xyes
15136                 then
15137                         all_boot_languages="$all_boot_languages $language"
15138                 fi
15139                 all_compilers="$all_compilers $compilers"
15140                 all_stagestuff="$all_stagestuff $stagestuff"
15141                 all_outputs="$all_outputs $outputs"
15142                 all_gtfiles="$all_gtfiles $gtfiles"
15143                 for f in $gtfiles
15144                 do
15145                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15146                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15147                 done
15148 done
15149
15150 # Pick up gtfiles for c
15151 gtfiles=
15152 s="c"
15153 . ${srcdir}/c-config-lang.in
15154 all_gtfiles="$all_gtfiles $gtfiles"
15155 for f in $gtfiles
15156 do
15157         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15158         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15159 done
15160
15161 check_languages=
15162 for language in $all_languages
15163 do
15164                 check_languages="$check_languages check-$language"
15165 done
15166
15167 # We link each language in with a set of hooks, reached indirectly via
15168 # lang.${target}.
15169
15170 rm -f Make-hooks
15171 touch Make-hooks
15172 target_list="all.build all.cross start.encap rest.encap tags \
15173         install-normal install-common install-man \
15174         uninstall info man srcextra srcman srcinfo \
15175         mostlyclean clean distclean maintainer-clean \
15176         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15177 for t in $target_list
15178 do
15179         x=
15180         for lang in $all_languages
15181         do
15182                         x="$x $lang.$t"
15183         done
15184         echo "lang.$t: $x" >> Make-hooks
15185 done
15186
15187 # --------
15188 # UNSORTED
15189 # --------
15190
15191 # Create .gdbinit.
15192
15193 echo "dir ." > .gdbinit
15194 echo "dir ${srcdir}" >> .gdbinit
15195 if test x$gdb_needs_out_file_path = xyes
15196 then
15197         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15198 fi
15199 if test "x$subdirs" != x; then
15200         for s in $subdirs
15201         do
15202                 echo "dir ${srcdir}/$s" >> .gdbinit
15203         done
15204 fi
15205 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15206
15207 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15208 # absolute path for gcc_tooldir based on inserting the number of up-directory
15209 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15210 # $(libsubdir)/@(unlibsubdir) based path.
15211 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15212 # make and thus we'd get different behavior depending on where we built the
15213 # sources.
15214 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15215     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15216 else
15217 # An explanation of the sed strings:
15218 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15219 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15220 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15221 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15222 #
15223 # (*) Note this pattern overwrites the first character of the string
15224 # with a forward slash if one is not already present.  This is not a
15225 # problem because the exact names of the sub-directories concerned is
15226 # unimportant, just the number of them matters.
15227 #
15228 # The practical upshot of these patterns is like this:
15229 #
15230 #  prefix     exec_prefix        result
15231 #  ------     -----------        ------
15232 #   /foo        /foo/bar          ../
15233 #   /foo/       /foo/bar          ../
15234 #   /foo        /foo/bar/         ../
15235 #   /foo/       /foo/bar/         ../
15236 #   /foo        /foo/bar/ugg      ../../
15237 #
15238     dollar='$$'
15239     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15240 fi
15241
15242
15243
15244 # Find a directory in which to install a shared libgcc.
15245
15246 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15247 if test "${enable_version_specific_runtime_libs+set}" = set; then
15248   enableval="$enable_version_specific_runtime_libs"
15249
15250 fi;
15251
15252
15253 # Check whether --with-slibdir or --without-slibdir was given.
15254 if test "${with_slibdir+set}" = set; then
15255   withval="$with_slibdir"
15256   slibdir="$with_slibdir"
15257 else
15258   if test "${enable_version_specific_runtime_libs+set}" = set; then
15259   slibdir='$(libsubdir)'
15260 elif test "$host" != "$target"; then
15261   slibdir='$(build_tooldir)/lib'
15262 else
15263   slibdir='$(libdir)'
15264 fi
15265 fi;
15266
15267
15268 objdir=`${PWDCMD-pwd}`
15269
15270
15271 # Substitute configuration variables
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15337   # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15338   #
15339   #     eval "set_gcc_lib_path=XXX=path; export XXX;"
15340   #
15341   eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15342   # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15343   set_gcc_lib_path="export $set_gcc_lib_path"
15344 else
15345   set_gcc_lib_path=
15346 fi
15347
15348
15349
15350 # Echo link setup.
15351 if test x${build} = x${host} ; then
15352   if test x${host} = x${target} ; then
15353     echo "Links are now set up to build a native compiler for ${target}." 1>&2
15354   else
15355     echo "Links are now set up to build a cross-compiler" 1>&2
15356     echo " from ${host} to ${target}." 1>&2
15357   fi
15358 else
15359   if test x${host} = x${target} ; then
15360     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15361     echo " for ${target}." 1>&2
15362   else
15363     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15364     echo " from ${host} to ${target}." 1>&2
15365   fi
15366 fi
15367
15368
15369
15370
15371 # Configure the subdirectories
15372 # AC_CONFIG_SUBDIRS($subdirs)
15373
15374 # Create the Makefile
15375 # and configure language subdirectories
15376           ac_config_files="$ac_config_files $all_outputs"
15377
15378
15379           ac_config_commands="$ac_config_commands default"
15380
15381 cat >confcache <<\_ACEOF
15382 # This file is a shell script that caches the results of configure
15383 # tests run on this system so they can be shared between configure
15384 # scripts and configure runs, see configure's option --config-cache.
15385 # It is not useful on other systems.  If it contains results you don't
15386 # want to keep, you may remove or edit it.
15387 #
15388 # config.status only pays attention to the cache file if you give it
15389 # the --recheck option to rerun configure.
15390 #
15391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15393 # following values.
15394
15395 _ACEOF
15396
15397 # The following way of writing the cache mishandles newlines in values,
15398 # but we know of no workaround that is simple, portable, and efficient.
15399 # So, don't put newlines in cache variables' values.
15400 # Ultrix sh set writes to stderr and can't be redirected directly,
15401 # and sets the high bit in the cache file unless we assign to the vars.
15402 {
15403   (set) 2>&1 |
15404     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15405     *ac_space=\ *)
15406       # `set' does not quote correctly, so add quotes (double-quote
15407       # substitution turns \\\\ into \\, and sed turns \\ into \).
15408       sed -n \
15409         "s/'/'\\\\''/g;
15410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15411       ;;
15412     *)
15413       # `set' quotes correctly as required by POSIX, so do not add quotes.
15414       sed -n \
15415         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15416       ;;
15417     esac;
15418 } |
15419   sed '
15420      t clear
15421      : clear
15422      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15423      t end
15424      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15425      : end' >>confcache
15426 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15427   if test -w $cache_file; then
15428     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15429     cat confcache >$cache_file
15430   else
15431     echo "not updating unwritable cache $cache_file"
15432   fi
15433 fi
15434 rm -f confcache
15435
15436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15437 # Let make expand exec_prefix.
15438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15439
15440 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15441 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15442 # trailing colons and then remove the whole line if VPATH becomes empty
15443 # (actually we leave an empty line to preserve line numbers).
15444 if test "x$srcdir" = x.; then
15445   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15446 s/:*\$(srcdir):*/:/;
15447 s/:*\${srcdir}:*/:/;
15448 s/:*@srcdir@:*/:/;
15449 s/^\([^=]*=[     ]*\):*/\1/;
15450 s/:*$//;
15451 s/^[^=]*=[       ]*$//;
15452 }'
15453 fi
15454
15455 DEFS=-DHAVE_CONFIG_H
15456
15457 ac_libobjs=
15458 ac_ltlibobjs=
15459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15460   # 1. Remove the extension, and $U if already installed.
15461   ac_i=`echo "$ac_i" |
15462          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15463   # 2. Add them.
15464   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15465   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15466 done
15467 LIBOBJS=$ac_libobjs
15468
15469 LTLIBOBJS=$ac_ltlibobjs
15470
15471
15472
15473 : ${CONFIG_STATUS=./config.status}
15474 ac_clean_files_save=$ac_clean_files
15475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15476 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15477 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15478 cat >$CONFIG_STATUS <<_ACEOF
15479 #! $SHELL
15480 # Generated by $as_me.
15481 # Run this file to recreate the current configuration.
15482 # Compiler output produced by configure, useful for debugging
15483 # configure, is in config.log if it exists.
15484
15485 debug=false
15486 ac_cs_recheck=false
15487 ac_cs_silent=false
15488 SHELL=\${CONFIG_SHELL-$SHELL}
15489 _ACEOF
15490
15491 cat >>$CONFIG_STATUS <<\_ACEOF
15492 ## --------------------- ##
15493 ## M4sh Initialization.  ##
15494 ## --------------------- ##
15495
15496 # Be Bourne compatible
15497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15498   emulate sh
15499   NULLCMD=:
15500   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15501   # is contrary to our usage.  Disable this feature.
15502   alias -g '${1+"$@"}'='"$@"'
15503 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15504   set -o posix
15505 fi
15506 DUALCASE=1; export DUALCASE # for MKS sh
15507
15508 # Support unset when possible.
15509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15510   as_unset=unset
15511 else
15512   as_unset=false
15513 fi
15514
15515
15516 # Work around bugs in pre-3.0 UWIN ksh.
15517 $as_unset ENV MAIL MAILPATH
15518 PS1='$ '
15519 PS2='> '
15520 PS4='+ '
15521
15522 # NLS nuisances.
15523 for as_var in \
15524   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15525   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15526   LC_TELEPHONE LC_TIME
15527 do
15528   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15529     eval $as_var=C; export $as_var
15530   else
15531     $as_unset $as_var
15532   fi
15533 done
15534
15535 # Required to use basename.
15536 if expr a : '\(a\)' >/dev/null 2>&1; then
15537   as_expr=expr
15538 else
15539   as_expr=false
15540 fi
15541
15542 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15543   as_basename=basename
15544 else
15545   as_basename=false
15546 fi
15547
15548
15549 # Name of the executable.
15550 as_me=`$as_basename "$0" ||
15551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15552          X"$0" : 'X\(//\)$' \| \
15553          X"$0" : 'X\(/\)$' \| \
15554          .     : '\(.\)' 2>/dev/null ||
15555 echo X/"$0" |
15556     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15557           /^X\/\(\/\/\)$/{ s//\1/; q; }
15558           /^X\/\(\/\).*/{ s//\1/; q; }
15559           s/.*/./; q'`
15560
15561
15562 # PATH needs CR, and LINENO needs CR and PATH.
15563 # Avoid depending upon Character Ranges.
15564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15567 as_cr_digits='0123456789'
15568 as_cr_alnum=$as_cr_Letters$as_cr_digits
15569
15570 # The user is always right.
15571 if test "${PATH_SEPARATOR+set}" != set; then
15572   echo "#! /bin/sh" >conf$$.sh
15573   echo  "exit 0"   >>conf$$.sh
15574   chmod +x conf$$.sh
15575   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15576     PATH_SEPARATOR=';'
15577   else
15578     PATH_SEPARATOR=:
15579   fi
15580   rm -f conf$$.sh
15581 fi
15582
15583
15584   as_lineno_1=$LINENO
15585   as_lineno_2=$LINENO
15586   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15587   test "x$as_lineno_1" != "x$as_lineno_2" &&
15588   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15589   # Find who we are.  Look in the path if we contain no path at all
15590   # relative or not.
15591   case $0 in
15592     *[\\/]* ) as_myself=$0 ;;
15593     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15594 for as_dir in $PATH
15595 do
15596   IFS=$as_save_IFS
15597   test -z "$as_dir" && as_dir=.
15598   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15599 done
15600
15601        ;;
15602   esac
15603   # We did not find ourselves, most probably we were run as `sh COMMAND'
15604   # in which case we are not to be found in the path.
15605   if test "x$as_myself" = x; then
15606     as_myself=$0
15607   fi
15608   if test ! -f "$as_myself"; then
15609     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15610 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15611    { (exit 1); exit 1; }; }
15612   fi
15613   case $CONFIG_SHELL in
15614   '')
15615     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15617 do
15618   IFS=$as_save_IFS
15619   test -z "$as_dir" && as_dir=.
15620   for as_base in sh bash ksh sh5; do
15621          case $as_dir in
15622          /*)
15623            if ("$as_dir/$as_base" -c '
15624   as_lineno_1=$LINENO
15625   as_lineno_2=$LINENO
15626   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15627   test "x$as_lineno_1" != "x$as_lineno_2" &&
15628   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15629              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15630              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15631              CONFIG_SHELL=$as_dir/$as_base
15632              export CONFIG_SHELL
15633              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15634            fi;;
15635          esac
15636        done
15637 done
15638 ;;
15639   esac
15640
15641   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15642   # uniformly replaced by the line number.  The first 'sed' inserts a
15643   # line-number line before each line; the second 'sed' does the real
15644   # work.  The second script uses 'N' to pair each line-number line
15645   # with the numbered line, and appends trailing '-' during
15646   # substitution so that $LINENO is not a special case at line end.
15647   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15648   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15649   sed '=' <$as_myself |
15650     sed '
15651       N
15652       s,$,-,
15653       : loop
15654       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15655       t loop
15656       s,-$,,
15657       s,^['$as_cr_digits']*\n,,
15658     ' >$as_me.lineno &&
15659   chmod +x $as_me.lineno ||
15660     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15661 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15662    { (exit 1); exit 1; }; }
15663
15664   # Don't try to exec as it changes $[0], causing all sort of problems
15665   # (the dirname of $[0] is not the place where we might find the
15666   # original and so on.  Autoconf is especially sensible to this).
15667   . ./$as_me.lineno
15668   # Exit status is that of the last command.
15669   exit
15670 }
15671
15672
15673 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15674   *c*,-n*) ECHO_N= ECHO_C='
15675 ' ECHO_T='      ' ;;
15676   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15677   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15678 esac
15679
15680 if expr a : '\(a\)' >/dev/null 2>&1; then
15681   as_expr=expr
15682 else
15683   as_expr=false
15684 fi
15685
15686 rm -f conf$$ conf$$.exe conf$$.file
15687 echo >conf$$.file
15688 if ln -s conf$$.file conf$$ 2>/dev/null; then
15689   # We could just check for DJGPP; but this test a) works b) is more generic
15690   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15691   if test -f conf$$.exe; then
15692     # Don't use ln at all; we don't have any links
15693     as_ln_s='cp -p'
15694   else
15695     as_ln_s='ln -s'
15696   fi
15697 elif ln conf$$.file conf$$ 2>/dev/null; then
15698   as_ln_s=ln
15699 else
15700   as_ln_s='cp -p'
15701 fi
15702 rm -f conf$$ conf$$.exe conf$$.file
15703
15704 if mkdir -p . 2>/dev/null; then
15705   as_mkdir_p=:
15706 else
15707   test -d ./-p && rmdir ./-p
15708   as_mkdir_p=false
15709 fi
15710
15711 as_executable_p="test -f"
15712
15713 # Sed expression to map a string onto a valid CPP name.
15714 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15715
15716 # Sed expression to map a string onto a valid variable name.
15717 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15718
15719
15720 # IFS
15721 # We need space, tab and new line, in precisely that order.
15722 as_nl='
15723 '
15724 IFS="   $as_nl"
15725
15726 # CDPATH.
15727 $as_unset CDPATH
15728
15729 exec 6>&1
15730
15731 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15732 # report actual input values of CONFIG_FILES etc. instead of their
15733 # values after options handling.  Logging --version etc. is OK.
15734 exec 5>>config.log
15735 {
15736   echo
15737   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15738 ## Running $as_me. ##
15739 _ASBOX
15740 } >&5
15741 cat >&5 <<_CSEOF
15742
15743 This file was extended by $as_me, which was
15744 generated by GNU Autoconf 2.59.  Invocation command line was
15745
15746   CONFIG_FILES    = $CONFIG_FILES
15747   CONFIG_HEADERS  = $CONFIG_HEADERS
15748   CONFIG_LINKS    = $CONFIG_LINKS
15749   CONFIG_COMMANDS = $CONFIG_COMMANDS
15750   $ $0 $@
15751
15752 _CSEOF
15753 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15754 echo >&5
15755 _ACEOF
15756
15757 # Files that config.status was made for.
15758 if test -n "$ac_config_files"; then
15759   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15760 fi
15761
15762 if test -n "$ac_config_headers"; then
15763   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15764 fi
15765
15766 if test -n "$ac_config_links"; then
15767   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15768 fi
15769
15770 if test -n "$ac_config_commands"; then
15771   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15772 fi
15773
15774 cat >>$CONFIG_STATUS <<\_ACEOF
15775
15776 ac_cs_usage="\
15777 \`$as_me' instantiates files from templates according to the
15778 current configuration.
15779
15780 Usage: $0 [OPTIONS] [FILE]...
15781
15782   -h, --help       print this help, then exit
15783   -V, --version    print version number, then exit
15784   -q, --quiet      do not print progress messages
15785   -d, --debug      don't remove temporary files
15786       --recheck    update $as_me by reconfiguring in the same conditions
15787   --file=FILE[:TEMPLATE]
15788                    instantiate the configuration file FILE
15789   --header=FILE[:TEMPLATE]
15790                    instantiate the configuration header FILE
15791
15792 Configuration files:
15793 $config_files
15794
15795 Configuration headers:
15796 $config_headers
15797
15798 Configuration commands:
15799 $config_commands
15800
15801 Report bugs to <bug-autoconf@gnu.org>."
15802 _ACEOF
15803
15804 cat >>$CONFIG_STATUS <<_ACEOF
15805 ac_cs_version="\\
15806 config.status
15807 configured by $0, generated by GNU Autoconf 2.59,
15808   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15809
15810 Copyright (C) 2003 Free Software Foundation, Inc.
15811 This config.status script is free software; the Free Software Foundation
15812 gives unlimited permission to copy, distribute and modify it."
15813 srcdir=$srcdir
15814 _ACEOF
15815
15816 cat >>$CONFIG_STATUS <<\_ACEOF
15817 # If no file are specified by the user, then we need to provide default
15818 # value.  By we need to know if files were specified by the user.
15819 ac_need_defaults=:
15820 while test $# != 0
15821 do
15822   case $1 in
15823   --*=*)
15824     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15825     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15826     ac_shift=:
15827     ;;
15828   -*)
15829     ac_option=$1
15830     ac_optarg=$2
15831     ac_shift=shift
15832     ;;
15833   *) # This is not an option, so the user has probably given explicit
15834      # arguments.
15835      ac_option=$1
15836      ac_need_defaults=false;;
15837   esac
15838
15839   case $ac_option in
15840   # Handling of the options.
15841 _ACEOF
15842 cat >>$CONFIG_STATUS <<\_ACEOF
15843   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15844     ac_cs_recheck=: ;;
15845   --version | --vers* | -V )
15846     echo "$ac_cs_version"; exit 0 ;;
15847   --he | --h)
15848     # Conflict between --help and --header
15849     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15850 Try \`$0 --help' for more information." >&5
15851 echo "$as_me: error: ambiguous option: $1
15852 Try \`$0 --help' for more information." >&2;}
15853    { (exit 1); exit 1; }; };;
15854   --help | --hel | -h )
15855     echo "$ac_cs_usage"; exit 0 ;;
15856   --debug | --d* | -d )
15857     debug=: ;;
15858   --file | --fil | --fi | --f )
15859     $ac_shift
15860     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15861     ac_need_defaults=false;;
15862   --header | --heade | --head | --hea )
15863     $ac_shift
15864     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15865     ac_need_defaults=false;;
15866   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15868     ac_cs_silent=: ;;
15869
15870   # This is an error.
15871   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15872 Try \`$0 --help' for more information." >&5
15873 echo "$as_me: error: unrecognized option: $1
15874 Try \`$0 --help' for more information." >&2;}
15875    { (exit 1); exit 1; }; } ;;
15876
15877   *) ac_config_targets="$ac_config_targets $1" ;;
15878
15879   esac
15880   shift
15881 done
15882
15883 ac_configure_extra_args=
15884
15885 if $ac_cs_silent; then
15886   exec 6>/dev/null
15887   ac_configure_extra_args="$ac_configure_extra_args --silent"
15888 fi
15889
15890 _ACEOF
15891 cat >>$CONFIG_STATUS <<_ACEOF
15892 if \$ac_cs_recheck; then
15893   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15894   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15895 fi
15896
15897 _ACEOF
15898
15899 cat >>$CONFIG_STATUS <<_ACEOF
15900 #
15901 # INIT-COMMANDS section.
15902 #
15903
15904 subdirs='$subdirs'
15905
15906 _ACEOF
15907
15908
15909
15910 cat >>$CONFIG_STATUS <<\_ACEOF
15911 for ac_config_target in $ac_config_targets
15912 do
15913   case "$ac_config_target" in
15914   # Handling of arguments.
15915   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15916   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15917   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15918   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15920    { (exit 1); exit 1; }; };;
15921   esac
15922 done
15923
15924 # If the user did not use the arguments to specify the items to instantiate,
15925 # then the envvar interface is used.  Set only those that are not.
15926 # We use the long form for the default assignment because of an extremely
15927 # bizarre bug on SunOS 4.1.3.
15928 if $ac_need_defaults; then
15929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15931   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15932 fi
15933
15934 # Have a temporary directory for convenience.  Make it in the build tree
15935 # simply because there is no reason to put it here, and in addition,
15936 # creating and moving files from /tmp can sometimes cause problems.
15937 # Create a temporary directory, and hook for its removal unless debugging.
15938 $debug ||
15939 {
15940   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15941   trap '{ (exit 1); exit 1; }' 1 2 13 15
15942 }
15943
15944 # Create a (secure) tmp directory for tmp files.
15945
15946 {
15947   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15948   test -n "$tmp" && test -d "$tmp"
15949 }  ||
15950 {
15951   tmp=./confstat$$-$RANDOM
15952   (umask 077 && mkdir $tmp)
15953 } ||
15954 {
15955    echo "$me: cannot create a temporary directory in ." >&2
15956    { (exit 1); exit 1; }
15957 }
15958
15959 _ACEOF
15960
15961 cat >>$CONFIG_STATUS <<_ACEOF
15962
15963 #
15964 # CONFIG_FILES section.
15965 #
15966
15967 # No need to generate the scripts if there are no CONFIG_FILES.
15968 # This happens for instance when ./config.status config.h
15969 if test -n "\$CONFIG_FILES"; then
15970   # Protect against being on the right side of a sed subst in config.status.
15971   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15972    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15973 s,@SHELL@,$SHELL,;t t
15974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15975 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15976 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15977 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15978 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15979 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15980 s,@exec_prefix@,$exec_prefix,;t t
15981 s,@prefix@,$prefix,;t t
15982 s,@program_transform_name@,$program_transform_name,;t t
15983 s,@bindir@,$bindir,;t t
15984 s,@sbindir@,$sbindir,;t t
15985 s,@libexecdir@,$libexecdir,;t t
15986 s,@datadir@,$datadir,;t t
15987 s,@sysconfdir@,$sysconfdir,;t t
15988 s,@sharedstatedir@,$sharedstatedir,;t t
15989 s,@localstatedir@,$localstatedir,;t t
15990 s,@libdir@,$libdir,;t t
15991 s,@includedir@,$includedir,;t t
15992 s,@oldincludedir@,$oldincludedir,;t t
15993 s,@infodir@,$infodir,;t t
15994 s,@mandir@,$mandir,;t t
15995 s,@build_alias@,$build_alias,;t t
15996 s,@host_alias@,$host_alias,;t t
15997 s,@target_alias@,$target_alias,;t t
15998 s,@DEFS@,$DEFS,;t t
15999 s,@ECHO_C@,$ECHO_C,;t t
16000 s,@ECHO_N@,$ECHO_N,;t t
16001 s,@ECHO_T@,$ECHO_T,;t t
16002 s,@LIBS@,$LIBS,;t t
16003 s,@build@,$build,;t t
16004 s,@build_cpu@,$build_cpu,;t t
16005 s,@build_vendor@,$build_vendor,;t t
16006 s,@build_os@,$build_os,;t t
16007 s,@host@,$host,;t t
16008 s,@host_cpu@,$host_cpu,;t t
16009 s,@host_vendor@,$host_vendor,;t t
16010 s,@host_os@,$host_os,;t t
16011 s,@target@,$target,;t t
16012 s,@target_cpu@,$target_cpu,;t t
16013 s,@target_vendor@,$target_vendor,;t t
16014 s,@target_os@,$target_os,;t t
16015 s,@target_noncanonical@,$target_noncanonical,;t t
16016 s,@build_subdir@,$build_subdir,;t t
16017 s,@host_subdir@,$host_subdir,;t t
16018 s,@target_subdir@,$target_subdir,;t t
16019 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16020 s,@gcc_version_full@,$gcc_version_full,;t t
16021 s,@gcc_version@,$gcc_version,;t t
16022 s,@GENINSRC@,$GENINSRC,;t t
16023 s,@CC@,$CC,;t t
16024 s,@CFLAGS@,$CFLAGS,;t t
16025 s,@LDFLAGS@,$LDFLAGS,;t t
16026 s,@CPPFLAGS@,$CPPFLAGS,;t t
16027 s,@ac_ct_CC@,$ac_ct_CC,;t t
16028 s,@EXEEXT@,$EXEEXT,;t t
16029 s,@OBJEXT@,$OBJEXT,;t t
16030 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16031 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16032 s,@CPP@,$CPP,;t t
16033 s,@EGREP@,$EGREP,;t t
16034 s,@strict1_warn@,$strict1_warn,;t t
16035 s,@warn_cflags@,$warn_cflags,;t t
16036 s,@WERROR@,$WERROR,;t t
16037 s,@nocommon_flag@,$nocommon_flag,;t t
16038 s,@TREEBROWSER@,$TREEBROWSER,;t t
16039 s,@valgrind_path@,$valgrind_path,;t t
16040 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16041 s,@valgrind_command@,$valgrind_command,;t t
16042 s,@coverage_flags@,$coverage_flags,;t t
16043 s,@enable_multilib@,$enable_multilib,;t t
16044 s,@enable_shared@,$enable_shared,;t t
16045 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16046 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16047 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16048 s,@onestep@,$onestep,;t t
16049 s,@SET_MAKE@,$SET_MAKE,;t t
16050 s,@AWK@,$AWK,;t t
16051 s,@LN_S@,$LN_S,;t t
16052 s,@LN@,$LN,;t t
16053 s,@RANLIB@,$RANLIB,;t t
16054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16055 s,@ranlib_flags@,$ranlib_flags,;t t
16056 s,@INSTALL@,$INSTALL,;t t
16057 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16058 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16059 s,@make_compare_target@,$make_compare_target,;t t
16060 s,@have_mktemp_command@,$have_mktemp_command,;t t
16061 s,@MAKEINFO@,$MAKEINFO,;t t
16062 s,@BUILD_INFO@,$BUILD_INFO,;t t
16063 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16064 s,@FLEX@,$FLEX,;t t
16065 s,@BISON@,$BISON,;t t
16066 s,@NM@,$NM,;t t
16067 s,@AR@,$AR,;t t
16068 s,@stage1_cflags@,$stage1_cflags,;t t
16069 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16070 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16071 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16072 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16073 s,@LIBICONV@,$LIBICONV,;t t
16074 s,@LTLIBICONV@,$LTLIBICONV,;t t
16075 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16076 s,@manext@,$manext,;t t
16077 s,@objext@,$objext,;t t
16078 s,@gthread_flags@,$gthread_flags,;t t
16079 s,@extra_modes_file@,$extra_modes_file,;t t
16080 s,@PACKAGE@,$PACKAGE,;t t
16081 s,@VERSION@,$VERSION,;t t
16082 s,@USE_NLS@,$USE_NLS,;t t
16083 s,@LIBINTL@,$LIBINTL,;t t
16084 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16085 s,@INCINTL@,$INCINTL,;t t
16086 s,@XGETTEXT@,$XGETTEXT,;t t
16087 s,@GMSGFMT@,$GMSGFMT,;t t
16088 s,@POSUB@,$POSUB,;t t
16089 s,@CATALOGS@,$CATALOGS,;t t
16090 s,@CROSS@,$CROSS,;t t
16091 s,@ALL@,$ALL,;t t
16092 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16093 s,@inhibit_libc@,$inhibit_libc,;t t
16094 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16095 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16096 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16097 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16098 s,@collect2@,$collect2,;t t
16099 s,@libgcc_visibility@,$libgcc_visibility,;t t
16100 s,@GGC@,$GGC,;t t
16101 s,@zlibdir@,$zlibdir,;t t
16102 s,@zlibinc@,$zlibinc,;t t
16103 s,@MAINT@,$MAINT,;t t
16104 s,@gcc_tooldir@,$gcc_tooldir,;t t
16105 s,@dollar@,$dollar,;t t
16106 s,@slibdir@,$slibdir,;t t
16107 s,@objdir@,$objdir,;t t
16108 s,@subdirs@,$subdirs,;t t
16109 s,@srcdir@,$srcdir,;t t
16110 s,@all_boot_languages@,$all_boot_languages,;t t
16111 s,@all_compilers@,$all_compilers,;t t
16112 s,@all_gtfiles@,$all_gtfiles,;t t
16113 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16114 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16115 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16116 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16117 s,@all_languages@,$all_languages,;t t
16118 s,@all_stagestuff@,$all_stagestuff,;t t
16119 s,@build_exeext@,$build_exeext,;t t
16120 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16121 s,@build_xm_file_list@,$build_xm_file_list,;t t
16122 s,@build_xm_include_list@,$build_xm_include_list,;t t
16123 s,@build_xm_defines@,$build_xm_defines,;t t
16124 s,@check_languages@,$check_languages,;t t
16125 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16126 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16127 s,@cpp_install_dir@,$cpp_install_dir,;t t
16128 s,@xmake_file@,$xmake_file,;t t
16129 s,@tmake_file@,$tmake_file,;t t
16130 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16131 s,@extra_headers_list@,$extra_headers_list,;t t
16132 s,@extra_objs@,$extra_objs,;t t
16133 s,@extra_parts@,$extra_parts,;t t
16134 s,@extra_passes@,$extra_passes,;t t
16135 s,@extra_programs@,$extra_programs,;t t
16136 s,@float_h_file@,$float_h_file,;t t
16137 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16138 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16139 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16140 s,@host_exeext@,$host_exeext,;t t
16141 s,@host_xm_file_list@,$host_xm_file_list,;t t
16142 s,@host_xm_include_list@,$host_xm_include_list,;t t
16143 s,@host_xm_defines@,$host_xm_defines,;t t
16144 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16145 s,@install@,$install,;t t
16146 s,@lang_opt_files@,$lang_opt_files,;t t
16147 s,@lang_specs_files@,$lang_specs_files,;t t
16148 s,@lang_tree_files@,$lang_tree_files,;t t
16149 s,@local_prefix@,$local_prefix,;t t
16150 s,@md_file@,$md_file,;t t
16151 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16152 s,@out_file@,$out_file,;t t
16153 s,@out_object_file@,$out_object_file,;t t
16154 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16155 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16156 s,@thread_file@,$thread_file,;t t
16157 s,@tm_file_list@,$tm_file_list,;t t
16158 s,@tm_include_list@,$tm_include_list,;t t
16159 s,@tm_defines@,$tm_defines,;t t
16160 s,@tm_p_file_list@,$tm_p_file_list,;t t
16161 s,@tm_p_include_list@,$tm_p_include_list,;t t
16162 s,@xm_file_list@,$xm_file_list,;t t
16163 s,@xm_include_list@,$xm_include_list,;t t
16164 s,@xm_defines@,$xm_defines,;t t
16165 s,@c_target_objs@,$c_target_objs,;t t
16166 s,@cxx_target_objs@,$cxx_target_objs,;t t
16167 s,@target_cpu_default@,$target_cpu_default,;t t
16168 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16169 s,@GMPLIBS@,$GMPLIBS,;t t
16170 s,@GMPINC@,$GMPINC,;t t
16171 s,@LIBOBJS@,$LIBOBJS,;t t
16172 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16173 /@language_hooks@/r $language_hooks
16174 s,@language_hooks@,,;t t
16175 CEOF
16176
16177 _ACEOF
16178
16179   cat >>$CONFIG_STATUS <<\_ACEOF
16180   # Split the substitutions into bite-sized pieces for seds with
16181   # small command number limits, like on Digital OSF/1 and HP-UX.
16182   ac_max_sed_lines=48
16183   ac_sed_frag=1 # Number of current file.
16184   ac_beg=1 # First line for current file.
16185   ac_end=$ac_max_sed_lines # Line after last line for current file.
16186   ac_more_lines=:
16187   ac_sed_cmds=
16188   while $ac_more_lines; do
16189     if test $ac_beg -gt 1; then
16190       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16191     else
16192       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16193     fi
16194     if test ! -s $tmp/subs.frag; then
16195       ac_more_lines=false
16196     else
16197       # The purpose of the label and of the branching condition is to
16198       # speed up the sed processing (if there are no `@' at all, there
16199       # is no need to browse any of the substitutions).
16200       # These are the two extra sed commands mentioned above.
16201       (echo ':t
16202   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16203       if test -z "$ac_sed_cmds"; then
16204         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16205       else
16206         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16207       fi
16208       ac_sed_frag=`expr $ac_sed_frag + 1`
16209       ac_beg=$ac_end
16210       ac_end=`expr $ac_end + $ac_max_sed_lines`
16211     fi
16212   done
16213   if test -z "$ac_sed_cmds"; then
16214     ac_sed_cmds=cat
16215   fi
16216 fi # test -n "$CONFIG_FILES"
16217
16218 _ACEOF
16219 cat >>$CONFIG_STATUS <<\_ACEOF
16220 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16221   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16222   case $ac_file in
16223   - | *:- | *:-:* ) # input from stdin
16224         cat >$tmp/stdin
16225         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16226         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16227   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16228         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16229   * )   ac_file_in=$ac_file.in ;;
16230   esac
16231
16232   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16233   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16235          X"$ac_file" : 'X\(//\)[^/]' \| \
16236          X"$ac_file" : 'X\(//\)$' \| \
16237          X"$ac_file" : 'X\(/\)' \| \
16238          .     : '\(.\)' 2>/dev/null ||
16239 echo X"$ac_file" |
16240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16242           /^X\(\/\/\)$/{ s//\1/; q; }
16243           /^X\(\/\).*/{ s//\1/; q; }
16244           s/.*/./; q'`
16245   { if $as_mkdir_p; then
16246     mkdir -p "$ac_dir"
16247   else
16248     as_dir="$ac_dir"
16249     as_dirs=
16250     while test ! -d "$as_dir"; do
16251       as_dirs="$as_dir $as_dirs"
16252       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16254          X"$as_dir" : 'X\(//\)[^/]' \| \
16255          X"$as_dir" : 'X\(//\)$' \| \
16256          X"$as_dir" : 'X\(/\)' \| \
16257          .     : '\(.\)' 2>/dev/null ||
16258 echo X"$as_dir" |
16259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16261           /^X\(\/\/\)$/{ s//\1/; q; }
16262           /^X\(\/\).*/{ s//\1/; q; }
16263           s/.*/./; q'`
16264     done
16265     test ! -n "$as_dirs" || mkdir $as_dirs
16266   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16268    { (exit 1); exit 1; }; }; }
16269
16270   ac_builddir=.
16271
16272 if test "$ac_dir" != .; then
16273   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16274   # A "../" for each directory in $ac_dir_suffix.
16275   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16276 else
16277   ac_dir_suffix= ac_top_builddir=
16278 fi
16279
16280 case $srcdir in
16281   .)  # No --srcdir option.  We are building in place.
16282     ac_srcdir=.
16283     if test -z "$ac_top_builddir"; then
16284        ac_top_srcdir=.
16285     else
16286        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16287     fi ;;
16288   [\\/]* | ?:[\\/]* )  # Absolute path.
16289     ac_srcdir=$srcdir$ac_dir_suffix;
16290     ac_top_srcdir=$srcdir ;;
16291   *) # Relative path.
16292     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16293     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16294 esac
16295
16296 # Do not use `cd foo && pwd` to compute absolute paths, because
16297 # the directories may not exist.
16298 case `pwd` in
16299 .) ac_abs_builddir="$ac_dir";;
16300 *)
16301   case "$ac_dir" in
16302   .) ac_abs_builddir=`pwd`;;
16303   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16304   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16305   esac;;
16306 esac
16307 case $ac_abs_builddir in
16308 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16309 *)
16310   case ${ac_top_builddir}. in
16311   .) ac_abs_top_builddir=$ac_abs_builddir;;
16312   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16313   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16314   esac;;
16315 esac
16316 case $ac_abs_builddir in
16317 .) ac_abs_srcdir=$ac_srcdir;;
16318 *)
16319   case $ac_srcdir in
16320   .) ac_abs_srcdir=$ac_abs_builddir;;
16321   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16322   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16323   esac;;
16324 esac
16325 case $ac_abs_builddir in
16326 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16327 *)
16328   case $ac_top_srcdir in
16329   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16330   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16331   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16332   esac;;
16333 esac
16334
16335
16336
16337   if test x"$ac_file" != x-; then
16338     { echo "$as_me:$LINENO: creating $ac_file" >&5
16339 echo "$as_me: creating $ac_file" >&6;}
16340     rm -f "$ac_file"
16341   fi
16342   # Let's still pretend it is `configure' which instantiates (i.e., don't
16343   # use $as_me), people would be surprised to read:
16344   #    /* config.h.  Generated by config.status.  */
16345   if test x"$ac_file" = x-; then
16346     configure_input=
16347   else
16348     configure_input="$ac_file.  "
16349   fi
16350   configure_input=$configure_input"Generated from `echo $ac_file_in |
16351                                      sed 's,.*/,,'` by configure."
16352
16353   # First look for the input files in the build tree, otherwise in the
16354   # src tree.
16355   ac_file_inputs=`IFS=:
16356     for f in $ac_file_in; do
16357       case $f in
16358       -) echo $tmp/stdin ;;
16359       [\\/$]*)
16360          # Absolute (can't be DOS-style, as IFS=:)
16361          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16362 echo "$as_me: error: cannot find input file: $f" >&2;}
16363    { (exit 1); exit 1; }; }
16364          echo "$f";;
16365       *) # Relative
16366          if test -f "$f"; then
16367            # Build tree
16368            echo "$f"
16369          elif test -f "$srcdir/$f"; then
16370            # Source tree
16371            echo "$srcdir/$f"
16372          else
16373            # /dev/null tree
16374            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16375 echo "$as_me: error: cannot find input file: $f" >&2;}
16376    { (exit 1); exit 1; }; }
16377          fi;;
16378       esac
16379     done` || { (exit 1); exit 1; }
16380 _ACEOF
16381 cat >>$CONFIG_STATUS <<_ACEOF
16382   sed "$ac_vpsub
16383 $extrasub
16384 _ACEOF
16385 cat >>$CONFIG_STATUS <<\_ACEOF
16386 :t
16387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16388 s,@configure_input@,$configure_input,;t t
16389 s,@srcdir@,$ac_srcdir,;t t
16390 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16391 s,@top_srcdir@,$ac_top_srcdir,;t t
16392 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16393 s,@builddir@,$ac_builddir,;t t
16394 s,@abs_builddir@,$ac_abs_builddir,;t t
16395 s,@top_builddir@,$ac_top_builddir,;t t
16396 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16397 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16398   rm -f $tmp/stdin
16399   if test x"$ac_file" != x-; then
16400     mv $tmp/out $ac_file
16401   else
16402     cat $tmp/out
16403     rm -f $tmp/out
16404   fi
16405
16406 done
16407 _ACEOF
16408 cat >>$CONFIG_STATUS <<\_ACEOF
16409
16410 #
16411 # CONFIG_HEADER section.
16412 #
16413
16414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16416 #
16417 # ac_d sets the value in "#define NAME VALUE" lines.
16418 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16419 ac_dB='[         ].*$,\1#\2'
16420 ac_dC=' '
16421 ac_dD=',;t'
16422 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16423 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16424 ac_uB='$,\1#\2define\3'
16425 ac_uC=' '
16426 ac_uD=',;t'
16427
16428 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16429   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16430   case $ac_file in
16431   - | *:- | *:-:* ) # input from stdin
16432         cat >$tmp/stdin
16433         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16434         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16435   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16436         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16437   * )   ac_file_in=$ac_file.in ;;
16438   esac
16439
16440   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16441 echo "$as_me: creating $ac_file" >&6;}
16442
16443   # First look for the input files in the build tree, otherwise in the
16444   # src tree.
16445   ac_file_inputs=`IFS=:
16446     for f in $ac_file_in; do
16447       case $f in
16448       -) echo $tmp/stdin ;;
16449       [\\/$]*)
16450          # Absolute (can't be DOS-style, as IFS=:)
16451          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16452 echo "$as_me: error: cannot find input file: $f" >&2;}
16453    { (exit 1); exit 1; }; }
16454          # Do quote $f, to prevent DOS paths from being IFS'd.
16455          echo "$f";;
16456       *) # Relative
16457          if test -f "$f"; then
16458            # Build tree
16459            echo "$f"
16460          elif test -f "$srcdir/$f"; then
16461            # Source tree
16462            echo "$srcdir/$f"
16463          else
16464            # /dev/null tree
16465            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16466 echo "$as_me: error: cannot find input file: $f" >&2;}
16467    { (exit 1); exit 1; }; }
16468          fi;;
16469       esac
16470     done` || { (exit 1); exit 1; }
16471   # Remove the trailing spaces.
16472   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16473
16474 _ACEOF
16475
16476 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16477 # `conftest.undefs', that substitutes the proper values into
16478 # config.h.in to produce config.h.  The first handles `#define'
16479 # templates, and the second `#undef' templates.
16480 # And first: Protect against being on the right side of a sed subst in
16481 # config.status.  Protect against being in an unquoted here document
16482 # in config.status.
16483 rm -f conftest.defines conftest.undefs
16484 # Using a here document instead of a string reduces the quoting nightmare.
16485 # Putting comments in sed scripts is not portable.
16486 #
16487 # `end' is used to avoid that the second main sed command (meant for
16488 # 0-ary CPP macros) applies to n-ary macro definitions.
16489 # See the Autoconf documentation for `clear'.
16490 cat >confdef2sed.sed <<\_ACEOF
16491 s/[\\&,]/\\&/g
16492 s,[\\$`],\\&,g
16493 t clear
16494 : clear
16495 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16496 t end
16497 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16498 : end
16499 _ACEOF
16500 # If some macros were called several times there might be several times
16501 # the same #defines, which is useless.  Nevertheless, we may not want to
16502 # sort them, since we want the *last* AC-DEFINE to be honored.
16503 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16504 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16505 rm -f confdef2sed.sed
16506
16507 # This sed command replaces #undef with comments.  This is necessary, for
16508 # example, in the case of _POSIX_SOURCE, which is predefined and required
16509 # on some systems where configure will not decide to define it.
16510 cat >>conftest.undefs <<\_ACEOF
16511 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16512 _ACEOF
16513
16514 # Break up conftest.defines because some shells have a limit on the size
16515 # of here documents, and old seds have small limits too (100 cmds).
16516 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16517 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16518 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16519 echo '  :' >>$CONFIG_STATUS
16520 rm -f conftest.tail
16521 while grep . conftest.defines >/dev/null
16522 do
16523   # Write a limited-size here document to $tmp/defines.sed.
16524   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16525   # Speed up: don't consider the non `#define' lines.
16526   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16527   # Work around the forget-to-reset-the-flag bug.
16528   echo 't clr' >>$CONFIG_STATUS
16529   echo ': clr' >>$CONFIG_STATUS
16530   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16531   echo 'CEOF
16532   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16533   rm -f $tmp/in
16534   mv $tmp/out $tmp/in
16535 ' >>$CONFIG_STATUS
16536   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16537   rm -f conftest.defines
16538   mv conftest.tail conftest.defines
16539 done
16540 rm -f conftest.defines
16541 echo '  fi # grep' >>$CONFIG_STATUS
16542 echo >>$CONFIG_STATUS
16543
16544 # Break up conftest.undefs because some shells have a limit on the size
16545 # of here documents, and old seds have small limits too (100 cmds).
16546 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16547 rm -f conftest.tail
16548 while grep . conftest.undefs >/dev/null
16549 do
16550   # Write a limited-size here document to $tmp/undefs.sed.
16551   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16552   # Speed up: don't consider the non `#undef'
16553   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16554   # Work around the forget-to-reset-the-flag bug.
16555   echo 't clr' >>$CONFIG_STATUS
16556   echo ': clr' >>$CONFIG_STATUS
16557   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16558   echo 'CEOF
16559   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16560   rm -f $tmp/in
16561   mv $tmp/out $tmp/in
16562 ' >>$CONFIG_STATUS
16563   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16564   rm -f conftest.undefs
16565   mv conftest.tail conftest.undefs
16566 done
16567 rm -f conftest.undefs
16568
16569 cat >>$CONFIG_STATUS <<\_ACEOF
16570   # Let's still pretend it is `configure' which instantiates (i.e., don't
16571   # use $as_me), people would be surprised to read:
16572   #    /* config.h.  Generated by config.status.  */
16573   if test x"$ac_file" = x-; then
16574     echo "/* Generated by configure.  */" >$tmp/config.h
16575   else
16576     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16577   fi
16578   cat $tmp/in >>$tmp/config.h
16579   rm -f $tmp/in
16580   if test x"$ac_file" != x-; then
16581     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16582       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16583 echo "$as_me: $ac_file is unchanged" >&6;}
16584     else
16585       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587          X"$ac_file" : 'X\(//\)[^/]' \| \
16588          X"$ac_file" : 'X\(//\)$' \| \
16589          X"$ac_file" : 'X\(/\)' \| \
16590          .     : '\(.\)' 2>/dev/null ||
16591 echo X"$ac_file" |
16592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16594           /^X\(\/\/\)$/{ s//\1/; q; }
16595           /^X\(\/\).*/{ s//\1/; q; }
16596           s/.*/./; q'`
16597       { if $as_mkdir_p; then
16598     mkdir -p "$ac_dir"
16599   else
16600     as_dir="$ac_dir"
16601     as_dirs=
16602     while test ! -d "$as_dir"; do
16603       as_dirs="$as_dir $as_dirs"
16604       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16606          X"$as_dir" : 'X\(//\)[^/]' \| \
16607          X"$as_dir" : 'X\(//\)$' \| \
16608          X"$as_dir" : 'X\(/\)' \| \
16609          .     : '\(.\)' 2>/dev/null ||
16610 echo X"$as_dir" |
16611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16612           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16613           /^X\(\/\/\)$/{ s//\1/; q; }
16614           /^X\(\/\).*/{ s//\1/; q; }
16615           s/.*/./; q'`
16616     done
16617     test ! -n "$as_dirs" || mkdir $as_dirs
16618   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16620    { (exit 1); exit 1; }; }; }
16621
16622       rm -f $ac_file
16623       mv $tmp/config.h $ac_file
16624     fi
16625   else
16626     cat $tmp/config.h
16627     rm -f $tmp/config.h
16628   fi
16629 done
16630 _ACEOF
16631 cat >>$CONFIG_STATUS <<\_ACEOF
16632
16633 #
16634 # CONFIG_COMMANDS section.
16635 #
16636 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16637   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16638   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16639   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16640 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16641          X"$ac_dest" : 'X\(//\)[^/]' \| \
16642          X"$ac_dest" : 'X\(//\)$' \| \
16643          X"$ac_dest" : 'X\(/\)' \| \
16644          .     : '\(.\)' 2>/dev/null ||
16645 echo X"$ac_dest" |
16646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16648           /^X\(\/\/\)$/{ s//\1/; q; }
16649           /^X\(\/\).*/{ s//\1/; q; }
16650           s/.*/./; q'`
16651   { if $as_mkdir_p; then
16652     mkdir -p "$ac_dir"
16653   else
16654     as_dir="$ac_dir"
16655     as_dirs=
16656     while test ! -d "$as_dir"; do
16657       as_dirs="$as_dir $as_dirs"
16658       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660          X"$as_dir" : 'X\(//\)[^/]' \| \
16661          X"$as_dir" : 'X\(//\)$' \| \
16662          X"$as_dir" : 'X\(/\)' \| \
16663          .     : '\(.\)' 2>/dev/null ||
16664 echo X"$as_dir" |
16665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667           /^X\(\/\/\)$/{ s//\1/; q; }
16668           /^X\(\/\).*/{ s//\1/; q; }
16669           s/.*/./; q'`
16670     done
16671     test ! -n "$as_dirs" || mkdir $as_dirs
16672   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16674    { (exit 1); exit 1; }; }; }
16675
16676   ac_builddir=.
16677
16678 if test "$ac_dir" != .; then
16679   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16680   # A "../" for each directory in $ac_dir_suffix.
16681   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16682 else
16683   ac_dir_suffix= ac_top_builddir=
16684 fi
16685
16686 case $srcdir in
16687   .)  # No --srcdir option.  We are building in place.
16688     ac_srcdir=.
16689     if test -z "$ac_top_builddir"; then
16690        ac_top_srcdir=.
16691     else
16692        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16693     fi ;;
16694   [\\/]* | ?:[\\/]* )  # Absolute path.
16695     ac_srcdir=$srcdir$ac_dir_suffix;
16696     ac_top_srcdir=$srcdir ;;
16697   *) # Relative path.
16698     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16699     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16700 esac
16701
16702 # Do not use `cd foo && pwd` to compute absolute paths, because
16703 # the directories may not exist.
16704 case `pwd` in
16705 .) ac_abs_builddir="$ac_dir";;
16706 *)
16707   case "$ac_dir" in
16708   .) ac_abs_builddir=`pwd`;;
16709   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16710   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16711   esac;;
16712 esac
16713 case $ac_abs_builddir in
16714 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16715 *)
16716   case ${ac_top_builddir}. in
16717   .) ac_abs_top_builddir=$ac_abs_builddir;;
16718   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16719   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16720   esac;;
16721 esac
16722 case $ac_abs_builddir in
16723 .) ac_abs_srcdir=$ac_srcdir;;
16724 *)
16725   case $ac_srcdir in
16726   .) ac_abs_srcdir=$ac_abs_builddir;;
16727   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16728   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16729   esac;;
16730 esac
16731 case $ac_abs_builddir in
16732 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16733 *)
16734   case $ac_top_srcdir in
16735   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16736   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16737   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16738   esac;;
16739 esac
16740
16741
16742   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16743 echo "$as_me: executing $ac_dest commands" >&6;}
16744   case $ac_dest in
16745     default )
16746 case ${CONFIG_HEADERS} in
16747   *auto-host.h:config.in*)
16748   echo > cstamp-h ;;
16749 esac
16750 # Make sure all the subdirs exist.
16751 for d in $subdirs doc build
16752 do
16753     test -d $d || mkdir $d
16754 done
16755 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16756 # bootstrapping and the installation procedure can still use
16757 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
16758 # FLAGS_TO_PASS has been modified to solve the problem there.
16759 # This is virtually a duplicate of what happens in configure.lang; we do
16760 # an extra check to make sure this only happens if ln -s can be used.
16761 case "$LN_S" in
16762   *-s*)
16763     for d in ${subdirs} ; do
16764         STARTDIR=`${PWDCMD-pwd}`
16765         cd $d
16766         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16767         do
16768                 rm -f $t
16769                 $LN_S ../$t $t 2>/dev/null
16770         done
16771         cd $STARTDIR
16772     done
16773   ;;
16774 esac
16775  ;;
16776   esac
16777 done
16778 _ACEOF
16779
16780 cat >>$CONFIG_STATUS <<\_ACEOF
16781
16782 { (exit 0); exit 0; }
16783 _ACEOF
16784 chmod +x $CONFIG_STATUS
16785 ac_clean_files=$ac_clean_files_save
16786
16787
16788 # configure is writing to config.log, and then calls config.status.
16789 # config.status does its own redirection, appending to config.log.
16790 # Unfortunately, on DOS this fails, as config.log is still kept open
16791 # by configure, so config.status won't be able to write to it; its
16792 # output is simply discarded.  So we exec the FD to /dev/null,
16793 # effectively closing config.log, so it can be properly (re)opened and
16794 # appended to by config.status.  When coming back to configure, we
16795 # need to make the FD available again.
16796 if test "$no_create" != yes; then
16797   ac_cs_success=:
16798   ac_config_status_args=
16799   test "$silent" = yes &&
16800     ac_config_status_args="$ac_config_status_args --quiet"
16801   exec 5>/dev/null
16802   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16803   exec 5>>config.log
16804   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16805   # would make configure fail if this is the last instruction.
16806   $ac_cs_success || { (exit 1); exit 1; }
16807 fi
16808