OSDN Git Service

Fix dates on ChangeLog
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default 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 # Determine the host, build, and target systems
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389   if test -f $ac_dir/install-sh; then
1390     ac_aux_dir=$ac_dir
1391     ac_install_sh="$ac_aux_dir/install-sh -c"
1392     break
1393   elif test -f $ac_dir/install.sh; then
1394     ac_aux_dir=$ac_dir
1395     ac_install_sh="$ac_aux_dir/install.sh -c"
1396     break
1397   elif test -f $ac_dir/shtool; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/shtool install -c"
1400     break
1401   fi
1402 done
1403 if test -z "$ac_aux_dir"; then
1404   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406    { (exit 1); exit 1; }; }
1407 fi
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1411
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425   ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429    { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 fi
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1438 build=$ac_cv_build
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442
1443
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451   ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455    { (exit 1); exit 1; }; }
1456
1457 fi
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1460 host=$ac_cv_host
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464
1465
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473   ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477    { (exit 1); exit 1; }; }
1478
1479 fi
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
1487
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491   test "$program_prefix$program_suffix$program_transform_name" = \
1492     NONENONEs,x,x, &&
1493   program_prefix=${target_alias}-
1494
1495 # Determine the noncanonical target name, for directory use.
1496  case ${build_alias} in
1497   "") build_noncanonical=${build} ;;
1498   *) build_noncanonical=${build_alias} ;;
1499 esac
1500
1501  case ${host_alias} in
1502   "") host_noncanonical=${build_noncanonical} ;;
1503   *) host_noncanonical=${host_alias} ;;
1504 esac
1505
1506  case ${target_alias} in
1507   "") target_noncanonical=${host_noncanonical} ;;
1508   *) target_noncanonical=${target_alias} ;;
1509 esac
1510
1511
1512
1513
1514 # Determine the target- and build-specific subdirectories
1515   # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1518 if ( test $srcdir = . && test -d gcc ) \
1519    || test -d $srcdir/../host-${host_noncanonical}; then
1520   host_subdir="host-${host_noncanonical}"
1521 else
1522   host_subdir=.
1523 fi
1524 # No prefix.
1525 target_subdir=${target_noncanonical}
1526
1527
1528 # Set program_transform_name
1529 test "$program_prefix" != NONE &&
1530   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1531 # Use a double $ so make ignores it.
1532 test "$program_suffix" != NONE &&
1533   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1534 # Double any \ or $.  echo might interpret backslashes.
1535 # By default was `s,x,x', remove it if useless.
1536 cat <<\_ACEOF >conftest.sed
1537 s/[\\$]/&&/g;s/;s,x,x,$//
1538 _ACEOF
1539 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1540 rm conftest.sed
1541
1542
1543 # Check for bogus environment variables.
1544 # Test if LIBRARY_PATH contains the notation for the current directory
1545 # since this would lead to problems installing/building glibc.
1546 # LIBRARY_PATH contains the current directory if one of the following
1547 # is true:
1548 # - one of the terminals (":" and ";") is the first or last sign
1549 # - two terminals occur directly after each other
1550 # - the path contains an element with a dot in it
1551 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1552 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1553 case ${LIBRARY_PATH} in
1554   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1555     library_path_setting="contains current directory"
1556     ;;
1557   *)
1558     library_path_setting="ok"
1559     ;;
1560 esac
1561 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1562 echo "${ECHO_T}$library_path_setting" >&6
1563 if test "$library_path_setting" != "ok"; then
1564 { { echo "$as_me:$LINENO: error:
1565 *** LIBRARY_PATH shouldn't contain the current directory when
1566 *** building gcc. Please change the environment variable
1567 *** and run configure again." >&5
1568 echo "$as_me: error:
1569 *** LIBRARY_PATH shouldn't contain the current directory when
1570 *** building gcc. Please change the environment variable
1571 *** and run configure again." >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574
1575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # GCC_EXEC_PREFIX contains the current directory if one of the following
1578 # is true:
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1583 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1584 case ${GCC_EXEC_PREFIX} in
1585   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1586     gcc_exec_prefix_setting="contains current directory"
1587     ;;
1588   *)
1589     gcc_exec_prefix_setting="ok"
1590     ;;
1591 esac
1592 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1593 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1594 if test "$gcc_exec_prefix_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603    { (exit 1); exit 1; }; }
1604 fi
1605
1606 # -----------
1607 # Directories
1608 # -----------
1609
1610 # Specify the local prefix
1611 local_prefix=
1612
1613 # Check whether --with-local-prefix or --without-local-prefix was given.
1614 if test "${with_local_prefix+set}" = set; then
1615   withval="$with_local_prefix"
1616   case "${withval}" in
1617 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1618 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1619    { (exit 1); exit 1; }; } ;;
1620 no)     ;;
1621 *)      local_prefix=$with_local_prefix ;;
1622 esac
1623 fi;
1624
1625 # Default local prefix if it is empty
1626 if test x$local_prefix = x; then
1627         local_prefix=/usr/local
1628 fi
1629
1630 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1631 # passed in by the toplevel make and thus we'd get different behavior
1632 # depending on where we built the sources.
1633 gcc_gxx_include_dir=
1634 # Specify the g++ header file directory
1635
1636 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1637 if test "${with_gxx_include_dir+set}" = set; then
1638   withval="$with_gxx_include_dir"
1639   case "${withval}" in
1640 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1641 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1642    { (exit 1); exit 1; }; } ;;
1643 no)     ;;
1644 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1645 esac
1646 fi;
1647
1648 if test x${gcc_gxx_include_dir} = x; then
1649   if test x${enable_version_specific_runtime_libs} = xyes; then
1650     gcc_gxx_include_dir='${libsubdir}/include/c++'
1651   else
1652     libstdcxx_incdir='c++/$(version)'
1653     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1654   fi
1655 fi
1656
1657
1658 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1659 if test "${with_cpp_install_dir+set}" = set; then
1660   withval="$with_cpp_install_dir"
1661   if test x$withval = xyes; then
1662   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1663 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1664    { (exit 1); exit 1; }; }
1665 elif test x$withval != xno; then
1666   cpp_install_dir=$withval
1667 fi
1668 fi;
1669
1670 # We would like to our source tree to be readonly.  However when releases or
1671 # pre-releases are generated, the flex/bison generated files as well as the
1672 # various formats of manuals need to be included along with the rest of the
1673 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1674 # just that.
1675
1676 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1677 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1678     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1679 if test "${enable_generated_files_in_srcdir+set}" = set; then
1680   enableval="$enable_generated_files_in_srcdir"
1681   generated_files_in_srcdir=$enableval
1682 else
1683   generated_files_in_srcdir=no
1684 fi;
1685
1686 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1687 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1688
1689 if test "$generated_files_in_srcdir" = "yes"; then
1690   GENINSRC=''
1691 else
1692   GENINSRC='#'
1693 fi
1694
1695
1696 # -------------------
1697 # Find default linker
1698 # -------------------
1699
1700 # With GNU ld
1701
1702 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1703 if test "${with_gnu_ld+set}" = set; then
1704   withval="$with_gnu_ld"
1705   gnu_ld_flag="$with_gnu_ld"
1706 else
1707   gnu_ld_flag=no
1708 fi;
1709
1710 # With pre-defined ld
1711
1712 # Check whether --with-ld or --without-ld was given.
1713 if test "${with_ld+set}" = set; then
1714   withval="$with_ld"
1715   DEFAULT_LINKER="$with_ld"
1716 fi;
1717 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1718   if test ! -x "$DEFAULT_LINKER"; then
1719     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1720 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1721    { (exit 1); exit 1; }; }
1722   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1723     gnu_ld_flag=yes
1724   fi
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1728 _ACEOF
1729
1730 fi
1731
1732 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1733 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1734 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1735   if test x"$gnu_ld_flag" = x"no"; then
1736     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1737 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1738   else
1739     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1740 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1741   fi
1742 else
1743   echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1745 fi
1746
1747 # With demangler in GNU ld
1748
1749 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1750 if test "${with_demangler_in_ld+set}" = set; then
1751   withval="$with_demangler_in_ld"
1752   demangler_in_ld="$with_demangler_in_ld"
1753 else
1754   demangler_in_ld=no
1755 fi;
1756
1757 # ----------------------
1758 # Find default assembler
1759 # ----------------------
1760
1761 # With GNU as
1762
1763 # Check whether --with-gnu-as or --without-gnu-as was given.
1764 if test "${with_gnu_as+set}" = set; then
1765   withval="$with_gnu_as"
1766   gas_flag="$with_gnu_as"
1767 else
1768   gas_flag=no
1769 fi;
1770
1771
1772 # Check whether --with-as or --without-as was given.
1773 if test "${with_as+set}" = set; then
1774   withval="$with_as"
1775   DEFAULT_ASSEMBLER="$with_as"
1776 fi;
1777 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1778   if test ! -x "$DEFAULT_ASSEMBLER"; then
1779     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1780 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1781    { (exit 1); exit 1; }; }
1782   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1783     gas_flag=yes
1784   fi
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1788 _ACEOF
1789
1790 fi
1791
1792 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1793 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1794 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1795   if test x"$gas_flag" = x"no"; then
1796     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1797 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1798   else
1799     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1800 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1801   fi
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807 # ---------------
1808 # Find C compiler
1809 # ---------------
1810
1811 # If a non-executable a.out is present (e.g. created by GNU as above even if
1812 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1813 # file, even when creating an executable, so an execution test fails.
1814 # Remove possible default executable files to avoid this.
1815 #
1816 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1817 # Autoconf includes it.
1818 rm -f a.out a.exe b.out
1819
1820 # Find the native compiler
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 if test -n "$ac_tool_prefix"; then
1827   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_CC+set}" = set; then
1832   echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834   if test -n "$CC"; then
1835   ac_cv_prog_CC="$CC" # Let the user override the test.
1836 else
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
1840   IFS=$as_save_IFS
1841   test -z "$as_dir" && as_dir=.
1842   for ac_exec_ext in '' $ac_executable_extensions; do
1843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846     break 2
1847   fi
1848 done
1849 done
1850
1851 fi
1852 fi
1853 CC=$ac_cv_prog_CC
1854 if test -n "$CC"; then
1855   echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1857 else
1858   echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1860 fi
1861
1862 fi
1863 if test -z "$ac_cv_prog_CC"; then
1864   ac_ct_CC=$CC
1865   # Extract the first word of "gcc", so it can be a program name with args.
1866 set dummy gcc; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872   if test -n "$ac_ct_CC"; then
1873   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878   IFS=$as_save_IFS
1879   test -z "$as_dir" && as_dir=.
1880   for ac_exec_ext in '' $ac_executable_extensions; do
1881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882     ac_cv_prog_ac_ct_CC="gcc"
1883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884     break 2
1885   fi
1886 done
1887 done
1888
1889 fi
1890 fi
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1895 else
1896   echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1898 fi
1899
1900   CC=$ac_ct_CC
1901 else
1902   CC="$ac_cv_prog_CC"
1903 fi
1904
1905 if test -z "$CC"; then
1906   if test -n "$ac_tool_prefix"; then
1907   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1908 set dummy ${ac_tool_prefix}cc; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CC+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test -n "$CC"; then
1915   ac_cv_prog_CC="$CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_exec_ext in '' $ac_executable_extensions; do
1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924     ac_cv_prog_CC="${ac_tool_prefix}cc"
1925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926     break 2
1927   fi
1928 done
1929 done
1930
1931 fi
1932 fi
1933 CC=$ac_cv_prog_CC
1934 if test -n "$CC"; then
1935   echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942 fi
1943 if test -z "$ac_cv_prog_CC"; then
1944   ac_ct_CC=$CC
1945   # Extract the first word of "cc", so it can be a program name with args.
1946 set dummy cc; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   if test -n "$ac_ct_CC"; then
1953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958   IFS=$as_save_IFS
1959   test -z "$as_dir" && as_dir=.
1960   for ac_exec_ext in '' $ac_executable_extensions; do
1961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962     ac_cv_prog_ac_ct_CC="cc"
1963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964     break 2
1965   fi
1966 done
1967 done
1968
1969 fi
1970 fi
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980   CC=$ac_ct_CC
1981 else
1982   CC="$ac_cv_prog_CC"
1983 fi
1984
1985 fi
1986 if test -z "$CC"; then
1987   # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   if test -n "$CC"; then
1995   ac_cv_prog_CC="$CC" # Let the user override the test.
1996 else
1997   ac_prog_rejected=no
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001   IFS=$as_save_IFS
2002   test -z "$as_dir" && as_dir=.
2003   for ac_exec_ext in '' $ac_executable_extensions; do
2004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2006        ac_prog_rejected=yes
2007        continue
2008      fi
2009     ac_cv_prog_CC="cc"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016 if test $ac_prog_rejected = yes; then
2017   # We found a bogon in the path, so make sure we never use it.
2018   set dummy $ac_cv_prog_CC
2019   shift
2020   if test $# != 0; then
2021     # We chose a different compiler from the bogus one.
2022     # However, it has the same basename, so the bogon will be chosen
2023     # first if we set CC to just the basename; use the full file name.
2024     shift
2025     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2026   fi
2027 fi
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 fi
2040 if test -z "$CC"; then
2041   if test -n "$ac_tool_prefix"; then
2042   for ac_prog in cl
2043   do
2044     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$CC"; then
2052   ac_cv_prog_CC="$CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067
2068 fi
2069 fi
2070 CC=$ac_cv_prog_CC
2071 if test -n "$CC"; then
2072   echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6
2074 else
2075   echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2077 fi
2078
2079     test -n "$CC" && break
2080   done
2081 fi
2082 if test -z "$CC"; then
2083   ac_ct_CC=$CC
2084   for ac_prog in cl
2085 do
2086   # Extract the first word of "$ac_prog", so it can be a program name with args.
2087 set dummy $ac_prog; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091   echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093   if test -n "$ac_ct_CC"; then
2094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101   for ac_exec_ext in '' $ac_executable_extensions; do
2102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103     ac_cv_prog_ac_ct_CC="$ac_prog"
2104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105     break 2
2106   fi
2107 done
2108 done
2109
2110 fi
2111 fi
2112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2116 else
2117   echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121   test -n "$ac_ct_CC" && break
2122 done
2123
2124   CC=$ac_ct_CC
2125 fi
2126
2127 fi
2128
2129
2130 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&2;}
2134    { (exit 1); exit 1; }; }
2135
2136 # Provide some information about the compiler.
2137 echo "$as_me:$LINENO:" \
2138      "checking for C compiler version" >&5
2139 ac_compiler=`set X $ac_compile; echo $2`
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141   (eval $ac_compiler --version </dev/null >&5) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146   (eval $ac_compiler -v </dev/null >&5) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151   (eval $ac_compiler -V </dev/null >&5) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }
2155
2156 cat >conftest.$ac_ext <<_ACEOF
2157 /* confdefs.h.  */
2158 _ACEOF
2159 cat confdefs.h >>conftest.$ac_ext
2160 cat >>conftest.$ac_ext <<_ACEOF
2161 /* end confdefs.h.  */
2162
2163 int
2164 main ()
2165 {
2166
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 ac_clean_files_save=$ac_clean_files
2172 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2173 # Try to create an executable without -o first, disregard a.out.
2174 # It will help us diagnose broken compilers, and finding out an intuition
2175 # of exeext.
2176 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180   (eval $ac_link_default) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; then
2184   # Find the output, starting from the most likely.  This scheme is
2185 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186 # resort.
2187
2188 # Be careful to initialize this variable, since it used to be cached.
2189 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190 ac_cv_exeext=
2191 # b.out is created by i960 compilers.
2192 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193 do
2194   test -f "$ac_file" || continue
2195   case $ac_file in
2196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197         ;;
2198     conftest.$ac_ext )
2199         # This is the source file.
2200         ;;
2201     [ab].out )
2202         # We found the default executable, but exeext='' is most
2203         # certainly right.
2204         break;;
2205     *.* )
2206         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207         # FIXME: I believe we export ac_cv_exeext for Libtool,
2208         # but it would be cool to find out if it's true.  Does anybody
2209         # maintain Libtool? --akim.
2210         export ac_cv_exeext
2211         break;;
2212     * )
2213         break;;
2214   esac
2215 done
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&2;}
2224    { (exit 77); exit 77; }; }
2225 fi
2226
2227 ac_exeext=$ac_cv_exeext
2228 echo "$as_me:$LINENO: result: $ac_file" >&5
2229 echo "${ECHO_T}$ac_file" >&6
2230
2231 # Check the compiler produces executables we can run.  If not, either
2232 # the compiler is broken, or we cross compile.
2233 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236 # If not cross compiling, check that we can run a simple program.
2237 if test "$cross_compiling" != yes; then
2238   if { ac_try='./$ac_file'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244     cross_compiling=no
2245   else
2246     if test "$cross_compiling" = maybe; then
2247         cross_compiling=yes
2248     else
2249         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&2;}
2255    { (exit 1); exit 1; }; }
2256     fi
2257   fi
2258 fi
2259 echo "$as_me:$LINENO: result: yes" >&5
2260 echo "${ECHO_T}yes" >&6
2261
2262 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263 ac_clean_files=$ac_clean_files_save
2264 # Check the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269 echo "${ECHO_T}$cross_compiling" >&6
2270
2271 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274   (eval $ac_link) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; then
2278   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 # `rm'.
2282 for ac_file in conftest.exe conftest conftest.*; do
2283   test -f "$ac_file" || continue
2284   case $ac_file in
2285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2286     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287           export ac_cv_exeext
2288           break;;
2289     * ) break;;
2290   esac
2291 done
2292 else
2293   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297    { (exit 1); exit 1; }; }
2298 fi
2299
2300 rm -f conftest$ac_cv_exeext
2301 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6
2303
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2306 ac_exeext=$EXEEXT
2307 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309 if test "${ac_cv_objext+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318
2319 int
2320 main ()
2321 {
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.o conftest.obj
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329   (eval $ac_compile) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2336     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337        break;;
2338   esac
2339 done
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&2;}
2348    { (exit 1); exit 1; }; }
2349 fi
2350
2351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352 fi
2353 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354 echo "${ECHO_T}$ac_cv_objext" >&6
2355 OBJEXT=$ac_cv_objext
2356 ac_objext=$OBJEXT
2357 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368
2369 int
2370 main ()
2371 {
2372 #ifndef __GNUC__
2373        choke me
2374 #endif
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382   (eval $ac_compile) 2>conftest.er1
2383   ac_status=$?
2384   grep -v '^ *+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); } &&
2389          { ac_try='test -z "$ac_c_werror_flag"
2390                          || test ! -s conftest.err'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; } &&
2396          { ac_try='test -s conftest.$ac_objext'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; }; then
2402   ac_compiler_gnu=yes
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_compiler_gnu=no
2408 fi
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411
2412 fi
2413 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415 GCC=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CFLAGS=${CFLAGS+set}
2417 ac_save_CFLAGS=$CFLAGS
2418 CFLAGS="-g"
2419 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cc_g+set}" = set; then
2422   echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424   cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h.  */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h.  */
2430
2431 int
2432 main ()
2433 {
2434
2435   ;
2436   return 0;
2437 }
2438 _ACEOF
2439 rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441   (eval $ac_compile) 2>conftest.er1
2442   ac_status=$?
2443   grep -v '^ *+' conftest.er1 >conftest.err
2444   rm -f conftest.er1
2445   cat conftest.err >&5
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); } &&
2448          { ac_try='test -z "$ac_c_werror_flag"
2449                          || test ! -s conftest.err'
2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451   (eval $ac_try) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; } &&
2455          { ac_try='test -s conftest.$ac_objext'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; }; then
2461   ac_cv_prog_cc_g=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 ac_cv_prog_cc_g=no
2467 fi
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 fi
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472 if test "$ac_test_CFLAGS" = set; then
2473   CFLAGS=$ac_save_CFLAGS
2474 elif test $ac_cv_prog_cc_g = yes; then
2475   if test "$GCC" = yes; then
2476     CFLAGS="-g -O2"
2477   else
2478     CFLAGS="-g"
2479   fi
2480 else
2481   if test "$GCC" = yes; then
2482     CFLAGS="-O2"
2483   else
2484     CFLAGS=
2485   fi
2486 fi
2487 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   ac_cv_prog_cc_stdc=no
2493 ac_save_CC=$CC
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500 #include <stdarg.h>
2501 #include <stdio.h>
2502 #include <sys/types.h>
2503 #include <sys/stat.h>
2504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2505 struct buf { int x; };
2506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507 static char *e (p, i)
2508      char **p;
2509      int i;
2510 {
2511   return p[i];
2512 }
2513 static char *f (char * (*g) (char **, int), char **p, ...)
2514 {
2515   char *s;
2516   va_list v;
2517   va_start (v,p);
2518   s = g (p, va_arg (v,int));
2519   va_end (v);
2520   return s;
2521 }
2522
2523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2524    function prototypes and stuff, but not '\xHH' hex character constants.
2525    These don't provoke an error unfortunately, instead are silently treated
2526    as 'x'.  The following induces an error, until -std1 is added to get
2527    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2528    array size at least.  It's necessary to write '\x00'==0 to get something
2529    that's true only with -std1.  */
2530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531
2532 int test (int i, double x);
2533 struct s1 {int (*f) (int a);};
2534 struct s2 {int (*f) (double a);};
2535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536 int argc;
2537 char **argv;
2538 int
2539 main ()
2540 {
2541 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 # Don't try gcc -ansi; that turns off useful extensions and
2547 # breaks some systems' header files.
2548 # AIX                   -qlanglvl=ansi
2549 # Ultrix and OSF/1      -std1
2550 # HP-UX 10.20 and later -Ae
2551 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2552 # SVR4                  -Xc -D__EXTENSIONS__
2553 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554 do
2555   CC="$ac_save_CC $ac_arg"
2556   rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558   (eval $ac_compile) 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag"
2566                          || test ! -s conftest.err'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; } &&
2572          { ac_try='test -s conftest.$ac_objext'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   ac_cv_prog_cc_stdc=$ac_arg
2579 break
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 fi
2585 rm -f conftest.err conftest.$ac_objext
2586 done
2587 rm -f conftest.$ac_ext conftest.$ac_objext
2588 CC=$ac_save_CC
2589
2590 fi
2591
2592 case "x$ac_cv_prog_cc_stdc" in
2593   x|xno)
2594     echo "$as_me:$LINENO: result: none needed" >&5
2595 echo "${ECHO_T}none needed" >&6 ;;
2596   *)
2597     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599     CC="$CC $ac_cv_prog_cc_stdc" ;;
2600 esac
2601
2602 # Some people use a C++ compiler to compile C.  Since we use `exit',
2603 # in C++ we need to declare it.  In case someone uses the same compiler
2604 # for both compiling C and C++ we need to have the C++ compiler decide
2605 # the declaration of exit, since it's the most demanding environment.
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #ifndef __cplusplus
2608   choke me
2609 #endif
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"
2621                          || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   for ac_declaration in \
2634    '' \
2635    'extern "C" void std::exit (int) throw (); using std::exit;' \
2636    'extern "C" void std::exit (int); using std::exit;' \
2637    'extern "C" void exit (int) throw ();' \
2638    'extern "C" void exit (int);' \
2639    'void exit (int);'
2640 do
2641   cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647 $ac_declaration
2648 #include <stdlib.h>
2649 int
2650 main ()
2651 {
2652 exit (42);
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_c_werror_flag"
2667                          || test ! -s conftest.err'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   :
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 continue
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687   cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693 $ac_declaration
2694 int
2695 main ()
2696 {
2697 exit (42);
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704   (eval $ac_compile) 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag"
2712                          || test ! -s conftest.err'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; } &&
2718          { ac_try='test -s conftest.$ac_objext'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; }; then
2724   break
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 fi
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 done
2732 rm -f conftest*
2733 if test -n "$ac_declaration"; then
2734   echo '#ifdef __cplusplus' >>confdefs.h
2735   echo $ac_declaration      >>confdefs.h
2736   echo '#endif'             >>confdefs.h
2737 fi
2738
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 fi
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751 if test "x$CC" != xcc; then
2752   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2754 else
2755   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2757 fi
2758 set dummy $CC; ac_cc=`echo $2 |
2759                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 # Make sure it works both with $CC and with simple cc.
2779 # We do the test twice because some compilers refuse to overwrite an
2780 # existing .o file with -o, though they will create one.
2781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); };
2792 then
2793   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2794   if test "x$CC" != xcc; then
2795     # Test first that cc exists at all.
2796     if { ac_try='cc -c conftest.$ac_ext >&5'
2797   { (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); }; }; then
2802       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2803       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); };
2813       then
2814         # cc works too.
2815         :
2816       else
2817         # cc exists but doesn't like -o.
2818         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2819       fi
2820     fi
2821   fi
2822 else
2823   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2824 fi
2825 rm -f conftest*
2826
2827 fi
2828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2829   echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2831 else
2832   echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2834
2835 cat >>confdefs.h <<\_ACEOF
2836 #define NO_MINUS_C_MINUS_O 1
2837 _ACEOF
2838
2839 fi
2840
2841 # expand $ac_aux_dir to an absolute path
2842 am_aux_dir=`cd $ac_aux_dir && pwd`
2843
2844 # FIXME: we rely on the cache variable name because
2845 # there is no other way.
2846 set dummy $CC
2847 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2849    # Losing compiler, so override with the script.
2850    # FIXME: It is wrong to rewrite CC.
2851    # But if we don't then we get into trouble of one sort or another.
2852    # A longer-term fix would be to have automake use am__CC in this case,
2853    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2854    CC="$am_aux_dir/compile $CC"
2855 fi
2856
2857 # autoconf is lame and doesn't give us any substitution variable for this.
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2859   NO_MINUS_C_MINUS_O=yes
2860 else
2861   OUTPUT_OPTION='-o $@'
2862 fi
2863
2864
2865
2866 # -------------------------
2867 # Check C compiler features
2868 # -------------------------
2869
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2879   CPP=
2880 fi
2881 if test -z "$CPP"; then
2882   if test "${ac_cv_prog_CPP+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885       # Double quotes because CPP needs to be expanded
2886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887     do
2888       ac_preproc_ok=false
2889 for ac_c_preproc_warn_flag in '' yes
2890 do
2891   # Use a header file that comes with gcc, so configuring glibc
2892   # with a fresh cross-compiler works.
2893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894   # <limits.h> exists even on freestanding compilers.
2895   # On the NeXT, cc -E runs the code through the compiler's parser,
2896   # not just through cpp. "Syntax error" is here to catch this case.
2897   cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #ifdef __STDC__
2904 # include <limits.h>
2905 #else
2906 # include <assert.h>
2907 #endif
2908                      Syntax error
2909 _ACEOF
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } >/dev/null; then
2918   if test -s conftest.err; then
2919     ac_cpp_err=$ac_c_preproc_warn_flag
2920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2921   else
2922     ac_cpp_err=
2923   fi
2924 else
2925   ac_cpp_err=yes
2926 fi
2927 if test -z "$ac_cpp_err"; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933   # Broken: fails on valid input.
2934 continue
2935 fi
2936 rm -f conftest.err conftest.$ac_ext
2937
2938   # OK, works on sane cases.  Now check whether non-existent headers
2939   # can be detected and how.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } >/dev/null; then
2956   if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   # Broken: success on invalid input.
2967 continue
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Passes both tests.
2973 ac_preproc_ok=:
2974 break
2975 fi
2976 rm -f conftest.err conftest.$ac_ext
2977
2978 done
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2982   break
2983 fi
2984
2985     done
2986     ac_cv_prog_CPP=$CPP
2987
2988 fi
2989   CPP=$ac_cv_prog_CPP
2990 else
2991   ac_cv_prog_CPP=$CPP
2992 fi
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2995 ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015                      Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040   # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045   # OK, works on sane cases.  Now check whether non-existent headers
3046   # can be detected and how.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #include <ac_nonexistent.h>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   # Broken: success on invalid input.
3074 continue
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3089   :
3090 else
3091   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095    { (exit 1); exit 1; }; }
3096 fi
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105 echo "$as_me:$LINENO: checking for inline" >&5
3106 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3107 if test "${ac_cv_c_inline+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   ac_cv_c_inline=no
3111 for ac_kw in inline __inline__ __inline; do
3112   cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118 #ifndef __cplusplus
3119 typedef int foo_t;
3120 static $ac_kw foo_t static_foo () {return 0; }
3121 $ac_kw foo_t foo () {return 0; }
3122 #endif
3123
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127   (eval $ac_compile) 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } &&
3134          { ac_try='test -z "$ac_c_werror_flag"
3135                          || test ! -s conftest.err'
3136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137   (eval $ac_try) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_c_inline=$ac_kw; break
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 fi
3153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154 done
3155
3156 fi
3157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3158 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159
3160
3161 case $ac_cv_c_inline in
3162   inline | yes) ;;
3163   *)
3164     case $ac_cv_c_inline in
3165       no) ac_val=;;
3166       *) ac_val=$ac_cv_c_inline;;
3167     esac
3168     cat >>confdefs.h <<_ACEOF
3169 #ifndef __cplusplus
3170 #define inline $ac_val
3171 #endif
3172 _ACEOF
3173     ;;
3174 esac
3175
3176
3177 echo "$as_me:$LINENO: checking for long long int" >&5
3178 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3179 if test "${ac_cv_c_long_long+set}" = set; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192 long long int i;
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199   (eval $ac_compile) 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } &&
3206          { ac_try='test -z "$ac_c_werror_flag"
3207                          || test ! -s conftest.err'
3208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209   (eval $ac_try) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; } &&
3213          { ac_try='test -s conftest.$ac_objext'
3214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215   (eval $ac_try) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   ac_cv_c_long_long=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 ac_cv_c_long_long=no
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3229 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3230   if test $ac_cv_c_long_long = yes; then
3231
3232 cat >>confdefs.h <<\_ACEOF
3233 #define HAVE_LONG_LONG 1
3234 _ACEOF
3235
3236   fi
3237 echo "$as_me:$LINENO: checking for __int64" >&5
3238 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3239 if test "${ac_cv_c___int64+set}" = set; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242   cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h.  */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252 __int64 i;
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259   (eval $ac_compile) 2>conftest.er1
3260   ac_status=$?
3261   grep -v '^ *+' conftest.er1 >conftest.err
3262   rm -f conftest.er1
3263   cat conftest.err >&5
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); } &&
3266          { ac_try='test -z "$ac_c_werror_flag"
3267                          || test ! -s conftest.err'
3268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269   (eval $ac_try) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }; } &&
3273          { ac_try='test -s conftest.$ac_objext'
3274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   ac_cv_c___int64=yes
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ac_cv_c___int64=no
3285 fi
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3289 echo "${ECHO_T}$ac_cv_c___int64" >&6
3290   if test $ac_cv_c___int64 = yes; then
3291
3292 cat >>confdefs.h <<\_ACEOF
3293 #define HAVE___INT64 1
3294 _ACEOF
3295
3296   fi
3297
3298
3299 # sizeof(char) is 1 by definition.
3300
3301 echo "$as_me:$LINENO: checking for egrep" >&5
3302 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3303 if test "${ac_cv_prog_egrep+set}" = set; then
3304   echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3307     then ac_cv_prog_egrep='grep -E'
3308     else ac_cv_prog_egrep='egrep'
3309     fi
3310 fi
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3312 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3313  EGREP=$ac_cv_prog_egrep
3314
3315
3316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3318 if test "${ac_cv_header_stdc+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 #include <stdlib.h>
3328 #include <stdarg.h>
3329 #include <string.h>
3330 #include <float.h>
3331
3332 int
3333 main ()
3334 {
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag"
3350                          || test ! -s conftest.err'
3351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; } &&
3356          { ac_try='test -s conftest.$ac_objext'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_header_stdc=yes
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 ac_cv_header_stdc=no
3368 fi
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370
3371 if test $ac_cv_header_stdc = yes; then
3372   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #include <string.h>
3380
3381 _ACEOF
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383   $EGREP "memchr" >/dev/null 2>&1; then
3384   :
3385 else
3386   ac_cv_header_stdc=no
3387 fi
3388 rm -f conftest*
3389
3390 fi
3391
3392 if test $ac_cv_header_stdc = yes; then
3393   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 #include <stdlib.h>
3401
3402 _ACEOF
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404   $EGREP "free" >/dev/null 2>&1; then
3405   :
3406 else
3407   ac_cv_header_stdc=no
3408 fi
3409 rm -f conftest*
3410
3411 fi
3412
3413 if test $ac_cv_header_stdc = yes; then
3414   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3415   if test "$cross_compiling" = yes; then
3416   :
3417 else
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424 #include <ctype.h>
3425 #if ((' ' & 0x0FF) == 0x020)
3426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3428 #else
3429 # define ISLOWER(c) \
3430                    (('a' <= (c) && (c) <= 'i') \
3431                      || ('j' <= (c) && (c) <= 'r') \
3432                      || ('s' <= (c) && (c) <= 'z'))
3433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3434 #endif
3435
3436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3437 int
3438 main ()
3439 {
3440   int i;
3441   for (i = 0; i < 256; i++)
3442     if (XOR (islower (i), ISLOWER (i))
3443         || toupper (i) != TOUPPER (i))
3444       exit(2);
3445   exit (0);
3446 }
3447 _ACEOF
3448 rm -f conftest$ac_exeext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450   (eval $ac_link) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; }; then
3459   :
3460 else
3461   echo "$as_me: program exited with status $ac_status" >&5
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 ( exit $ac_status )
3466 ac_cv_header_stdc=no
3467 fi
3468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3469 fi
3470 fi
3471 fi
3472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3474 if test $ac_cv_header_stdc = yes; then
3475
3476 cat >>confdefs.h <<\_ACEOF
3477 #define STDC_HEADERS 1
3478 _ACEOF
3479
3480 fi
3481
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3493                   inttypes.h stdint.h unistd.h
3494 do
3495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h.  */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h.  */
3507 $ac_includes_default
3508
3509 #include <$ac_header>
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513   (eval $ac_compile) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -z "$ac_c_werror_flag"
3521                          || test ! -s conftest.err'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; } &&
3527          { ac_try='test -s conftest.$ac_objext'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   eval "$as_ac_Header=yes"
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 eval "$as_ac_Header=no"
3539 fi
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 fi
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545   cat >>confdefs.h <<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547 _ACEOF
3548
3549 fi
3550
3551 done
3552
3553
3554 echo "$as_me:$LINENO: checking for void *" >&5
3555 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3556 if test "${ac_cv_type_void_p+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565 $ac_includes_default
3566 int
3567 main ()
3568 {
3569 if ((void * *) 0)
3570   return 0;
3571 if (sizeof (void *))
3572   return 0;
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579   (eval $ac_compile) 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } &&
3586          { ac_try='test -z "$ac_c_werror_flag"
3587                          || test ! -s conftest.err'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; } &&
3593          { ac_try='test -s conftest.$ac_objext'
3594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595   (eval $ac_try) 2>&5
3596   ac_status=$?
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); }; }; then
3599   ac_cv_type_void_p=yes
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 ac_cv_type_void_p=no
3605 fi
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3609 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3610
3611 echo "$as_me:$LINENO: checking size of void *" >&5
3612 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3613 if test "${ac_cv_sizeof_void_p+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   if test "$ac_cv_type_void_p" = yes; then
3617   # The cast to unsigned long works around a bug in the HP C Compiler
3618   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3619   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3620   # This bug is HP SR number 8606223364.
3621   if test "$cross_compiling" = yes; then
3622   # Depending upon the size, compute the lo and hi bounds.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 $ac_includes_default
3630 int
3631 main ()
3632 {
3633 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3634 test_array [0] = 0
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642   (eval $ac_compile) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -z "$ac_c_werror_flag"
3650                          || test ! -s conftest.err'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; } &&
3656          { ac_try='test -s conftest.$ac_objext'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; }; then
3662   ac_lo=0 ac_mid=0
3663   while :; do
3664     cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 $ac_includes_default
3671 int
3672 main ()
3673 {
3674 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3675 test_array [0] = 0
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683   (eval $ac_compile) 2>conftest.er1
3684   ac_status=$?
3685   grep -v '^ *+' conftest.er1 >conftest.err
3686   rm -f conftest.er1
3687   cat conftest.err >&5
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } &&
3690          { ac_try='test -z "$ac_c_werror_flag"
3691                          || test ! -s conftest.err'
3692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; } &&
3697          { ac_try='test -s conftest.$ac_objext'
3698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699   (eval $ac_try) 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); }; }; then
3703   ac_hi=$ac_mid; break
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 ac_lo=`expr $ac_mid + 1`
3709                     if test $ac_lo -le $ac_mid; then
3710                       ac_lo= ac_hi=
3711                       break
3712                     fi
3713                     ac_mid=`expr 2 '*' $ac_mid + 1`
3714 fi
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716   done
3717 else
3718   echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h.  */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h.  */
3727 $ac_includes_default
3728 int
3729 main ()
3730 {
3731 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3732 test_array [0] = 0
3733
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740   (eval $ac_compile) 2>conftest.er1
3741   ac_status=$?
3742   grep -v '^ *+' conftest.er1 >conftest.err
3743   rm -f conftest.er1
3744   cat conftest.err >&5
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); } &&
3747          { ac_try='test -z "$ac_c_werror_flag"
3748                          || test ! -s conftest.err'
3749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750   (eval $ac_try) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; } &&
3754          { ac_try='test -s conftest.$ac_objext'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; }; then
3760   ac_hi=-1 ac_mid=-1
3761   while :; do
3762     cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h.  */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h.  */
3768 $ac_includes_default
3769 int
3770 main ()
3771 {
3772 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3773 test_array [0] = 0
3774
3775   ;
3776   return 0;
3777 }
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781   (eval $ac_compile) 2>conftest.er1
3782   ac_status=$?
3783   grep -v '^ *+' conftest.er1 >conftest.err
3784   rm -f conftest.er1
3785   cat conftest.err >&5
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); } &&
3788          { ac_try='test -z "$ac_c_werror_flag"
3789                          || test ! -s conftest.err'
3790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791   (eval $ac_try) 2>&5
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); }; } &&
3795          { ac_try='test -s conftest.$ac_objext'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; }; then
3801   ac_lo=$ac_mid; break
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 ac_hi=`expr '(' $ac_mid ')' - 1`
3807                        if test $ac_mid -le $ac_hi; then
3808                          ac_lo= ac_hi=
3809                          break
3810                        fi
3811                        ac_mid=`expr 2 '*' $ac_mid`
3812 fi
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814   done
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 ac_lo= ac_hi=
3820 fi
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 # Binary search between lo and hi bounds.
3825 while test "x$ac_lo" != "x$ac_hi"; do
3826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3827   cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h.  */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h.  */
3833 $ac_includes_default
3834 int
3835 main ()
3836 {
3837 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3838 test_array [0] = 0
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846   (eval $ac_compile) 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -z "$ac_c_werror_flag"
3854                          || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest.$ac_objext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_hi=$ac_mid
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_lo=`expr '(' $ac_mid ')' + 1`
3872 fi
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 done
3875 case $ac_lo in
3876 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&5
3879 echo "$as_me: error: cannot compute sizeof (void *), 77
3880 See \`config.log' for more details." >&2;}
3881    { (exit 1); exit 1; }; } ;;
3882 esac
3883 else
3884   if test "$cross_compiling" = yes; then
3885   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: cannot run test program while cross compiling
3888 See \`config.log' for more details." >&2;}
3889    { (exit 1); exit 1; }; }
3890 else
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 $ac_includes_default
3898 long longval () { return (long) (sizeof (void *)); }
3899 unsigned long ulongval () { return (long) (sizeof (void *)); }
3900 #include <stdio.h>
3901 #include <stdlib.h>
3902 int
3903 main ()
3904 {
3905
3906   FILE *f = fopen ("conftest.val", "w");
3907   if (! f)
3908     exit (1);
3909   if (((long) (sizeof (void *))) < 0)
3910     {
3911       long i = longval ();
3912       if (i != ((long) (sizeof (void *))))
3913         exit (1);
3914       fprintf (f, "%ld\n", i);
3915     }
3916   else
3917     {
3918       unsigned long i = ulongval ();
3919       if (i != ((long) (sizeof (void *))))
3920         exit (1);
3921       fprintf (f, "%lu\n", i);
3922     }
3923   exit (ferror (f) || fclose (f) != 0);
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931   (eval $ac_link) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936   (eval $ac_try) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); }; }; then
3940   ac_cv_sizeof_void_p=`cat conftest.val`
3941 else
3942   echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 ( exit $ac_status )
3947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: cannot compute sizeof (void *), 77
3950 See \`config.log' for more details." >&2;}
3951    { (exit 1); exit 1; }; }
3952 fi
3953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3954 fi
3955 fi
3956 rm -f conftest.val
3957 else
3958   ac_cv_sizeof_void_p=0
3959 fi
3960 fi
3961 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3962 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3963 cat >>confdefs.h <<_ACEOF
3964 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3965 _ACEOF
3966
3967
3968 echo "$as_me:$LINENO: checking for short" >&5
3969 echo $ECHO_N "checking for short... $ECHO_C" >&6
3970 if test "${ac_cv_type_short+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979 $ac_includes_default
3980 int
3981 main ()
3982 {
3983 if ((short *) 0)
3984   return 0;
3985 if (sizeof (short))
3986   return 0;
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993   (eval $ac_compile) 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -z "$ac_c_werror_flag"
4001                          || test ! -s conftest.err'
4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003   (eval $ac_try) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009   (eval $ac_try) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; }; then
4013   ac_cv_type_short=yes
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 ac_cv_type_short=no
4019 fi
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4024
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   if test "$ac_cv_type_short" = yes; then
4031   # The cast to unsigned long works around a bug in the HP C Compiler
4032   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034   # This bug is HP SR number 8606223364.
4035   if test "$cross_compiling" = yes; then
4036   # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 $ac_includes_default
4044 int
4045 main ()
4046 {
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4048 test_array [0] = 0
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056   (eval $ac_compile) 2>conftest.er1
4057   ac_status=$?
4058   grep -v '^ *+' conftest.er1 >conftest.err
4059   rm -f conftest.er1
4060   cat conftest.err >&5
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } &&
4063          { ac_try='test -z "$ac_c_werror_flag"
4064                          || test ! -s conftest.err'
4065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066   (eval $ac_try) 2>&5
4067   ac_status=$?
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); }; } &&
4070          { ac_try='test -s conftest.$ac_objext'
4071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072   (eval $ac_try) 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; }; then
4076   ac_lo=0 ac_mid=0
4077   while :; do
4078     cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 $ac_includes_default
4085 int
4086 main ()
4087 {
4088 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4089 test_array [0] = 0
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097   (eval $ac_compile) 2>conftest.er1
4098   ac_status=$?
4099   grep -v '^ *+' conftest.er1 >conftest.err
4100   rm -f conftest.er1
4101   cat conftest.err >&5
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -z "$ac_c_werror_flag"
4105                          || test ! -s conftest.err'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; } &&
4111          { ac_try='test -s conftest.$ac_objext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   ac_hi=$ac_mid; break
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 ac_lo=`expr $ac_mid + 1`
4123                     if test $ac_lo -le $ac_mid; then
4124                       ac_lo= ac_hi=
4125                       break
4126                     fi
4127                     ac_mid=`expr 2 '*' $ac_mid + 1`
4128 fi
4129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130   done
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 $ac_includes_default
4142 int
4143 main ()
4144 {
4145 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4146 test_array [0] = 0
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154   (eval $ac_compile) 2>conftest.er1
4155   ac_status=$?
4156   grep -v '^ *+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -z "$ac_c_werror_flag"
4162                          || test ! -s conftest.err'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; } &&
4168          { ac_try='test -s conftest.$ac_objext'
4169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   ac_hi=-1 ac_mid=-1
4175   while :; do
4176     cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 $ac_includes_default
4183 int
4184 main ()
4185 {
4186 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4187 test_array [0] = 0
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195   (eval $ac_compile) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } &&
4202          { ac_try='test -z "$ac_c_werror_flag"
4203                          || test ! -s conftest.err'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; } &&
4209          { ac_try='test -s conftest.$ac_objext'
4210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211   (eval $ac_try) 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; }; then
4215   ac_lo=$ac_mid; break
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 ac_hi=`expr '(' $ac_mid ')' - 1`
4221                        if test $ac_mid -le $ac_hi; then
4222                          ac_lo= ac_hi=
4223                          break
4224                        fi
4225                        ac_mid=`expr 2 '*' $ac_mid`
4226 fi
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228   done
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 ac_lo= ac_hi=
4234 fi
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236 fi
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 # Binary search between lo and hi bounds.
4239 while test "x$ac_lo" != "x$ac_hi"; do
4240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4241   cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 $ac_includes_default
4248 int
4249 main ()
4250 {
4251 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4252 test_array [0] = 0
4253
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260   (eval $ac_compile) 2>conftest.er1
4261   ac_status=$?
4262   grep -v '^ *+' conftest.er1 >conftest.err
4263   rm -f conftest.er1
4264   cat conftest.err >&5
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } &&
4267          { ac_try='test -z "$ac_c_werror_flag"
4268                          || test ! -s conftest.err'
4269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270   (eval $ac_try) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; } &&
4274          { ac_try='test -s conftest.$ac_objext'
4275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276   (eval $ac_try) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; }; then
4280   ac_hi=$ac_mid
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 ac_lo=`expr '(' $ac_mid ')' + 1`
4286 fi
4287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288 done
4289 case $ac_lo in
4290 ?*) ac_cv_sizeof_short=$ac_lo;;
4291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: cannot compute sizeof (short), 77
4294 See \`config.log' for more details." >&2;}
4295    { (exit 1); exit 1; }; } ;;
4296 esac
4297 else
4298   if test "$cross_compiling" = yes; then
4299   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4300 See \`config.log' for more details." >&5
4301 echo "$as_me: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&2;}
4303    { (exit 1); exit 1; }; }
4304 else
4305   cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h.  */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h.  */
4311 $ac_includes_default
4312 long longval () { return (long) (sizeof (short)); }
4313 unsigned long ulongval () { return (long) (sizeof (short)); }
4314 #include <stdio.h>
4315 #include <stdlib.h>
4316 int
4317 main ()
4318 {
4319
4320   FILE *f = fopen ("conftest.val", "w");
4321   if (! f)
4322     exit (1);
4323   if (((long) (sizeof (short))) < 0)
4324     {
4325       long i = longval ();
4326       if (i != ((long) (sizeof (short))))
4327         exit (1);
4328       fprintf (f, "%ld\n", i);
4329     }
4330   else
4331     {
4332       unsigned long i = ulongval ();
4333       if (i != ((long) (sizeof (short))))
4334         exit (1);
4335       fprintf (f, "%lu\n", i);
4336     }
4337   exit (ferror (f) || fclose (f) != 0);
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345   (eval $ac_link) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350   (eval $ac_try) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; }; then
4354   ac_cv_sizeof_short=`cat conftest.val`
4355 else
4356   echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ( exit $ac_status )
4361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4362 See \`config.log' for more details." >&5
4363 echo "$as_me: error: cannot compute sizeof (short), 77
4364 See \`config.log' for more details." >&2;}
4365    { (exit 1); exit 1; }; }
4366 fi
4367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 fi
4369 fi
4370 rm -f conftest.val
4371 else
4372   ac_cv_sizeof_short=0
4373 fi
4374 fi
4375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4376 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4377 cat >>confdefs.h <<_ACEOF
4378 #define SIZEOF_SHORT $ac_cv_sizeof_short
4379 _ACEOF
4380
4381
4382 echo "$as_me:$LINENO: checking for int" >&5
4383 echo $ECHO_N "checking for int... $ECHO_C" >&6
4384 if test "${ac_cv_type_int+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 $ac_includes_default
4394 int
4395 main ()
4396 {
4397 if ((int *) 0)
4398   return 0;
4399 if (sizeof (int))
4400   return 0;
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407   (eval $ac_compile) 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_c_werror_flag"
4415                          || test ! -s conftest.err'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; } &&
4421          { ac_try='test -s conftest.$ac_objext'
4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   ac_cv_type_int=yes
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 ac_cv_type_int=no
4433 fi
4434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4435 fi
4436 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4437 echo "${ECHO_T}$ac_cv_type_int" >&6
4438
4439 echo "$as_me:$LINENO: checking size of int" >&5
4440 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4441 if test "${ac_cv_sizeof_int+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   if test "$ac_cv_type_int" = yes; then
4445   # The cast to unsigned long works around a bug in the HP C Compiler
4446   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4447   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4448   # This bug is HP SR number 8606223364.
4449   if test "$cross_compiling" = yes; then
4450   # Depending upon the size, compute the lo and hi bounds.
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457 $ac_includes_default
4458 int
4459 main ()
4460 {
4461 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4462 test_array [0] = 0
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470   (eval $ac_compile) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"
4478                          || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest.$ac_objext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_lo=0 ac_mid=0
4491   while :; do
4492     cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 $ac_includes_default
4499 int
4500 main ()
4501 {
4502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4503 test_array [0] = 0
4504
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511   (eval $ac_compile) 2>conftest.er1
4512   ac_status=$?
4513   grep -v '^ *+' conftest.er1 >conftest.err
4514   rm -f conftest.er1
4515   cat conftest.err >&5
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); } &&
4518          { ac_try='test -z "$ac_c_werror_flag"
4519                          || test ! -s conftest.err'
4520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521   (eval $ac_try) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; } &&
4525          { ac_try='test -s conftest.$ac_objext'
4526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527   (eval $ac_try) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; }; then
4531   ac_hi=$ac_mid; break
4532 else
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 ac_lo=`expr $ac_mid + 1`
4537                     if test $ac_lo -le $ac_mid; then
4538                       ac_lo= ac_hi=
4539                       break
4540                     fi
4541                     ac_mid=`expr 2 '*' $ac_mid + 1`
4542 fi
4543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544   done
4545 else
4546   echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h.  */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h.  */
4555 $ac_includes_default
4556 int
4557 main ()
4558 {
4559 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4560 test_array [0] = 0
4561
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568   (eval $ac_compile) 2>conftest.er1
4569   ac_status=$?
4570   grep -v '^ *+' conftest.er1 >conftest.err
4571   rm -f conftest.er1
4572   cat conftest.err >&5
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); } &&
4575          { ac_try='test -z "$ac_c_werror_flag"
4576                          || test ! -s conftest.err'
4577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578   (eval $ac_try) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; } &&
4582          { ac_try='test -s conftest.$ac_objext'
4583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584   (eval $ac_try) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; }; then
4588   ac_hi=-1 ac_mid=-1
4589   while :; do
4590     cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 $ac_includes_default
4597 int
4598 main ()
4599 {
4600 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4601 test_array [0] = 0
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609   (eval $ac_compile) 2>conftest.er1
4610   ac_status=$?
4611   grep -v '^ *+' conftest.er1 >conftest.err
4612   rm -f conftest.er1
4613   cat conftest.err >&5
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } &&
4616          { ac_try='test -z "$ac_c_werror_flag"
4617                          || test ! -s conftest.err'
4618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619   (eval $ac_try) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; } &&
4623          { ac_try='test -s conftest.$ac_objext'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; }; then
4629   ac_lo=$ac_mid; break
4630 else
4631   echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 ac_hi=`expr '(' $ac_mid ')' - 1`
4635                        if test $ac_mid -le $ac_hi; then
4636                          ac_lo= ac_hi=
4637                          break
4638                        fi
4639                        ac_mid=`expr 2 '*' $ac_mid`
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642   done
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ac_lo= ac_hi=
4648 fi
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 # Binary search between lo and hi bounds.
4653 while test "x$ac_lo" != "x$ac_hi"; do
4654   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4655   cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661 $ac_includes_default
4662 int
4663 main ()
4664 {
4665 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4666 test_array [0] = 0
4667
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674   (eval $ac_compile) 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } &&
4681          { ac_try='test -z "$ac_c_werror_flag"
4682                          || test ! -s conftest.err'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; } &&
4688          { ac_try='test -s conftest.$ac_objext'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; }; then
4694   ac_hi=$ac_mid
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_lo=`expr '(' $ac_mid ')' + 1`
4700 fi
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702 done
4703 case $ac_lo in
4704 ?*) ac_cv_sizeof_int=$ac_lo;;
4705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: cannot compute sizeof (int), 77
4708 See \`config.log' for more details." >&2;}
4709    { (exit 1); exit 1; }; } ;;
4710 esac
4711 else
4712   if test "$cross_compiling" = yes; then
4713   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&2;}
4717    { (exit 1); exit 1; }; }
4718 else
4719   cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 $ac_includes_default
4726 long longval () { return (long) (sizeof (int)); }
4727 unsigned long ulongval () { return (long) (sizeof (int)); }
4728 #include <stdio.h>
4729 #include <stdlib.h>
4730 int
4731 main ()
4732 {
4733
4734   FILE *f = fopen ("conftest.val", "w");
4735   if (! f)
4736     exit (1);
4737   if (((long) (sizeof (int))) < 0)
4738     {
4739       long i = longval ();
4740       if (i != ((long) (sizeof (int))))
4741         exit (1);
4742       fprintf (f, "%ld\n", i);
4743     }
4744   else
4745     {
4746       unsigned long i = ulongval ();
4747       if (i != ((long) (sizeof (int))))
4748         exit (1);
4749       fprintf (f, "%lu\n", i);
4750     }
4751   exit (ferror (f) || fclose (f) != 0);
4752
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759   (eval $ac_link) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   ac_cv_sizeof_int=`cat conftest.val`
4769 else
4770   echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 ( exit $ac_status )
4775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4776 See \`config.log' for more details." >&5
4777 echo "$as_me: error: cannot compute sizeof (int), 77
4778 See \`config.log' for more details." >&2;}
4779    { (exit 1); exit 1; }; }
4780 fi
4781 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 fi
4784 rm -f conftest.val
4785 else
4786   ac_cv_sizeof_int=0
4787 fi
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4790 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4791 cat >>confdefs.h <<_ACEOF
4792 #define SIZEOF_INT $ac_cv_sizeof_int
4793 _ACEOF
4794
4795
4796 echo "$as_me:$LINENO: checking for long" >&5
4797 echo $ECHO_N "checking for long... $ECHO_C" >&6
4798 if test "${ac_cv_type_long+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 $ac_includes_default
4808 int
4809 main ()
4810 {
4811 if ((long *) 0)
4812   return 0;
4813 if (sizeof (long))
4814   return 0;
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821   (eval $ac_compile) 2>conftest.er1
4822   ac_status=$?
4823   grep -v '^ *+' conftest.er1 >conftest.err
4824   rm -f conftest.er1
4825   cat conftest.err >&5
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); } &&
4828          { ac_try='test -z "$ac_c_werror_flag"
4829                          || test ! -s conftest.err'
4830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831   (eval $ac_try) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; } &&
4835          { ac_try='test -s conftest.$ac_objext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   ac_cv_type_long=yes
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_cv_type_long=no
4847 fi
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 fi
4850 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4851 echo "${ECHO_T}$ac_cv_type_long" >&6
4852
4853 echo "$as_me:$LINENO: checking size of long" >&5
4854 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4855 if test "${ac_cv_sizeof_long+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test "$ac_cv_type_long" = yes; then
4859   # The cast to unsigned long works around a bug in the HP C Compiler
4860   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4861   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4862   # This bug is HP SR number 8606223364.
4863   if test "$cross_compiling" = yes; then
4864   # Depending upon the size, compute the lo and hi bounds.
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 $ac_includes_default
4872 int
4873 main ()
4874 {
4875 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4876 test_array [0] = 0
4877
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884   (eval $ac_compile) 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } &&
4891          { ac_try='test -z "$ac_c_werror_flag"
4892                          || test ! -s conftest.err'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; } &&
4898          { ac_try='test -s conftest.$ac_objext'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   ac_lo=0 ac_mid=0
4905   while :; do
4906     cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 $ac_includes_default
4913 int
4914 main ()
4915 {
4916 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4917 test_array [0] = 0
4918
4919   ;
4920   return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925   (eval $ac_compile) 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } &&
4932          { ac_try='test -z "$ac_c_werror_flag"
4933                          || test ! -s conftest.err'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; } &&
4939          { ac_try='test -s conftest.$ac_objext'
4940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941   (eval $ac_try) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; }; then
4945   ac_hi=$ac_mid; break
4946 else
4947   echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 ac_lo=`expr $ac_mid + 1`
4951                     if test $ac_lo -le $ac_mid; then
4952                       ac_lo= ac_hi=
4953                       break
4954                     fi
4955                     ac_mid=`expr 2 '*' $ac_mid + 1`
4956 fi
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958   done
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 $ac_includes_default
4970 int
4971 main ()
4972 {
4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4974 test_array [0] = 0
4975
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982   (eval $ac_compile) 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989          { ac_try='test -z "$ac_c_werror_flag"
4990                          || test ! -s conftest.err'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; } &&
4996          { ac_try='test -s conftest.$ac_objext'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; }; then
5002   ac_hi=-1 ac_mid=-1
5003   while :; do
5004     cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010 $ac_includes_default
5011 int
5012 main ()
5013 {
5014 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5015 test_array [0] = 0
5016
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023   (eval $ac_compile) 2>conftest.er1
5024   ac_status=$?
5025   grep -v '^ *+' conftest.er1 >conftest.err
5026   rm -f conftest.er1
5027   cat conftest.err >&5
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); } &&
5030          { ac_try='test -z "$ac_c_werror_flag"
5031                          || test ! -s conftest.err'
5032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033   (eval $ac_try) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; } &&
5037          { ac_try='test -s conftest.$ac_objext'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; }; then
5043   ac_lo=$ac_mid; break
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ac_hi=`expr '(' $ac_mid ')' - 1`
5049                        if test $ac_mid -le $ac_hi; then
5050                          ac_lo= ac_hi=
5051                          break
5052                        fi
5053                        ac_mid=`expr 2 '*' $ac_mid`
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056   done
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 ac_lo= ac_hi=
5062 fi
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 # Binary search between lo and hi bounds.
5067 while test "x$ac_lo" != "x$ac_hi"; do
5068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5069   cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h.  */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h.  */
5075 $ac_includes_default
5076 int
5077 main ()
5078 {
5079 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5080 test_array [0] = 0
5081
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088   (eval $ac_compile) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -z "$ac_c_werror_flag"
5096                          || test ! -s conftest.err'
5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098   (eval $ac_try) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); }; } &&
5102          { ac_try='test -s conftest.$ac_objext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_hi=$ac_mid
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_lo=`expr '(' $ac_mid ')' + 1`
5114 fi
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 done
5117 case $ac_lo in
5118 ?*) ac_cv_sizeof_long=$ac_lo;;
5119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5120 See \`config.log' for more details." >&5
5121 echo "$as_me: error: cannot compute sizeof (long), 77
5122 See \`config.log' for more details." >&2;}
5123    { (exit 1); exit 1; }; } ;;
5124 esac
5125 else
5126   if test "$cross_compiling" = yes; then
5127   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5128 See \`config.log' for more details." >&5
5129 echo "$as_me: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&2;}
5131    { (exit 1); exit 1; }; }
5132 else
5133   cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139 $ac_includes_default
5140 long longval () { return (long) (sizeof (long)); }
5141 unsigned long ulongval () { return (long) (sizeof (long)); }
5142 #include <stdio.h>
5143 #include <stdlib.h>
5144 int
5145 main ()
5146 {
5147
5148   FILE *f = fopen ("conftest.val", "w");
5149   if (! f)
5150     exit (1);
5151   if (((long) (sizeof (long))) < 0)
5152     {
5153       long i = longval ();
5154       if (i != ((long) (sizeof (long))))
5155         exit (1);
5156       fprintf (f, "%ld\n", i);
5157     }
5158   else
5159     {
5160       unsigned long i = ulongval ();
5161       if (i != ((long) (sizeof (long))))
5162         exit (1);
5163       fprintf (f, "%lu\n", i);
5164     }
5165   exit (ferror (f) || fclose (f) != 0);
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173   (eval $ac_link) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; }; then
5182   ac_cv_sizeof_long=`cat conftest.val`
5183 else
5184   echo "$as_me: program exited with status $ac_status" >&5
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188 ( exit $ac_status )
5189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5190 See \`config.log' for more details." >&5
5191 echo "$as_me: error: cannot compute sizeof (long), 77
5192 See \`config.log' for more details." >&2;}
5193    { (exit 1); exit 1; }; }
5194 fi
5195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5196 fi
5197 fi
5198 rm -f conftest.val
5199 else
5200   ac_cv_sizeof_long=0
5201 fi
5202 fi
5203 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5204 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5205 cat >>confdefs.h <<_ACEOF
5206 #define SIZEOF_LONG $ac_cv_sizeof_long
5207 _ACEOF
5208
5209
5210 if test $ac_cv_c_long_long = yes; then
5211   echo "$as_me:$LINENO: checking for long long" >&5
5212 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5213 if test "${ac_cv_type_long_long+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222 $ac_includes_default
5223 int
5224 main ()
5225 {
5226 if ((long long *) 0)
5227   return 0;
5228 if (sizeof (long long))
5229   return 0;
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236   (eval $ac_compile) 2>conftest.er1
5237   ac_status=$?
5238   grep -v '^ *+' conftest.er1 >conftest.err
5239   rm -f conftest.er1
5240   cat conftest.err >&5
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } &&
5243          { ac_try='test -z "$ac_c_werror_flag"
5244                          || test ! -s conftest.err'
5245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; } &&
5250          { ac_try='test -s conftest.$ac_objext'
5251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252   (eval $ac_try) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }; }; then
5256   ac_cv_type_long_long=yes
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261 ac_cv_type_long_long=no
5262 fi
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5266 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5267
5268 echo "$as_me:$LINENO: checking size of long long" >&5
5269 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5270 if test "${ac_cv_sizeof_long_long+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if test "$ac_cv_type_long_long" = yes; then
5274   # The cast to unsigned long works around a bug in the HP C Compiler
5275   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5276   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5277   # This bug is HP SR number 8606223364.
5278   if test "$cross_compiling" = yes; then
5279   # Depending upon the size, compute the lo and hi bounds.
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 $ac_includes_default
5287 int
5288 main ()
5289 {
5290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5291 test_array [0] = 0
5292
5293   ;
5294   return 0;
5295 }
5296 _ACEOF
5297 rm -f conftest.$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299   (eval $ac_compile) 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } &&
5306          { ac_try='test -z "$ac_c_werror_flag"
5307                          || test ! -s conftest.err'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; } &&
5313          { ac_try='test -s conftest.$ac_objext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_lo=0 ac_mid=0
5320   while :; do
5321     cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 $ac_includes_default
5328 int
5329 main ()
5330 {
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5332 test_array [0] = 0
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340   (eval $ac_compile) 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag"
5348                          || test ! -s conftest.err'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; } &&
5354          { ac_try='test -s conftest.$ac_objext'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; }; then
5360   ac_hi=$ac_mid; break
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_lo=`expr $ac_mid + 1`
5366                     if test $ac_lo -le $ac_mid; then
5367                       ac_lo= ac_hi=
5368                       break
5369                     fi
5370                     ac_mid=`expr 2 '*' $ac_mid + 1`
5371 fi
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373   done
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 int
5386 main ()
5387 {
5388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5389 test_array [0] = 0
5390
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397   (eval $ac_compile) 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
5401   cat conftest.err >&5
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } &&
5404          { ac_try='test -z "$ac_c_werror_flag"
5405                          || test ! -s conftest.err'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; } &&
5411          { ac_try='test -s conftest.$ac_objext'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; }; then
5417   ac_hi=-1 ac_mid=-1
5418   while :; do
5419     cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h.  */
5425 $ac_includes_default
5426 int
5427 main ()
5428 {
5429 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5430 test_array [0] = 0
5431
5432   ;
5433   return 0;
5434 }
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438   (eval $ac_compile) 2>conftest.er1
5439   ac_status=$?
5440   grep -v '^ *+' conftest.er1 >conftest.err
5441   rm -f conftest.er1
5442   cat conftest.err >&5
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } &&
5445          { ac_try='test -z "$ac_c_werror_flag"
5446                          || test ! -s conftest.err'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; } &&
5452          { ac_try='test -s conftest.$ac_objext'
5453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454   (eval $ac_try) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; }; then
5458   ac_lo=$ac_mid; break
5459 else
5460   echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 ac_hi=`expr '(' $ac_mid ')' - 1`
5464                        if test $ac_mid -le $ac_hi; then
5465                          ac_lo= ac_hi=
5466                          break
5467                        fi
5468                        ac_mid=`expr 2 '*' $ac_mid`
5469 fi
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471   done
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_lo= ac_hi=
5477 fi
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 fi
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 # Binary search between lo and hi bounds.
5482 while test "x$ac_lo" != "x$ac_hi"; do
5483   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5484   cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h.  */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h.  */
5490 $ac_includes_default
5491 int
5492 main ()
5493 {
5494 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5495 test_array [0] = 0
5496
5497   ;
5498   return 0;
5499 }
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503   (eval $ac_compile) 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } &&
5510          { ac_try='test -z "$ac_c_werror_flag"
5511                          || test ! -s conftest.err'
5512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513   (eval $ac_try) 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); }; } &&
5517          { ac_try='test -s conftest.$ac_objext'
5518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519   (eval $ac_try) 2>&5
5520   ac_status=$?
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); }; }; then
5523   ac_hi=$ac_mid
5524 else
5525   echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528 ac_lo=`expr '(' $ac_mid ')' + 1`
5529 fi
5530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 done
5532 case $ac_lo in
5533 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&2;}
5538    { (exit 1); exit 1; }; } ;;
5539 esac
5540 else
5541   if test "$cross_compiling" = yes; then
5542   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&2;}
5546    { (exit 1); exit 1; }; }
5547 else
5548   cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h.  */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h.  */
5554 $ac_includes_default
5555 long longval () { return (long) (sizeof (long long)); }
5556 unsigned long ulongval () { return (long) (sizeof (long long)); }
5557 #include <stdio.h>
5558 #include <stdlib.h>
5559 int
5560 main ()
5561 {
5562
5563   FILE *f = fopen ("conftest.val", "w");
5564   if (! f)
5565     exit (1);
5566   if (((long) (sizeof (long long))) < 0)
5567     {
5568       long i = longval ();
5569       if (i != ((long) (sizeof (long long))))
5570         exit (1);
5571       fprintf (f, "%ld\n", i);
5572     }
5573   else
5574     {
5575       unsigned long i = ulongval ();
5576       if (i != ((long) (sizeof (long long))))
5577         exit (1);
5578       fprintf (f, "%lu\n", i);
5579     }
5580   exit (ferror (f) || fclose (f) != 0);
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588   (eval $ac_link) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593   (eval $ac_try) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; }; then
5597   ac_cv_sizeof_long_long=`cat conftest.val`
5598 else
5599   echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 ( exit $ac_status )
5604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5605 See \`config.log' for more details." >&5
5606 echo "$as_me: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5611 fi
5612 fi
5613 rm -f conftest.val
5614 else
5615   ac_cv_sizeof_long_long=0
5616 fi
5617 fi
5618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5619 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5620 cat >>confdefs.h <<_ACEOF
5621 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5622 _ACEOF
5623
5624
5625 fi
5626 if test $ac_cv_c___int64 = yes; then
5627   echo "$as_me:$LINENO: checking for __int64" >&5
5628 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5629 if test "${ac_cv_type___int64+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 $ac_includes_default
5639 int
5640 main ()
5641 {
5642 if ((__int64 *) 0)
5643   return 0;
5644 if (sizeof (__int64))
5645   return 0;
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652   (eval $ac_compile) 2>conftest.er1
5653   ac_status=$?
5654   grep -v '^ *+' conftest.er1 >conftest.err
5655   rm -f conftest.er1
5656   cat conftest.err >&5
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } &&
5659          { ac_try='test -z "$ac_c_werror_flag"
5660                          || test ! -s conftest.err'
5661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662   (eval $ac_try) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; } &&
5666          { ac_try='test -s conftest.$ac_objext'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; }; then
5672   ac_cv_type___int64=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_cv_type___int64=no
5678 fi
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5682 echo "${ECHO_T}$ac_cv_type___int64" >&6
5683
5684 echo "$as_me:$LINENO: checking size of __int64" >&5
5685 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5686 if test "${ac_cv_sizeof___int64+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   if test "$ac_cv_type___int64" = yes; then
5690   # The cast to unsigned long works around a bug in the HP C Compiler
5691   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693   # This bug is HP SR number 8606223364.
5694   if test "$cross_compiling" = yes; then
5695   # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 $ac_includes_default
5703 int
5704 main ()
5705 {
5706 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5707 test_array [0] = 0
5708
5709   ;
5710   return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } &&
5722          { ac_try='test -z "$ac_c_werror_flag"
5723                          || test ! -s conftest.err'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; } &&
5729          { ac_try='test -s conftest.$ac_objext'
5730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731   (eval $ac_try) 2>&5
5732   ac_status=$?
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); }; }; then
5735   ac_lo=0 ac_mid=0
5736   while :; do
5737     cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 $ac_includes_default
5744 int
5745 main ()
5746 {
5747 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5748 test_array [0] = 0
5749
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756   (eval $ac_compile) 2>conftest.er1
5757   ac_status=$?
5758   grep -v '^ *+' conftest.er1 >conftest.err
5759   rm -f conftest.er1
5760   cat conftest.err >&5
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); } &&
5763          { ac_try='test -z "$ac_c_werror_flag"
5764                          || test ! -s conftest.err'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; } &&
5770          { ac_try='test -s conftest.$ac_objext'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   ac_hi=$ac_mid; break
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781 ac_lo=`expr $ac_mid + 1`
5782                     if test $ac_lo -le $ac_mid; then
5783                       ac_lo= ac_hi=
5784                       break
5785                     fi
5786                     ac_mid=`expr 2 '*' $ac_mid + 1`
5787 fi
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789   done
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 $ac_includes_default
5801 int
5802 main ()
5803 {
5804 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5805 test_array [0] = 0
5806
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813   (eval $ac_compile) 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } &&
5820          { ac_try='test -z "$ac_c_werror_flag"
5821                          || test ! -s conftest.err'
5822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823   (eval $ac_try) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }; } &&
5827          { ac_try='test -s conftest.$ac_objext'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_hi=-1 ac_mid=-1
5834   while :; do
5835     cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 $ac_includes_default
5842 int
5843 main ()
5844 {
5845 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5846 test_array [0] = 0
5847
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854   (eval $ac_compile) 2>conftest.er1
5855   ac_status=$?
5856   grep -v '^ *+' conftest.er1 >conftest.err
5857   rm -f conftest.er1
5858   cat conftest.err >&5
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } &&
5861          { ac_try='test -z "$ac_c_werror_flag"
5862                          || test ! -s conftest.err'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; } &&
5868          { ac_try='test -s conftest.$ac_objext'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   ac_lo=$ac_mid; break
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 ac_hi=`expr '(' $ac_mid ')' - 1`
5880                        if test $ac_mid -le $ac_hi; then
5881                          ac_lo= ac_hi=
5882                          break
5883                        fi
5884                        ac_mid=`expr 2 '*' $ac_mid`
5885 fi
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887   done
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_lo= ac_hi=
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 # Binary search between lo and hi bounds.
5898 while test "x$ac_lo" != "x$ac_hi"; do
5899   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5900   cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 $ac_includes_default
5907 int
5908 main ()
5909 {
5910 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5911 test_array [0] = 0
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919   (eval $ac_compile) 2>conftest.er1
5920   ac_status=$?
5921   grep -v '^ *+' conftest.er1 >conftest.err
5922   rm -f conftest.er1
5923   cat conftest.err >&5
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); } &&
5926          { ac_try='test -z "$ac_c_werror_flag"
5927                          || test ! -s conftest.err'
5928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929   (eval $ac_try) 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; } &&
5933          { ac_try='test -s conftest.$ac_objext'
5934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935   (eval $ac_try) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; }; then
5939   ac_hi=$ac_mid
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 ac_lo=`expr '(' $ac_mid ')' + 1`
5945 fi
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 done
5948 case $ac_lo in
5949 ?*) ac_cv_sizeof___int64=$ac_lo;;
5950 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot compute sizeof (__int64), 77
5953 See \`config.log' for more details." >&2;}
5954    { (exit 1); exit 1; }; } ;;
5955 esac
5956 else
5957   if test "$cross_compiling" = yes; then
5958   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot run test program while cross compiling
5961 See \`config.log' for more details." >&2;}
5962    { (exit 1); exit 1; }; }
5963 else
5964   cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 $ac_includes_default
5971 long longval () { return (long) (sizeof (__int64)); }
5972 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5973 #include <stdio.h>
5974 #include <stdlib.h>
5975 int
5976 main ()
5977 {
5978
5979   FILE *f = fopen ("conftest.val", "w");
5980   if (! f)
5981     exit (1);
5982   if (((long) (sizeof (__int64))) < 0)
5983     {
5984       long i = longval ();
5985       if (i != ((long) (sizeof (__int64))))
5986         exit (1);
5987       fprintf (f, "%ld\n", i);
5988     }
5989   else
5990     {
5991       unsigned long i = ulongval ();
5992       if (i != ((long) (sizeof (__int64))))
5993         exit (1);
5994       fprintf (f, "%lu\n", i);
5995     }
5996   exit (ferror (f) || fclose (f) != 0);
5997
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest$ac_exeext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004   (eval $ac_link) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then
6013   ac_cv_sizeof___int64=`cat conftest.val`
6014 else
6015   echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 ( exit $ac_status )
6020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6021 See \`config.log' for more details." >&5
6022 echo "$as_me: error: cannot compute sizeof (__int64), 77
6023 See \`config.log' for more details." >&2;}
6024    { (exit 1); exit 1; }; }
6025 fi
6026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 fi
6029 rm -f conftest.val
6030 else
6031   ac_cv_sizeof___int64=0
6032 fi
6033 fi
6034 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6035 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6036 cat >>confdefs.h <<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6038 _ACEOF
6039
6040
6041 fi
6042
6043 # ---------------------
6044 # Warnings and checking
6045 # ---------------------
6046
6047 # Check $CC warning features (if it's GCC).
6048 # We want to use -pedantic, but we don't want warnings about
6049 # * 'long long'
6050 # * variadic macros
6051 # So, we only use -pedantic if we can disable those warnings.
6052
6053 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6054 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6055 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   save_CFLAGS="$CFLAGS"
6059   CFLAGS="-Wno-long-long"
6060   cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070   (eval $ac_compile) 2>conftest.er1
6071   ac_status=$?
6072   grep -v '^ *+' conftest.er1 >conftest.err
6073   rm -f conftest.er1
6074   cat conftest.err >&5
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); } &&
6077          { ac_try='test -z "$ac_c_werror_flag"
6078                          || test ! -s conftest.err'
6079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080   (eval $ac_try) 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }; } &&
6084          { ac_try='test -s conftest.$ac_objext'
6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086   (eval $ac_try) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_cv_prog_cc_w_no_long_long=yes
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_cv_prog_cc_w_no_long_long=no
6096 fi
6097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098   CFLAGS="$save_CFLAGS"
6099
6100 fi
6101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6102 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6103
6104 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6105 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6106 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   save_CFLAGS="$CFLAGS"
6110   CFLAGS="-Wno-variadic-macros"
6111   cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121   (eval $ac_compile) 2>conftest.er1
6122   ac_status=$?
6123   grep -v '^ *+' conftest.er1 >conftest.err
6124   rm -f conftest.er1
6125   cat conftest.err >&5
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } &&
6128          { ac_try='test -z "$ac_c_werror_flag"
6129                          || test ! -s conftest.err'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; } &&
6135          { ac_try='test -s conftest.$ac_objext'
6136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137   (eval $ac_try) 2>&5
6138   ac_status=$?
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); }; }; then
6141   ac_cv_prog_cc_w_no_variadic_macros=yes
6142 else
6143   echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_cv_prog_cc_w_no_variadic_macros=no
6147 fi
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149   CFLAGS="$save_CFLAGS"
6150
6151 fi
6152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6153 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6154
6155 strict1_warn=
6156 if test $ac_cv_prog_cc_w_no_long_long = yes \
6157    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6158   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6159 fi
6160
6161
6162 # Add -Wold-style-definition if it's accepted
6163 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6164 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6165 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   save_CFLAGS="$CFLAGS"
6169   CFLAGS="-Wold-style-definition"
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176
6177 _ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180   (eval $ac_compile) 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -z "$ac_c_werror_flag"
6188                          || test ! -s conftest.err'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; } &&
6194          { ac_try='test -s conftest.$ac_objext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_prog_cc_w_old_style_definition=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_cv_prog_cc_w_old_style_definition=no
6206 fi
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208   CFLAGS="$save_CFLAGS"
6209
6210 fi
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214   strict1_warn="${strict1_warn} -Wold-style-definition"
6215 fi
6216
6217 # Enable -Werror, period.
6218 # Check whether --enable-werror_always or --disable-werror_always was given.
6219 if test "${enable_werror_always+set}" = set; then
6220   enableval="$enable_werror_always"
6221
6222 else
6223   enable_werror_always=no
6224 fi;
6225 if test x${enable_werror_always} = xyes ; then
6226   strict1_warn="${strict1_warn} -Werror"
6227   WERROR=-Werror
6228 fi
6229
6230 # If the native compiler is GCC, we can enable warnings even in stage1.
6231 # That's useful for people building cross-compilers, or just running a
6232 # quick `make'.
6233 warn_cflags=
6234 if test "x$GCC" = "xyes"; then
6235   warn_cflags='$(GCC_WARN_CFLAGS)'
6236 fi
6237
6238
6239 # Enable -Werror in bootstrap stage2 and later.
6240 is_release=
6241 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6242   is_release=yes
6243 fi
6244 # Check whether --enable-werror or --disable-werror was given.
6245 if test "${enable_werror+set}" = set; then
6246   enableval="$enable_werror"
6247
6248 else
6249   if test x$is_release = x ; then
6250   # Default to "yes" on development branches.
6251   enable_werror=yes
6252 else
6253   # Default to "no" on release branches.
6254   enable_werror=no
6255 fi
6256 fi;
6257 if test x$enable_werror = xyes ; then
6258   WERROR=-Werror
6259 fi
6260
6261
6262 # Enable expensive internal checks
6263 # Check whether --enable-checking or --disable-checking was given.
6264 if test "${enable_checking+set}" = set; then
6265   enableval="$enable_checking"
6266   ac_checking_flags="${enableval}"
6267 else
6268
6269 # Determine the default checks.
6270 if test x$is_release = x ; then
6271   ac_checking_flags=yes
6272 else
6273   ac_checking_flags=release
6274 fi
6275 fi;
6276 ac_assert_checking=1
6277 ac_checking=
6278 ac_tree_checking=
6279 ac_rtl_checking=
6280 ac_rtlflag_checking=
6281 ac_gc_checking=
6282 ac_gc_always_collect=
6283 ac_fold_checking=
6284 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6285 for check in $ac_checking_flags
6286 do
6287         case $check in
6288         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6289                         ac_tree_checking=1 ; ac_gc_checking=1 ;
6290                         ac_rtlflag_checking=1 ;;
6291         no)             ac_assert_checking= ; ac_checking= ;
6292                         ac_tree_checking= ; ac_rtl_checking= ;
6293                         ac_rtlflag_checking= ; ac_gc_checking= ;
6294                         ac_gc_always_collect= ; ac_fold_checking= ;;
6295         all)            ac_assert_checking=1 ; ac_checking=1 ;
6296                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
6297                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6298                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6299         release)        ac_assert_checking=1 ;;
6300         assert)         ac_assert_checking=1 ;;
6301         fold)           ac_fold_checking=1 ;;
6302         gc)             ac_gc_checking=1 ;;
6303         gcac)           ac_gc_always_collect=1 ;;
6304         misc)           ac_checking=1 ;;
6305         rtlflag)        ac_rtlflag_checking=1 ;;
6306         rtl)            ac_rtl_checking=1 ;;
6307         tree)           ac_tree_checking=1 ;;
6308         valgrind)       ac_checking_valgrind=1 ;;
6309         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6310 echo "$as_me: error: unknown check category $check" >&2;}
6311    { (exit 1); exit 1; }; } ;;
6312         esac
6313 done
6314 IFS="$ac_save_IFS"
6315
6316 nocommon_flag=""
6317 if test x$ac_checking != x ; then
6318
6319 cat >>confdefs.h <<\_ACEOF
6320 #define ENABLE_CHECKING 1
6321 _ACEOF
6322
6323   nocommon_flag=-fno-common
6324 fi
6325
6326 if test x$ac_assert_checking != x ; then
6327
6328 cat >>confdefs.h <<\_ACEOF
6329 #define ENABLE_ASSERT_CHECKING 1
6330 _ACEOF
6331
6332 fi
6333 if test x$ac_tree_checking != x ; then
6334
6335 cat >>confdefs.h <<\_ACEOF
6336 #define ENABLE_TREE_CHECKING 1
6337 _ACEOF
6338
6339   TREEBROWSER=tree-browser.o
6340 fi
6341
6342 if test x$ac_rtl_checking != x ; then
6343
6344 cat >>confdefs.h <<\_ACEOF
6345 #define ENABLE_RTL_CHECKING 1
6346 _ACEOF
6347
6348 fi
6349 if test x$ac_rtlflag_checking != x ; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define ENABLE_RTL_FLAG_CHECKING 1
6353 _ACEOF
6354
6355 fi
6356 if test x$ac_gc_checking != x ; then
6357
6358 cat >>confdefs.h <<\_ACEOF
6359 #define ENABLE_GC_CHECKING 1
6360 _ACEOF
6361
6362 fi
6363 if test x$ac_gc_always_collect != x ; then
6364
6365 cat >>confdefs.h <<\_ACEOF
6366 #define ENABLE_GC_ALWAYS_COLLECT 1
6367 _ACEOF
6368
6369 fi
6370 if test x$ac_fold_checking != x ; then
6371
6372 cat >>confdefs.h <<\_ACEOF
6373 #define ENABLE_FOLD_CHECKING 1
6374 _ACEOF
6375
6376 fi
6377 valgrind_path_defines=
6378 valgrind_command=
6379
6380 if test "${ac_cv_header_valgrind_h+set}" = set; then
6381   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6382 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6383 if test "${ac_cv_header_valgrind_h+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 fi
6386 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6387 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6388 else
6389   # Is the header compilable?
6390 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6391 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 $ac_includes_default
6399 #include <valgrind.h>
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403   (eval $ac_compile) 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -z "$ac_c_werror_flag"
6411                          || test ! -s conftest.err'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; } &&
6417          { ac_try='test -s conftest.$ac_objext'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; }; then
6423   ac_header_compiler=yes
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 ac_header_compiler=no
6429 fi
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6
6433
6434 # Is the header present?
6435 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6436 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 #include <valgrind.h>
6444 _ACEOF
6445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6447   ac_status=$?
6448   grep -v '^ *+' conftest.er1 >conftest.err
6449   rm -f conftest.er1
6450   cat conftest.err >&5
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); } >/dev/null; then
6453   if test -s conftest.err; then
6454     ac_cpp_err=$ac_c_preproc_warn_flag
6455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6456   else
6457     ac_cpp_err=
6458   fi
6459 else
6460   ac_cpp_err=yes
6461 fi
6462 if test -z "$ac_cpp_err"; then
6463   ac_header_preproc=yes
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468   ac_header_preproc=no
6469 fi
6470 rm -f conftest.err conftest.$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6
6473
6474 # So?  What about this header?
6475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6476   yes:no: )
6477     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6480 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6481     ac_header_preproc=yes
6482     ;;
6483   no:yes:* )
6484     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6485 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6486     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6487 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6488     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6489 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6491 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6492     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6493 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6495 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6496     (
6497       cat <<\_ASBOX
6498 ## ------------------------------------------ ##
6499 ## Report this to the AC_PACKAGE_NAME lists.  ##
6500 ## ------------------------------------------ ##
6501 _ASBOX
6502     ) |
6503       sed "s/^/$as_me: WARNING:     /" >&2
6504     ;;
6505 esac
6506 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6507 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6508 if test "${ac_cv_header_valgrind_h+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   ac_cv_header_valgrind_h=$ac_header_preproc
6512 fi
6513 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6514 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6515
6516 fi
6517 if test $ac_cv_header_valgrind_h = yes; then
6518   have_valgrind_h=yes
6519 else
6520   have_valgrind_h=no
6521 fi
6522
6523
6524
6525 if test x$ac_checking_valgrind != x ; then
6526   # It is certainly possible that there's valgrind but no valgrind.h.
6527   # GCC relies on making annotations so we must have both.
6528   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6529 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6530   cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 #include <valgrind/memcheck.h>
6537 #ifndef VALGRIND_DISCARD
6538 #error VALGRIND_DISCARD not defined
6539 #endif
6540 _ACEOF
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } >/dev/null; then
6549   if test -s conftest.err; then
6550     ac_cpp_err=$ac_c_preproc_warn_flag
6551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6552   else
6553     ac_cpp_err=
6554   fi
6555 else
6556   ac_cpp_err=yes
6557 fi
6558 if test -z "$ac_cpp_err"; then
6559   gcc_cv_header_valgrind_memcheck_h=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564   gcc_cv_header_valgrind_memcheck_h=no
6565 fi
6566 rm -f conftest.err conftest.$ac_ext
6567   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6568 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6569   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6570 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6571   cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 #include <memcheck.h>
6578 #ifndef VALGRIND_DISCARD
6579 #error VALGRIND_DISCARD not defined
6580 #endif
6581 _ACEOF
6582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } >/dev/null; then
6590   if test -s conftest.err; then
6591     ac_cpp_err=$ac_c_preproc_warn_flag
6592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6593   else
6594     ac_cpp_err=
6595   fi
6596 else
6597   ac_cpp_err=yes
6598 fi
6599 if test -z "$ac_cpp_err"; then
6600   gcc_cv_header_memcheck_h=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605   gcc_cv_header_memcheck_h=no
6606 fi
6607 rm -f conftest.err conftest.$ac_ext
6608   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6609 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6610
6611 # Prepare PATH_SEPARATOR.
6612 # The user is always right.
6613 if test "${PATH_SEPARATOR+set}" != set; then
6614   echo "#! /bin/sh" >conf$$.sh
6615   echo  "exit 0"   >>conf$$.sh
6616   chmod +x conf$$.sh
6617   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6618     PATH_SEPARATOR=';'
6619   else
6620     PATH_SEPARATOR=:
6621   fi
6622   rm -f conf$$.sh
6623 fi
6624
6625 # Find out how to test for executable files. Don't use a zero-byte file,
6626 # as systems may use methods other than mode bits to determine executability.
6627 cat >conf$$.file <<_ASEOF
6628 #! /bin/sh
6629 exit 0
6630 _ASEOF
6631 chmod +x conf$$.file
6632 if test -x conf$$.file >/dev/null 2>&1; then
6633   ac_executable_p="test -x"
6634 else
6635   ac_executable_p="test -f"
6636 fi
6637 rm -f conf$$.file
6638
6639 # Extract the first word of "valgrind", so it can be a program name with args.
6640 set dummy valgrind; ac_word=$2
6641 echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6643 if test "${ac_cv_path_valgrind_path+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   case "$valgrind_path" in
6647   [\\/]* | ?:[\\/]*)
6648     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6649     ;;
6650   *)
6651     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6652     for ac_dir in $PATH; do
6653       IFS="$ac_save_IFS"
6654       test -z "$ac_dir" && ac_dir=.
6655       for ac_exec_ext in '' $ac_executable_extensions; do
6656         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6657           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6658             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6659             break 2
6660           fi
6661         fi
6662       done
6663     done
6664     IFS="$ac_save_IFS"
6665     ;;
6666 esac
6667 fi
6668 valgrind_path="$ac_cv_path_valgrind_path"
6669 if test -n "$valgrind_path"; then
6670   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6671 echo "${ECHO_T}$valgrind_path" >&6
6672 else
6673   echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6
6675 fi
6676
6677   if test "x$valgrind_path" = "x" \
6678     || (test $have_valgrind_h = no \
6679         && test $gcc_cv_header_memcheck_h = no \
6680         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6681         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6682 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6683    { (exit 1); exit 1; }; }
6684   fi
6685   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6686   valgrind_command="$valgrind_path -q"
6687
6688 cat >>confdefs.h <<\_ACEOF
6689 #define ENABLE_VALGRIND_CHECKING 1
6690 _ACEOF
6691
6692   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6693
6694 cat >>confdefs.h <<\_ACEOF
6695 #define HAVE_VALGRIND_MEMCHECK_H 1
6696 _ACEOF
6697
6698   fi
6699   if test $gcc_cv_header_memcheck_h = yes; then
6700
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_MEMCHECK_H 1
6703 _ACEOF
6704
6705   fi
6706 fi
6707
6708
6709
6710 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6711 if test "${enable_mapped_location+set}" = set; then
6712   enableval="$enable_mapped_location"
6713
6714 else
6715   enable_mapped_location=no
6716 fi;
6717
6718 if test "$enable_mapped_location" = yes ; then
6719
6720 cat >>confdefs.h <<\_ACEOF
6721 #define USE_MAPPED_LOCATION 1
6722 _ACEOF
6723
6724 fi
6725
6726 # Enable code coverage collection
6727 # Check whether --enable-coverage or --disable-coverage was given.
6728 if test "${enable_coverage+set}" = set; then
6729   enableval="$enable_coverage"
6730   case "${enableval}" in
6731   yes|noopt)
6732     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6733     ;;
6734   opt)
6735     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6736     ;;
6737   no)
6738     # a.k.a. --disable-coverage
6739     coverage_flags=""
6740     ;;
6741   *)
6742     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6743 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6744    { (exit 1); exit 1; }; }
6745     ;;
6746 esac
6747 else
6748   coverage_flags=""
6749 fi;
6750
6751
6752 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6753 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6754   enableval="$enable_gather_detailed_mem_stats"
6755
6756 else
6757   enable_gather_detailed_mem_stats=no
6758 fi;
6759 if test x$enable_gather_detailed_mem_stats = xyes ; then
6760
6761 cat >>confdefs.h <<\_ACEOF
6762 #define GATHER_STATISTICS 1
6763 _ACEOF
6764
6765 fi
6766
6767 # -------------------------------
6768 # Miscenalleous configure options
6769 # -------------------------------
6770
6771 # With stabs
6772
6773 # Check whether --with-stabs or --without-stabs was given.
6774 if test "${with_stabs+set}" = set; then
6775   withval="$with_stabs"
6776   stabs="$with_stabs"
6777 else
6778   stabs=no
6779 fi;
6780
6781 # Determine whether or not multilibs are enabled.
6782 # Check whether --enable-multilib or --disable-multilib was given.
6783 if test "${enable_multilib+set}" = set; then
6784   enableval="$enable_multilib"
6785
6786 else
6787   enable_multilib=yes
6788 fi;
6789
6790
6791 # Enable __cxa_atexit for C++.
6792 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6793 if test "${enable___cxa_atexit+set}" = set; then
6794   enableval="$enable___cxa_atexit"
6795
6796 fi;
6797
6798 # Enable threads
6799 # Pass with no value to take the default
6800 # Pass with a value to specify a thread package
6801 # Check whether --enable-threads or --disable-threads was given.
6802 if test "${enable_threads+set}" = set; then
6803   enableval="$enable_threads"
6804
6805 else
6806   enable_threads=''
6807 fi;
6808
6809 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6810 if test "${enable_objc_gc+set}" = set; then
6811   enableval="$enable_objc_gc"
6812   if test x$enable_objc_gc = xno; then
6813         objc_boehm_gc=''
6814 else
6815         objc_boehm_gc=1
6816 fi
6817 else
6818   objc_boehm_gc=''
6819 fi;
6820
6821
6822 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6823 if test "${with_dwarf2+set}" = set; then
6824   withval="$with_dwarf2"
6825   dwarf2="$with_dwarf2"
6826 else
6827   dwarf2=no
6828 fi;
6829
6830 # Check whether --enable-shared or --disable-shared was given.
6831 if test "${enable_shared+set}" = set; then
6832   enableval="$enable_shared"
6833
6834   case $enable_shared in
6835   yes | no) ;;
6836   *)
6837     enable_shared=no
6838     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6839     for pkg in $enableval; do
6840       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6841         enable_shared=yes
6842       fi
6843     done
6844     IFS="$ac_save_ifs"
6845     ;;
6846   esac
6847
6848 else
6849   enable_shared=yes
6850 fi;
6851
6852
6853
6854 # Check whether --with-sysroot or --without-sysroot was given.
6855 if test "${with_sysroot+set}" = set; then
6856   withval="$with_sysroot"
6857
6858  case ${with_sysroot} in
6859  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6860  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6861  esac
6862
6863  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6864  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6865
6866  if test "x$exec_prefix" = xNONE; then
6867   if test "x$prefix" = xNONE; then
6868    test_prefix=/usr/local
6869   else
6870    test_prefix=$prefix
6871   fi
6872  else
6873   test_prefix=$exec_prefix
6874  fi
6875  case ${TARGET_SYSTEM_ROOT} in
6876  "${test_prefix}"|"${test_prefix}/"*|\
6877  '${exec_prefix}'|'${exec_prefix}/'*)
6878    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6879    TARGET_SYSTEM_ROOT_DEFINE="$t"
6880    ;;
6881  esac
6882
6883 else
6884
6885  TARGET_SYSTEM_ROOT=
6886  TARGET_SYSTEM_ROOT_DEFINE=
6887  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6888
6889 fi;
6890
6891
6892
6893
6894 # Build with intermodule optimisations
6895 # Check whether --enable-intermodule or --disable-intermodule was given.
6896 if test "${enable_intermodule+set}" = set; then
6897   enableval="$enable_intermodule"
6898   case ${enable_intermodule} in
6899   yes) onestep="-onestep";;
6900   *) onestep="";;
6901 esac
6902 else
6903   onestep=""
6904 fi;
6905
6906
6907 # Sanity check enable_languages in case someone does not run the toplevel
6908 # configure # script.
6909 # Check whether --enable-languages or --disable-languages was given.
6910 if test "${enable_languages+set}" = set; then
6911   enableval="$enable_languages"
6912   case ,${enable_languages}, in
6913        ,,|,yes,)
6914                 # go safe -- we cannot be much sure without the toplevel
6915                 # configure's
6916                 # analysis of which target libs are present and usable
6917                 enable_languages=c
6918                 ;;
6919          *,all,*)
6920                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6921 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6922    { (exit 1); exit 1; }; }
6923                 ;;
6924         *,c,*)
6925                 ;;
6926         *)
6927                 enable_languages=c,${enable_languages}
6928                 ;;
6929 esac
6930 else
6931   enable_languages=c
6932 fi;
6933
6934 subdirs=
6935 for lang in ${srcdir}/*/config-lang.in
6936 do
6937         case $lang in
6938         # The odd quoting in the next line works around
6939         # an apparent bug in bash 1.12 on linux.
6940         ${srcdir}/[*]/config-lang.in) ;;
6941         *)
6942           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6943           if test "x$lang_alias" = x
6944           then
6945                 echo "$lang doesn't set \$language." 1>&2
6946                 exit 1
6947           fi
6948           case ",$enable_languages," in
6949           *,$lang_alias,*)
6950             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6951           esac
6952           ;;
6953         esac
6954 done
6955
6956
6957 # -------------------------
6958 # Checks for other programs
6959 # -------------------------
6960
6961 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6962 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6963 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6964 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.make <<\_ACEOF
6968 all:
6969         @echo 'ac_maketemp="$(MAKE)"'
6970 _ACEOF
6971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6972 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6973 if test -n "$ac_maketemp"; then
6974   eval ac_cv_prog_make_${ac_make}_set=yes
6975 else
6976   eval ac_cv_prog_make_${ac_make}_set=no
6977 fi
6978 rm -f conftest.make
6979 fi
6980 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6981   echo "$as_me:$LINENO: result: yes" >&5
6982 echo "${ECHO_T}yes" >&6
6983   SET_MAKE=
6984 else
6985   echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6987   SET_MAKE="MAKE=${MAKE-make}"
6988 fi
6989
6990
6991 # Find some useful tools
6992 for ac_prog in gawk mawk nawk awk
6993 do
6994   # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy $ac_prog; ac_word=$2
6996 echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998 if test "${ac_cv_prog_AWK+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   if test -n "$AWK"; then
7002   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009   for ac_exec_ext in '' $ac_executable_extensions; do
7010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011     ac_cv_prog_AWK="$ac_prog"
7012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016 done
7017
7018 fi
7019 fi
7020 AWK=$ac_cv_prog_AWK
7021 if test -n "$AWK"; then
7022   echo "$as_me:$LINENO: result: $AWK" >&5
7023 echo "${ECHO_T}$AWK" >&6
7024 else
7025   echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7027 fi
7028
7029   test -n "$AWK" && break
7030 done
7031
7032 # We need awk to create options.c and options.h.
7033 # Bail out if it's missing.
7034 case ${AWK} in
7035   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7036 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7037    { (exit 1); exit 1; }; } ;;
7038 esac
7039
7040 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7041 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7042 if test "${gcc_cv_prog_LN_S+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   rm -f conftestdata_t
7046 echo >conftestdata_f
7047 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7048 then
7049   gcc_cv_prog_LN_S="ln -s"
7050 else
7051   if ln conftestdata_f conftestdata_t 2>/dev/null
7052   then
7053     gcc_cv_prog_LN_S=ln
7054   else
7055     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7056     then
7057       gcc_cv_prog_LN_S="cp -p"
7058     else
7059       gcc_cv_prog_LN_S=cp
7060     fi
7061   fi
7062 fi
7063 rm -f conftestdata_f conftestdata_t
7064
7065 fi
7066 LN_S="$gcc_cv_prog_LN_S"
7067 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7068   echo "$as_me:$LINENO: result: yes" >&5
7069 echo "${ECHO_T}yes" >&6
7070 else
7071   if test "$gcc_cv_prog_LN_S" = "ln"; then
7072     echo "$as_me:$LINENO: result: no, using ln" >&5
7073 echo "${ECHO_T}no, using ln" >&6
7074   else
7075     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7076 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7077   fi
7078 fi
7079
7080 echo "$as_me:$LINENO: checking whether ln works" >&5
7081 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7082 if test "${acx_cv_prog_LN+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   rm -f conftestdata_t
7086 echo >conftestdata_f
7087 if ln conftestdata_f conftestdata_t 2>/dev/null
7088 then
7089   acx_cv_prog_LN=ln
7090 else
7091   acx_cv_prog_LN=no
7092 fi
7093 rm -f conftestdata_f conftestdata_t
7094
7095 fi
7096 if test $acx_cv_prog_LN = no; then
7097   LN="$LN_S"
7098   echo "$as_me:$LINENO: result: no, using $LN" >&5
7099 echo "${ECHO_T}no, using $LN" >&6
7100 else
7101   LN="$acx_cv_prog_LN"
7102   echo "$as_me:$LINENO: result: yes" >&5
7103 echo "${ECHO_T}yes" >&6
7104 fi
7105
7106 if test -n "$ac_tool_prefix"; then
7107   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_RANLIB+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$RANLIB"; then
7115   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131 fi
7132 fi
7133 RANLIB=$ac_cv_prog_RANLIB
7134 if test -n "$RANLIB"; then
7135   echo "$as_me:$LINENO: result: $RANLIB" >&5
7136 echo "${ECHO_T}$RANLIB" >&6
7137 else
7138   echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140 fi
7141
7142 fi
7143 if test -z "$ac_cv_prog_RANLIB"; then
7144   ac_ct_RANLIB=$RANLIB
7145   # Extract the first word of "ranlib", so it can be a program name with args.
7146 set dummy ranlib; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   if test -n "$ac_ct_RANLIB"; then
7153   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_ac_ct_RANLIB="ranlib"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168
7169   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7170 fi
7171 fi
7172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7173 if test -n "$ac_ct_RANLIB"; then
7174   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7175 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7176 else
7177   echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179 fi
7180
7181   RANLIB=$ac_ct_RANLIB
7182 else
7183   RANLIB="$ac_cv_prog_RANLIB"
7184 fi
7185
7186 case "${host}" in
7187 *-*-darwin*)
7188   # By default, the Darwin ranlib will not treat common symbols as
7189   # definitions when  building the archive table of contents.  Other
7190   # ranlibs do that; pass an option to the Darwin ranlib that makes
7191   # it behave similarly.
7192   ranlib_flags="-c"
7193   ;;
7194 *)
7195   ranlib_flags=""
7196 esac
7197
7198
7199 # Find a good install program.  We prefer a C program (faster),
7200 # so one script is as good as another.  But avoid the broken or
7201 # incompatible versions:
7202 # SysV /etc/install, /usr/sbin/install
7203 # SunOS /usr/etc/install
7204 # IRIX /sbin/install
7205 # AIX /bin/install
7206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7208 # ./install, which can be erroneously created by make from ./install.sh.
7209 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7210 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7211 if test -z "$INSTALL"; then
7212 if test "${ac_cv_path_install+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7216   for ac_dir in $PATH; do
7217     # Account for people who put trailing slashes in PATH elements.
7218     case "$ac_dir/" in
7219     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7220     *)
7221       # OSF1 and SCO ODT 3.0 have their own names for install.
7222       for ac_prog in ginstall scoinst install; do
7223         if test -f $ac_dir/$ac_prog; then
7224           if test $ac_prog = install &&
7225             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7226             # AIX install.  It has an incompatible calling convention.
7227             # OSF/1 installbsd also uses dspmsg, but is usable.
7228             :
7229           else
7230             ac_cv_path_install="$ac_dir/$ac_prog -c"
7231             break 2
7232           fi
7233         fi
7234       done
7235       ;;
7236     esac
7237   done
7238   IFS="$ac_save_IFS"
7239
7240 fi
7241   if test "${ac_cv_path_install+set}" = set; then
7242     INSTALL="$ac_cv_path_install"
7243   else
7244     # As a last resort, use the slow shell script.  We don't cache a
7245     # path for INSTALL within a source directory, because that will
7246     # break other packages using the cache if that directory is
7247     # removed, or if the path is relative.
7248     INSTALL="$ac_install_sh"
7249   fi
7250 fi
7251 echo "$as_me:$LINENO: result: $INSTALL" >&5
7252 echo "${ECHO_T}$INSTALL" >&6
7253
7254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7255 # It thinks the first close brace ends the variable substitution.
7256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7257
7258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7259
7260
7261 # See if cmp has --ignore-initial.
7262 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7263 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7264 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267    echo abfoo >t1
7268   echo cdfoo >t2
7269   gcc_cv_prog_cmp_skip=slowcompare
7270   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7271     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7272       :
7273     else
7274       gcc_cv_prog_cmp_skip=gnucompare
7275     fi
7276   fi
7277   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7278     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7279       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7280         :
7281       else
7282         gcc_cv_prog_cmp_skip=fastcompare
7283       fi
7284     fi
7285   fi
7286   rm t1 t2
7287
7288 fi
7289 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7290 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7291 make_compare_target=$gcc_cv_prog_cmp_skip
7292
7293
7294
7295 # See if we have the mktemp command.
7296 # Extract the first word of "mktemp", so it can be a program name with args.
7297 set dummy mktemp; ac_word=$2
7298 echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   if test -n "$have_mktemp_command"; then
7304   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313     ac_cv_prog_have_mktemp_command="yes"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319
7320   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7321 fi
7322 fi
7323 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7324 if test -n "$have_mktemp_command"; then
7325   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7326 echo "${ECHO_T}$have_mktemp_command" >&6
7327 else
7328   echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6
7330 fi
7331
7332
7333 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7334
7335 # See if makeinfo has been installed and is modern enough
7336 # that we can use it.
7337 # Extract the first word of "makeinfo", so it can be a program name with args.
7338 set dummy makeinfo; ac_word=$2
7339 echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   if test -n "$MAKEINFO"; then
7345   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_exec_ext in '' $ac_executable_extensions; do
7353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354     ac_cv_prog_MAKEINFO="makeinfo"
7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359 done
7360
7361 fi
7362 fi
7363 MAKEINFO=$ac_cv_prog_MAKEINFO
7364 if test -n "$MAKEINFO"; then
7365   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7366 echo "${ECHO_T}$MAKEINFO" >&6
7367 else
7368   echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7370 fi
7371
7372 if test -n "$MAKEINFO"; then
7373   # Found it, now check the version.
7374   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7375 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7376 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379     ac_prog_version=`$MAKEINFO --version 2>&1 |
7380                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7381   echo "configure:7381: version of makeinfo is $ac_prog_version" >&5
7382   case $ac_prog_version in
7383     '')     gcc_cv_prog_makeinfo_modern=no;;
7384     4.[2-9]*)
7385             gcc_cv_prog_makeinfo_modern=yes;;
7386     *)      gcc_cv_prog_makeinfo_modern=no;;
7387   esac
7388
7389 fi
7390 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7391 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7392 else
7393   gcc_cv_prog_makeinfo_modern=no
7394 fi
7395
7396 if test $gcc_cv_prog_makeinfo_modern = no; then
7397   MAKEINFO="$MISSING makeinfo"
7398   { echo "$as_me:$LINENO: WARNING:
7399 *** Makeinfo is missing or too old.
7400 *** Info documentation will not be built." >&5
7401 echo "$as_me: WARNING:
7402 *** Makeinfo is missing or too old.
7403 *** Info documentation will not be built." >&2;}
7404   BUILD_INFO=
7405 else
7406   BUILD_INFO=info
7407 fi
7408
7409
7410 # Is pod2man recent enough to regenerate manpages?
7411 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7412 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7413 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7414   echo "$as_me:$LINENO: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7416   GENERATED_MANPAGES=generated-manpages
7417 else
7418   echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7420   GENERATED_MANPAGES=
7421 fi
7422
7423
7424 # How about lex?
7425 for ac_prog in flex
7426 do
7427   # Extract the first word of "$ac_prog", so it can be a program name with args.
7428 set dummy $ac_prog; ac_word=$2
7429 echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7431 if test "${ac_cv_prog_FLEX+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   if test -n "$FLEX"; then
7435   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   for ac_exec_ext in '' $ac_executable_extensions; do
7443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_prog_FLEX="$ac_prog"
7445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449 done
7450
7451 fi
7452 fi
7453 FLEX=$ac_cv_prog_FLEX
7454 if test -n "$FLEX"; then
7455   echo "$as_me:$LINENO: result: $FLEX" >&5
7456 echo "${ECHO_T}$FLEX" >&6
7457 else
7458   echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460 fi
7461
7462   test -n "$FLEX" && break
7463 done
7464 test -n "$FLEX" || FLEX="$MISSING flex"
7465
7466
7467 # Bison?
7468 for ac_prog in bison
7469 do
7470   # Extract the first word of "$ac_prog", so it can be a program name with args.
7471 set dummy $ac_prog; ac_word=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_prog_BISON+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   if test -n "$BISON"; then
7478   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487     ac_cv_prog_BISON="$ac_prog"
7488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493
7494 fi
7495 fi
7496 BISON=$ac_cv_prog_BISON
7497 if test -n "$BISON"; then
7498   echo "$as_me:$LINENO: result: $BISON" >&5
7499 echo "${ECHO_T}$BISON" >&6
7500 else
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505   test -n "$BISON" && break
7506 done
7507 test -n "$BISON" || BISON="$MISSING bison"
7508
7509
7510 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7511 # check for build == host before using them.
7512
7513 # NM
7514 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7515   && test -d ../binutils ; then
7516   NM='$(objdir)/../binutils/nm-new'
7517 else
7518   # Extract the first word of "nm", so it can be a program name with args.
7519 set dummy nm; ac_word=$2
7520 echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7522 if test "${ac_cv_prog_NM+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   if test -n "$NM"; then
7526   ac_cv_prog_NM="$NM" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_prog_NM="nm"
7536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540 done
7541
7542   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7543 fi
7544 fi
7545 NM=$ac_cv_prog_NM
7546 if test -n "$NM"; then
7547   echo "$as_me:$LINENO: result: $NM" >&5
7548 echo "${ECHO_T}$NM" >&6
7549 else
7550   echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7552 fi
7553
7554 fi
7555
7556 # AR
7557 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7558   && test -d ../binutils ; then
7559   AR='$(objdir)/../binutils/ar'
7560 else
7561   # Extract the first word of "ar", so it can be a program name with args.
7562 set dummy ar; ac_word=$2
7563 echo "$as_me:$LINENO: checking for $ac_word" >&5
7564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7565 if test "${ac_cv_prog_AR+set}" = set; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568   if test -n "$AR"; then
7569   ac_cv_prog_AR="$AR" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574   IFS=$as_save_IFS
7575   test -z "$as_dir" && as_dir=.
7576   for ac_exec_ext in '' $ac_executable_extensions; do
7577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578     ac_cv_prog_AR="ar"
7579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580     break 2
7581   fi
7582 done
7583 done
7584
7585   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7586 fi
7587 fi
7588 AR=$ac_cv_prog_AR
7589 if test -n "$AR"; then
7590   echo "$as_me:$LINENO: result: $AR" >&5
7591 echo "${ECHO_T}$AR" >&6
7592 else
7593   echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6
7595 fi
7596
7597 fi
7598
7599
7600 # --------------------
7601 # Checks for C headers
7602 # --------------------
7603
7604 echo "$as_me:$LINENO: checking for GNU C library" >&5
7605 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7606 if test "${gcc_cv_glibc+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 #include <features.h>
7616 int
7617 main ()
7618 {
7619
7620 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7621 #error Not a GNU C library system
7622 #endif
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629   (eval $ac_compile) 2>conftest.er1
7630   ac_status=$?
7631   grep -v '^ *+' conftest.er1 >conftest.err
7632   rm -f conftest.er1
7633   cat conftest.err >&5
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } &&
7636          { ac_try='test -z "$ac_c_werror_flag"
7637                          || test ! -s conftest.err'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; } &&
7643          { ac_try='test -s conftest.$ac_objext'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; }; then
7649   gcc_cv_glibc=yes
7650 else
7651   echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 gcc_cv_glibc=no
7655 fi
7656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7657 fi
7658
7659 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7660 echo "${ECHO_T}$gcc_cv_glibc" >&6
7661 if test $gcc_cv_glibc = yes; then
7662
7663 cat >>confdefs.h <<\_ACEOF
7664 #define _GNU_SOURCE 1
7665 _ACEOF
7666
7667 fi
7668
7669 # Need to reject headers which give warnings, so that the -Werror bootstrap
7670 # works later. *sigh*  This needs to come before all header checks.
7671
7672 ac_c_preproc_warn_flag=yes
7673
7674 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7675 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7676 if test "${ac_cv_header_stdc+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685 #include <stdlib.h>
7686 #include <stdarg.h>
7687 #include <string.h>
7688 #include <float.h>
7689
7690 int
7691 main ()
7692 {
7693
7694   ;
7695   return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700   (eval $ac_compile) 2>conftest.er1
7701   ac_status=$?
7702   grep -v '^ *+' conftest.er1 >conftest.err
7703   rm -f conftest.er1
7704   cat conftest.err >&5
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); } &&
7707          { ac_try='test -z "$ac_c_werror_flag"
7708                          || test ! -s conftest.err'
7709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710   (eval $ac_try) 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; } &&
7714          { ac_try='test -s conftest.$ac_objext'
7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716   (eval $ac_try) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; }; then
7720   ac_cv_header_stdc=yes
7721 else
7722   echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 ac_cv_header_stdc=no
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728
7729 if test $ac_cv_header_stdc = yes; then
7730   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7731   cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737 #include <string.h>
7738
7739 _ACEOF
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741   $EGREP "memchr" >/dev/null 2>&1; then
7742   :
7743 else
7744   ac_cv_header_stdc=no
7745 fi
7746 rm -f conftest*
7747
7748 fi
7749
7750 if test $ac_cv_header_stdc = yes; then
7751   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7752   cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758 #include <stdlib.h>
7759
7760 _ACEOF
7761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7762   $EGREP "free" >/dev/null 2>&1; then
7763   :
7764 else
7765   ac_cv_header_stdc=no
7766 fi
7767 rm -f conftest*
7768
7769 fi
7770
7771 if test $ac_cv_header_stdc = yes; then
7772   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7773   if test "$cross_compiling" = yes; then
7774   :
7775 else
7776   cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h.  */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h.  */
7782 #include <ctype.h>
7783 #if ((' ' & 0x0FF) == 0x020)
7784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7786 #else
7787 # define ISLOWER(c) \
7788                    (('a' <= (c) && (c) <= 'i') \
7789                      || ('j' <= (c) && (c) <= 'r') \
7790                      || ('s' <= (c) && (c) <= 'z'))
7791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7792 #endif
7793
7794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7795 int
7796 main ()
7797 {
7798   int i;
7799   for (i = 0; i < 256; i++)
7800     if (XOR (islower (i), ISLOWER (i))
7801         || toupper (i) != TOUPPER (i))
7802       exit(2);
7803   exit (0);
7804 }
7805 _ACEOF
7806 rm -f conftest$ac_exeext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808   (eval $ac_link) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813   (eval $ac_try) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); }; }; then
7817   :
7818 else
7819   echo "$as_me: program exited with status $ac_status" >&5
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ( exit $ac_status )
7824 ac_cv_header_stdc=no
7825 fi
7826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7827 fi
7828 fi
7829 fi
7830 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7831 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7832 if test $ac_cv_header_stdc = yes; then
7833
7834 cat >>confdefs.h <<\_ACEOF
7835 #define STDC_HEADERS 1
7836 _ACEOF
7837
7838 fi
7839
7840 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7841 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7842 if test "${ac_cv_header_time+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851 #include <sys/types.h>
7852 #include <sys/time.h>
7853 #include <time.h>
7854
7855 int
7856 main ()
7857 {
7858 if ((struct tm *) 0)
7859 return 0;
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866   (eval $ac_compile) 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -z "$ac_c_werror_flag"
7874                          || test ! -s conftest.err'
7875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876   (eval $ac_try) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); }; } &&
7880          { ac_try='test -s conftest.$ac_objext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_cv_header_time=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_cv_header_time=no
7892 fi
7893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7894 fi
7895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7896 echo "${ECHO_T}$ac_cv_header_time" >&6
7897 if test $ac_cv_header_time = yes; then
7898
7899 cat >>confdefs.h <<\_ACEOF
7900 #define TIME_WITH_SYS_TIME 1
7901 _ACEOF
7902
7903 fi
7904
7905 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7906 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7907 if test "${gcc_cv_header_string+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916 #include <string.h>
7917 #include <strings.h>
7918 int
7919 main ()
7920 {
7921
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928   (eval $ac_compile) 2>conftest.er1
7929   ac_status=$?
7930   grep -v '^ *+' conftest.er1 >conftest.err
7931   rm -f conftest.er1
7932   cat conftest.err >&5
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } &&
7935          { ac_try='test -z "$ac_c_werror_flag"
7936                          || test ! -s conftest.err'
7937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938   (eval $ac_try) 2>&5
7939   ac_status=$?
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); }; } &&
7942          { ac_try='test -s conftest.$ac_objext'
7943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944   (eval $ac_try) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; }; then
7948   gcc_cv_header_string=yes
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 gcc_cv_header_string=no
7954 fi
7955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7958 echo "${ECHO_T}$gcc_cv_header_string" >&6
7959 if test $gcc_cv_header_string = yes; then
7960
7961 cat >>confdefs.h <<\_ACEOF
7962 #define STRING_WITH_STRINGS 1
7963 _ACEOF
7964
7965 fi
7966
7967 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7968 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7969 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978 #include <sys/types.h>
7979 #include <sys/wait.h>
7980 #ifndef WEXITSTATUS
7981 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7982 #endif
7983 #ifndef WIFEXITED
7984 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7985 #endif
7986
7987 int
7988 main ()
7989 {
7990   int s;
7991   wait (&s);
7992   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999   (eval $ac_compile) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest.$ac_objext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_cv_header_sys_wait_h=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_cv_header_sys_wait_h=no
8025 fi
8026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8029 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8030 if test $ac_cv_header_sys_wait_h = yes; then
8031
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_SYS_WAIT_H 1
8034 _ACEOF
8035
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8061                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8062                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8063                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8064 do
8065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8066 echo "$as_me:$LINENO: checking for $ac_header" >&5
8067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077 #include <$ac_header>
8078 _ACEOF
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } >/dev/null; then
8087   if test -s conftest.err; then
8088     ac_cpp_err=$ac_c_preproc_warn_flag
8089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8090   else
8091     ac_cpp_err=
8092   fi
8093 else
8094   ac_cpp_err=yes
8095 fi
8096 if test -z "$ac_cpp_err"; then
8097   eval "$as_ac_Header=yes"
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102   eval "$as_ac_Header=no"
8103 fi
8104 rm -f conftest.err conftest.$ac_ext
8105 fi
8106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8109   cat >>confdefs.h <<_ACEOF
8110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8111 _ACEOF
8112
8113 fi
8114 done
8115
8116
8117 # Check for thread headers.
8118 echo "$as_me:$LINENO: checking for thread.h" >&5
8119 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_thread_h+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h.  */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h.  */
8129 #include <thread.h>
8130 _ACEOF
8131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } >/dev/null; then
8139   if test -s conftest.err; then
8140     ac_cpp_err=$ac_c_preproc_warn_flag
8141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8142   else
8143     ac_cpp_err=
8144   fi
8145 else
8146   ac_cpp_err=yes
8147 fi
8148 if test -z "$ac_cpp_err"; then
8149   ac_cv_header_thread_h=yes
8150 else
8151   echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154   ac_cv_header_thread_h=no
8155 fi
8156 rm -f conftest.err conftest.$ac_ext
8157 fi
8158 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8159 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8160 if test $ac_cv_header_thread_h = yes; then
8161   have_thread_h=yes
8162 else
8163   have_thread_h=
8164 fi
8165
8166 echo "$as_me:$LINENO: checking for pthread.h" >&5
8167 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8168 if test "${ac_cv_header_pthread_h+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 #include <pthread.h>
8178 _ACEOF
8179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } >/dev/null; then
8187   if test -s conftest.err; then
8188     ac_cpp_err=$ac_c_preproc_warn_flag
8189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8190   else
8191     ac_cpp_err=
8192   fi
8193 else
8194   ac_cpp_err=yes
8195 fi
8196 if test -z "$ac_cpp_err"; then
8197   ac_cv_header_pthread_h=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202   ac_cv_header_pthread_h=no
8203 fi
8204 rm -f conftest.err conftest.$ac_ext
8205 fi
8206 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8207 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8208 if test $ac_cv_header_pthread_h = yes; then
8209   have_pthread_h=yes
8210 else
8211   have_pthread_h=
8212 fi
8213
8214
8215 # These tests can't be done till we know if we have limits.h.
8216 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8217 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8218 if test "${gcc_cv_decl_char_bit+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 #ifdef HAVE_LIMITS_H
8228 #include <limits.h>
8229 #endif
8230 #ifdef CHAR_BIT
8231 found
8232 #endif
8233 _ACEOF
8234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8235   $EGREP "found" >/dev/null 2>&1; then
8236   gcc_cv_decl_char_bit=yes
8237 else
8238   gcc_cv_decl_char_bit=no
8239 fi
8240 rm -f conftest*
8241
8242
8243 fi
8244 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8245 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8246 if test $gcc_cv_decl_char_bit = no; then
8247   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8248 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8249 if test "${gcc_cv_c_nbby+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   i=8
8253  gcc_cv_c_nbby=
8254  while test $i -lt 65; do
8255    cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261
8262 int
8263 main ()
8264 {
8265 switch(0) {
8266   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8267   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8268   ; }
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275   (eval $ac_compile) 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -z "$ac_c_werror_flag"
8283                          || test ! -s conftest.err'
8284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285   (eval $ac_try) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; } &&
8289          { ac_try='test -s conftest.$ac_objext'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; }; then
8295   gcc_cv_c_nbby=$i; break
8296 else
8297   echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 fi
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302    i=`expr $i + 1`
8303  done
8304  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8305
8306 fi
8307 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8308 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8309 if test $gcc_cv_c_nbby = failed; then
8310   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8311 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8312    { (exit 1); exit 1; }; }
8313 else
8314
8315 cat >>confdefs.h <<_ACEOF
8316 #define CHAR_BIT $gcc_cv_c_nbby
8317 _ACEOF
8318
8319 fi
8320 fi
8321 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8322 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8323 if test "${ac_cv_c_bigendian+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   ac_cv_c_bigendian=unknown
8327 # See if sys/param.h defines the BYTE_ORDER macro.
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 #include <sys/types.h>
8335 #include <sys/param.h>
8336 int
8337 main ()
8338 {
8339
8340 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8341  bogus endian macros
8342 #endif
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349   (eval $ac_compile) 2>conftest.er1
8350   ac_status=$?
8351   grep -v '^ *+' conftest.er1 >conftest.err
8352   rm -f conftest.er1
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -z "$ac_c_werror_flag"
8357                          || test ! -s conftest.err'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; } &&
8363          { ac_try='test -s conftest.$ac_objext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   # It does; now see whether it defined to BIG_ENDIAN or not.
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 #include <sys/types.h>
8377 #include <sys/param.h>
8378 int
8379 main ()
8380 {
8381
8382 #if BYTE_ORDER != BIG_ENDIAN
8383  not big endian
8384 #endif
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391   (eval $ac_compile) 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag"
8399                          || test ! -s conftest.err'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; } &&
8405          { ac_try='test -s conftest.$ac_objext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_c_bigendian=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_c_bigendian=no
8417 fi
8418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 fi
8424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8425 if test $ac_cv_c_bigendian = unknown; then
8426 if test "$cross_compiling" = yes; then
8427    echo $ac_n "cross-compiling... " 2>&6
8428 else
8429   cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435 main () {
8436   /* Are we little or big endian?  From Harbison&Steele.  */
8437   union
8438   {
8439     long l;
8440     char c[sizeof (long)];
8441   } u;
8442   u.l = 1;
8443   exit (u.c[sizeof (long) - 1] == 1);
8444 }
8445 _ACEOF
8446 rm -f conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448   (eval $ac_link) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453   (eval $ac_try) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; }; then
8457   ac_cv_c_bigendian=no
8458 else
8459   echo "$as_me: program exited with status $ac_status" >&5
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ( exit $ac_status )
8464 ac_cv_c_bigendian=yes
8465 fi
8466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 fi
8469 fi
8470 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8471 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8472 if test $ac_cv_c_bigendian = unknown; then
8473 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8474 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8475
8476 cat >conftest.c <<EOF
8477 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8478 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8479 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8480 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8481 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8482 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8483 int main() { _ascii (); _ebcdic (); return 0; }
8484 EOF
8485  if test -f conftest.c ; then
8486      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8487         if test `grep -l BIGenDianSyS conftest.o` ; then
8488            echo $ac_n ' big endian probe OK, ' 1>&6
8489            ac_cv_c_bigendian=yes
8490         fi
8491         if test `grep -l LiTTleEnDian conftest.o` ; then
8492            echo $ac_n ' little endian probe OK, ' 1>&6
8493            if test $ac_cv_c_bigendian = yes ; then
8494             ac_cv_c_bigendian=unknown;
8495            else
8496             ac_cv_c_bigendian=no
8497            fi
8498         fi
8499         echo $ac_n 'guessing bigendian ...  ' >&6
8500      fi
8501   fi
8502 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8503 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8504 fi
8505 if test $ac_cv_c_bigendian = yes; then
8506
8507 cat >>confdefs.h <<\_ACEOF
8508 #define WORDS_BIGENDIAN 1
8509 _ACEOF
8510
8511
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HOST_WORDS_BIG_ENDIAN 1
8514 _ACEOF
8515
8516   BYTEORDER=4321
8517 else
8518   BYTEORDER=1234
8519 fi
8520
8521 cat >>confdefs.h <<_ACEOF
8522 #define BYTEORDER $BYTEORDER
8523 _ACEOF
8524
8525 if test $ac_cv_c_bigendian = unknown; then
8526   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8527 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8528    { (exit 1); exit 1; }; }
8529 fi
8530
8531
8532 # --------
8533 # UNSORTED
8534 # --------
8535
8536 # Stage specific cflags for build.
8537 stage1_cflags=
8538 case $build in
8539 vax-*-*)
8540   if test x$GCC = xyes
8541   then
8542     stage1_cflags="-Wa,-J"
8543   else
8544     stage1_cflags="-J"
8545   fi
8546   ;;
8547 powerpc-*-darwin*)
8548   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8549   # sources; use -no-cpp-precomp to get to GNU cpp.
8550   # Apple's GCC has bugs in designated initializer handling, so disable
8551   # that too.
8552   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8553   ;;
8554 esac
8555
8556
8557 # These libraries may be used by collect2.
8558 # We may need a special search path to get them linked.
8559 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8560 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8561 if test "${gcc_cv_collect2_libs+set}" = set; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   save_LIBS="$LIBS"
8565 for libs in '' -lld -lmld \
8566                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8567                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8568 do
8569         LIBS="$libs"
8570         cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h.  */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h.  */
8576
8577 /* Override any gcc2 internal prototype to avoid an error.  */
8578 #ifdef __cplusplus
8579 extern "C"
8580 #endif
8581 /* We use char because int might match the return type of a gcc2
8582    builtin and then its argument prototype would still apply.  */
8583 char ldopen ();
8584 int
8585 main ()
8586 {
8587 ldopen ();
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594   (eval $ac_link) 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag"
8602                          || test ! -s conftest.err'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; } &&
8608          { ac_try='test -s conftest$ac_exeext'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   gcc_cv_collect2_libs="$libs"; break
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 fi
8620 rm -f conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext conftest.$ac_ext
8622 done
8623 LIBS="$save_LIBS"
8624 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8625 fi
8626 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8627 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8628 case $gcc_cv_collect2_libs in
8629         "none required")        ;;
8630         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8631 esac
8632
8633
8634 # When building Ada code on Alpha, we need exc_resume which is usually in
8635 # -lexc.  So test for it.
8636 save_LIBS="$LIBS"
8637 LIBS=
8638 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8639 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8640 if test "${ac_cv_search_exc_resume+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   ac_func_search_save_LIBS=$LIBS
8644 ac_cv_search_exc_resume=no
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h.  */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h.  */
8651
8652 /* Override any gcc2 internal prototype to avoid an error.  */
8653 #ifdef __cplusplus
8654 extern "C"
8655 #endif
8656 /* We use char because int might match the return type of a gcc2
8657    builtin and then its argument prototype would still apply.  */
8658 char exc_resume ();
8659 int
8660 main ()
8661 {
8662 exc_resume ();
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669   (eval $ac_link) 2>conftest.er1
8670   ac_status=$?
8671   grep -v '^ *+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -z "$ac_c_werror_flag"
8677                          || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest$ac_exeext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   ac_cv_search_exc_resume="none required"
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 fi
8695 rm -f conftest.err conftest.$ac_objext \
8696       conftest$ac_exeext conftest.$ac_ext
8697 if test "$ac_cv_search_exc_resume" = no; then
8698   for ac_lib in exc; do
8699     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8700     cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706
8707 /* Override any gcc2 internal prototype to avoid an error.  */
8708 #ifdef __cplusplus
8709 extern "C"
8710 #endif
8711 /* We use char because int might match the return type of a gcc2
8712    builtin and then its argument prototype would still apply.  */
8713 char exc_resume ();
8714 int
8715 main ()
8716 {
8717 exc_resume ();
8718   ;
8719   return 0;
8720 }
8721 _ACEOF
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724   (eval $ac_link) 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } &&
8731          { ac_try='test -z "$ac_c_werror_flag"
8732                          || test ! -s conftest.err'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; } &&
8738          { ac_try='test -s conftest$ac_exeext'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; }; then
8744   ac_cv_search_exc_resume="-l$ac_lib"
8745 break
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 fi
8751 rm -f conftest.err conftest.$ac_objext \
8752       conftest$ac_exeext conftest.$ac_ext
8753   done
8754 fi
8755 LIBS=$ac_func_search_save_LIBS
8756 fi
8757 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8758 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8759 if test "$ac_cv_search_exc_resume" != no; then
8760   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8761
8762 fi
8763
8764 GNAT_LIBEXC="$LIBS"
8765 LIBS="$save_LIBS"
8766
8767
8768 # Some systems put ldexp and frexp in libm instead of libc; assume
8769 # they're both in the same place.  jcf-dump needs them.
8770 save_LIBS="$LIBS"
8771 LIBS=
8772 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8773 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8774 if test "${ac_cv_search_ldexp+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   ac_func_search_save_LIBS=$LIBS
8778 ac_cv_search_ldexp=no
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785
8786 /* Override any gcc2 internal prototype to avoid an error.  */
8787 #ifdef __cplusplus
8788 extern "C"
8789 #endif
8790 /* We use char because int might match the return type of a gcc2
8791    builtin and then its argument prototype would still apply.  */
8792 char ldexp ();
8793 int
8794 main ()
8795 {
8796 ldexp ();
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803   (eval $ac_link) 2>conftest.er1
8804   ac_status=$?
8805   grep -v '^ *+' conftest.er1 >conftest.err
8806   rm -f conftest.er1
8807   cat conftest.err >&5
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -z "$ac_c_werror_flag"
8811                          || test ! -s conftest.err'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; } &&
8817          { ac_try='test -s conftest$ac_exeext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_cv_search_ldexp="none required"
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 fi
8829 rm -f conftest.err conftest.$ac_objext \
8830       conftest$ac_exeext conftest.$ac_ext
8831 if test "$ac_cv_search_ldexp" = no; then
8832   for ac_lib in m; do
8833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8834     cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840
8841 /* Override any gcc2 internal prototype to avoid an error.  */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 /* We use char because int might match the return type of a gcc2
8846    builtin and then its argument prototype would still apply.  */
8847 char ldexp ();
8848 int
8849 main ()
8850 {
8851 ldexp ();
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858   (eval $ac_link) 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -z "$ac_c_werror_flag"
8866                          || test ! -s conftest.err'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; } &&
8872          { ac_try='test -s conftest$ac_exeext'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; }; then
8878   ac_cv_search_ldexp="-l$ac_lib"
8879 break
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 fi
8885 rm -f conftest.err conftest.$ac_objext \
8886       conftest$ac_exeext conftest.$ac_ext
8887   done
8888 fi
8889 LIBS=$ac_func_search_save_LIBS
8890 fi
8891 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8892 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8893 if test "$ac_cv_search_ldexp" != no; then
8894   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8895
8896 fi
8897
8898 LDEXP_LIB="$LIBS"
8899 LIBS="$save_LIBS"
8900
8901
8902 # Use <inttypes.h> only if it exists,
8903 # doesn't clash with <sys/types.h>, and declares intmax_t.
8904 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8905 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8906 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915 #include <sys/types.h>
8916 #include <inttypes.h>
8917 int
8918 main ()
8919 {
8920 intmax_t i = -1;
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -z "$ac_c_werror_flag"
8935                          || test ! -s conftest.err'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest.$ac_objext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   gcc_cv_header_inttypes_h=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 gcc_cv_header_inttypes_h=no
8953 fi
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 fi
8956
8957 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8958 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8959 if test $gcc_cv_header_inttypes_h = yes; then
8960
8961 cat >>confdefs.h <<\_ACEOF
8962 #define HAVE_INTTYPES_H 1
8963 _ACEOF
8964
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8994         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8995         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8996         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8997         setlocale
8998 do
8999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9000 echo "$as_me:$LINENO: checking for $ac_func" >&5
9001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9002 if eval "test \"\${$as_ac_var+set}\" = set"; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9013 #define $ac_func innocuous_$ac_func
9014
9015 /* System header to define __stub macros and hopefully few prototypes,
9016     which can conflict with char $ac_func (); below.
9017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9018     <limits.h> exists even on freestanding compilers.  */
9019
9020 #ifdef __STDC__
9021 # include <limits.h>
9022 #else
9023 # include <assert.h>
9024 #endif
9025
9026 #undef $ac_func
9027
9028 /* Override any gcc2 internal prototype to avoid an error.  */
9029 #ifdef __cplusplus
9030 extern "C"
9031 {
9032 #endif
9033 /* We use char because int might match the return type of a gcc2
9034    builtin and then its argument prototype would still apply.  */
9035 char $ac_func ();
9036 /* The GNU C library defines this for functions which it implements
9037     to always fail with ENOSYS.  Some functions are actually named
9038     something starting with __ and the normal name is an alias.  */
9039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9040 choke me
9041 #else
9042 char (*f) () = $ac_func;
9043 #endif
9044 #ifdef __cplusplus
9045 }
9046 #endif
9047
9048 int
9049 main ()
9050 {
9051 return f != $ac_func;
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058   (eval $ac_link) 2>conftest.er1
9059   ac_status=$?
9060   grep -v '^ *+' conftest.er1 >conftest.err
9061   rm -f conftest.er1
9062   cat conftest.err >&5
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } &&
9065          { ac_try='test -z "$ac_c_werror_flag"
9066                          || test ! -s conftest.err'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; } &&
9072          { ac_try='test -s conftest$ac_exeext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   eval "$as_ac_var=yes"
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 eval "$as_ac_var=no"
9084 fi
9085 rm -f conftest.err conftest.$ac_objext \
9086       conftest$ac_exeext conftest.$ac_ext
9087 fi
9088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9090 if test `eval echo '${'$as_ac_var'}'` = yes; then
9091   cat >>confdefs.h <<_ACEOF
9092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9093 _ACEOF
9094
9095 fi
9096 done
9097
9098
9099 if test x$ac_cv_func_mbstowcs = xyes; then
9100   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9101 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9102 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105       if test "$cross_compiling" = yes; then
9106   gcc_cv_func_mbstowcs_works=yes
9107 else
9108   cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 #include <stdlib.h>
9115 int main()
9116 {
9117   mbstowcs(0, "", 0);
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123   (eval $ac_link) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   gcc_cv_func_mbstowcs_works=yes
9133 else
9134   echo "$as_me: program exited with status $ac_status" >&5
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ( exit $ac_status )
9139 gcc_cv_func_mbstowcs_works=no
9140 fi
9141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9142 fi
9143 fi
9144 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9145 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9146   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_WORKING_MBSTOWCS 1
9150 _ACEOF
9151
9152   fi
9153 fi
9154
9155 echo "$as_me:$LINENO: checking for ssize_t" >&5
9156 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9157 if test "${ac_cv_type_ssize_t+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166 $ac_includes_default
9167 int
9168 main ()
9169 {
9170 if ((ssize_t *) 0)
9171   return 0;
9172 if (sizeof (ssize_t))
9173   return 0;
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180   (eval $ac_compile) 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } &&
9187          { ac_try='test -z "$ac_c_werror_flag"
9188                          || test ! -s conftest.err'
9189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190   (eval $ac_try) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; } &&
9194          { ac_try='test -s conftest.$ac_objext'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   ac_cv_type_ssize_t=yes
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ac_cv_type_ssize_t=no
9206 fi
9207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9210 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9211 if test $ac_cv_type_ssize_t = yes; then
9212   :
9213 else
9214
9215 cat >>confdefs.h <<_ACEOF
9216 #define ssize_t int
9217 _ACEOF
9218
9219 fi
9220
9221
9222 # Try to determine the array type of the second argument of getgroups
9223 # for the target system (int or gid_t).
9224 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9225 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9226 if test "${ac_cv_type_uid_t+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235 #include <sys/types.h>
9236
9237 _ACEOF
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239   $EGREP "uid_t" >/dev/null 2>&1; then
9240   ac_cv_type_uid_t=yes
9241 else
9242   ac_cv_type_uid_t=no
9243 fi
9244 rm -f conftest*
9245
9246 fi
9247 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9248 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9249 if test $ac_cv_type_uid_t = no; then
9250
9251 cat >>confdefs.h <<\_ACEOF
9252 #define uid_t int
9253 _ACEOF
9254
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define gid_t int
9258 _ACEOF
9259
9260 fi
9261
9262 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9263 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9264 if test "${ac_cv_type_getgroups+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   if test "$cross_compiling" = yes; then
9268   ac_cv_type_getgroups=cross
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276 /* Thanks to Mike Rendell for this test.  */
9277 #include <sys/types.h>
9278 #define NGID 256
9279 #undef MAX
9280 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9281
9282 int
9283 main ()
9284 {
9285   gid_t gidset[NGID];
9286   int i, n;
9287   union { gid_t gval; long lval; }  val;
9288
9289   val.lval = -1;
9290   for (i = 0; i < NGID; i++)
9291     gidset[i] = val.gval;
9292   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9293                  gidset);
9294   /* Exit non-zero if getgroups seems to require an array of ints.  This
9295      happens when gid_t is short but getgroups modifies an array of ints.  */
9296   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9297 }
9298 _ACEOF
9299 rm -f conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301   (eval $ac_link) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310   ac_cv_type_getgroups=gid_t
9311 else
9312   echo "$as_me: program exited with status $ac_status" >&5
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ( exit $ac_status )
9317 ac_cv_type_getgroups=int
9318 fi
9319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9320 fi
9321 if test $ac_cv_type_getgroups = cross; then
9322         cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328 #include <unistd.h>
9329
9330 _ACEOF
9331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9332   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9333   ac_cv_type_getgroups=gid_t
9334 else
9335   ac_cv_type_getgroups=int
9336 fi
9337 rm -f conftest*
9338
9339 fi
9340 fi
9341 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9342 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9343
9344 cat >>confdefs.h <<_ACEOF
9345 #define GETGROUPS_T $ac_cv_type_getgroups
9346 _ACEOF
9347
9348
9349 if test "${target}" = "${build}"; then
9350   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9351 else
9352   case "${target}" in
9353         # This condition may need some tweaking.  It should include all
9354         # targets where the array type of the second argument of getgroups
9355         # is int and the type of gid_t is not equivalent to int.
9356         *-*-sunos* | *-*-ultrix*)
9357                 TARGET_GETGROUPS_T=int
9358                 ;;
9359         *)
9360                 TARGET_GETGROUPS_T=gid_t
9361                 ;;
9362   esac
9363 fi
9364
9365
9366 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9367 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9368 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   if test "$cross_compiling" = yes; then
9372   gcc_cv_func_printf_ptr=no
9373 else
9374   cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380 #include <stdio.h>
9381
9382 int main()
9383 {
9384   char buf[64];
9385   char *p = buf, *q = NULL;
9386   sprintf(buf, "%p", p);
9387   sscanf(buf, "%p", &q);
9388   return (p != q);
9389 }
9390 _ACEOF
9391 rm -f conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   gcc_cv_func_printf_ptr=yes
9403 else
9404   echo "$as_me: program exited with status $ac_status" >&5
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ( exit $ac_status )
9409 gcc_cv_func_printf_ptr=no
9410 fi
9411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9412 fi
9413 rm -f core core.* *.core
9414 fi
9415 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9416 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9417 if test $gcc_cv_func_printf_ptr = yes ; then
9418
9419 cat >>confdefs.h <<\_ACEOF
9420 #define HAVE_PRINTF_PTR 1
9421 _ACEOF
9422
9423 fi
9424
9425
9426 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9427 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9428 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437 #include <sys/mman.h>
9438 _ACEOF
9439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } >/dev/null; then
9447   if test -s conftest.err; then
9448     ac_cpp_err=$ac_c_preproc_warn_flag
9449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9450   else
9451     ac_cpp_err=
9452   fi
9453 else
9454   ac_cpp_err=yes
9455 fi
9456 if test -z "$ac_cpp_err"; then
9457   ac_cv_header_sys_mman_h=yes
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462   ac_cv_header_sys_mman_h=no
9463 fi
9464 rm -f conftest.err conftest.$ac_ext
9465 fi
9466 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9467 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9468 if test $ac_cv_header_sys_mman_h = yes; then
9469   gcc_header_sys_mman_h=yes
9470 else
9471   gcc_header_sys_mman_h=no
9472 fi
9473
9474 echo "$as_me:$LINENO: checking for mmap" >&5
9475 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9476 if test "${ac_cv_func_mmap+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h.  */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h.  */
9485 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9487 #define mmap innocuous_mmap
9488
9489 /* System header to define __stub macros and hopefully few prototypes,
9490     which can conflict with char mmap (); below.
9491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492     <limits.h> exists even on freestanding compilers.  */
9493
9494 #ifdef __STDC__
9495 # include <limits.h>
9496 #else
9497 # include <assert.h>
9498 #endif
9499
9500 #undef mmap
9501
9502 /* Override any gcc2 internal prototype to avoid an error.  */
9503 #ifdef __cplusplus
9504 extern "C"
9505 {
9506 #endif
9507 /* We use char because int might match the return type of a gcc2
9508    builtin and then its argument prototype would still apply.  */
9509 char mmap ();
9510 /* The GNU C library defines this for functions which it implements
9511     to always fail with ENOSYS.  Some functions are actually named
9512     something starting with __ and the normal name is an alias.  */
9513 #if defined (__stub_mmap) || defined (__stub___mmap)
9514 choke me
9515 #else
9516 char (*f) () = mmap;
9517 #endif
9518 #ifdef __cplusplus
9519 }
9520 #endif
9521
9522 int
9523 main ()
9524 {
9525 return f != mmap;
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532   (eval $ac_link) 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -z "$ac_c_werror_flag"
9540                          || test ! -s conftest.err'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest$ac_exeext'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_cv_func_mmap=yes
9553 else
9554   echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_func_mmap=no
9558 fi
9559 rm -f conftest.err conftest.$ac_objext \
9560       conftest$ac_exeext conftest.$ac_ext
9561 fi
9562 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9563 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9564 if test $ac_cv_func_mmap = yes; then
9565   gcc_func_mmap=yes
9566 else
9567   gcc_func_mmap=no
9568 fi
9569
9570 if test "$gcc_header_sys_mman_h" != yes \
9571  || test "$gcc_func_mmap" != yes; then
9572    gcc_cv_func_mmap_file=no
9573    gcc_cv_func_mmap_dev_zero=no
9574    gcc_cv_func_mmap_anon=no
9575 else
9576    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9577 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9578 if test "${gcc_cv_func_mmap_file+set}" = set; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   # Add a system to this blacklist if
9582    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9583    # memory area containing the same data that you'd get if you applied
9584    # read() to the same fd.  The only system known to have a problem here
9585    # is VMS, where text files have record structure.
9586    case "$host_os" in
9587      vms* | ultrix*)
9588         gcc_cv_func_mmap_file=no ;;
9589      *)
9590         gcc_cv_func_mmap_file=yes;;
9591    esac
9592 fi
9593 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9594 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9595    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9596 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9597 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   # Add a system to this blacklist if it has mmap() but /dev/zero
9601    # does not exist, or if mmapping /dev/zero does not give anonymous
9602    # zeroed pages with both the following properties:
9603    # 1. If you map N consecutive pages in with one call, and then
9604    #    unmap any subset of those pages, the pages that were not
9605    #    explicitly unmapped remain accessible.
9606    # 2. If you map two adjacent blocks of memory and then unmap them
9607    #    both at once, they must both go away.
9608    # Systems known to be in this category are Windows (all variants),
9609    # VMS, and Darwin.
9610    case "$host_os" in
9611      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9612         gcc_cv_func_mmap_dev_zero=no ;;
9613      *)
9614         gcc_cv_func_mmap_dev_zero=yes;;
9615    esac
9616 fi
9617 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9618 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9619
9620    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9621    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9622 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9623 if test "${gcc_cv_decl_map_anon+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632 #include <sys/types.h>
9633 #include <sys/mman.h>
9634 #include <unistd.h>
9635
9636 #ifndef MAP_ANONYMOUS
9637 #define MAP_ANONYMOUS MAP_ANON
9638 #endif
9639
9640 int
9641 main ()
9642 {
9643 int n = MAP_ANONYMOUS;
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650   (eval $ac_compile) 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } &&
9657          { ac_try='test -z "$ac_c_werror_flag"
9658                          || test ! -s conftest.err'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; } &&
9664          { ac_try='test -s conftest.$ac_objext'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; }; then
9670   gcc_cv_decl_map_anon=yes
9671 else
9672   echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 gcc_cv_decl_map_anon=no
9676 fi
9677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 fi
9679 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9680 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9681
9682    if test $gcc_cv_decl_map_anon = no; then
9683      gcc_cv_func_mmap_anon=no
9684    else
9685      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9686 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9687 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9691    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9692    # doesn't give anonymous zeroed pages with the same properties listed
9693    # above for use of /dev/zero.
9694    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9695    case "$host_os" in
9696      vms* | cygwin* | pe | mingw* | sco* | udk* )
9697         gcc_cv_func_mmap_anon=no ;;
9698      *)
9699         gcc_cv_func_mmap_anon=yes;;
9700    esac
9701 fi
9702 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9703 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9704    fi
9705 fi
9706
9707 if test $gcc_cv_func_mmap_file = yes; then
9708
9709 cat >>confdefs.h <<\_ACEOF
9710 #define HAVE_MMAP_FILE 1
9711 _ACEOF
9712
9713 fi
9714 if test $gcc_cv_func_mmap_dev_zero = yes; then
9715
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_MMAP_DEV_ZERO 1
9718 _ACEOF
9719
9720 fi
9721 if test $gcc_cv_func_mmap_anon = yes; then
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_MMAP_ANON 1
9725 _ACEOF
9726
9727 fi
9728
9729
9730 case "${host}" in
9731 *-*-*vms*)
9732   # Under VMS, vfork works very differently than on Unix. The standard test
9733   # won't work, and it isn't easily adaptable. It makes more sense to
9734   # just force it.
9735   ac_cv_func_vfork_works=yes
9736   ;;
9737 esac
9738 echo "$as_me:$LINENO: checking for pid_t" >&5
9739 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9740 if test "${ac_cv_type_pid_t+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749 $ac_includes_default
9750 int
9751 main ()
9752 {
9753 if ((pid_t *) 0)
9754   return 0;
9755 if (sizeof (pid_t))
9756   return 0;
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9763   (eval $ac_compile) 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
9767   cat conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } &&
9770          { ac_try='test -z "$ac_c_werror_flag"
9771                          || test ! -s conftest.err'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; } &&
9777          { ac_try='test -s conftest.$ac_objext'
9778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779   (eval $ac_try) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; }; then
9783   ac_cv_type_pid_t=yes
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 ac_cv_type_pid_t=no
9789 fi
9790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9791 fi
9792 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9793 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9794 if test $ac_cv_type_pid_t = yes; then
9795   :
9796 else
9797
9798 cat >>confdefs.h <<_ACEOF
9799 #define pid_t int
9800 _ACEOF
9801
9802 fi
9803
9804
9805
9806 for ac_header in unistd.h vfork.h
9807 do
9808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9809 echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 #include <$ac_header>
9821 _ACEOF
9822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } >/dev/null; then
9830   if test -s conftest.err; then
9831     ac_cpp_err=$ac_c_preproc_warn_flag
9832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9833   else
9834     ac_cpp_err=
9835   fi
9836 else
9837   ac_cpp_err=yes
9838 fi
9839 if test -z "$ac_cpp_err"; then
9840   eval "$as_ac_Header=yes"
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845   eval "$as_ac_Header=no"
9846 fi
9847 rm -f conftest.err conftest.$ac_ext
9848 fi
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9852   cat >>confdefs.h <<_ACEOF
9853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9854 _ACEOF
9855
9856 fi
9857 done
9858
9859
9860
9861 for ac_func in fork vfork
9862 do
9863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h.  */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h.  */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9877 #define $ac_func innocuous_$ac_func
9878
9879 /* System header to define __stub macros and hopefully few prototypes,
9880     which can conflict with char $ac_func (); below.
9881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882     <limits.h> exists even on freestanding compilers.  */
9883
9884 #ifdef __STDC__
9885 # include <limits.h>
9886 #else
9887 # include <assert.h>
9888 #endif
9889
9890 #undef $ac_func
9891
9892 /* Override any gcc2 internal prototype to avoid an error.  */
9893 #ifdef __cplusplus
9894 extern "C"
9895 {
9896 #endif
9897 /* We use char because int might match the return type of a gcc2
9898    builtin and then its argument prototype would still apply.  */
9899 char $ac_func ();
9900 /* The GNU C library defines this for functions which it implements
9901     to always fail with ENOSYS.  Some functions are actually named
9902     something starting with __ and the normal name is an alias.  */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9904 choke me
9905 #else
9906 char (*f) () = $ac_func;
9907 #endif
9908 #ifdef __cplusplus
9909 }
9910 #endif
9911
9912 int
9913 main ()
9914 {
9915 return f != $ac_func;
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922   (eval $ac_link) 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -z "$ac_c_werror_flag"
9930                          || test ! -s conftest.err'
9931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932   (eval $ac_try) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; } &&
9936          { ac_try='test -s conftest$ac_exeext'
9937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938   (eval $ac_try) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; }; then
9942   eval "$as_ac_var=yes"
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947 eval "$as_ac_var=no"
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950       conftest$ac_exeext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955   cat >>confdefs.h <<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9957 _ACEOF
9958
9959 fi
9960 done
9961
9962 if test "x$ac_cv_func_fork" = xyes; then
9963   echo "$as_me:$LINENO: checking for working fork" >&5
9964 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9965 if test "${ac_cv_func_fork_works+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   if test "$cross_compiling" = yes; then
9969   ac_cv_func_fork_works=cross
9970 else
9971   cat >conftest.$ac_ext <<_ACEOF
9972 /* By Ruediger Kuhlmann. */
9973       #include <sys/types.h>
9974       #if HAVE_UNISTD_H
9975       # include <unistd.h>
9976       #endif
9977       /* Some systems only have a dummy stub for fork() */
9978       int main ()
9979       {
9980         if (fork() < 0)
9981           exit (1);
9982         exit (0);
9983       }
9984 _ACEOF
9985 rm -f conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987   (eval $ac_link) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; }; then
9996   ac_cv_func_fork_works=yes
9997 else
9998   echo "$as_me: program exited with status $ac_status" >&5
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ( exit $ac_status )
10003 ac_cv_func_fork_works=no
10004 fi
10005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10006 fi
10007 fi
10008 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10009 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10010
10011 else
10012   ac_cv_func_fork_works=$ac_cv_func_fork
10013 fi
10014 if test "x$ac_cv_func_fork_works" = xcross; then
10015   case $host in
10016     *-*-amigaos* | *-*-msdosdjgpp*)
10017       # Override, as these systems have only a dummy fork() stub
10018       ac_cv_func_fork_works=no
10019       ;;
10020     *)
10021       ac_cv_func_fork_works=yes
10022       ;;
10023   esac
10024   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10025 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10026 fi
10027 ac_cv_func_vfork_works=$ac_cv_func_vfork
10028 if test "x$ac_cv_func_vfork" = xyes; then
10029   echo "$as_me:$LINENO: checking for working vfork" >&5
10030 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10031 if test "${ac_cv_func_vfork_works+set}" = set; then
10032   echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034   if test "$cross_compiling" = yes; then
10035   ac_cv_func_vfork_works=cross
10036 else
10037   cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h.  */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h.  */
10043 /* Thanks to Paul Eggert for this test.  */
10044 #include <stdio.h>
10045 #include <stdlib.h>
10046 #include <sys/types.h>
10047 #include <sys/stat.h>
10048 #include <sys/wait.h>
10049 #if HAVE_UNISTD_H
10050 # include <unistd.h>
10051 #endif
10052 #if HAVE_VFORK_H
10053 # include <vfork.h>
10054 #endif
10055 /* On some sparc systems, changes by the child to local and incoming
10056    argument registers are propagated back to the parent.  The compiler
10057    is told about this with #include <vfork.h>, but some compilers
10058    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10059    static variable whose address is put into a register that is
10060    clobbered by the vfork.  */
10061 static void
10062 #ifdef __cplusplus
10063 sparc_address_test (int arg)
10064 # else
10065 sparc_address_test (arg) int arg;
10066 #endif
10067 {
10068   static pid_t child;
10069   if (!child) {
10070     child = vfork ();
10071     if (child < 0) {
10072       perror ("vfork");
10073       _exit(2);
10074     }
10075     if (!child) {
10076       arg = getpid();
10077       write(-1, "", 0);
10078       _exit (arg);
10079     }
10080   }
10081 }
10082
10083 int
10084 main ()
10085 {
10086   pid_t parent = getpid ();
10087   pid_t child;
10088
10089   sparc_address_test (0);
10090
10091   child = vfork ();
10092
10093   if (child == 0) {
10094     /* Here is another test for sparc vfork register problems.  This
10095        test uses lots of local variables, at least as many local
10096        variables as main has allocated so far including compiler
10097        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10098        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10099        reuse the register of parent for one of the local variables,
10100        since it will think that parent can't possibly be used any more
10101        in this routine.  Assigning to the local variable will thus
10102        munge parent in the parent process.  */
10103     pid_t
10104       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10105       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10106     /* Convince the compiler that p..p7 are live; otherwise, it might
10107        use the same hardware register for all 8 local variables.  */
10108     if (p != p1 || p != p2 || p != p3 || p != p4
10109         || p != p5 || p != p6 || p != p7)
10110       _exit(1);
10111
10112     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10113        from child file descriptors.  If the child closes a descriptor
10114        before it execs or exits, this munges the parent's descriptor
10115        as well.  Test for this by closing stdout in the child.  */
10116     _exit(close(fileno(stdout)) != 0);
10117   } else {
10118     int status;
10119     struct stat st;
10120
10121     while (wait(&status) != child)
10122       ;
10123     exit(
10124          /* Was there some problem with vforking?  */
10125          child < 0
10126
10127          /* Did the child fail?  (This shouldn't happen.)  */
10128          || status
10129
10130          /* Did the vfork/compiler bug occur?  */
10131          || parent != getpid()
10132
10133          /* Did the file descriptor bug occur?  */
10134          || fstat(fileno(stdout), &st) != 0
10135          );
10136   }
10137 }
10138 _ACEOF
10139 rm -f conftest$ac_exeext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141   (eval $ac_link) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150   ac_cv_func_vfork_works=yes
10151 else
10152   echo "$as_me: program exited with status $ac_status" >&5
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ( exit $ac_status )
10157 ac_cv_func_vfork_works=no
10158 fi
10159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10160 fi
10161 fi
10162 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10163 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10164
10165 fi;
10166 if test "x$ac_cv_func_fork_works" = xcross; then
10167   ac_cv_func_vfork_works=$ac_cv_func_vfork
10168   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10169 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10170 fi
10171
10172 if test "x$ac_cv_func_vfork_works" = xyes; then
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_WORKING_VFORK 1
10176 _ACEOF
10177
10178 else
10179
10180 cat >>confdefs.h <<\_ACEOF
10181 #define vfork fork
10182 _ACEOF
10183
10184 fi
10185 if test "x$ac_cv_func_fork_works" = xyes; then
10186
10187 cat >>confdefs.h <<\_ACEOF
10188 #define HAVE_WORKING_FORK 1
10189 _ACEOF
10190
10191 fi
10192
10193
10194
10195       if test "X$prefix" = "XNONE"; then
10196     acl_final_prefix="$ac_default_prefix"
10197   else
10198     acl_final_prefix="$prefix"
10199   fi
10200   if test "X$exec_prefix" = "XNONE"; then
10201     acl_final_exec_prefix='${prefix}'
10202   else
10203     acl_final_exec_prefix="$exec_prefix"
10204   fi
10205   acl_save_prefix="$prefix"
10206   prefix="$acl_final_prefix"
10207   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10208   prefix="$acl_save_prefix"
10209
10210
10211 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10212 if test "${with_gnu_ld+set}" = set; then
10213   withval="$with_gnu_ld"
10214   test "$withval" = no || with_gnu_ld=yes
10215 else
10216   with_gnu_ld=no
10217 fi;
10218 # Prepare PATH_SEPARATOR.
10219 # The user is always right.
10220 if test "${PATH_SEPARATOR+set}" != set; then
10221   echo "#! /bin/sh" >conf$$.sh
10222   echo  "exit 0"   >>conf$$.sh
10223   chmod +x conf$$.sh
10224   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10225     PATH_SEPARATOR=';'
10226   else
10227     PATH_SEPARATOR=:
10228   fi
10229   rm -f conf$$.sh
10230 fi
10231 ac_prog=ld
10232 if test "$GCC" = yes; then
10233   # Check if gcc -print-prog-name=ld gives a path.
10234   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10235 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10236   case $host in
10237   *-*-mingw*)
10238     # gcc leaves a trailing carriage return which upsets mingw
10239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10240   *)
10241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10242   esac
10243   case $ac_prog in
10244     # Accept absolute paths.
10245     [\\/]* | [A-Za-z]:[\\/]*)
10246       re_direlt='/[^/][^/]*/\.\./'
10247       # Canonicalize the path of ld
10248       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10249       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10250         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10251       done
10252       test -z "$LD" && LD="$ac_prog"
10253       ;;
10254   "")
10255     # If it fails, then pretend we aren't using GCC.
10256     ac_prog=ld
10257     ;;
10258   *)
10259     # If it is relative, then search for the first ld in PATH.
10260     with_gnu_ld=unknown
10261     ;;
10262   esac
10263 elif test "$with_gnu_ld" = yes; then
10264   echo "$as_me:$LINENO: checking for GNU ld" >&5
10265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10266 else
10267   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10269 fi
10270 if test "${acl_cv_path_LD+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   if test -z "$LD"; then
10274   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10275   for ac_dir in $PATH; do
10276     test -z "$ac_dir" && ac_dir=.
10277     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10278       acl_cv_path_LD="$ac_dir/$ac_prog"
10279       # Check to see if the program is GNU ld.  I'd rather use --version,
10280       # but apparently some GNU ld's only accept -v.
10281       # Break only if it was the GNU/non-GNU ld that we prefer.
10282       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10283         test "$with_gnu_ld" != no && break
10284       else
10285         test "$with_gnu_ld" != yes && break
10286       fi
10287     fi
10288   done
10289   IFS="$ac_save_ifs"
10290 else
10291   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10292 fi
10293 fi
10294
10295 LD="$acl_cv_path_LD"
10296 if test -n "$LD"; then
10297   echo "$as_me:$LINENO: result: $LD" >&5
10298 echo "${ECHO_T}$LD" >&6
10299 else
10300   echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6
10302 fi
10303 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10304 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10305    { (exit 1); exit 1; }; }
10306 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10307 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10308 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10312 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10313   acl_cv_prog_gnu_ld=yes
10314 else
10315   acl_cv_prog_gnu_ld=no
10316 fi
10317 fi
10318 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10319 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10320 with_gnu_ld=$acl_cv_prog_gnu_ld
10321
10322
10323
10324                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10325 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10326 if test "${acl_cv_rpath+set}" = set; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329
10330     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10331     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10332     . ./conftest.sh
10333     rm -f ./conftest.sh
10334     acl_cv_rpath=done
10335
10336 fi
10337 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10338 echo "${ECHO_T}$acl_cv_rpath" >&6
10339   wl="$acl_cv_wl"
10340   libext="$acl_cv_libext"
10341   shlibext="$acl_cv_shlibext"
10342   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10343   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10344   hardcode_direct="$acl_cv_hardcode_direct"
10345   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10346     # Check whether --enable-rpath or --disable-rpath was given.
10347 if test "${enable_rpath+set}" = set; then
10348   enableval="$enable_rpath"
10349   :
10350 else
10351   enable_rpath=yes
10352 fi;
10353
10354
10355
10356
10357
10358
10359
10360     use_additional=yes
10361
10362   acl_save_prefix="$prefix"
10363   prefix="$acl_final_prefix"
10364   acl_save_exec_prefix="$exec_prefix"
10365   exec_prefix="$acl_final_exec_prefix"
10366
10367     eval additional_includedir=\"$includedir\"
10368     eval additional_libdir=\"$libdir\"
10369
10370   exec_prefix="$acl_save_exec_prefix"
10371   prefix="$acl_save_prefix"
10372
10373
10374 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10375 if test "${with_libiconv_prefix+set}" = set; then
10376   withval="$with_libiconv_prefix"
10377
10378     if test "X$withval" = "Xno"; then
10379       use_additional=no
10380     else
10381       if test "X$withval" = "X"; then
10382
10383   acl_save_prefix="$prefix"
10384   prefix="$acl_final_prefix"
10385   acl_save_exec_prefix="$exec_prefix"
10386   exec_prefix="$acl_final_exec_prefix"
10387
10388           eval additional_includedir=\"$includedir\"
10389           eval additional_libdir=\"$libdir\"
10390
10391   exec_prefix="$acl_save_exec_prefix"
10392   prefix="$acl_save_prefix"
10393
10394       else
10395         additional_includedir="$withval/include"
10396         additional_libdir="$withval/lib"
10397       fi
10398     fi
10399
10400 fi;
10401       LIBICONV=
10402   LTLIBICONV=
10403   INCICONV=
10404   rpathdirs=
10405   ltrpathdirs=
10406   names_already_handled=
10407   names_next_round='iconv '
10408   while test -n "$names_next_round"; do
10409     names_this_round="$names_next_round"
10410     names_next_round=
10411     for name in $names_this_round; do
10412       already_handled=
10413       for n in $names_already_handled; do
10414         if test "$n" = "$name"; then
10415           already_handled=yes
10416           break
10417         fi
10418       done
10419       if test -z "$already_handled"; then
10420         names_already_handled="$names_already_handled $name"
10421                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10422         eval value=\"\$HAVE_LIB$uppername\"
10423         if test -n "$value"; then
10424           if test "$value" = yes; then
10425             eval value=\"\$LIB$uppername\"
10426             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10427             eval value=\"\$LTLIB$uppername\"
10428             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10429           else
10430                                     :
10431           fi
10432         else
10433                               found_dir=
10434           found_la=
10435           found_so=
10436           found_a=
10437           if test $use_additional = yes; then
10438             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10439               found_dir="$additional_libdir"
10440               found_so="$additional_libdir/lib$name.$shlibext"
10441               if test -f "$additional_libdir/lib$name.la"; then
10442                 found_la="$additional_libdir/lib$name.la"
10443               fi
10444             else
10445               if test -f "$additional_libdir/lib$name.$libext"; then
10446                 found_dir="$additional_libdir"
10447                 found_a="$additional_libdir/lib$name.$libext"
10448                 if test -f "$additional_libdir/lib$name.la"; then
10449                   found_la="$additional_libdir/lib$name.la"
10450                 fi
10451               fi
10452             fi
10453           fi
10454           if test "X$found_dir" = "X"; then
10455             for x in $LDFLAGS $LTLIBICONV; do
10456
10457   acl_save_prefix="$prefix"
10458   prefix="$acl_final_prefix"
10459   acl_save_exec_prefix="$exec_prefix"
10460   exec_prefix="$acl_final_exec_prefix"
10461   eval x=\"$x\"
10462   exec_prefix="$acl_save_exec_prefix"
10463   prefix="$acl_save_prefix"
10464
10465               case "$x" in
10466                 -L*)
10467                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10468                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10469                     found_dir="$dir"
10470                     found_so="$dir/lib$name.$shlibext"
10471                     if test -f "$dir/lib$name.la"; then
10472                       found_la="$dir/lib$name.la"
10473                     fi
10474                   else
10475                     if test -f "$dir/lib$name.$libext"; then
10476                       found_dir="$dir"
10477                       found_a="$dir/lib$name.$libext"
10478                       if test -f "$dir/lib$name.la"; then
10479                         found_la="$dir/lib$name.la"
10480                       fi
10481                     fi
10482                   fi
10483                   ;;
10484               esac
10485               if test "X$found_dir" != "X"; then
10486                 break
10487               fi
10488             done
10489           fi
10490           if test "X$found_dir" != "X"; then
10491                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10492             if test "X$found_so" != "X"; then
10493                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10494                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10495               else
10496                                                                                 haveit=
10497                 for x in $ltrpathdirs; do
10498                   if test "X$x" = "X$found_dir"; then
10499                     haveit=yes
10500                     break
10501                   fi
10502                 done
10503                 if test -z "$haveit"; then
10504                   ltrpathdirs="$ltrpathdirs $found_dir"
10505                 fi
10506                                 if test "$hardcode_direct" = yes; then
10507                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10508                 else
10509                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10510                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10511                                                             haveit=
10512                     for x in $rpathdirs; do
10513                       if test "X$x" = "X$found_dir"; then
10514                         haveit=yes
10515                         break
10516                       fi
10517                     done
10518                     if test -z "$haveit"; then
10519                       rpathdirs="$rpathdirs $found_dir"
10520                     fi
10521                   else
10522                                                                                 haveit=
10523                     for x in $LDFLAGS $LIBICONV; do
10524
10525   acl_save_prefix="$prefix"
10526   prefix="$acl_final_prefix"
10527   acl_save_exec_prefix="$exec_prefix"
10528   exec_prefix="$acl_final_exec_prefix"
10529   eval x=\"$x\"
10530   exec_prefix="$acl_save_exec_prefix"
10531   prefix="$acl_save_prefix"
10532
10533                       if test "X$x" = "X-L$found_dir"; then
10534                         haveit=yes
10535                         break
10536                       fi
10537                     done
10538                     if test -z "$haveit"; then
10539                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10540                     fi
10541                     if test "$hardcode_minus_L" != no; then
10542                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10543                     else
10544                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10545                     fi
10546                   fi
10547                 fi
10548               fi
10549             else
10550               if test "X$found_a" != "X"; then
10551                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10552               else
10553                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10554               fi
10555             fi
10556                         additional_includedir=
10557             case "$found_dir" in
10558               */lib | */lib/)
10559                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10560                 additional_includedir="$basedir/include"
10561                 ;;
10562             esac
10563             if test "X$additional_includedir" != "X"; then
10564                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10565                 haveit=
10566                 if test "X$additional_includedir" = "X/usr/local/include"; then
10567                   if test -n "$GCC"; then
10568                     case $host_os in
10569                       linux*) haveit=yes;;
10570                     esac
10571                   fi
10572                 fi
10573                 if test -z "$haveit"; then
10574                   for x in $CPPFLAGS $INCICONV; do
10575
10576   acl_save_prefix="$prefix"
10577   prefix="$acl_final_prefix"
10578   acl_save_exec_prefix="$exec_prefix"
10579   exec_prefix="$acl_final_exec_prefix"
10580   eval x=\"$x\"
10581   exec_prefix="$acl_save_exec_prefix"
10582   prefix="$acl_save_prefix"
10583
10584                     if test "X$x" = "X-I$additional_includedir"; then
10585                       haveit=yes
10586                       break
10587                     fi
10588                   done
10589                   if test -z "$haveit"; then
10590                     if test -d "$additional_includedir"; then
10591                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10592                     fi
10593                   fi
10594                 fi
10595               fi
10596             fi
10597                         if test -n "$found_la"; then
10598                                                         save_libdir="$libdir"
10599               case "$found_la" in
10600                 */* | *\\*) . "$found_la" ;;
10601                 *) . "./$found_la" ;;
10602               esac
10603               libdir="$save_libdir"
10604                             for dep in $dependency_libs; do
10605                 case "$dep" in
10606                   -L*)
10607                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10608                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10609                       haveit=
10610                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10611                         if test -n "$GCC"; then
10612                           case $host_os in
10613                             linux*) haveit=yes;;
10614                           esac
10615                         fi
10616                       fi
10617                       if test -z "$haveit"; then
10618                         haveit=
10619                         for x in $LDFLAGS $LIBICONV; do
10620
10621   acl_save_prefix="$prefix"
10622   prefix="$acl_final_prefix"
10623   acl_save_exec_prefix="$exec_prefix"
10624   exec_prefix="$acl_final_exec_prefix"
10625   eval x=\"$x\"
10626   exec_prefix="$acl_save_exec_prefix"
10627   prefix="$acl_save_prefix"
10628
10629                           if test "X$x" = "X-L$additional_libdir"; then
10630                             haveit=yes
10631                             break
10632                           fi
10633                         done
10634                         if test -z "$haveit"; then
10635                           if test -d "$additional_libdir"; then
10636                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10637                           fi
10638                         fi
10639                         haveit=
10640                         for x in $LDFLAGS $LTLIBICONV; do
10641
10642   acl_save_prefix="$prefix"
10643   prefix="$acl_final_prefix"
10644   acl_save_exec_prefix="$exec_prefix"
10645   exec_prefix="$acl_final_exec_prefix"
10646   eval x=\"$x\"
10647   exec_prefix="$acl_save_exec_prefix"
10648   prefix="$acl_save_prefix"
10649
10650                           if test "X$x" = "X-L$additional_libdir"; then
10651                             haveit=yes
10652                             break
10653                           fi
10654                         done
10655                         if test -z "$haveit"; then
10656                           if test -d "$additional_libdir"; then
10657                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10658                           fi
10659                         fi
10660                       fi
10661                     fi
10662                     ;;
10663                   -R*)
10664                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10665                     if test "$enable_rpath" != no; then
10666                                                                   haveit=
10667                       for x in $rpathdirs; do
10668                         if test "X$x" = "X$dir"; then
10669                           haveit=yes
10670                           break
10671                         fi
10672                       done
10673                       if test -z "$haveit"; then
10674                         rpathdirs="$rpathdirs $dir"
10675                       fi
10676                                                                   haveit=
10677                       for x in $ltrpathdirs; do
10678                         if test "X$x" = "X$dir"; then
10679                           haveit=yes
10680                           break
10681                         fi
10682                       done
10683                       if test -z "$haveit"; then
10684                         ltrpathdirs="$ltrpathdirs $dir"
10685                       fi
10686                     fi
10687                     ;;
10688                   -l*)
10689                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10690                     ;;
10691                   *.la)
10692                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10693                     ;;
10694                   *)
10695                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10696                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10697                     ;;
10698                 esac
10699               done
10700             fi
10701           else
10702                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10703             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10704           fi
10705         fi
10706       fi
10707     done
10708   done
10709   if test "X$rpathdirs" != "X"; then
10710     if test -n "$hardcode_libdir_separator"; then
10711                         alldirs=
10712       for found_dir in $rpathdirs; do
10713         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10714       done
10715             acl_save_libdir="$libdir"
10716       libdir="$alldirs"
10717       eval flag=\"$hardcode_libdir_flag_spec\"
10718       libdir="$acl_save_libdir"
10719       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10720     else
10721             for found_dir in $rpathdirs; do
10722         acl_save_libdir="$libdir"
10723         libdir="$found_dir"
10724         eval flag=\"$hardcode_libdir_flag_spec\"
10725         libdir="$acl_save_libdir"
10726         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10727       done
10728     fi
10729   fi
10730   if test "X$ltrpathdirs" != "X"; then
10731             for found_dir in $ltrpathdirs; do
10732       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10733     done
10734   fi
10735
10736
10737
10738
10739
10740
10741
10742           am_save_CPPFLAGS="$CPPFLAGS"
10743
10744   for element in $INCICONV; do
10745     haveit=
10746     for x in $CPPFLAGS; do
10747
10748   acl_save_prefix="$prefix"
10749   prefix="$acl_final_prefix"
10750   acl_save_exec_prefix="$exec_prefix"
10751   exec_prefix="$acl_final_exec_prefix"
10752   eval x=\"$x\"
10753   exec_prefix="$acl_save_exec_prefix"
10754   prefix="$acl_save_prefix"
10755
10756       if test "X$x" = "X$element"; then
10757         haveit=yes
10758         break
10759       fi
10760     done
10761     if test -z "$haveit"; then
10762       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10763     fi
10764   done
10765
10766
10767   echo "$as_me:$LINENO: checking for iconv" >&5
10768 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10769 if test "${am_cv_func_iconv+set}" = set; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772
10773     am_cv_func_iconv="no, consider installing GNU libiconv"
10774     am_cv_lib_iconv=no
10775     cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 #include <stdlib.h>
10782 #include <iconv.h>
10783 int
10784 main ()
10785 {
10786 iconv_t cd = iconv_open("","");
10787        iconv(cd,NULL,NULL,NULL,NULL);
10788        iconv_close(cd);
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795   (eval $ac_link) 2>conftest.er1
10796   ac_status=$?
10797   grep -v '^ *+' conftest.er1 >conftest.err
10798   rm -f conftest.er1
10799   cat conftest.err >&5
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } &&
10802          { ac_try='test -z "$ac_c_werror_flag"
10803                          || test ! -s conftest.err'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; } &&
10809          { ac_try='test -s conftest$ac_exeext'
10810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811   (eval $ac_try) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   am_cv_func_iconv=yes
10816 else
10817   echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 fi
10821 rm -f conftest.err conftest.$ac_objext \
10822       conftest$ac_exeext conftest.$ac_ext
10823     if test "$am_cv_func_iconv" != yes; then
10824       am_save_LIBS="$LIBS"
10825       LIBS="$LIBS $LIBICONV"
10826       cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 #include <stdlib.h>
10833 #include <iconv.h>
10834 int
10835 main ()
10836 {
10837 iconv_t cd = iconv_open("","");
10838          iconv(cd,NULL,NULL,NULL,NULL);
10839          iconv_close(cd);
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846   (eval $ac_link) 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -z "$ac_c_werror_flag"
10854                          || test ! -s conftest.err'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; } &&
10860          { ac_try='test -s conftest$ac_exeext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   am_cv_lib_iconv=yes
10867         am_cv_func_iconv=yes
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872 fi
10873 rm -f conftest.err conftest.$ac_objext \
10874       conftest$ac_exeext conftest.$ac_ext
10875       LIBS="$am_save_LIBS"
10876     fi
10877
10878 fi
10879 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10880 echo "${ECHO_T}$am_cv_func_iconv" >&6
10881   if test "$am_cv_func_iconv" = yes; then
10882
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_ICONV 1
10885 _ACEOF
10886
10887   fi
10888   if test "$am_cv_lib_iconv" = yes; then
10889     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10890 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10891     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10892 echo "${ECHO_T}$LIBICONV" >&6
10893   else
10894             CPPFLAGS="$am_save_CPPFLAGS"
10895     LIBICONV=
10896     LTLIBICONV=
10897   fi
10898
10899
10900
10901   if test "$am_cv_func_iconv" = yes; then
10902     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10903 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10904     if test "${am_cv_proto_iconv+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907
10908       cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h.  */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h.  */
10914
10915 #include <stdlib.h>
10916 #include <iconv.h>
10917 extern
10918 #ifdef __cplusplus
10919 "C"
10920 #endif
10921 #if defined(__STDC__) || defined(__cplusplus)
10922 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10923 #else
10924 size_t iconv();
10925 #endif
10926
10927 int
10928 main ()
10929 {
10930
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937   (eval $ac_compile) 2>conftest.er1
10938   ac_status=$?
10939   grep -v '^ *+' conftest.er1 >conftest.err
10940   rm -f conftest.er1
10941   cat conftest.err >&5
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); } &&
10944          { ac_try='test -z "$ac_c_werror_flag"
10945                          || test ! -s conftest.err'
10946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947   (eval $ac_try) 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest.$ac_objext'
10952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953   (eval $ac_try) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; }; then
10957   am_cv_proto_iconv_arg1=""
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962 am_cv_proto_iconv_arg1="const"
10963 fi
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965       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);"
10966 fi
10967
10968     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10969     echo "$as_me:$LINENO: result: ${ac_t:-
10970          }$am_cv_proto_iconv" >&5
10971 echo "${ECHO_T}${ac_t:-
10972          }$am_cv_proto_iconv" >&6
10973
10974 cat >>confdefs.h <<_ACEOF
10975 #define ICONV_CONST $am_cv_proto_iconv_arg1
10976 _ACEOF
10977
10978   fi
10979
10980 # Until we have in-tree GNU iconv:
10981 LIBICONV_DEP=
10982
10983
10984
10985   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10986 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10987 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990   cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 #include <locale.h>
10997 int
10998 main ()
10999 {
11000 return LC_MESSAGES
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007   (eval $ac_link) 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag"
11015                          || test ! -s conftest.err'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest$ac_exeext'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   am_cv_val_LC_MESSAGES=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 am_cv_val_LC_MESSAGES=no
11033 fi
11034 rm -f conftest.err conftest.$ac_objext \
11035       conftest$ac_exeext conftest.$ac_ext
11036 fi
11037 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11038 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11039   if test $am_cv_val_LC_MESSAGES = yes; then
11040
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_LC_MESSAGES 1
11043 _ACEOF
11044
11045   fi
11046
11047
11048
11049   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11050 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11051 if test "${am_cv_langinfo_codeset+set}" = set; then
11052   echo $ECHO_N "(cached) $ECHO_C" >&6
11053 else
11054   cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h.  */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h.  */
11060 #include <langinfo.h>
11061 int
11062 main ()
11063 {
11064 char* cs = nl_langinfo(CODESET);
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071   (eval $ac_link) 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } &&
11078          { ac_try='test -z "$ac_c_werror_flag"
11079                          || test ! -s conftest.err'
11080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081   (eval $ac_try) 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; } &&
11085          { ac_try='test -s conftest$ac_exeext'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; }; then
11091   am_cv_langinfo_codeset=yes
11092 else
11093   echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 am_cv_langinfo_codeset=no
11097 fi
11098 rm -f conftest.err conftest.$ac_objext \
11099       conftest$ac_exeext conftest.$ac_ext
11100
11101 fi
11102 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11103 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11104   if test $am_cv_langinfo_codeset = yes; then
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define HAVE_LANGINFO_CODESET 1
11108 _ACEOF
11109
11110   fi
11111
11112
11113 # We will need to find libiberty.h and ansidecl.h
11114 saved_CFLAGS="$CFLAGS"
11115 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11141         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11142         fprintf_unlocked strstr errno snprintf vasprintf \
11143         malloc realloc calloc free basename getopt clock getpagesize
11144 do
11145   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11146 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11147 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11148 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 #undef $ac_tr_decl
11158 #define $ac_tr_decl 1
11159
11160 #include "ansidecl.h"
11161 #include "system.h"
11162
11163 int
11164 main ()
11165 {
11166 #ifndef $ac_func
11167 char *(*pfn) = (char *(*)) $ac_func ;
11168 #endif
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 rm -f conftest.$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175   (eval $ac_compile) 2>conftest.er1
11176   ac_status=$?
11177   grep -v '^ *+' conftest.er1 >conftest.err
11178   rm -f conftest.er1
11179   cat conftest.err >&5
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } &&
11182          { ac_try='test -z "$ac_c_werror_flag"
11183                          || test ! -s conftest.err'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; } &&
11189          { ac_try='test -s conftest.$ac_objext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   eval "gcc_cv_have_decl_$ac_func=yes"
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 eval "gcc_cv_have_decl_$ac_func=no"
11201 fi
11202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11203 fi
11204
11205 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11206   echo "$as_me:$LINENO: result: yes" >&5
11207 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11208 #define $ac_tr_decl 1
11209 _ACEOF
11210
11211 else
11212   echo "$as_me:$LINENO: result: no" >&5
11213 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11214 #define $ac_tr_decl 0
11215 _ACEOF
11216
11217 fi
11218
11219 done
11220
11221
11222
11223
11224
11225 for ac_func in getrlimit setrlimit getrusage
11226 do
11227   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11228 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11229 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11230 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 #undef $ac_tr_decl
11240 #define $ac_tr_decl 1
11241
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #ifdef HAVE_SYS_RESOURCE_H
11245 #include <sys/resource.h>
11246 #endif
11247
11248
11249 int
11250 main ()
11251 {
11252 #ifndef $ac_func
11253 char *(*pfn) = (char *(*)) $ac_func ;
11254 #endif
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>conftest.er1
11262   ac_status=$?
11263   grep -v '^ *+' conftest.er1 >conftest.err
11264   rm -f conftest.er1
11265   cat conftest.err >&5
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } &&
11268          { ac_try='test -z "$ac_c_werror_flag"
11269                          || test ! -s conftest.err'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; } &&
11275          { ac_try='test -s conftest.$ac_objext'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; }; then
11281   eval "gcc_cv_have_decl_$ac_func=yes"
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 eval "gcc_cv_have_decl_$ac_func=no"
11287 fi
11288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11289 fi
11290
11291 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11292   echo "$as_me:$LINENO: result: yes" >&5
11293 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11294 #define $ac_tr_decl 1
11295 _ACEOF
11296
11297 else
11298   echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11300 #define $ac_tr_decl 0
11301 _ACEOF
11302
11303 fi
11304
11305 done
11306
11307
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314
11315 #include "ansidecl.h"
11316 #include "system.h"
11317 #ifdef HAVE_SYS_RESOURCE_H
11318 #include <sys/resource.h>
11319 #endif
11320
11321 int
11322 main ()
11323 {
11324 rlim_t l = 0;
11325   ;
11326   return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331   (eval $ac_compile) 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } &&
11338          { ac_try='test -z "$ac_c_werror_flag"
11339                          || test ! -s conftest.err'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; } &&
11345          { ac_try='test -s conftest.$ac_objext'
11346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347   (eval $ac_try) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   :
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356
11357 cat >>confdefs.h <<\_ACEOF
11358 #define rlim_t long
11359 _ACEOF
11360
11361 fi
11362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11363
11364 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11365 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11366 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11367 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11368
11369 for ac_func in ldgetname
11370 do
11371   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11372 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11373 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11374 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383 #undef $ac_tr_decl
11384 #define $ac_tr_decl 1
11385
11386 #include "ansidecl.h"
11387 #include "system.h"
11388 #ifdef HAVE_LDFCN_H
11389 #undef FREAD
11390 #undef FWRITE
11391 #include <ldfcn.h>
11392 #endif
11393
11394
11395 int
11396 main ()
11397 {
11398 #ifndef $ac_func
11399 char *(*pfn) = (char *(*)) $ac_func ;
11400 #endif
11401   ;
11402   return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407   (eval $ac_compile) 2>conftest.er1
11408   ac_status=$?
11409   grep -v '^ *+' conftest.er1 >conftest.err
11410   rm -f conftest.er1
11411   cat conftest.err >&5
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } &&
11414          { ac_try='test -z "$ac_c_werror_flag"
11415                          || test ! -s conftest.err'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; } &&
11421          { ac_try='test -s conftest.$ac_objext'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; }; then
11427   eval "gcc_cv_have_decl_$ac_func=yes"
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 eval "gcc_cv_have_decl_$ac_func=no"
11433 fi
11434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11435 fi
11436
11437 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11438   echo "$as_me:$LINENO: result: yes" >&5
11439 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11440 #define $ac_tr_decl 1
11441 _ACEOF
11442
11443 else
11444   echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11446 #define $ac_tr_decl 0
11447 _ACEOF
11448
11449 fi
11450
11451 done
11452
11453
11454
11455 for ac_func in times
11456 do
11457   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11458 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11459 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11460 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469 #undef $ac_tr_decl
11470 #define $ac_tr_decl 1
11471
11472 #include "ansidecl.h"
11473 #include "system.h"
11474 #ifdef HAVE_SYS_TIMES_H
11475 #include <sys/times.h>
11476 #endif
11477
11478
11479 int
11480 main ()
11481 {
11482 #ifndef $ac_func
11483 char *(*pfn) = (char *(*)) $ac_func ;
11484 #endif
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491   (eval $ac_compile) 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -z "$ac_c_werror_flag"
11499                          || test ! -s conftest.err'
11500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501   (eval $ac_try) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; } &&
11505          { ac_try='test -s conftest.$ac_objext'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   eval "gcc_cv_have_decl_$ac_func=yes"
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 eval "gcc_cv_have_decl_$ac_func=no"
11517 fi
11518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11519 fi
11520
11521 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11522   echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11524 #define $ac_tr_decl 1
11525 _ACEOF
11526
11527 else
11528   echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11530 #define $ac_tr_decl 0
11531 _ACEOF
11532
11533 fi
11534
11535 done
11536
11537
11538 # More time-related stuff.
11539 echo "$as_me:$LINENO: checking for struct tms" >&5
11540 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11541 if test "${ac_cv_struct_tms+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h.  */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h.  */
11551
11552 #include "ansidecl.h"
11553 #include "system.h"
11554 #ifdef HAVE_SYS_TIMES_H
11555 #include <sys/times.h>
11556 #endif
11557
11558 int
11559 main ()
11560 {
11561 struct tms tms;
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 rm -f conftest.$ac_objext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11568   (eval $ac_compile) 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } &&
11575          { ac_try='test -z "$ac_c_werror_flag"
11576                          || test ! -s conftest.err'
11577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578   (eval $ac_try) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); }; } &&
11582          { ac_try='test -s conftest.$ac_objext'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; }; then
11588   ac_cv_struct_tms=yes
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ac_cv_struct_tms=no
11594 fi
11595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11596 fi
11597 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11598 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11599 if test $ac_cv_struct_tms = yes; then
11600
11601 cat >>confdefs.h <<\_ACEOF
11602 #define HAVE_STRUCT_TMS 1
11603 _ACEOF
11604
11605 fi
11606
11607 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11608 # revisit after autoconf 2.50.
11609 echo "$as_me:$LINENO: checking for clock_t" >&5
11610 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11611 if test "${gcc_cv_type_clock_t+set}" = set; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621
11622 #include "ansidecl.h"
11623 #include "system.h"
11624
11625 int
11626 main ()
11627 {
11628 clock_t x;
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635   (eval $ac_compile) 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -z "$ac_c_werror_flag"
11643                          || test ! -s conftest.err'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; } &&
11649          { ac_try='test -s conftest.$ac_objext'
11650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651   (eval $ac_try) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; }; then
11655   gcc_cv_type_clock_t=yes
11656 else
11657   echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660 gcc_cv_type_clock_t=no
11661 fi
11662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11663 fi
11664 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11665 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11666 if test $gcc_cv_type_clock_t = yes; then
11667
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_CLOCK_T 1
11670 _ACEOF
11671
11672 fi
11673
11674 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11675 CFLAGS="$saved_CFLAGS"
11676
11677 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11678 if test "${enable_initfini_array+set}" = set; then
11679   enableval="$enable_initfini_array"
11680
11681 else
11682
11683 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11684 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11685 if test "${gcc_cv_initfini_array+set}" = set; then
11686   echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688     if test "$cross_compiling" = yes; then
11689   gcc_cv_initfini_array=no
11690 else
11691   cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h.  */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h.  */
11697
11698 static int x = -1;
11699 int main (void) { return x; }
11700 int foo (void) { x = 0; }
11701 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11702 _ACEOF
11703 rm -f conftest$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705   (eval $ac_link) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   gcc_cv_initfini_array=yes
11715 else
11716   echo "$as_me: program exited with status $ac_status" >&5
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 ( exit $ac_status )
11721 gcc_cv_initfini_array=no
11722 fi
11723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11724 fi
11725 fi
11726 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11727 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11728   enable_initfini_array=$gcc_cv_initfini_array
11729
11730 fi;
11731 if test $enable_initfini_array = yes; then
11732
11733 cat >>confdefs.h <<\_ACEOF
11734 #define HAVE_INITFINI_ARRAY 1
11735 _ACEOF
11736
11737 fi
11738
11739 # mkdir takes a single argument on some systems.
11740 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11741 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11742 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751
11752 #include <sys/types.h>
11753 #ifdef HAVE_SYS_STAT_H
11754 # include <sys/stat.h>
11755 #endif
11756 #ifdef HAVE_UNISTD_H
11757 # include <unistd.h>
11758 #endif
11759 #ifdef HAVE_DIRECT_H
11760 # include <direct.h>
11761 #endif
11762 int
11763 main ()
11764 {
11765 mkdir ("foo", 0);
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772   (eval $ac_compile) 2>conftest.er1
11773   ac_status=$?
11774   grep -v '^ *+' conftest.er1 >conftest.err
11775   rm -f conftest.er1
11776   cat conftest.err >&5
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); } &&
11779          { ac_try='test -z "$ac_c_werror_flag"
11780                          || test ! -s conftest.err'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; } &&
11786          { ac_try='test -s conftest.$ac_objext'
11787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788   (eval $ac_try) 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; }; then
11792   gcc_cv_mkdir_takes_one_arg=no
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 gcc_cv_mkdir_takes_one_arg=yes
11798 fi
11799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11800 fi
11801 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11802 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11803 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11804
11805 cat >>confdefs.h <<\_ACEOF
11806 #define MKDIR_TAKES_ONE_ARG 1
11807 _ACEOF
11808
11809 fi
11810
11811
11812 # File extensions
11813 manext='.1'
11814 objext='.o'
11815
11816
11817
11818 # With Setjmp/Longjmp based exception handling.
11819 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11820 if test "${enable_sjlj_exceptions+set}" = set; then
11821   enableval="$enable_sjlj_exceptions"
11822   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11823
11824 cat >>confdefs.h <<_ACEOF
11825 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11826 _ACEOF
11827
11828 fi;
11829
11830 # For platforms with the unwind ABI which includes an unwind library,
11831 # libunwind, we can choose to use the system libunwind.
11832
11833 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11834 if test "${with_system_libunwind+set}" = set; then
11835   withval="$with_system_libunwind"
11836
11837 fi;
11838
11839 # --------------------------------------------------------
11840 # Build, host, and target specific configuration fragments
11841 # --------------------------------------------------------
11842
11843 # Collect build-machine-specific information.
11844 . ${srcdir}/config.build
11845
11846 # Collect host-machine-specific information.
11847 . ${srcdir}/config.host
11848
11849 target_gtfiles=
11850
11851 # Collect target-machine-specific information.
11852 . ${srcdir}/config.gcc
11853
11854 extra_objs="${host_extra_objs} ${extra_objs}"
11855 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11856
11857 # Default the target-machine variables that were not explicitly set.
11858 if test x"$tm_file" = x
11859 then tm_file=$cpu_type/$cpu_type.h; fi
11860
11861 if test x"$extra_headers" = x
11862 then extra_headers=; fi
11863
11864 if test x$md_file = x
11865 then md_file=$cpu_type/$cpu_type.md; fi
11866
11867 if test x$out_file = x
11868 then out_file=$cpu_type/$cpu_type.c; fi
11869
11870 if test x"$tmake_file" = x
11871 then tmake_file=$cpu_type/t-$cpu_type
11872 fi
11873
11874 if test x"$dwarf2" = xyes
11875 then tm_file="$tm_file tm-dwarf2.h"
11876 fi
11877
11878 # Say what files are being used for the output code and MD file.
11879 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11880 echo "Using \`$srcdir/config/$md_file' as machine description file."
11881
11882 # If any of the xm_file variables contain nonexistent files, warn
11883 # about them and drop them.
11884
11885 bx=
11886 for x in $build_xm_file; do
11887   if    test -f $srcdir/config/$x
11888   then      bx="$bx $x"
11889   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11890 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11891   fi
11892 done
11893 build_xm_file="$bx"
11894
11895 hx=
11896 for x in $host_xm_file; do
11897   if    test -f $srcdir/config/$x
11898   then      hx="$hx $x"
11899   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11900 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11901   fi
11902 done
11903 host_xm_file="$hx"
11904
11905 tx=
11906 for x in $xm_file; do
11907   if    test -f $srcdir/config/$x
11908   then      tx="$tx $x"
11909   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11910 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11911   fi
11912 done
11913 xm_file="$tx"
11914
11915 count=a
11916 for f in $tm_file; do
11917         count=${count}x
11918 done
11919 if test $count = ax; then
11920         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11921 else
11922         echo "Using the following target machine macro files:"
11923         for f in $tm_file; do
11924                 echo "  $srcdir/config/$f"
11925         done
11926 fi
11927
11928 if test x$need_64bit_hwint = xyes; then
11929
11930 cat >>confdefs.h <<\_ACEOF
11931 #define NEED_64BIT_HOST_WIDE_INT 1
11932 _ACEOF
11933
11934 fi
11935
11936 if test x$use_long_long_for_widest_fast_int = xyes; then
11937
11938 cat >>confdefs.h <<\_ACEOF
11939 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11940 _ACEOF
11941
11942 fi
11943
11944 count=a
11945 for f in $host_xm_file; do
11946         count=${count}x
11947 done
11948 if test $count = a; then
11949         :
11950 elif test $count = ax; then
11951         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11952 else
11953         echo "Using the following host machine macro files:"
11954         for f in $host_xm_file; do
11955                 echo "  $srcdir/config/$f"
11956         done
11957 fi
11958 echo "Using ${out_host_hook_obj} for host machine hooks."
11959
11960 if test "$host_xm_file" != "$build_xm_file"; then
11961         count=a
11962         for f in $build_xm_file; do
11963                 count=${count}x
11964         done
11965         if test $count = a; then
11966                 :
11967         elif test $count = ax; then
11968                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11969         else
11970                 echo "Using the following build machine macro files:"
11971                 for f in $build_xm_file; do
11972                         echo "  $srcdir/config/$f"
11973                 done
11974         fi
11975 fi
11976
11977 # ---------
11978 # Threading
11979 # ---------
11980
11981 # Check if a valid thread package
11982 case ${enable_threads} in
11983   "" | no)
11984     # No threads
11985     target_thread_file='single'
11986     ;;
11987   yes)
11988     # default
11989     target_thread_file='single'
11990     ;;
11991   aix | dce | gnat | irix | posix | posix95 | rtems | \
11992   single | solaris | vxworks | win32 )
11993     target_thread_file=${enable_threads}
11994     ;;
11995   *)
11996     echo "${enable_threads} is an unknown thread package" 1>&2
11997     exit 1
11998     ;;
11999 esac
12000
12001 if test x${thread_file} = x; then
12002   # No thread file set by target-specific clauses in config.gcc,
12003   # so use file chosen by default logic above
12004   thread_file=${target_thread_file}
12005 fi
12006
12007 # Make gthr-default.h if we have a thread file.
12008 gthread_flags=
12009 if test $thread_file != single; then
12010   rm -f gthr-default.h
12011   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12012   gthread_flags=-DHAVE_GTHR_DEFAULT
12013 fi
12014
12015
12016 # --------
12017 # UNSORTED
12018 # --------
12019
12020 use_cxa_atexit=no
12021 if test x$enable___cxa_atexit = xyes || \
12022    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12023   if test x$host = x$target; then
12024     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12025 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12026 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12037 #define __cxa_atexit innocuous___cxa_atexit
12038
12039 /* System header to define __stub macros and hopefully few prototypes,
12040     which can conflict with char __cxa_atexit (); below.
12041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042     <limits.h> exists even on freestanding compilers.  */
12043
12044 #ifdef __STDC__
12045 # include <limits.h>
12046 #else
12047 # include <assert.h>
12048 #endif
12049
12050 #undef __cxa_atexit
12051
12052 /* Override any gcc2 internal prototype to avoid an error.  */
12053 #ifdef __cplusplus
12054 extern "C"
12055 {
12056 #endif
12057 /* We use char because int might match the return type of a gcc2
12058    builtin and then its argument prototype would still apply.  */
12059 char __cxa_atexit ();
12060 /* The GNU C library defines this for functions which it implements
12061     to always fail with ENOSYS.  Some functions are actually named
12062     something starting with __ and the normal name is an alias.  */
12063 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12064 choke me
12065 #else
12066 char (*f) () = __cxa_atexit;
12067 #endif
12068 #ifdef __cplusplus
12069 }
12070 #endif
12071
12072 int
12073 main ()
12074 {
12075 return f != __cxa_atexit;
12076   ;
12077   return 0;
12078 }
12079 _ACEOF
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12082   (eval $ac_link) 2>conftest.er1
12083   ac_status=$?
12084   grep -v '^ *+' conftest.er1 >conftest.err
12085   rm -f conftest.er1
12086   cat conftest.err >&5
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); } &&
12089          { ac_try='test -z "$ac_c_werror_flag"
12090                          || test ! -s conftest.err'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; } &&
12096          { ac_try='test -s conftest$ac_exeext'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; }; then
12102   ac_cv_func___cxa_atexit=yes
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 ac_cv_func___cxa_atexit=no
12108 fi
12109 rm -f conftest.err conftest.$ac_objext \
12110       conftest$ac_exeext conftest.$ac_ext
12111 fi
12112 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12113 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12114 if test $ac_cv_func___cxa_atexit = yes; then
12115   use_cxa_atexit=yes
12116 else
12117   echo "__cxa_atexit can't be enabled on this target"
12118 fi
12119
12120   else
12121     # We can't check for __cxa_atexit when building a cross, so assume
12122     # it is available
12123     use_cxa_atexit=yes
12124   fi
12125   if test x$use_cxa_atexit = xyes; then
12126
12127 cat >>confdefs.h <<\_ACEOF
12128 #define DEFAULT_USE_CXA_ATEXIT 1
12129 _ACEOF
12130
12131   fi
12132 fi
12133
12134 # Look for a file containing extra machine modes.
12135 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12136   extra_modes_file='$(srcdir)'/config/${extra_modes}
12137
12138
12139 cat >>confdefs.h <<_ACEOF
12140 #define EXTRA_MODES_FILE "config/$extra_modes"
12141 _ACEOF
12142
12143 fi
12144
12145 # Convert extra_options into a form suitable for Makefile use.
12146 extra_opt_files=
12147 for f in $extra_options; do
12148   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12149 done
12150
12151
12152 # auto-host.h is the file containing items generated by autoconf and is
12153 # the first file included by config.h.
12154 # If host=build, it is correct to have bconfig include auto-host.h
12155 # as well.  If host!=build, we are in error and need to do more
12156 # work to find out the build config parameters.
12157 if test x$host = x$build
12158 then
12159         build_auto=auto-host.h
12160 else
12161         # We create a subdir, then run autoconf in the subdir.
12162         # To prevent recursion we set host and build for the new
12163         # invocation of configure to the build for this invocation
12164         # of configure.
12165         tempdir=build.$$
12166         rm -rf $tempdir
12167         mkdir $tempdir
12168         cd $tempdir
12169         case ${srcdir} in
12170         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12171         *) realsrcdir=../${srcdir};;
12172         esac
12173         saved_CFLAGS="${CFLAGS}"
12174         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12175         ${realsrcdir}/configure \
12176                 --enable-languages=${enable_languages-all} \
12177                 --target=$target_alias --host=$build_alias --build=$build_alias
12178         CFLAGS="${saved_CFLAGS}"
12179
12180         # We just finished tests for the build machine, so rename
12181         # the file auto-build.h in the gcc directory.
12182         mv auto-host.h ../auto-build.h
12183         cd ..
12184         rm -rf $tempdir
12185         build_auto=auto-build.h
12186 fi
12187
12188
12189 tm_file="${tm_file} defaults.h"
12190 tm_p_file="${tm_p_file} tm-preds.h"
12191 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12192 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12193 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12194 # put this back in temporarily.
12195 xm_file="ansidecl.h ${xm_file}"
12196
12197 # --------
12198 # UNSORTED
12199 # --------
12200
12201 # Compile in configure arguments.
12202 if test -f configargs.h ; then
12203         # Being re-configured.
12204         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12205         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12206 else
12207         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12208 fi
12209
12210 # Double all backslashes and backslash all quotes to turn
12211 # gcc_config_arguments into a C string.
12212 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12213 $gcc_config_arguments
12214 EOF
12215 gcc_config_arguments_str=`cat conftest.out`
12216 rm -f conftest.out
12217
12218 cat > configargs.h <<EOF
12219 /* Generated automatically. */
12220 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12221 static const char thread_model[] = "$thread_file";
12222
12223 static const struct {
12224   const char *name, *value;
12225 } configure_default_options[] = $configure_default_options;
12226 EOF
12227
12228 # Internationalization
12229 # If we haven't got the data from the intl directory,
12230 # assume NLS is disabled.
12231 USE_NLS=no
12232 LIBINTL=
12233 LIBINTL_DEP=
12234 INCINTL=
12235 XGETTEXT=
12236 GMSGFMT=
12237 POSUB=
12238 if test -f ../intl/config.intl; then
12239   . ../intl/config.intl
12240 fi
12241 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12242 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12243 if test x"$USE_NLS" != xyes; then
12244   echo "$as_me:$LINENO: result: no" >&5
12245 echo "${ECHO_T}no" >&6
12246 else
12247   echo "$as_me:$LINENO: result: yes" >&5
12248 echo "${ECHO_T}yes" >&6
12249
12250 cat >>confdefs.h <<\_ACEOF
12251 #define ENABLE_NLS 1
12252 _ACEOF
12253
12254
12255   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12256 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12257   # Look for .po and .gmo files in the source directory.
12258   CATALOGS=
12259   XLINGUAS=
12260   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12261     # If there aren't any .gmo files the shell will give us the
12262     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12263     # weeded out.
12264     case "$cat" in *\**)
12265       continue;;
12266     esac
12267     # The quadruple backslash is collapsed to a double backslash
12268     # by the backticks, then collapsed again by the double quotes,
12269     # leaving us with one backslash in the sed expression (right
12270     # before the dot that mustn't act as a wildcard).
12271     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12272     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12273     # The user is allowed to set LINGUAS to a list of languages to
12274     # install catalogs for.  If it's empty that means "all of them."
12275     if test "x$LINGUAS" = x; then
12276       CATALOGS="$CATALOGS $cat"
12277       XLINGUAS="$XLINGUAS $lang"
12278     else
12279       case "$LINGUAS" in *$lang*)
12280         CATALOGS="$CATALOGS $cat"
12281         XLINGUAS="$XLINGUAS $lang"
12282         ;;
12283       esac
12284     fi
12285   done
12286   LINGUAS="$XLINGUAS"
12287   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12288 echo "${ECHO_T}$LINGUAS" >&6
12289 fi
12290
12291 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12292 # -liconv on the link line twice.
12293 case "$LIBINTL" in *$LIBICONV*)
12294         LIBICONV= ;;
12295 esac
12296
12297 # Windows32 Registry support for specifying GCC installation paths.
12298 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12299 if test "${enable_win32_registry+set}" = set; then
12300   enableval="$enable_win32_registry"
12301
12302 fi;
12303
12304 case $host_os in
12305   win32 | pe | cygwin* | mingw32* | uwin*)
12306     if test "x$enable_win32_registry" != xno; then
12307       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12308 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12309 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   ac_func_search_save_LIBS=$LIBS
12313 ac_cv_search_RegOpenKeyExA=no
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320
12321 /* Override any gcc2 internal prototype to avoid an error.  */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 /* We use char because int might match the return type of a gcc2
12326    builtin and then its argument prototype would still apply.  */
12327 char RegOpenKeyExA ();
12328 int
12329 main ()
12330 {
12331 RegOpenKeyExA ();
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338   (eval $ac_link) 2>conftest.er1
12339   ac_status=$?
12340   grep -v '^ *+' conftest.er1 >conftest.err
12341   rm -f conftest.er1
12342   cat conftest.err >&5
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } &&
12345          { ac_try='test -z "$ac_c_werror_flag"
12346                          || test ! -s conftest.err'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; } &&
12352          { ac_try='test -s conftest$ac_exeext'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358   ac_cv_search_RegOpenKeyExA="none required"
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363 fi
12364 rm -f conftest.err conftest.$ac_objext \
12365       conftest$ac_exeext conftest.$ac_ext
12366 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12367   for ac_lib in advapi32; do
12368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12369     cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 /* Override any gcc2 internal prototype to avoid an error.  */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 /* We use char because int might match the return type of a gcc2
12381    builtin and then its argument prototype would still apply.  */
12382 char RegOpenKeyExA ();
12383 int
12384 main ()
12385 {
12386 RegOpenKeyExA ();
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393   (eval $ac_link) 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -z "$ac_c_werror_flag"
12401                          || test ! -s conftest.err'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; } &&
12407          { ac_try='test -s conftest$ac_exeext'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; }; then
12413   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12414 break
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 fi
12420 rm -f conftest.err conftest.$ac_objext \
12421       conftest$ac_exeext conftest.$ac_ext
12422   done
12423 fi
12424 LIBS=$ac_func_search_save_LIBS
12425 fi
12426 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12427 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12428 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12429   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12430
12431 else
12432   enable_win32_registry=no
12433 fi
12434
12435     fi
12436
12437     if test "x$enable_win32_registry" != xno; then
12438
12439 cat >>confdefs.h <<\_ACEOF
12440 #define ENABLE_WIN32_REGISTRY 1
12441 _ACEOF
12442
12443
12444       if test "x$enable_win32_registry" != xyes \
12445          && test "x$enable_win32_registry" != x; then
12446
12447 cat >>confdefs.h <<_ACEOF
12448 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12449 _ACEOF
12450
12451       fi
12452     fi
12453   ;;
12454 esac
12455
12456 # Get an absolute path to the GCC top-level source directory
12457 holddir=`${PWDCMD-pwd}`
12458 cd $srcdir
12459 topdir=`${PWDCMD-pwd}`
12460 cd $holddir
12461
12462 # Conditionalize the makefile for this host machine.
12463 xmake_file=
12464 for f in ${host_xmake_file}
12465 do
12466         if test -f ${srcdir}/config/$f
12467         then
12468                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12469         fi
12470 done
12471
12472 # Conditionalize the makefile for this target machine.
12473 tmake_file_=
12474 for f in ${tmake_file}
12475 do
12476         if test -f ${srcdir}/config/$f
12477         then
12478                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12479         fi
12480 done
12481 tmake_file="${tmake_file_}"
12482
12483 # If the host doesn't support symlinks, modify CC in
12484 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12485 # Otherwise, we can use "CC=$(CC)".
12486 rm -f symtest.tem
12487 case "$LN_S" in
12488         *-s*)
12489                 cc_set_by_configure="\$(CC)"
12490                 quoted_cc_set_by_configure="\$(CC)"
12491                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12492                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12493                 ;;
12494         *)
12495                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12496                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12497                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12498                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12499                 ;;
12500 esac
12501
12502 # This is a terrible hack which will go away some day.
12503 host_cc_for_libada=${CC}
12504
12505
12506 out_object_file=`basename $out_file .c`.o
12507
12508 tm_file_list="options.h"
12509 tm_include_list="options.h"
12510 for f in $tm_file; do
12511   case $f in
12512     defaults.h )
12513        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12514        tm_include_list="${tm_include_list} $f"
12515        ;;
12516     * )
12517        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12518        tm_include_list="${tm_include_list} config/$f"
12519        ;;
12520   esac
12521 done
12522
12523 tm_p_file_list=
12524 tm_p_include_list=
12525 for f in $tm_p_file; do
12526   case $f in
12527     tm-preds.h )
12528        tm_p_file_list="${tm_p_file_list} $f"
12529        tm_p_include_list="${tm_p_include_list} $f"
12530        ;;
12531     * )
12532        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12533        tm_p_include_list="${tm_p_include_list} config/$f"
12534   esac
12535 done
12536
12537 xm_file_list=
12538 xm_include_list=
12539 for f in $xm_file; do
12540   case $f in
12541     ansidecl.h )
12542        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12543        xm_include_list="${xm_include_list} $f"
12544        ;;
12545     auto-host.h )
12546        xm_file_list="${xm_file_list} $f"
12547        xm_include_list="${xm_include_list} $f"
12548        ;;
12549     * )
12550        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12551        xm_include_list="${xm_include_list} config/$f"
12552        ;;
12553   esac
12554 done
12555
12556 host_xm_file_list=
12557 host_xm_include_list=
12558 for f in $host_xm_file; do
12559   case $f in
12560     ansidecl.h )
12561        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12562        host_xm_include_list="${host_xm_include_list} $f"
12563        ;;
12564     auto-host.h )
12565        host_xm_file_list="${host_xm_file_list} $f"
12566        host_xm_include_list="${host_xm_include_list} $f"
12567        ;;
12568     * )
12569        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12570        host_xm_include_list="${host_xm_include_list} config/$f"
12571        ;;
12572   esac
12573 done
12574
12575 build_xm_file_list=
12576 for f in $build_xm_file; do
12577   case $f in
12578     ansidecl.h )
12579        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12580        build_xm_include_list="${build_xm_include_list} $f"
12581        ;;
12582     auto-build.h | auto-host.h )
12583        build_xm_file_list="${build_xm_file_list} $f"
12584        build_xm_include_list="${build_xm_include_list} $f"
12585        ;;
12586     * )
12587        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12588        build_xm_include_list="${build_xm_include_list} config/$f"
12589        ;;
12590   esac
12591 done
12592
12593 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12594 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12595 CROSS=
12596 ALL=all.internal
12597 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12598 if test x$host != x$target
12599 then
12600         CROSS="-DCROSS_COMPILE"
12601         ALL=all.cross
12602         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12603         case "$host","$target" in
12604         # Darwin crosses can use the host system's libraries and headers,
12605         # because of the fat library support.  Of course, it must be the
12606         # same version of Darwin on both sides.  Allow the user to
12607         # just say --target=foo-darwin without a version number to mean
12608         # "the version on this system".
12609             *-*-darwin*,*-*-darwin*)
12610                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12611                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12612                 if test $hostos = $targetos -o $targetos = darwin ; then
12613                     CROSS=
12614                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12615                     with_headers=yes
12616                 fi
12617                 ;;
12618
12619             i?86-*-*,x86_64-*-* \
12620             | powerpc*-*-*,powerpc64*-*-*)
12621                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12622         esac
12623 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12624         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12625         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12626 fi
12627
12628 # If this is a cross-compiler that does not
12629 # have its own set of headers then define
12630 # inhibit_libc
12631
12632 # If this is using newlib, without having the headers available now,
12633 # then define inhibit_libc in LIBGCC2_CFLAGS.
12634 # This prevents libgcc2 from containing any code which requires libc
12635 # support.
12636 inhibit_libc=
12637 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12638        test x$with_newlib = xyes ; } &&
12639      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12640        inhibit_libc=-Dinhibit_libc
12641 fi
12642
12643
12644 # When building gcc with a cross-compiler, we need to adjust things so
12645 # that the generator programs are still built with the native compiler.
12646 # Also, we cannot run fixincludes or fix-header.
12647
12648 # These are the normal (build=host) settings:
12649 CC_FOR_BUILD='$(CC)'
12650 BUILD_CFLAGS='$(ALL_CFLAGS)'
12651 STMP_FIXINC=stmp-fixinc
12652
12653 # Possibly disable fixproto, on a per-target basis.
12654 case ${use_fixproto} in
12655   no)
12656     STMP_FIXPROTO=
12657     ;;
12658   yes)
12659     STMP_FIXPROTO=stmp-fixproto
12660     ;;
12661 esac
12662
12663
12664 # And these apply if build != host, or we are generating coverage data
12665 if test x$build != x$host || test "x$coverage_flags" != x
12666 then
12667     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12668
12669     if test "x$TARGET_SYSTEM_ROOT" = x; then
12670         if  "x$STMP_FIXPROTO" != x  ; then
12671           STMP_FIXPROTO=stmp-install-fixproto
12672         fi
12673     fi
12674 fi
12675
12676 # Expand extra_headers to include complete path.
12677 # This substitutes for lots of t-* files.
12678 extra_headers_list=
12679 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12680 for file in ${extra_headers} ; do
12681   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12682 done
12683
12684 # Define collect2 in Makefile.
12685 case $host_can_use_collect2 in
12686   no) collect2= ;;
12687   *) collect2='collect2$(exeext)' ;;
12688 esac
12689
12690
12691 # Add a definition of USE_COLLECT2 if system wants one.
12692 case $use_collect2 in
12693   no) use_collect2= ;;
12694   "") ;;
12695   *)
12696     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12697     xm_defines="${xm_defines} USE_COLLECT2"
12698     case $host_can_use_collect2 in
12699       no)
12700         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12701 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12702    { (exit 1); exit 1; }; }
12703         ;;
12704     esac
12705     ;;
12706 esac
12707
12708 # ---------------------------
12709 # Assembler & linker features
12710 # ---------------------------
12711
12712 # Identify the assembler which will work hand-in-glove with the newly
12713 # built GCC, so that we can examine its features.  This is the assembler
12714 # which will be driven by the driver program.
12715 #
12716 # If build != host, and we aren't building gas in-tree, we identify a
12717 # build->target assembler and hope that it will have the same features
12718 # as the host->target assembler we'll be using.
12719 echo "$as_me:$LINENO: checking what assembler to use" >&5
12720 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12721 in_tree_gas=no
12722 gcc_cv_as=
12723 gcc_cv_gas_major_version=
12724 gcc_cv_gas_minor_version=
12725 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12726 if test -x "$DEFAULT_ASSEMBLER"; then
12727         gcc_cv_as="$DEFAULT_ASSEMBLER"
12728 elif test -x as$build_exeext; then
12729         # Build using assembler in the current directory.
12730         gcc_cv_as=./as$build_exeext
12731 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12732      && test -f ../gas/Makefile \
12733      && test x$build = x$host; then
12734   # Single tree build which includes gas.  We want to prefer it
12735   # over whatever linker top-level may have detected, since
12736   # we'll use what we're building after installation anyway.
12737   in_tree_gas=yes
12738   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12739 for f in $gcc_cv_as_bfd_srcdir/configure \
12740          $gcc_cv_as_gas_srcdir/configure \
12741          $gcc_cv_as_gas_srcdir/configure.in \
12742          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12743   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12744   if test x$gcc_cv_gas_version != x; then
12745     break
12746   fi
12747 done
12748 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12749 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12750 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12751 case $gcc_cv_gas_patch_version in
12752   "") gcc_cv_gas_patch_version="0" ;;
12753 esac
12754 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12755                             + $gcc_cv_gas_minor_version \) \* 1000 \
12756                             + $gcc_cv_gas_patch_version`
12757
12758   rm -f as$build_exeext
12759   $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12760   in_tree_gas_is_elf=no
12761   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12762      || (grep 'obj_format = multi' ../gas/Makefile \
12763          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12764   then
12765     in_tree_gas_is_elf=yes
12766   fi
12767 elif test -x "$AS_FOR_TARGET"; then
12768         gcc_cv_as="$AS_FOR_TARGET"
12769 elif test -x "$AS" && test x$host = x$target; then
12770         gcc_cv_as="$AS"
12771 fi
12772
12773 gcc_version=`cat $srcdir/BASE-VER`
12774
12775 if test "x$gcc_cv_as" = x; then
12776         # Search the same directories that the installed compiler will
12777         # search.  Else we may find the wrong assembler and lose.  If we
12778         # do not find a suitable assembler binary, then try the user's
12779         # path.
12780         #
12781         # Also note we have to check MD_EXEC_PREFIX before checking the
12782         # user's path.  Unfortunately, there is no good way to get at the
12783         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12784         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12785         # to be fixed as part of the make/configure rewrite too.
12786
12787         if test "x$exec_prefix" = xNONE; then
12788                 if test "x$prefix" = xNONE; then
12789                         test_prefix=/usr/local
12790                 else
12791                         test_prefix=$prefix
12792                 fi
12793         else
12794                 test_prefix=$exec_prefix
12795         fi
12796
12797         # If the loop below does not find an assembler, then use whatever
12798         # one we can find in the users's path.  We are looking for a
12799         # ${build} -> ${target} assembler.
12800         if test "x$program_prefix" != xNONE; then
12801                 gcc_cv_as=${program_prefix}as$build_exeext
12802         elif test x$build != x$host && test x$build != x$target; then
12803                 gcc_cv_as=${target_noncanonical}-as$build_exeext
12804         else
12805                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12806         fi
12807
12808         if test x$host = x$build; then
12809             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12810                        $test_prefix/libexec/gcc/$target_noncanonical \
12811                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12812                        /usr/lib/gcc/$target_noncanonical \
12813                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12814                        $test_prefix/$target_noncanonical/bin"
12815         else
12816             test_dirs=
12817         fi
12818
12819         if test x$build = x$target; then
12820             test_dirs="$test_dirs \
12821                    /usr/libexec \
12822                    /usr/ccs/gcc \
12823                    /usr/ccs/bin \
12824                    /udk/usr/ccs/bin \
12825                    /bsd43/usr/lib/cmplrs/cc \
12826                    /usr/cross64/usr/bin \
12827                    /usr/lib/cmplrs/cc \
12828                    /sysv/usr/lib/cmplrs/cc \
12829                    /svr4/usr/lib/cmplrs/cc \
12830                    /usr/bin"
12831         fi
12832
12833         for dir in $test_dirs; do
12834                 if test -x $dir/as$build_exeext; then
12835                         gcc_cv_as=$dir/as$build_exeext
12836                         break;
12837                 fi
12838         done
12839 fi
12840 case $in_tree_gas in
12841   yes)
12842     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12843 echo "${ECHO_T}\"newly built gas\"" >&6
12844     ;;
12845   no)
12846     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12847 echo "${ECHO_T}$gcc_cv_as" >&6
12848     ;;
12849 esac
12850
12851 # Identify the linker which will work hand-in-glove with the newly
12852 # built GCC, so that we can examine its features.  This is the linker
12853 # which will be driven by the driver program.
12854 #
12855 # If build != host, and we aren't building gas in-tree, we identify a
12856 # build->target linker and hope that it will have the same features
12857 # as the host->target linker we'll be using.
12858 echo "$as_me:$LINENO: checking what linker to use" >&5
12859 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12860 in_tree_ld=no
12861 gcc_cv_ld=
12862 gcc_cv_gld_major_version=
12863 gcc_cv_gld_minor_version=
12864 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12865 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12866 if test -x "$DEFAULT_LINKER"; then
12867         gcc_cv_ld="$DEFAULT_LINKER"
12868 elif test -x collect-ld$build_exeext; then
12869         # Build using linker in the current directory.
12870         gcc_cv_ld=./collect-ld$build_exeext
12871 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12872      && test -f ../ld/Makefile \
12873      && test x$build = x$host; then
12874         # Single tree build which includes ld.  We want to prefer it
12875         # over whatever linker top-level may have detected, since
12876         # we'll use what we're building after installation anyway.
12877         in_tree_ld=yes
12878         in_tree_ld_is_elf=no
12879         if (grep 'EMUL = .*elf' ../ld/Makefile \
12880             || grep 'EMUL = .*linux' ../ld/Makefile \
12881             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12882           in_tree_ld_is_elf=yes
12883         fi
12884         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
12885         do
12886                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12887                 if test x$gcc_cv_gld_version != x; then
12888                         break
12889                 fi
12890         done
12891         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12892         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12893         rm -f collect-ld$build_exeext
12894         $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12895 elif test -x "$LD_FOR_TARGET"; then
12896         gcc_cv_ld="$LD_FOR_TARGET"
12897 elif test -x "$LD" && test x$host = x$target; then
12898         gcc_cv_ld="$LD"
12899 fi
12900
12901 if test "x$gcc_cv_ld" = x; then
12902         # Search the same directories that the installed compiler will
12903         # search.  Else we may find the wrong linker and lose.  If we
12904         # do not find a suitable linker binary, then try the user's
12905         # path.
12906         #
12907         # Also note we have to check MD_EXEC_PREFIX before checking the
12908         # user's path.  Unfortunately, there is no good way to get at the
12909         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12910         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12911         # to be fixed as part of the make/configure rewrite too.
12912
12913         if test "x$exec_prefix" = xNONE; then
12914                 if test "x$prefix" = xNONE; then
12915                         test_prefix=/usr/local
12916                 else
12917                         test_prefix=$prefix
12918                 fi
12919         else
12920                 test_prefix=$exec_prefix
12921         fi
12922
12923         # If the loop below does not find a linker, then use whatever
12924         # one we can find in the users's path.  We are looking for a
12925         # ${build} -> ${target} linker.
12926         if test "x$program_prefix" != xNONE; then
12927                 gcc_cv_ld=${program_prefix}ld$build_exeext
12928         elif test x$build != x$host && test x$build != x$target; then
12929                 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
12930         else
12931                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12932         fi
12933
12934         if test x$host = x$build; then
12935             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12936                        $test_prefix/libexec/gcc/$target_noncanonical \
12937                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12938                        /usr/lib/gcc/$target_noncanonical \
12939                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12940                        $test_prefix/$target_noncanonical/bin"
12941         else
12942             test_dirs=
12943         fi
12944
12945         if test x$build = x$target; then
12946             test_dirs="$test_dirs \
12947                    /usr/libexec \
12948                    /usr/ccs/gcc \
12949                    /usr/ccs/bin \
12950                    /udk/usr/ccs/bin \
12951                    /bsd43/usr/lib/cmplrs/cc \
12952                    /usr/cross64/usr/bin \
12953                    /usr/lib/cmplrs/cc \
12954                    /sysv/usr/lib/cmplrs/cc \
12955                    /svr4/usr/lib/cmplrs/cc \
12956                    /usr/bin"
12957         fi
12958
12959         for dir in $test_dirs; do
12960                 if test -x $dir/ld$build_exeext; then
12961                         gcc_cv_ld=$dir/ld$build_exeext
12962                         break;
12963                 fi
12964         done
12965 fi
12966 case $in_tree_ld in
12967   yes)
12968     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12969 echo "${ECHO_T}\"newly built ld\"" >&6
12970     ;;
12971   no)
12972     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12973 echo "${ECHO_T}$gcc_cv_ld" >&6
12974     ;;
12975 esac
12976
12977 # Figure out what nm we will be using.
12978 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12979 echo "$as_me:$LINENO: checking what nm to use" >&5
12980 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12981 in_tree_nm=no
12982 if test -x nm$build_exeext; then
12983         gcc_cv_nm=./nm$build_exeext
12984 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12985      && test -f ../binutils/Makefile; then
12986         # Single tree build which includes binutils.
12987         in_tree_nm=yes
12988         gcc_cv_nm=./nm$build_exeext
12989         rm -f nm$build_exeext
12990         $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
12991 elif test "x$program_prefix" != xNONE; then
12992         gcc_cv_nm=${program_prefix}nm$build_exeext
12993 elif test x$build != x$host && test x$build != x$target; then
12994         gcc_cv_nm=${target_noncanonical}-nm$build_exeext
12995 else
12996         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
12997 fi
12998 case $in_tree_nm in
12999   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13000 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13001   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13002 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13003 esac
13004
13005 # Figure out what objdump we will be using.
13006 echo "$as_me:$LINENO: checking what objdump to use" >&5
13007 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13008 in_tree_objdump=no
13009 if test -x objdump$build_exeext; then
13010         gcc_cv_objdump=./objdump$build_exeext
13011 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13012      && test -f ../binutils/Makefile; then
13013         # Single tree build which includes binutils.
13014         in_tree_objdump=yes
13015         gcc_cv_objdump=./objdump$build_exeext
13016         rm -f objdump$build_exeext
13017         $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13018 elif test "x$program_prefix" != xNONE; then
13019         gcc_cv_objdump=${program_prefix}objdump$build_exeext
13020 elif test x$build != x$host && test x$build != x$target; then
13021         gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
13022 else
13023         gcc_cv_objdump=`echo objdump | \
13024                 sed "${program_transform_name}"`$build_exeext
13025 fi
13026 case $in_tree_objdump in
13027   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13028 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13029   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13030 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13031 esac
13032
13033 # Figure out what assembler alignment features are present.
13034 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13035 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13036 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13037   echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039   gcc_cv_as_balign_and_p2align=no
13040     if test $in_tree_gas = yes; then
13041     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13042   then gcc_cv_as_balign_and_p2align=yes
13043 fi
13044   elif test x$gcc_cv_as != x; then
13045     echo '.balign 4
13046 .p2align 2' > conftest.s
13047     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049   (eval $ac_try) 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; }
13053     then
13054         gcc_cv_as_balign_and_p2align=yes
13055     else
13056       echo "configure: failed program was" >&5
13057       cat conftest.s >&5
13058     fi
13059     rm -f conftest.o conftest.s
13060   fi
13061 fi
13062 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13063 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13064 if test $gcc_cv_as_balign_and_p2align = yes; then
13065
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13068 _ACEOF
13069
13070 fi
13071
13072 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13073 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13074 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077   gcc_cv_as_max_skip_p2align=no
13078     if test $in_tree_gas = yes; then
13079     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13080   then gcc_cv_as_max_skip_p2align=yes
13081 fi
13082   elif test x$gcc_cv_as != x; then
13083     echo '.p2align 4,,7' > conftest.s
13084     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }
13090     then
13091         gcc_cv_as_max_skip_p2align=yes
13092     else
13093       echo "configure: failed program was" >&5
13094       cat conftest.s >&5
13095     fi
13096     rm -f conftest.o conftest.s
13097   fi
13098 fi
13099 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13100 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13101 if test $gcc_cv_as_max_skip_p2align = yes; then
13102
13103 cat >>confdefs.h <<\_ACEOF
13104 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13105 _ACEOF
13106
13107 fi
13108
13109 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13110 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13111 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   gcc_cv_as_subsection_m1=no
13115     if test $in_tree_gas = yes; then
13116     if test $in_tree_gas_is_elf = yes \
13117   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13118   then gcc_cv_as_subsection_m1=yes
13119 fi
13120   elif test x$gcc_cv_as != x; then
13121     echo 'conftest_label1: .word 0
13122 .subsection -1
13123 conftest_label2: .word 0
13124 .previous' > conftest.s
13125     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127   (eval $ac_try) 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }
13131     then
13132         if test x$gcc_cv_nm != x; then
13133     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13134     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13135     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13136     then :
13137     else gcc_cv_as_subsection_m1=yes
13138     fi
13139     rm -f conftest.nm1 conftest.nm2
13140   fi
13141     else
13142       echo "configure: failed program was" >&5
13143       cat conftest.s >&5
13144     fi
13145     rm -f conftest.o conftest.s
13146   fi
13147 fi
13148 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13149 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13150 if test $gcc_cv_as_subsection_m1 = yes; then
13151
13152 cat >>confdefs.h <<\_ACEOF
13153 #define HAVE_GAS_SUBSECTION_ORDERING 1
13154 _ACEOF
13155
13156 fi
13157
13158 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13159 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13160 if test "${gcc_cv_as_weak+set}" = set; then
13161   echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163   gcc_cv_as_weak=no
13164     if test $in_tree_gas = yes; then
13165     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13166   then gcc_cv_as_weak=yes
13167 fi
13168   elif test x$gcc_cv_as != x; then
13169     echo '      .weak foobar' > conftest.s
13170     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172   (eval $ac_try) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }; }
13176     then
13177         gcc_cv_as_weak=yes
13178     else
13179       echo "configure: failed program was" >&5
13180       cat conftest.s >&5
13181     fi
13182     rm -f conftest.o conftest.s
13183   fi
13184 fi
13185 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13186 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13187 if test $gcc_cv_as_weak = yes; then
13188
13189 cat >>confdefs.h <<\_ACEOF
13190 #define HAVE_GAS_WEAK 1
13191 _ACEOF
13192
13193 fi
13194
13195 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13196 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13197 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   gcc_cv_as_nsubspa_comdat=no
13201     if test $in_tree_gas = yes; then
13202     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13203   then gcc_cv_as_nsubspa_comdat=yes
13204 fi
13205   elif test x$gcc_cv_as != x; then
13206     echo '      .SPACE $TEXT$
13207         .NSUBSPA $CODE$,COMDAT' > conftest.s
13208     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210   (eval $ac_try) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; }
13214     then
13215         gcc_cv_as_nsubspa_comdat=yes
13216     else
13217       echo "configure: failed program was" >&5
13218       cat conftest.s >&5
13219     fi
13220     rm -f conftest.o conftest.s
13221   fi
13222 fi
13223 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13224 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13225 if test $gcc_cv_as_nsubspa_comdat = yes; then
13226
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_GAS_NSUBSPA_COMDAT 1
13229 _ACEOF
13230
13231 fi
13232
13233 # .hidden needs to be supported in both the assembler and the linker,
13234 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13235 # This is irritatingly difficult to feature test for; we have to check the
13236 # date string after the version number.  If we've got an in-tree
13237 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13238 # to be safe.
13239 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13240 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13241 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13242 if test "${gcc_cv_as_hidden+set}" = set; then
13243   echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245   gcc_cv_as_hidden=no
13246     if test $in_tree_gas = yes; then
13247     if test $in_tree_gas_is_elf = yes \
13248   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13249   then gcc_cv_as_hidden=yes
13250 fi
13251   elif test x$gcc_cv_as != x; then
13252     echo '      .hidden foobar
13253 foobar:' > conftest.s
13254     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }
13260     then
13261         gcc_cv_as_hidden=yes
13262     else
13263       echo "configure: failed program was" >&5
13264       cat conftest.s >&5
13265     fi
13266     rm -f conftest.o conftest.s
13267   fi
13268 fi
13269 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13270 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13271
13272
13273 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13274 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13275 if test "${gcc_cv_ld_hidden+set}" = set; then
13276   echo $ECHO_N "(cached) $ECHO_C" >&6
13277 else
13278   if test $in_tree_ld = yes ; then
13279   gcc_cv_ld_hidden=no
13280   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 \
13281      && test $in_tree_ld_is_elf = yes; then
13282      gcc_cv_ld_hidden=yes
13283   fi
13284 else
13285   gcc_cv_ld_hidden=yes
13286   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13287   if echo "$ld_ver" | grep GNU > /dev/null; then
13288     ld_vers=`echo $ld_ver | sed -n \
13289         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13290         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13291         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13292         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13293         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13294         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
13295     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'`
13296     if test 0"$ld_date" -lt 20020404; then
13297       if test -n "$ld_date"; then
13298         # If there was date string, but was earlier than 2002-04-04, fail
13299         gcc_cv_ld_hidden=no
13300       elif test -z "$ld_vers"; then
13301         # If there was no date string nor ld version number, something is wrong
13302         gcc_cv_ld_hidden=no
13303       else
13304         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13305         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13306         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13307         test -z "$ld_vers_patch" && ld_vers_patch=0
13308         if test "$ld_vers_major" -lt 2; then
13309           gcc_cv_ld_hidden=no
13310         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13311           gcc_cv_ld_hidden="no"
13312         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13313           gcc_cv_ld_hidden=no
13314         fi
13315       fi
13316     fi
13317   else
13318     case "${target}" in
13319       hppa64*-*-hpux* | ia64*-*-hpux*)
13320         gcc_cv_ld_hidden=yes
13321         ;;
13322       *)
13323         gcc_cv_ld_hidden=no
13324         ;;
13325     esac
13326   fi
13327 fi
13328 fi
13329 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13330 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13331 libgcc_visibility=no
13332
13333 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13334   libgcc_visibility=yes
13335
13336 cat >>confdefs.h <<\_ACEOF
13337 #define HAVE_GAS_HIDDEN 1
13338 _ACEOF
13339
13340 fi
13341
13342 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13343 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13344 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13345 if test "${gcc_cv_as_leb128+set}" = set; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348   gcc_cv_as_leb128=no
13349     if test $in_tree_gas = yes; then
13350     if test $in_tree_gas_is_elf = yes \
13351   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13352   then gcc_cv_as_leb128=yes
13353 fi
13354   elif test x$gcc_cv_as != x; then
13355     echo '      .data
13356         .uleb128 L2 - L1
13357 L1:
13358         .uleb128 1280
13359         .sleb128 -1010
13360 L2:' > conftest.s
13361     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363   (eval $ac_try) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; }
13367     then
13368         # GAS versions before 2.11 do not support uleb128,
13369   # despite appearing to.
13370   # ??? There exists an elf-specific test that will crash
13371   # the assembler.  Perhaps it's better to figure out whether
13372   # arbitrary sections are supported and try the test.
13373   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13374   if echo "$as_ver" | grep GNU > /dev/null; then
13375     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13376     as_major=`echo $as_ver | sed 's/\..*//'`
13377     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13378     if test $as_major -eq 2 && test $as_minor -lt 11
13379     then :
13380     else gcc_cv_as_leb128=yes
13381     fi
13382   fi
13383     else
13384       echo "configure: failed program was" >&5
13385       cat conftest.s >&5
13386     fi
13387     rm -f conftest.o conftest.s
13388   fi
13389 fi
13390 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13391 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13392 if test $gcc_cv_as_leb128 = yes; then
13393
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_AS_LEB128 1
13396 _ACEOF
13397
13398 fi
13399
13400 # GAS versions up to and including 2.11.0 may mis-optimize
13401 # .eh_frame data.
13402 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13403 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13404 if test "${gcc_cv_as_eh_frame+set}" = set; then
13405   echo $ECHO_N "(cached) $ECHO_C" >&6
13406 else
13407   gcc_cv_as_eh_frame=no
13408     if test $in_tree_gas = yes; then
13409     if test $in_tree_gas_is_elf = yes \
13410   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13411   then gcc_cv_as_eh_frame=yes
13412 fi
13413   elif test x$gcc_cv_as != x; then
13414     echo '      .text
13415 .LFB1:
13416         .4byte  0
13417 .L1:
13418         .4byte  0
13419 .LFE1:
13420         .section        .eh_frame,"aw",@progbits
13421 __FRAME_BEGIN__:
13422         .4byte  .LECIE1-.LSCIE1
13423 .LSCIE1:
13424         .4byte  0x0
13425         .byte   0x1
13426         .ascii "z\0"
13427         .byte   0x1
13428         .byte   0x78
13429         .byte   0x1a
13430         .byte   0x0
13431         .byte   0x4
13432         .4byte  1
13433         .p2align 1
13434 .LECIE1:
13435 .LSFDE1:
13436         .4byte  .LEFDE1-.LASFDE1
13437 .LASFDE1:
13438         .4byte  .LASFDE1-__FRAME_BEGIN__
13439         .4byte  .LFB1
13440         .4byte  .LFE1-.LFB1
13441         .byte   0x4
13442         .4byte  .LFE1-.LFB1
13443         .byte   0x4
13444         .4byte  .L1-.LFB1
13445 .LEFDE1:' > conftest.s
13446     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }
13452     then
13453           cat > conftest.lit <<EOF
13454  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13455  0010 01000000 12000000 18000000 00000000  ................
13456  0020 08000000 04080000 0044               .........D      
13457 EOF
13458 cat > conftest.big <<EOF
13459  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13460  0010 00000001 00000012 00000018 00000000  ................
13461  0020 00000008 04000000 0844               .........D      
13462 EOF
13463   # If the assembler didn't choke, and we can objdump,
13464   # and we got the correct data, then succeed.
13465   if test x$gcc_cv_objdump != x \
13466   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13467      | tail -3 > conftest.got \
13468   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13469     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13470   then
13471     gcc_cv_as_eh_frame=yes
13472   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474   (eval $ac_try) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); }; }; then
13478     gcc_cv_as_eh_frame=buggy
13479   else
13480     # Uh oh, what do we do now?
13481     gcc_cv_as_eh_frame=no
13482   fi
13483     else
13484       echo "configure: failed program was" >&5
13485       cat conftest.s >&5
13486     fi
13487     rm -f conftest.o conftest.s
13488   fi
13489 fi
13490 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13491 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13492
13493
13494 if test $gcc_cv_as_eh_frame = buggy; then
13495
13496 cat >>confdefs.h <<\_ACEOF
13497 #define USE_AS_TRADITIONAL_FORMAT 1
13498 _ACEOF
13499
13500 fi
13501
13502 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13503 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13504 if test "${gcc_cv_as_shf_merge+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507   gcc_cv_as_shf_merge=no
13508     if test $in_tree_gas = yes; then
13509     if test $in_tree_gas_is_elf = yes \
13510   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13511   then gcc_cv_as_shf_merge=yes
13512 fi
13513   elif test x$gcc_cv_as != x; then
13514     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13515     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }
13521     then
13522         gcc_cv_as_shf_merge=yes
13523     else
13524       echo "configure: failed program was" >&5
13525       cat conftest.s >&5
13526     fi
13527     rm -f conftest.o conftest.s
13528   fi
13529 fi
13530 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13531 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13532
13533 if test $gcc_cv_as_shf_merge = no; then
13534   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13535 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13536 if test "${gcc_cv_as_shf_merge+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   gcc_cv_as_shf_merge=no
13540     if test $in_tree_gas = yes; then
13541     if test $in_tree_gas_is_elf = yes \
13542   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13543   then gcc_cv_as_shf_merge=yes
13544 fi
13545   elif test x$gcc_cv_as != x; then
13546     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13547     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549   (eval $ac_try) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; }
13553     then
13554         gcc_cv_as_shf_merge=yes
13555     else
13556       echo "configure: failed program was" >&5
13557       cat conftest.s >&5
13558     fi
13559     rm -f conftest.o conftest.s
13560   fi
13561 fi
13562 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13563 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13564
13565 fi
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13569 _ACEOF
13570
13571
13572 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13573 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13574 if test "${gcc_cv_as_comdat_group+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577   gcc_cv_as_comdat_group=no
13578     if test $in_tree_gas = yes; then
13579     if test $in_tree_gas_is_elf = yes \
13580   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13581   then gcc_cv_as_comdat_group=yes
13582 fi
13583   elif test x$gcc_cv_as != x; then
13584     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13585     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }
13591     then
13592         gcc_cv_as_comdat_group=yes
13593     else
13594       echo "configure: failed program was" >&5
13595       cat conftest.s >&5
13596     fi
13597     rm -f conftest.o conftest.s
13598   fi
13599 fi
13600 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13601 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13602
13603 if test $gcc_cv_as_comdat_group = yes; then
13604   gcc_cv_as_comdat_group_percent=no
13605 else
13606  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13607 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13608 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13609   echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611   gcc_cv_as_comdat_group_percent=no
13612     if test $in_tree_gas = yes; then
13613     if test $in_tree_gas_is_elf = yes \
13614   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13615   then gcc_cv_as_comdat_group_percent=yes
13616 fi
13617   elif test x$gcc_cv_as != x; then
13618     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13619     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }
13625     then
13626         gcc_cv_as_comdat_group_percent=yes
13627     else
13628       echo "configure: failed program was" >&5
13629       cat conftest.s >&5
13630     fi
13631     rm -f conftest.o conftest.s
13632   fi
13633 fi
13634 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13635 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13636
13637 fi
13638
13639 cat >>confdefs.h <<_ACEOF
13640 #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`
13641 _ACEOF
13642
13643
13644 # Thread-local storage - the check is heavily parametrized.
13645 conftest_s=
13646 tls_first_major=
13647 tls_first_minor=
13648 tls_as_opt=
13649 case "$target" in
13650   alpha*-*-*)
13651     conftest_s='
13652         .section ".tdata","awT",@progbits
13653 foo:    .long   25
13654         .text
13655         ldq     $27,__tls_get_addr($29)         !literal!1
13656         lda     $16,foo($29)                    !tlsgd!1
13657         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13658         ldq     $27,__tls_get_addr($29)         !literal!2
13659         lda     $16,foo($29)                    !tlsldm!2
13660         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13661         ldq     $1,foo($29)                     !gotdtprel
13662         ldah    $2,foo($29)                     !dtprelhi
13663         lda     $3,foo($2)                      !dtprello
13664         lda     $4,foo($29)                     !dtprel
13665         ldq     $1,foo($29)                     !gottprel
13666         ldah    $2,foo($29)                     !tprelhi
13667         lda     $3,foo($2)                      !tprello
13668         lda     $4,foo($29)                     !tprel'
13669         tls_first_major=2
13670         tls_first_minor=13
13671         tls_as_opt=--fatal-warnings
13672         ;;
13673   frv*-*-*)
13674     conftest_s='
13675         .section ".tdata","awT",@progbits
13676 x:      .long   25
13677         .text
13678         call    #gettlsoff(x)'
13679         tls_first_major=2
13680         tls_first_minor=14
13681         ;;
13682   i[34567]86-*-*)
13683     conftest_s='
13684         .section ".tdata","awT",@progbits
13685 foo:    .long   25
13686         .text
13687         movl    %gs:0, %eax
13688         leal    foo@TLSGD(,%ebx,1), %eax
13689         leal    foo@TLSLDM(%ebx), %eax
13690         leal    foo@DTPOFF(%eax), %edx
13691         movl    foo@GOTTPOFF(%ebx), %eax
13692         subl    foo@GOTTPOFF(%ebx), %eax
13693         addl    foo@GOTNTPOFF(%ebx), %eax
13694         movl    foo@INDNTPOFF, %eax
13695         movl    $foo@TPOFF, %eax
13696         subl    $foo@TPOFF, %eax
13697         leal    foo@NTPOFF(%ecx), %eax'
13698         tls_first_major=2
13699         tls_first_minor=14
13700         tls_as_opt=--fatal-warnings
13701         ;;
13702   x86_64-*-*)
13703     conftest_s='
13704         .section ".tdata","awT",@progbits
13705 foo:    .long   25
13706         .text
13707         movq    %fs:0, %rax
13708         leaq    foo@TLSGD(%rip), %rdi
13709         leaq    foo@TLSLD(%rip), %rdi
13710         leaq    foo@DTPOFF(%rax), %rdx
13711         movq    foo@GOTTPOFF(%rip), %rax
13712         movq    $foo@TPOFF, %rax'
13713         tls_first_major=2
13714         tls_first_minor=14
13715         tls_as_opt=--fatal-warnings
13716         ;;
13717   ia64-*-*)
13718     conftest_s='
13719         .section ".tdata","awT",@progbits
13720 foo:    data8   25
13721         .text
13722         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13723         addl    r17 = @ltoff(@dtprel(foo#)), gp
13724         addl    r18 = @ltoff(@tprel(foo#)), gp
13725         addl    r19 = @dtprel(foo#), gp
13726         adds    r21 = @dtprel(foo#), r13
13727         movl    r23 = @dtprel(foo#)
13728         addl    r20 = @tprel(foo#), gp
13729         adds    r22 = @tprel(foo#), r13
13730         movl    r24 = @tprel(foo#)'
13731         tls_first_major=2
13732         tls_first_minor=13
13733         tls_as_opt=--fatal-warnings
13734         ;;
13735   mips*-*-*)
13736     conftest_s='
13737         .section .tdata,"awT",@progbits
13738 x:
13739         .word 2
13740         .text
13741         addiu $4, $28, %tlsgd(x)
13742         addiu $4, $28, %tlsldm(x)
13743         lui $4, %dtprel_hi(x)
13744         addiu $4, $4, %dtprel_lo(x)
13745         lw $4, %gottprel(x)($28)
13746         lui $4, %tprel_hi(x)
13747         addiu $4, $4, %tprel_lo(x)'
13748         tls_first_major=2
13749         tls_first_minor=16
13750         tls_as_opt='-32 --fatal-warnings'
13751         ;;
13752   powerpc-*-*)
13753     conftest_s='
13754         .section ".tdata","awT",@progbits
13755         .align 2
13756 ld0:    .space 4
13757 ld1:    .space 4
13758 x1:     .space 4
13759 x2:     .space 4
13760 x3:     .space 4
13761         .text
13762         addi 3,31,ld0@got@tlsgd
13763         bl __tls_get_addr
13764         addi 3,31,x1@got@tlsld
13765         bl __tls_get_addr
13766         addi 9,3,x1@dtprel
13767         addis 9,3,x2@dtprel@ha
13768         addi 9,9,x2@dtprel@l
13769         lwz 9,x3@got@tprel(31)
13770         add 9,9,x@tls
13771         addi 9,2,x1@tprel
13772         addis 9,2,x2@tprel@ha
13773         addi 9,9,x2@tprel@l'
13774         tls_first_major=2
13775         tls_first_minor=14
13776         tls_as_opt="-a32 --fatal-warnings"
13777         ;;
13778   powerpc64-*-*)
13779     conftest_s='
13780         .section ".tdata","awT",@progbits
13781         .align 3
13782 ld0:    .space 8
13783 ld1:    .space 8
13784 x1:     .space 8
13785 x2:     .space 8
13786 x3:     .space 8
13787         .text
13788         addi 3,2,ld0@got@tlsgd
13789         bl .__tls_get_addr
13790         nop
13791         addi 3,2,ld1@toc
13792         bl .__tls_get_addr
13793         nop
13794         addi 3,2,x1@got@tlsld
13795         bl .__tls_get_addr
13796         nop
13797         addi 9,3,x1@dtprel
13798         bl .__tls_get_addr
13799         nop
13800         addis 9,3,x2@dtprel@ha
13801         addi 9,9,x2@dtprel@l
13802         bl .__tls_get_addr
13803         nop
13804         ld 9,x3@got@dtprel(2)
13805         add 9,9,3
13806         bl .__tls_get_addr
13807         nop'
13808         tls_first_major=2
13809         tls_first_minor=14
13810         tls_as_opt="-a64 --fatal-warnings"
13811         ;;
13812   s390-*-*)
13813     conftest_s='
13814         .section ".tdata","awT",@progbits
13815 foo:    .long   25
13816         .text
13817         .long   foo@TLSGD
13818         .long   foo@TLSLDM
13819         .long   foo@DTPOFF
13820         .long   foo@NTPOFF
13821         .long   foo@GOTNTPOFF
13822         .long   foo@INDNTPOFF
13823         l       %r1,foo@GOTNTPOFF(%r12)
13824         l       %r1,0(%r1):tls_load:foo
13825         bas     %r14,0(%r1,%r13):tls_gdcall:foo
13826         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
13827         tls_first_major=2
13828         tls_first_minor=14
13829         tls_as_opt="-m31 --fatal-warnings"
13830         ;;
13831   s390x-*-*)
13832     conftest_s='
13833         .section ".tdata","awT",@progbits
13834 foo:    .long   25
13835         .text
13836         .quad   foo@TLSGD
13837         .quad   foo@TLSLDM
13838         .quad   foo@DTPOFF
13839         .quad   foo@NTPOFF
13840         .quad   foo@GOTNTPOFF
13841         lg      %r1,foo@GOTNTPOFF(%r12)
13842         larl    %r1,foo@INDNTPOFF
13843         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
13844         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13845         tls_first_major=2
13846         tls_first_minor=14
13847         tls_as_opt="-m64 -Aesame --fatal-warnings"
13848         ;;
13849   sh-*-* | sh[34]-*-*)
13850     conftest_s='
13851         .section ".tdata","awT",@progbits
13852 foo:    .long   25
13853         .text
13854         .long   foo@TLSGD
13855         .long   foo@TLSLDM
13856         .long   foo@DTPOFF
13857         .long   foo@GOTTPOFF
13858         .long   foo@TPOFF'
13859         tls_first_major=2
13860         tls_first_minor=13
13861         tls_as_opt=--fatal-warnings
13862         ;;
13863   sparc*-*-*)
13864     case "$target" in
13865       sparc*-sun-solaris2.*)
13866         on_solaris=yes
13867         ;;
13868       *)
13869         on_solaris=no
13870         ;;
13871     esac
13872     if test x$on_solaris = xyes && test x$gas_flag = xno; then
13873       conftest_s='
13874         .section ".tdata",#alloc,#write,#tls
13875 foo:    .long   25
13876         .text
13877         sethi   %tgd_hi22(foo), %o0
13878         add     %o0, %tgd_lo10(foo), %o1
13879         add     %l7, %o1, %o0, %tgd_add(foo)
13880         call    __tls_get_addr, %tgd_call(foo)
13881         sethi   %tldm_hi22(foo), %l1
13882         add     %l1, %tldm_lo10(foo), %l2
13883         add     %l7, %l2, %o0, %tldm_add(foo)
13884         call    __tls_get_addr, %tldm_call(foo)
13885         sethi   %tldo_hix22(foo), %l3
13886         xor     %l3, %tldo_lox10(foo), %l4
13887         add     %o0, %l4, %l5, %tldo_add(foo)
13888         sethi   %tie_hi22(foo), %o3
13889         add     %o3, %tie_lo10(foo), %o3
13890         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13891         add     %g7, %o2, %o4, %tie_add(foo)
13892         sethi   %tle_hix22(foo), %l1
13893         xor     %l1, %tle_lox10(foo), %o5
13894         ld      [%g7 + %o5], %o1'
13895         tls_first_major=0
13896         tls_first_minor=0
13897     else
13898       conftest_s='
13899         .section ".tdata","awT",@progbits
13900 foo:    .long   25
13901         .text
13902         sethi   %tgd_hi22(foo), %o0
13903         add     %o0, %tgd_lo10(foo), %o1
13904         add     %l7, %o1, %o0, %tgd_add(foo)
13905         call    __tls_get_addr, %tgd_call(foo)
13906         sethi   %tldm_hi22(foo), %l1
13907         add     %l1, %tldm_lo10(foo), %l2
13908         add     %l7, %l2, %o0, %tldm_add(foo)
13909         call    __tls_get_addr, %tldm_call(foo)
13910         sethi   %tldo_hix22(foo), %l3
13911         xor     %l3, %tldo_lox10(foo), %l4
13912         add     %o0, %l4, %l5, %tldo_add(foo)
13913         sethi   %tie_hi22(foo), %o3
13914         add     %o3, %tie_lo10(foo), %o3
13915         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13916         add     %g7, %o2, %o4, %tie_add(foo)
13917         sethi   %tle_hix22(foo), %l1
13918         xor     %l1, %tle_lox10(foo), %o5
13919         ld      [%g7 + %o5], %o1'
13920         tls_first_major=2
13921         tls_first_minor=14
13922         tls_as_opt="-32 --fatal-warnings"
13923       fi
13924         ;;
13925 esac
13926 if test -z "$tls_first_major"; then
13927   : # If we don't have a check, assume no support.
13928 else
13929   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13930 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13931 if test "${gcc_cv_as_tls+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934   gcc_cv_as_tls=no
13935     if test $in_tree_gas = yes; then
13936     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13937   then gcc_cv_as_tls=yes
13938 fi
13939   elif test x$gcc_cv_as != x; then
13940     echo "$conftest_s" > conftest.s
13941     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }
13947     then
13948         gcc_cv_as_tls=yes
13949     else
13950       echo "configure: failed program was" >&5
13951       cat conftest.s >&5
13952     fi
13953     rm -f conftest.o conftest.s
13954   fi
13955 fi
13956 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13957 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13958 if test $gcc_cv_as_tls = yes; then
13959
13960 cat >>confdefs.h <<\_ACEOF
13961 #define HAVE_AS_TLS 1
13962 _ACEOF
13963
13964 fi
13965 fi
13966
13967 # Target-specific assembler checks.
13968
13969 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13970 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13971 gcc_cv_ld_static_dynamic=no
13972 if test $in_tree_ld = yes ; then
13973   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13974     gcc_cv_ld_static_dynamic=yes
13975   fi
13976 elif test x$gcc_cv_ld != x; then
13977         # Check if linker supports -Bstatic/-Bdynamic option
13978         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13979           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13980                 gcc_cv_ld_static_dynamic=yes
13981         fi
13982 fi
13983 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13984
13985 cat >>confdefs.h <<\_ACEOF
13986 #define HAVE_LD_STATIC_DYNAMIC 1
13987 _ACEOF
13988
13989 fi
13990 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13991 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13992
13993 if test x"$demangler_in_ld" = xyes; then
13994   echo "$as_me:$LINENO: checking linker --demangle support" >&5
13995 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13996   gcc_cv_ld_demangle=no
13997   if test $in_tree_ld = yes; then
13998     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 \
13999       gcc_cv_ld_demangle=yes
14000     fi
14001   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14002     # Check if the GNU linker supports --demangle option
14003     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14004       gcc_cv_ld_demangle=yes
14005     fi
14006   fi
14007   if test x"$gcc_cv_ld_demangle" = xyes; then
14008
14009 cat >>confdefs.h <<\_ACEOF
14010 #define HAVE_LD_DEMANGLE 1
14011 _ACEOF
14012
14013   fi
14014   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14015 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14016 fi
14017
14018 case "$target" in
14019   # All TARGET_ABI_OSF targets.
14020   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14021     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14022 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14023 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14024   echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026   gcc_cv_as_alpha_explicit_relocs=no
14027     if test $in_tree_gas = yes; then
14028     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14029   then gcc_cv_as_alpha_explicit_relocs=yes
14030 fi
14031   elif test x$gcc_cv_as != x; then
14032     echo '      .set nomacro
14033         .text
14034         extbl   $3, $2, $3      !lituse_bytoff!1
14035         ldq     $2, a($29)      !literal!1
14036         ldq     $4, b($29)      !literal!2
14037         ldq_u   $3, 0($2)       !lituse_base!1
14038         ldq     $27, f($29)     !literal!5
14039         jsr     $26, ($27), f   !lituse_jsr!5
14040         ldah    $29, 0($26)     !gpdisp!3
14041         lda     $0, c($29)      !gprel
14042         ldah    $1, d($29)      !gprelhigh
14043         lda     $1, d($1)       !gprellow
14044         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14045     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }
14051     then
14052         gcc_cv_as_alpha_explicit_relocs=yes
14053     else
14054       echo "configure: failed program was" >&5
14055       cat conftest.s >&5
14056     fi
14057     rm -f conftest.o conftest.s
14058   fi
14059 fi
14060 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14061 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14062 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14063
14064 cat >>confdefs.h <<\_ACEOF
14065 #define HAVE_AS_EXPLICIT_RELOCS 1
14066 _ACEOF
14067
14068 fi
14069     ;;
14070
14071   cris-*-*)
14072     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14073 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14074 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077   gcc_cv_as_cris_no_mul_bug=no
14078     if test $in_tree_gas = yes; then
14079     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14080   then gcc_cv_as_cris_no_mul_bug=yes
14081 fi
14082   elif test x$gcc_cv_as != x; then
14083     echo '.text' > conftest.s
14084     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }
14090     then
14091         gcc_cv_as_cris_no_mul_bug=yes
14092     else
14093       echo "configure: failed program was" >&5
14094       cat conftest.s >&5
14095     fi
14096     rm -f conftest.o conftest.s
14097   fi
14098 fi
14099 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14100 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14101 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14102
14103 cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14105 _ACEOF
14106
14107 fi
14108     ;;
14109
14110   sparc*-*-*)
14111     echo "$as_me:$LINENO: checking assembler for .register" >&5
14112 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14113 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14114   echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116   gcc_cv_as_sparc_register_op=no
14117   if test x$gcc_cv_as != x; then
14118     echo '.register %g2, #scratch' > conftest.s
14119     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; }
14125     then
14126         gcc_cv_as_sparc_register_op=yes
14127     else
14128       echo "configure: failed program was" >&5
14129       cat conftest.s >&5
14130     fi
14131     rm -f conftest.o conftest.s
14132   fi
14133 fi
14134 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14135 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14136 if test $gcc_cv_as_sparc_register_op = yes; then
14137
14138 cat >>confdefs.h <<\_ACEOF
14139 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14140 _ACEOF
14141
14142 fi
14143
14144     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14145 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14146 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   gcc_cv_as_sparc_relax=no
14150   if test x$gcc_cv_as != x; then
14151     echo '.text' > conftest.s
14152     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }
14158     then
14159         gcc_cv_as_sparc_relax=yes
14160     else
14161       echo "configure: failed program was" >&5
14162       cat conftest.s >&5
14163     fi
14164     rm -f conftest.o conftest.s
14165   fi
14166 fi
14167 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14168 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14169 if test $gcc_cv_as_sparc_relax = yes; then
14170
14171 cat >>confdefs.h <<\_ACEOF
14172 #define HAVE_AS_RELAX_OPTION 1
14173 _ACEOF
14174
14175 fi
14176
14177     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14178 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14179 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   gcc_cv_as_sparc_ua_pcrel=no
14183   if test x$gcc_cv_as != x; then
14184     echo '.text
14185 foo:
14186         nop
14187 .data
14188 .align 4
14189 .byte 0
14190 .uaword %r_disp32(foo)' > conftest.s
14191     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; }
14197     then
14198         if test x$gcc_cv_ld != x \
14199        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14200          gcc_cv_as_sparc_ua_pcrel=yes
14201        fi
14202        rm -f conftest
14203     else
14204       echo "configure: failed program was" >&5
14205       cat conftest.s >&5
14206     fi
14207     rm -f conftest.o conftest.s
14208   fi
14209 fi
14210 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14211 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14212 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14213
14214 cat >>confdefs.h <<\_ACEOF
14215 #define HAVE_AS_SPARC_UA_PCREL 1
14216 _ACEOF
14217
14218
14219       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14220 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14221 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   gcc_cv_as_sparc_ua_pcrel_hidden=no
14225   if test x$gcc_cv_as != x; then
14226     echo '.data
14227 .align 4
14228 .byte 0x31
14229 .uaword %r_disp32(foo)
14230 .byte 0x32, 0x33, 0x34
14231 .global foo
14232 .hidden foo
14233 foo:
14234 .skip 4' > conftest.s
14235     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237   (eval $ac_try) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }; }
14241     then
14242         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14243          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14244          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14245             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14246             if $gcc_cv_objdump -R conftest 2> /dev/null \
14247                | grep 'DISP32' > /dev/null 2>&1; then
14248                 :
14249             else
14250                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14251             fi
14252          fi
14253          rm -f conftest
14254     else
14255       echo "configure: failed program was" >&5
14256       cat conftest.s >&5
14257     fi
14258     rm -f conftest.o conftest.s
14259   fi
14260 fi
14261 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14262 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14263 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14264
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14267 _ACEOF
14268
14269 fi
14270
14271 fi # unaligned pcrel relocs
14272
14273     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14274 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14275 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   gcc_cv_as_sparc_offsetable_lo10=no
14279   if test x$gcc_cv_as != x; then
14280     echo '.text
14281         or %g1, %lo(ab) + 12, %g1
14282         or %g1, %lo(ab + 12), %g1' > conftest.s
14283     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }
14289     then
14290         if test x$gcc_cv_objdump != x \
14291        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14292           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14293          gcc_cv_as_sparc_offsetable_lo10=yes
14294        fi
14295     else
14296       echo "configure: failed program was" >&5
14297       cat conftest.s >&5
14298     fi
14299     rm -f conftest.o conftest.s
14300   fi
14301 fi
14302 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14303 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14304 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14305
14306 cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_AS_OFFSETABLE_LO10 1
14308 _ACEOF
14309
14310 fi
14311     ;;
14312
14313   i[34567]86-*-* | x86_64-*-*)
14314     case $target_os in
14315       cygwin* | pe | mingw32*)
14316         # Used for DWARF 2 in PE
14317         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14318 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14319 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14320   echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322   gcc_cv_as_ix86_pe_secrel32=no
14323     if test $in_tree_gas = yes; then
14324     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14325   then gcc_cv_as_ix86_pe_secrel32=yes
14326 fi
14327   elif test x$gcc_cv_as != x; then
14328     echo '.text
14329 foo:    nop
14330 .data
14331         .secrel32 foo' > conftest.s
14332     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }
14338     then
14339         if test x$gcc_cv_ld != x \
14340            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14341              gcc_cv_as_ix86_pe_secrel32=yes
14342            fi
14343            rm -f conftest
14344     else
14345       echo "configure: failed program was" >&5
14346       cat conftest.s >&5
14347     fi
14348     rm -f conftest.o conftest.s
14349   fi
14350 fi
14351 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14352 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14353 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_GAS_PE_SECREL32_RELOC 1
14357 _ACEOF
14358
14359 fi
14360         ;;
14361     esac
14362
14363     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14364 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14365 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368   gcc_cv_as_ix86_filds_fists=no
14369     if test $in_tree_gas = yes; then
14370     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14371   then gcc_cv_as_ix86_filds_fists=yes
14372 fi
14373   elif test x$gcc_cv_as != x; then
14374     echo 'filds mem; fists mem' > conftest.s
14375     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; }
14381     then
14382         gcc_cv_as_ix86_filds_fists=yes
14383     else
14384       echo "configure: failed program was" >&5
14385       cat conftest.s >&5
14386     fi
14387     rm -f conftest.o conftest.s
14388   fi
14389 fi
14390 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14391 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14392 if test $gcc_cv_as_ix86_filds_fists = yes; then
14393
14394 cat >>confdefs.h <<\_ACEOF
14395 #define HAVE_GAS_FILDS_FISTS 1
14396 _ACEOF
14397
14398 fi
14399
14400     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14401 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14402 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405   gcc_cv_as_ix86_cmov_sun_syntax=no
14406   if test x$gcc_cv_as != x; then
14407     echo 'cmovl.l %edx, %eax' > conftest.s
14408     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410   (eval $ac_try) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }
14414     then
14415         gcc_cv_as_ix86_cmov_sun_syntax=yes
14416     else
14417       echo "configure: failed program was" >&5
14418       cat conftest.s >&5
14419     fi
14420     rm -f conftest.o conftest.s
14421   fi
14422 fi
14423 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14424 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14425 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14426
14427 cat >>confdefs.h <<\_ACEOF
14428 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14429 _ACEOF
14430
14431 fi
14432
14433     # This one is used unconditionally by i386.[ch]; it is to be defined
14434     # to 1 if the feature is present, 0 otherwise.
14435     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14436 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14437 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14438   echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440   gcc_cv_as_ix86_gotoff_in_data=no
14441     if test $in_tree_gas = yes; then
14442     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14443   then gcc_cv_as_ix86_gotoff_in_data=yes
14444 fi
14445   elif test x$gcc_cv_as != x; then
14446     echo '      .text
14447 .L0:
14448         nop
14449         .data
14450         .long .L0@GOTOFF' > conftest.s
14451     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453   (eval $ac_try) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; }
14457     then
14458         gcc_cv_as_ix86_gotoff_in_data=yes
14459     else
14460       echo "configure: failed program was" >&5
14461       cat conftest.s >&5
14462     fi
14463     rm -f conftest.o conftest.s
14464   fi
14465 fi
14466 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14467 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14468
14469
14470 cat >>confdefs.h <<_ACEOF
14471 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14472 _ACEOF
14473
14474     ;;
14475
14476   ia64*-*-*)
14477     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14478 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14479 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14483     if test $in_tree_gas = yes; then
14484     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14485   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14486 fi
14487   elif test x$gcc_cv_as != x; then
14488     echo '      .text
14489         addl r15 = @ltoffx(x#), gp
14490         ;;
14491         ld8.mov r16 = [r15], x#' > conftest.s
14492     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }
14498     then
14499         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14500     else
14501       echo "configure: failed program was" >&5
14502       cat conftest.s >&5
14503     fi
14504     rm -f conftest.o conftest.s
14505   fi
14506 fi
14507 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14508 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14509 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14510
14511 cat >>confdefs.h <<\_ACEOF
14512 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14513 _ACEOF
14514
14515 fi
14516
14517     ;;
14518
14519   powerpc*-*-*)
14520     case $target in
14521       *-*-aix*) conftest_s='    .csect .text[PR]
14522         mfcr 3,128';;
14523       *-*-darwin*)
14524         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14525 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14526 if test "${gcc_cv_as_machine_directive+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   gcc_cv_as_machine_directive=no
14530   if test x$gcc_cv_as != x; then
14531     echo '      .machine ppc7400' > conftest.s
14532     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }
14538     then
14539         gcc_cv_as_machine_directive=yes
14540     else
14541       echo "configure: failed program was" >&5
14542       cat conftest.s >&5
14543     fi
14544     rm -f conftest.o conftest.s
14545   fi
14546 fi
14547 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14548 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14549
14550         if test x$gcc_cv_as_machine_directive != xyes; then
14551           echo "*** This target requires an assembler supporting \".machine\"" >&2
14552           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14553           test x$build = x$target && exit 1
14554         fi
14555         conftest_s='    .text
14556         mfcr r3,128';;
14557       *) conftest_s='   .machine power4
14558         .text
14559         mfcr 3,128';;
14560     esac
14561
14562     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14563 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14564 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14565   echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567   gcc_cv_as_powerpc_mfcrf=no
14568     if test $in_tree_gas = yes; then
14569     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14570   then gcc_cv_as_powerpc_mfcrf=yes
14571 fi
14572   elif test x$gcc_cv_as != x; then
14573     echo "$conftest_s" > conftest.s
14574     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }
14580     then
14581         gcc_cv_as_powerpc_mfcrf=yes
14582     else
14583       echo "configure: failed program was" >&5
14584       cat conftest.s >&5
14585     fi
14586     rm -f conftest.o conftest.s
14587   fi
14588 fi
14589 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14590 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14591 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14592
14593 cat >>confdefs.h <<\_ACEOF
14594 #define HAVE_AS_MFCRF 1
14595 _ACEOF
14596
14597 fi
14598     ;;
14599
14600   mips*-*-*)
14601     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14602 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14603 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606   gcc_cv_as_mips_explicit_relocs=no
14607     if test $in_tree_gas = yes; then
14608     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14609   then gcc_cv_as_mips_explicit_relocs=yes
14610 fi
14611   elif test x$gcc_cv_as != x; then
14612     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
14613     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }
14619     then
14620         gcc_cv_as_mips_explicit_relocs=yes
14621     else
14622       echo "configure: failed program was" >&5
14623       cat conftest.s >&5
14624     fi
14625     rm -f conftest.o conftest.s
14626   fi
14627 fi
14628 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14629 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14630 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14631   if test x$target_cpu_default = x
14632        then target_cpu_default=MASK_EXPLICIT_RELOCS
14633        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14634        fi
14635 fi
14636
14637     if test x$gas_flag = xyes \
14638        || test x"$host" != x"$build" \
14639        || test ! -x "$gcc_cv_as" \
14640        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14641       :
14642     else
14643       echo "*** This configuration requires the GNU assembler" >&2
14644       exit 1
14645     fi
14646     ;;
14647 esac
14648 # ??? Not all targets support dwarf2 debug_line, even within a version
14649 # of gas.  Moreover, we need to emit a valid instruction to trigger any
14650 # info to the output file.  So, as supported targets are added to gas 2.11,
14651 # add some instruction here to (also) show we expect this might work.
14652 # ??? Once 2.11 is released, probably need to add first known working
14653 # version to the per-target configury.
14654 case "$target" in
14655   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14656   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14657   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14658     insn="nop"
14659     ;;
14660   ia64*-*-* | s390*-*-*)
14661     insn="nop 0"
14662     ;;
14663   mmix-*-*)
14664     insn="swym 0"
14665     ;;
14666 esac
14667 if test x"$insn" != x; then
14668  conftest_s="\
14669         .file 1 \"conftest.s\"
14670         .loc 1 3 0
14671         $insn"
14672  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14673 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14674 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14675   echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677   gcc_cv_as_dwarf2_debug_line=no
14678     if test $in_tree_gas = yes; then
14679     if test $in_tree_gas_is_elf = yes \
14680   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14681   then gcc_cv_as_dwarf2_debug_line=yes
14682 fi
14683   elif test x$gcc_cv_as != x; then
14684     echo "$conftest_s" > conftest.s
14685     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }
14691     then
14692         if test x$gcc_cv_objdump != x \
14693    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14694       | grep debug_line > /dev/null 2>&1; then
14695      gcc_cv_as_dwarf2_debug_line=yes
14696    fi
14697     else
14698       echo "configure: failed program was" >&5
14699       cat conftest.s >&5
14700     fi
14701     rm -f conftest.o conftest.s
14702   fi
14703 fi
14704 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14705 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14706
14707
14708 # The .debug_line file table must be in the exact order that
14709 # we specified the files, since these indices are also used
14710 # by DW_AT_decl_file.  Approximate this test by testing if
14711 # the assembler bitches if the same index is assigned twice.
14712  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14713 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14714 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   gcc_cv_as_dwarf2_file_buggy=no
14718   if test x$gcc_cv_as != x; then
14719     echo '      .file 1 "foo.s"
14720         .file 1 "bar.s"' > conftest.s
14721     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }
14727     then
14728         gcc_cv_as_dwarf2_file_buggy=yes
14729     else
14730       echo "configure: failed program was" >&5
14731       cat conftest.s >&5
14732     fi
14733     rm -f conftest.o conftest.s
14734   fi
14735 fi
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14737 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14738
14739
14740  if test $gcc_cv_as_dwarf2_debug_line = yes \
14741  && test $gcc_cv_as_dwarf2_file_buggy = no; then
14742
14743 cat >>confdefs.h <<\_ACEOF
14744 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14745 _ACEOF
14746
14747  fi
14748
14749  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14750 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14751 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754   gcc_cv_as_gdwarf2_flag=no
14755     if test $in_tree_gas = yes; then
14756     if test $in_tree_gas_is_elf = yes \
14757   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14758   then gcc_cv_as_gdwarf2_flag=yes
14759 fi
14760   elif test x$gcc_cv_as != x; then
14761     echo "$insn" > conftest.s
14762     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764   (eval $ac_try) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }
14768     then
14769         gcc_cv_as_gdwarf2_flag=yes
14770     else
14771       echo "configure: failed program was" >&5
14772       cat conftest.s >&5
14773     fi
14774     rm -f conftest.o conftest.s
14775   fi
14776 fi
14777 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14778 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14779 if test $gcc_cv_as_gdwarf2_flag = yes; then
14780
14781 cat >>confdefs.h <<\_ACEOF
14782 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14783 _ACEOF
14784
14785 fi
14786
14787  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14788 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14789 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792   gcc_cv_as_gstabs_flag=no
14793     if test $in_tree_gas = yes; then
14794     if test $in_tree_gas_is_elf = yes \
14795   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14796   then gcc_cv_as_gstabs_flag=yes
14797 fi
14798   elif test x$gcc_cv_as != x; then
14799     echo "$insn" > conftest.s
14800     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; }
14806     then
14807         # The native Solaris 9/Intel assembler doesn't understand --gstabs
14808    # and warns about it, but still exits successfully.  So check for
14809    # this.
14810    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812   (eval $ac_try) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); }; }
14816    then :
14817    else gcc_cv_as_gstabs_flag=yes
14818    fi
14819     else
14820       echo "configure: failed program was" >&5
14821       cat conftest.s >&5
14822     fi
14823     rm -f conftest.o conftest.s
14824   fi
14825 fi
14826 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14827 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14828 if test $gcc_cv_as_gstabs_flag = yes; then
14829
14830 cat >>confdefs.h <<\_ACEOF
14831 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14832 _ACEOF
14833
14834 fi
14835 fi
14836
14837 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14838 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14839 gcc_cv_ld_ro_rw_mix=unknown
14840 if test $in_tree_ld = yes ; then
14841   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 \
14842      && test $in_tree_ld_is_elf = yes; then
14843     gcc_cv_ld_ro_rw_mix=read-write
14844   fi
14845 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14846   echo '.section myfoosect, "a"' > conftest1.s
14847   echo '.section myfoosect, "aw"' > conftest2.s
14848   echo '.byte 1' >> conftest2.s
14849   echo '.section myfoosect, "a"' > conftest3.s
14850   echo '.byte 0' >> conftest3.s
14851   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14852      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14853      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14854      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14855         conftest2.o conftest3.o > /dev/null 2>&1; then
14856     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14857                          | sed -e '/myfoosect/!d' -e N`
14858     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14859       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14860         gcc_cv_ld_ro_rw_mix=read-only
14861       else
14862         gcc_cv_ld_ro_rw_mix=read-write
14863       fi
14864     fi
14865   fi
14866   rm -f conftest.* conftest[123].*
14867 fi
14868 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14869
14870 cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14872 _ACEOF
14873
14874 fi
14875 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14876 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14877
14878 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14879 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14880 gcc_cv_ld_eh_frame_hdr=no
14881 if test $in_tree_ld = yes ; then
14882   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 \
14883      && test $in_tree_ld_is_elf = yes; then
14884     gcc_cv_ld_eh_frame_hdr=yes
14885   fi
14886 elif test x$gcc_cv_ld != x; then
14887         # Check if linker supports --eh-frame-hdr option
14888         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14889                 gcc_cv_ld_eh_frame_hdr=yes
14890         fi
14891 fi
14892 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14893
14894 cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_LD_EH_FRAME_HDR 1
14896 _ACEOF
14897
14898 fi
14899 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14900 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14901
14902 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14903 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14904 gcc_cv_ld_pie=no
14905 if test $in_tree_ld = yes ; then
14906   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 \
14907      && test $in_tree_ld_is_elf = yes; then
14908     gcc_cv_ld_pie=yes
14909   fi
14910 elif test x$gcc_cv_ld != x; then
14911         # Check if linker supports -pie option
14912         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14913                 gcc_cv_ld_pie=yes
14914         fi
14915 fi
14916 if test x"$gcc_cv_ld_pie" = xyes; then
14917
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_LD_PIE 1
14920 _ACEOF
14921
14922 fi
14923 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14924 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14925
14926 # --------
14927 # UNSORTED
14928 # --------
14929
14930 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14931 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14932 if test "${gcc_cv_ld_as_needed+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   gcc_cv_ld_as_needed=no
14936 if test $in_tree_ld = yes ; then
14937   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 \
14938      && test $in_tree_ld_is_elf = yes; then
14939     gcc_cv_ld_as_needed=yes
14940   fi
14941 elif test x$gcc_cv_ld != x; then
14942         # Check if linker supports --as-needed and --no-as-needed options
14943         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14944                 gcc_cv_ld_as_needed=yes
14945         fi
14946 fi
14947
14948 fi
14949 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14950 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14951 if test x"$gcc_cv_ld_as_needed" = xyes; then
14952
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_LD_AS_NEEDED 1
14955 _ACEOF
14956
14957 fi
14958
14959 case "$target" in
14960   powerpc64*-*-linux*)
14961     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14962 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14963 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   gcc_cv_ld_no_dot_syms=no
14967     if test $in_tree_ld = yes ; then
14968       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
14969         gcc_cv_ld_no_dot_syms=yes
14970       fi
14971     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14972       cat > conftest1.s <<EOF
14973         .text
14974         bl .foo
14975 EOF
14976       cat > conftest2.s <<EOF
14977         .section ".opd","aw"
14978         .align 3
14979         .globl foo
14980         .type foo,@function
14981 foo:
14982         .quad .LEfoo,.TOC.@tocbase,0
14983         .text
14984 .LEfoo:
14985         blr
14986         .size foo,.-.LEfoo
14987 EOF
14988       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14989          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14990          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14991         gcc_cv_ld_no_dot_syms=yes
14992       fi
14993       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14994     fi
14995
14996 fi
14997 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14998 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14999     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15000
15001 cat >>confdefs.h <<\_ACEOF
15002 #define HAVE_LD_NO_DOT_SYMS 1
15003 _ACEOF
15004
15005     fi
15006     ;;
15007 esac
15008
15009 if test x$with_sysroot = x && test x$host = x$target \
15010    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15011
15012 cat >>confdefs.h <<_ACEOF
15013 #define PREFIX_INCLUDE_DIR "$prefix/include"
15014 _ACEOF
15015
15016 fi
15017
15018 # Find out what GC implementation we want, or may, use.
15019
15020 # Check whether --with-gc or --without-gc was given.
15021 if test "${with_gc+set}" = set; then
15022   withval="$with_gc"
15023   case "$withval" in
15024   page)
15025     GGC=ggc-$withval
15026     ;;
15027   zone)
15028     GGC=ggc-$withval
15029
15030 cat >>confdefs.h <<\_ACEOF
15031 #define GGC_ZONE 1
15032 _ACEOF
15033
15034     ;;
15035   *)
15036     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15037 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15038    { (exit 1); exit 1; }; }
15039     ;;
15040 esac
15041 else
15042   GGC=ggc-page
15043 fi;
15044
15045 echo "Using $GGC for garbage collection."
15046
15047 # Use the system's zlib library.
15048 zlibdir=-L../zlib
15049 zlibinc="-I\$(srcdir)/../zlib"
15050
15051 # Check whether --with-system-zlib or --without-system-zlib was given.
15052 if test "${with_system_zlib+set}" = set; then
15053   withval="$with_system_zlib"
15054   zlibdir=
15055 zlibinc=
15056
15057 fi;
15058
15059
15060
15061
15062 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15063 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15064     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15065 if test "${enable_maintainer_mode+set}" = set; then
15066   enableval="$enable_maintainer_mode"
15067   maintainer_mode=$enableval
15068 else
15069   maintainer_mode=no
15070 fi;
15071
15072 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15073 echo "${ECHO_T}$maintainer_mode" >&6
15074
15075 if test "$maintainer_mode" = "yes"; then
15076   MAINT=''
15077 else
15078   MAINT='#'
15079 fi
15080
15081 # --------------
15082 # Language hooks
15083 # --------------
15084
15085 # Make empty files to contain the specs and options for each language.
15086 # Then add #include lines to for a compiler that has specs and/or options.
15087
15088 lang_opt_files=
15089 lang_specs_files=
15090 lang_tree_files=
15091 for subdir in . $subdirs
15092 do
15093         if test -f $srcdir/$subdir/lang.opt; then
15094             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15095         fi
15096         if test -f $srcdir/$subdir/lang-specs.h; then
15097             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15098         fi
15099         if test -f $srcdir/$subdir/$subdir-tree.def; then
15100             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15101         fi
15102 done
15103
15104 # These (without "all_") are set in each config-lang.in.
15105 # `language' must be a single word so is spelled singularly.
15106 all_languages=
15107 all_boot_languages=
15108 all_compilers=
15109 all_stagestuff=
15110 all_outputs='Makefile gccbug mklibgcc libada-mk'
15111 # List of language makefile fragments.
15112 all_lang_makefrags=
15113 # List of language subdirectory makefiles.  Deprecated.
15114 all_lang_makefiles=
15115 # Files for gengtype
15116 all_gtfiles="$target_gtfiles"
15117 # Files for gengtype with language
15118 all_gtfiles_files_langs=
15119 all_gtfiles_files_files=
15120
15121 # Add the language fragments.
15122 # Languages are added via two mechanisms.  Some information must be
15123 # recorded in makefile variables, these are defined in config-lang.in.
15124 # We accumulate them and plug them into the main Makefile.
15125 # The other mechanism is a set of hooks for each of the main targets
15126 # like `clean', `install', etc.
15127
15128 language_hooks="Make-hooks"
15129
15130 for s in $subdirs
15131 do
15132                 language=
15133                 boot_language=
15134                 compilers=
15135                 stagestuff=
15136                 outputs=
15137                 gtfiles=
15138                 . ${srcdir}/$s/config-lang.in
15139                 if test "x$language" = x
15140                 then
15141                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15142                         exit 1
15143                 fi
15144                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15145                 if test -f ${srcdir}/$s/Makefile.in
15146                 then all_lang_makefiles="$s/Makefile"
15147                 fi
15148                 all_languages="$all_languages $language"
15149                 if test "x$boot_language" = xyes
15150                 then
15151                         all_boot_languages="$all_boot_languages $language"
15152                 fi
15153                 all_compilers="$all_compilers $compilers"
15154                 all_stagestuff="$all_stagestuff $stagestuff"
15155                 all_outputs="$all_outputs $outputs"
15156                 all_gtfiles="$all_gtfiles $gtfiles"
15157                 for f in $gtfiles
15158                 do
15159                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15160                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15161                 done
15162 done
15163
15164 # Pick up gtfiles for c
15165 gtfiles=
15166 s="c"
15167 . ${srcdir}/c-config-lang.in
15168 all_gtfiles="$all_gtfiles $gtfiles"
15169 for f in $gtfiles
15170 do
15171         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15172         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15173 done
15174
15175 check_languages=
15176 for language in $all_languages
15177 do
15178                 check_languages="$check_languages check-$language"
15179 done
15180
15181 # We link each language in with a set of hooks, reached indirectly via
15182 # lang.${target}.
15183
15184 rm -f Make-hooks
15185 touch Make-hooks
15186 target_list="all.build all.cross start.encap rest.encap tags \
15187         install-normal install-common install-man \
15188         uninstall info man srcextra srcman srcinfo \
15189         mostlyclean clean distclean maintainer-clean \
15190         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15191 for t in $target_list
15192 do
15193         x=
15194         for lang in $all_languages
15195         do
15196                         x="$x $lang.$t"
15197         done
15198         echo "lang.$t: $x" >> Make-hooks
15199 done
15200
15201 # --------
15202 # UNSORTED
15203 # --------
15204
15205 # Create .gdbinit.
15206
15207 echo "dir ." > .gdbinit
15208 echo "dir ${srcdir}" >> .gdbinit
15209 if test x$gdb_needs_out_file_path = xyes
15210 then
15211         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15212 fi
15213 if test "x$subdirs" != x; then
15214         for s in $subdirs
15215         do
15216                 echo "dir ${srcdir}/$s" >> .gdbinit
15217         done
15218 fi
15219 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15220
15221 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15222 # absolute path for gcc_tooldir based on inserting the number of up-directory
15223 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15224 # $(libsubdir)/@(unlibsubdir) based path.
15225 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15226 # make and thus we'd get different behavior depending on where we built the
15227 # sources.
15228 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15229     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15230 else
15231 # An explanation of the sed strings:
15232 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15233 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15234 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15235 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15236 #
15237 # (*) Note this pattern overwrites the first character of the string
15238 # with a forward slash if one is not already present.  This is not a
15239 # problem because the exact names of the sub-directories concerned is
15240 # unimportant, just the number of them matters.
15241 #
15242 # The practical upshot of these patterns is like this:
15243 #
15244 #  prefix     exec_prefix        result
15245 #  ------     -----------        ------
15246 #   /foo        /foo/bar          ../
15247 #   /foo/       /foo/bar          ../
15248 #   /foo        /foo/bar/         ../
15249 #   /foo/       /foo/bar/         ../
15250 #   /foo        /foo/bar/ugg      ../../
15251 #
15252     dollar='$$'
15253     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15254 fi
15255
15256
15257
15258 # Find a directory in which to install a shared libgcc.
15259
15260 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15261 if test "${enable_version_specific_runtime_libs+set}" = set; then
15262   enableval="$enable_version_specific_runtime_libs"
15263
15264 fi;
15265
15266
15267 # Check whether --with-slibdir or --without-slibdir was given.
15268 if test "${with_slibdir+set}" = set; then
15269   withval="$with_slibdir"
15270   slibdir="$with_slibdir"
15271 else
15272   if test "${enable_version_specific_runtime_libs+set}" = set; then
15273   slibdir='$(libsubdir)'
15274 elif test "$host" != "$target"; then
15275   slibdir='$(build_tooldir)/lib'
15276 else
15277   slibdir='$(libdir)'
15278 fi
15279 fi;
15280
15281
15282 objdir=`${PWDCMD-pwd}`
15283
15284
15285 # Substitute configuration variables
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
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15351   # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15352   #
15353   #     eval "set_gcc_lib_path=XXX=path; export XXX;"
15354   #
15355   eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15356   # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15357   set_gcc_lib_path="export $set_gcc_lib_path"
15358 else
15359   set_gcc_lib_path=
15360 fi
15361
15362
15363
15364 # Echo link setup.
15365 if test x${build} = x${host} ; then
15366   if test x${host} = x${target} ; then
15367     echo "Links are now set up to build a native compiler for ${target}." 1>&2
15368   else
15369     echo "Links are now set up to build a cross-compiler" 1>&2
15370     echo " from ${host} to ${target}." 1>&2
15371   fi
15372 else
15373   if test x${host} = x${target} ; then
15374     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15375     echo " for ${target}." 1>&2
15376   else
15377     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15378     echo " from ${host} to ${target}." 1>&2
15379   fi
15380 fi
15381
15382
15383
15384
15385 # Configure the subdirectories
15386 # AC_CONFIG_SUBDIRS($subdirs)
15387
15388 # Create the Makefile
15389 # and configure language subdirectories
15390           ac_config_files="$ac_config_files $all_outputs"
15391
15392
15393           ac_config_commands="$ac_config_commands default"
15394
15395 cat >confcache <<\_ACEOF
15396 # This file is a shell script that caches the results of configure
15397 # tests run on this system so they can be shared between configure
15398 # scripts and configure runs, see configure's option --config-cache.
15399 # It is not useful on other systems.  If it contains results you don't
15400 # want to keep, you may remove or edit it.
15401 #
15402 # config.status only pays attention to the cache file if you give it
15403 # the --recheck option to rerun configure.
15404 #
15405 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15406 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15407 # following values.
15408
15409 _ACEOF
15410
15411 # The following way of writing the cache mishandles newlines in values,
15412 # but we know of no workaround that is simple, portable, and efficient.
15413 # So, don't put newlines in cache variables' values.
15414 # Ultrix sh set writes to stderr and can't be redirected directly,
15415 # and sets the high bit in the cache file unless we assign to the vars.
15416 {
15417   (set) 2>&1 |
15418     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15419     *ac_space=\ *)
15420       # `set' does not quote correctly, so add quotes (double-quote
15421       # substitution turns \\\\ into \\, and sed turns \\ into \).
15422       sed -n \
15423         "s/'/'\\\\''/g;
15424           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15425       ;;
15426     *)
15427       # `set' quotes correctly as required by POSIX, so do not add quotes.
15428       sed -n \
15429         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15430       ;;
15431     esac;
15432 } |
15433   sed '
15434      t clear
15435      : clear
15436      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15437      t end
15438      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15439      : end' >>confcache
15440 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15441   if test -w $cache_file; then
15442     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15443     cat confcache >$cache_file
15444   else
15445     echo "not updating unwritable cache $cache_file"
15446   fi
15447 fi
15448 rm -f confcache
15449
15450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15451 # Let make expand exec_prefix.
15452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15453
15454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15456 # trailing colons and then remove the whole line if VPATH becomes empty
15457 # (actually we leave an empty line to preserve line numbers).
15458 if test "x$srcdir" = x.; then
15459   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15460 s/:*\$(srcdir):*/:/;
15461 s/:*\${srcdir}:*/:/;
15462 s/:*@srcdir@:*/:/;
15463 s/^\([^=]*=[     ]*\):*/\1/;
15464 s/:*$//;
15465 s/^[^=]*=[       ]*$//;
15466 }'
15467 fi
15468
15469 DEFS=-DHAVE_CONFIG_H
15470
15471 ac_libobjs=
15472 ac_ltlibobjs=
15473 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15474   # 1. Remove the extension, and $U if already installed.
15475   ac_i=`echo "$ac_i" |
15476          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15477   # 2. Add them.
15478   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15479   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15480 done
15481 LIBOBJS=$ac_libobjs
15482
15483 LTLIBOBJS=$ac_ltlibobjs
15484
15485
15486
15487 : ${CONFIG_STATUS=./config.status}
15488 ac_clean_files_save=$ac_clean_files
15489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15492 cat >$CONFIG_STATUS <<_ACEOF
15493 #! $SHELL
15494 # Generated by $as_me.
15495 # Run this file to recreate the current configuration.
15496 # Compiler output produced by configure, useful for debugging
15497 # configure, is in config.log if it exists.
15498
15499 debug=false
15500 ac_cs_recheck=false
15501 ac_cs_silent=false
15502 SHELL=\${CONFIG_SHELL-$SHELL}
15503 _ACEOF
15504
15505 cat >>$CONFIG_STATUS <<\_ACEOF
15506 ## --------------------- ##
15507 ## M4sh Initialization.  ##
15508 ## --------------------- ##
15509
15510 # Be Bourne compatible
15511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15512   emulate sh
15513   NULLCMD=:
15514   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15515   # is contrary to our usage.  Disable this feature.
15516   alias -g '${1+"$@"}'='"$@"'
15517 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15518   set -o posix
15519 fi
15520 DUALCASE=1; export DUALCASE # for MKS sh
15521
15522 # Support unset when possible.
15523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15524   as_unset=unset
15525 else
15526   as_unset=false
15527 fi
15528
15529
15530 # Work around bugs in pre-3.0 UWIN ksh.
15531 $as_unset ENV MAIL MAILPATH
15532 PS1='$ '
15533 PS2='> '
15534 PS4='+ '
15535
15536 # NLS nuisances.
15537 for as_var in \
15538   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15539   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15540   LC_TELEPHONE LC_TIME
15541 do
15542   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15543     eval $as_var=C; export $as_var
15544   else
15545     $as_unset $as_var
15546   fi
15547 done
15548
15549 # Required to use basename.
15550 if expr a : '\(a\)' >/dev/null 2>&1; then
15551   as_expr=expr
15552 else
15553   as_expr=false
15554 fi
15555
15556 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15557   as_basename=basename
15558 else
15559   as_basename=false
15560 fi
15561
15562
15563 # Name of the executable.
15564 as_me=`$as_basename "$0" ||
15565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15566          X"$0" : 'X\(//\)$' \| \
15567          X"$0" : 'X\(/\)$' \| \
15568          .     : '\(.\)' 2>/dev/null ||
15569 echo X/"$0" |
15570     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15571           /^X\/\(\/\/\)$/{ s//\1/; q; }
15572           /^X\/\(\/\).*/{ s//\1/; q; }
15573           s/.*/./; q'`
15574
15575
15576 # PATH needs CR, and LINENO needs CR and PATH.
15577 # Avoid depending upon Character Ranges.
15578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15581 as_cr_digits='0123456789'
15582 as_cr_alnum=$as_cr_Letters$as_cr_digits
15583
15584 # The user is always right.
15585 if test "${PATH_SEPARATOR+set}" != set; then
15586   echo "#! /bin/sh" >conf$$.sh
15587   echo  "exit 0"   >>conf$$.sh
15588   chmod +x conf$$.sh
15589   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15590     PATH_SEPARATOR=';'
15591   else
15592     PATH_SEPARATOR=:
15593   fi
15594   rm -f conf$$.sh
15595 fi
15596
15597
15598   as_lineno_1=$LINENO
15599   as_lineno_2=$LINENO
15600   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15601   test "x$as_lineno_1" != "x$as_lineno_2" &&
15602   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15603   # Find who we are.  Look in the path if we contain no path at all
15604   # relative or not.
15605   case $0 in
15606     *[\\/]* ) as_myself=$0 ;;
15607     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15608 for as_dir in $PATH
15609 do
15610   IFS=$as_save_IFS
15611   test -z "$as_dir" && as_dir=.
15612   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15613 done
15614
15615        ;;
15616   esac
15617   # We did not find ourselves, most probably we were run as `sh COMMAND'
15618   # in which case we are not to be found in the path.
15619   if test "x$as_myself" = x; then
15620     as_myself=$0
15621   fi
15622   if test ! -f "$as_myself"; then
15623     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15624 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15625    { (exit 1); exit 1; }; }
15626   fi
15627   case $CONFIG_SHELL in
15628   '')
15629     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15631 do
15632   IFS=$as_save_IFS
15633   test -z "$as_dir" && as_dir=.
15634   for as_base in sh bash ksh sh5; do
15635          case $as_dir in
15636          /*)
15637            if ("$as_dir/$as_base" -c '
15638   as_lineno_1=$LINENO
15639   as_lineno_2=$LINENO
15640   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15641   test "x$as_lineno_1" != "x$as_lineno_2" &&
15642   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15643              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15644              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15645              CONFIG_SHELL=$as_dir/$as_base
15646              export CONFIG_SHELL
15647              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15648            fi;;
15649          esac
15650        done
15651 done
15652 ;;
15653   esac
15654
15655   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15656   # uniformly replaced by the line number.  The first 'sed' inserts a
15657   # line-number line before each line; the second 'sed' does the real
15658   # work.  The second script uses 'N' to pair each line-number line
15659   # with the numbered line, and appends trailing '-' during
15660   # substitution so that $LINENO is not a special case at line end.
15661   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15662   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15663   sed '=' <$as_myself |
15664     sed '
15665       N
15666       s,$,-,
15667       : loop
15668       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15669       t loop
15670       s,-$,,
15671       s,^['$as_cr_digits']*\n,,
15672     ' >$as_me.lineno &&
15673   chmod +x $as_me.lineno ||
15674     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15675 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15676    { (exit 1); exit 1; }; }
15677
15678   # Don't try to exec as it changes $[0], causing all sort of problems
15679   # (the dirname of $[0] is not the place where we might find the
15680   # original and so on.  Autoconf is especially sensible to this).
15681   . ./$as_me.lineno
15682   # Exit status is that of the last command.
15683   exit
15684 }
15685
15686
15687 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15688   *c*,-n*) ECHO_N= ECHO_C='
15689 ' ECHO_T='      ' ;;
15690   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15691   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15692 esac
15693
15694 if expr a : '\(a\)' >/dev/null 2>&1; then
15695   as_expr=expr
15696 else
15697   as_expr=false
15698 fi
15699
15700 rm -f conf$$ conf$$.exe conf$$.file
15701 echo >conf$$.file
15702 if ln -s conf$$.file conf$$ 2>/dev/null; then
15703   # We could just check for DJGPP; but this test a) works b) is more generic
15704   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15705   if test -f conf$$.exe; then
15706     # Don't use ln at all; we don't have any links
15707     as_ln_s='cp -p'
15708   else
15709     as_ln_s='ln -s'
15710   fi
15711 elif ln conf$$.file conf$$ 2>/dev/null; then
15712   as_ln_s=ln
15713 else
15714   as_ln_s='cp -p'
15715 fi
15716 rm -f conf$$ conf$$.exe conf$$.file
15717
15718 if mkdir -p . 2>/dev/null; then
15719   as_mkdir_p=:
15720 else
15721   test -d ./-p && rmdir ./-p
15722   as_mkdir_p=false
15723 fi
15724
15725 as_executable_p="test -f"
15726
15727 # Sed expression to map a string onto a valid CPP name.
15728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15729
15730 # Sed expression to map a string onto a valid variable name.
15731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15732
15733
15734 # IFS
15735 # We need space, tab and new line, in precisely that order.
15736 as_nl='
15737 '
15738 IFS="   $as_nl"
15739
15740 # CDPATH.
15741 $as_unset CDPATH
15742
15743 exec 6>&1
15744
15745 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15746 # report actual input values of CONFIG_FILES etc. instead of their
15747 # values after options handling.  Logging --version etc. is OK.
15748 exec 5>>config.log
15749 {
15750   echo
15751   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15752 ## Running $as_me. ##
15753 _ASBOX
15754 } >&5
15755 cat >&5 <<_CSEOF
15756
15757 This file was extended by $as_me, which was
15758 generated by GNU Autoconf 2.59.  Invocation command line was
15759
15760   CONFIG_FILES    = $CONFIG_FILES
15761   CONFIG_HEADERS  = $CONFIG_HEADERS
15762   CONFIG_LINKS    = $CONFIG_LINKS
15763   CONFIG_COMMANDS = $CONFIG_COMMANDS
15764   $ $0 $@
15765
15766 _CSEOF
15767 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15768 echo >&5
15769 _ACEOF
15770
15771 # Files that config.status was made for.
15772 if test -n "$ac_config_files"; then
15773   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15774 fi
15775
15776 if test -n "$ac_config_headers"; then
15777   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15778 fi
15779
15780 if test -n "$ac_config_links"; then
15781   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15782 fi
15783
15784 if test -n "$ac_config_commands"; then
15785   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15786 fi
15787
15788 cat >>$CONFIG_STATUS <<\_ACEOF
15789
15790 ac_cs_usage="\
15791 \`$as_me' instantiates files from templates according to the
15792 current configuration.
15793
15794 Usage: $0 [OPTIONS] [FILE]...
15795
15796   -h, --help       print this help, then exit
15797   -V, --version    print version number, then exit
15798   -q, --quiet      do not print progress messages
15799   -d, --debug      don't remove temporary files
15800       --recheck    update $as_me by reconfiguring in the same conditions
15801   --file=FILE[:TEMPLATE]
15802                    instantiate the configuration file FILE
15803   --header=FILE[:TEMPLATE]
15804                    instantiate the configuration header FILE
15805
15806 Configuration files:
15807 $config_files
15808
15809 Configuration headers:
15810 $config_headers
15811
15812 Configuration commands:
15813 $config_commands
15814
15815 Report bugs to <bug-autoconf@gnu.org>."
15816 _ACEOF
15817
15818 cat >>$CONFIG_STATUS <<_ACEOF
15819 ac_cs_version="\\
15820 config.status
15821 configured by $0, generated by GNU Autoconf 2.59,
15822   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15823
15824 Copyright (C) 2003 Free Software Foundation, Inc.
15825 This config.status script is free software; the Free Software Foundation
15826 gives unlimited permission to copy, distribute and modify it."
15827 srcdir=$srcdir
15828 _ACEOF
15829
15830 cat >>$CONFIG_STATUS <<\_ACEOF
15831 # If no file are specified by the user, then we need to provide default
15832 # value.  By we need to know if files were specified by the user.
15833 ac_need_defaults=:
15834 while test $# != 0
15835 do
15836   case $1 in
15837   --*=*)
15838     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15839     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15840     ac_shift=:
15841     ;;
15842   -*)
15843     ac_option=$1
15844     ac_optarg=$2
15845     ac_shift=shift
15846     ;;
15847   *) # This is not an option, so the user has probably given explicit
15848      # arguments.
15849      ac_option=$1
15850      ac_need_defaults=false;;
15851   esac
15852
15853   case $ac_option in
15854   # Handling of the options.
15855 _ACEOF
15856 cat >>$CONFIG_STATUS <<\_ACEOF
15857   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15858     ac_cs_recheck=: ;;
15859   --version | --vers* | -V )
15860     echo "$ac_cs_version"; exit 0 ;;
15861   --he | --h)
15862     # Conflict between --help and --header
15863     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15864 Try \`$0 --help' for more information." >&5
15865 echo "$as_me: error: ambiguous option: $1
15866 Try \`$0 --help' for more information." >&2;}
15867    { (exit 1); exit 1; }; };;
15868   --help | --hel | -h )
15869     echo "$ac_cs_usage"; exit 0 ;;
15870   --debug | --d* | -d )
15871     debug=: ;;
15872   --file | --fil | --fi | --f )
15873     $ac_shift
15874     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15875     ac_need_defaults=false;;
15876   --header | --heade | --head | --hea )
15877     $ac_shift
15878     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15879     ac_need_defaults=false;;
15880   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15881   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15882     ac_cs_silent=: ;;
15883
15884   # This is an error.
15885   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15886 Try \`$0 --help' for more information." >&5
15887 echo "$as_me: error: unrecognized option: $1
15888 Try \`$0 --help' for more information." >&2;}
15889    { (exit 1); exit 1; }; } ;;
15890
15891   *) ac_config_targets="$ac_config_targets $1" ;;
15892
15893   esac
15894   shift
15895 done
15896
15897 ac_configure_extra_args=
15898
15899 if $ac_cs_silent; then
15900   exec 6>/dev/null
15901   ac_configure_extra_args="$ac_configure_extra_args --silent"
15902 fi
15903
15904 _ACEOF
15905 cat >>$CONFIG_STATUS <<_ACEOF
15906 if \$ac_cs_recheck; then
15907   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15908   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15909 fi
15910
15911 _ACEOF
15912
15913 cat >>$CONFIG_STATUS <<_ACEOF
15914 #
15915 # INIT-COMMANDS section.
15916 #
15917
15918 subdirs='$subdirs'
15919
15920 _ACEOF
15921
15922
15923
15924 cat >>$CONFIG_STATUS <<\_ACEOF
15925 for ac_config_target in $ac_config_targets
15926 do
15927   case "$ac_config_target" in
15928   # Handling of arguments.
15929   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15930   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15931   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15932   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15934    { (exit 1); exit 1; }; };;
15935   esac
15936 done
15937
15938 # If the user did not use the arguments to specify the items to instantiate,
15939 # then the envvar interface is used.  Set only those that are not.
15940 # We use the long form for the default assignment because of an extremely
15941 # bizarre bug on SunOS 4.1.3.
15942 if $ac_need_defaults; then
15943   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15944   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15945   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15946 fi
15947
15948 # Have a temporary directory for convenience.  Make it in the build tree
15949 # simply because there is no reason to put it here, and in addition,
15950 # creating and moving files from /tmp can sometimes cause problems.
15951 # Create a temporary directory, and hook for its removal unless debugging.
15952 $debug ||
15953 {
15954   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15955   trap '{ (exit 1); exit 1; }' 1 2 13 15
15956 }
15957
15958 # Create a (secure) tmp directory for tmp files.
15959
15960 {
15961   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15962   test -n "$tmp" && test -d "$tmp"
15963 }  ||
15964 {
15965   tmp=./confstat$$-$RANDOM
15966   (umask 077 && mkdir $tmp)
15967 } ||
15968 {
15969    echo "$me: cannot create a temporary directory in ." >&2
15970    { (exit 1); exit 1; }
15971 }
15972
15973 _ACEOF
15974
15975 cat >>$CONFIG_STATUS <<_ACEOF
15976
15977 #
15978 # CONFIG_FILES section.
15979 #
15980
15981 # No need to generate the scripts if there are no CONFIG_FILES.
15982 # This happens for instance when ./config.status config.h
15983 if test -n "\$CONFIG_FILES"; then
15984   # Protect against being on the right side of a sed subst in config.status.
15985   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15986    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15987 s,@SHELL@,$SHELL,;t t
15988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15994 s,@exec_prefix@,$exec_prefix,;t t
15995 s,@prefix@,$prefix,;t t
15996 s,@program_transform_name@,$program_transform_name,;t t
15997 s,@bindir@,$bindir,;t t
15998 s,@sbindir@,$sbindir,;t t
15999 s,@libexecdir@,$libexecdir,;t t
16000 s,@datadir@,$datadir,;t t
16001 s,@sysconfdir@,$sysconfdir,;t t
16002 s,@sharedstatedir@,$sharedstatedir,;t t
16003 s,@localstatedir@,$localstatedir,;t t
16004 s,@libdir@,$libdir,;t t
16005 s,@includedir@,$includedir,;t t
16006 s,@oldincludedir@,$oldincludedir,;t t
16007 s,@infodir@,$infodir,;t t
16008 s,@mandir@,$mandir,;t t
16009 s,@build_alias@,$build_alias,;t t
16010 s,@host_alias@,$host_alias,;t t
16011 s,@target_alias@,$target_alias,;t t
16012 s,@DEFS@,$DEFS,;t t
16013 s,@ECHO_C@,$ECHO_C,;t t
16014 s,@ECHO_N@,$ECHO_N,;t t
16015 s,@ECHO_T@,$ECHO_T,;t t
16016 s,@LIBS@,$LIBS,;t t
16017 s,@build@,$build,;t t
16018 s,@build_cpu@,$build_cpu,;t t
16019 s,@build_vendor@,$build_vendor,;t t
16020 s,@build_os@,$build_os,;t t
16021 s,@host@,$host,;t t
16022 s,@host_cpu@,$host_cpu,;t t
16023 s,@host_vendor@,$host_vendor,;t t
16024 s,@host_os@,$host_os,;t t
16025 s,@target@,$target,;t t
16026 s,@target_cpu@,$target_cpu,;t t
16027 s,@target_vendor@,$target_vendor,;t t
16028 s,@target_os@,$target_os,;t t
16029 s,@target_noncanonical@,$target_noncanonical,;t t
16030 s,@build_subdir@,$build_subdir,;t t
16031 s,@host_subdir@,$host_subdir,;t t
16032 s,@target_subdir@,$target_subdir,;t t
16033 s,@GENINSRC@,$GENINSRC,;t t
16034 s,@CC@,$CC,;t t
16035 s,@CFLAGS@,$CFLAGS,;t t
16036 s,@LDFLAGS@,$LDFLAGS,;t t
16037 s,@CPPFLAGS@,$CPPFLAGS,;t t
16038 s,@ac_ct_CC@,$ac_ct_CC,;t t
16039 s,@EXEEXT@,$EXEEXT,;t t
16040 s,@OBJEXT@,$OBJEXT,;t t
16041 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16042 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16043 s,@CPP@,$CPP,;t t
16044 s,@EGREP@,$EGREP,;t t
16045 s,@strict1_warn@,$strict1_warn,;t t
16046 s,@warn_cflags@,$warn_cflags,;t t
16047 s,@WERROR@,$WERROR,;t t
16048 s,@nocommon_flag@,$nocommon_flag,;t t
16049 s,@TREEBROWSER@,$TREEBROWSER,;t t
16050 s,@valgrind_path@,$valgrind_path,;t t
16051 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16052 s,@valgrind_command@,$valgrind_command,;t t
16053 s,@coverage_flags@,$coverage_flags,;t t
16054 s,@enable_multilib@,$enable_multilib,;t t
16055 s,@enable_shared@,$enable_shared,;t t
16056 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16057 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16058 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16059 s,@onestep@,$onestep,;t t
16060 s,@SET_MAKE@,$SET_MAKE,;t t
16061 s,@AWK@,$AWK,;t t
16062 s,@LN_S@,$LN_S,;t t
16063 s,@LN@,$LN,;t t
16064 s,@RANLIB@,$RANLIB,;t t
16065 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16066 s,@ranlib_flags@,$ranlib_flags,;t t
16067 s,@INSTALL@,$INSTALL,;t t
16068 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16069 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16070 s,@make_compare_target@,$make_compare_target,;t t
16071 s,@have_mktemp_command@,$have_mktemp_command,;t t
16072 s,@MAKEINFO@,$MAKEINFO,;t t
16073 s,@BUILD_INFO@,$BUILD_INFO,;t t
16074 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16075 s,@FLEX@,$FLEX,;t t
16076 s,@BISON@,$BISON,;t t
16077 s,@NM@,$NM,;t t
16078 s,@AR@,$AR,;t t
16079 s,@stage1_cflags@,$stage1_cflags,;t t
16080 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16081 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16082 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16083 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16084 s,@LIBICONV@,$LIBICONV,;t t
16085 s,@LTLIBICONV@,$LTLIBICONV,;t t
16086 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16087 s,@manext@,$manext,;t t
16088 s,@objext@,$objext,;t t
16089 s,@gthread_flags@,$gthread_flags,;t t
16090 s,@extra_modes_file@,$extra_modes_file,;t t
16091 s,@extra_opt_files@,$extra_opt_files,;t t
16092 s,@USE_NLS@,$USE_NLS,;t t
16093 s,@LIBINTL@,$LIBINTL,;t t
16094 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16095 s,@INCINTL@,$INCINTL,;t t
16096 s,@XGETTEXT@,$XGETTEXT,;t t
16097 s,@GMSGFMT@,$GMSGFMT,;t t
16098 s,@POSUB@,$POSUB,;t t
16099 s,@CATALOGS@,$CATALOGS,;t t
16100 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16101 s,@CROSS@,$CROSS,;t t
16102 s,@ALL@,$ALL,;t t
16103 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16104 s,@inhibit_libc@,$inhibit_libc,;t t
16105 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16106 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16107 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16108 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16109 s,@collect2@,$collect2,;t t
16110 s,@libgcc_visibility@,$libgcc_visibility,;t t
16111 s,@GGC@,$GGC,;t t
16112 s,@zlibdir@,$zlibdir,;t t
16113 s,@zlibinc@,$zlibinc,;t t
16114 s,@MAINT@,$MAINT,;t t
16115 s,@gcc_tooldir@,$gcc_tooldir,;t t
16116 s,@dollar@,$dollar,;t t
16117 s,@slibdir@,$slibdir,;t t
16118 s,@objdir@,$objdir,;t t
16119 s,@subdirs@,$subdirs,;t t
16120 s,@srcdir@,$srcdir,;t t
16121 s,@all_boot_languages@,$all_boot_languages,;t t
16122 s,@all_compilers@,$all_compilers,;t t
16123 s,@all_gtfiles@,$all_gtfiles,;t t
16124 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16125 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16126 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16127 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16128 s,@all_languages@,$all_languages,;t t
16129 s,@all_stagestuff@,$all_stagestuff,;t t
16130 s,@build_exeext@,$build_exeext,;t t
16131 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16132 s,@build_xm_file_list@,$build_xm_file_list,;t t
16133 s,@build_xm_include_list@,$build_xm_include_list,;t t
16134 s,@build_xm_defines@,$build_xm_defines,;t t
16135 s,@check_languages@,$check_languages,;t t
16136 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16137 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16138 s,@cpp_install_dir@,$cpp_install_dir,;t t
16139 s,@xmake_file@,$xmake_file,;t t
16140 s,@tmake_file@,$tmake_file,;t t
16141 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16142 s,@extra_headers_list@,$extra_headers_list,;t t
16143 s,@extra_objs@,$extra_objs,;t t
16144 s,@extra_parts@,$extra_parts,;t t
16145 s,@extra_passes@,$extra_passes,;t t
16146 s,@extra_programs@,$extra_programs,;t t
16147 s,@float_h_file@,$float_h_file,;t t
16148 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16149 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16150 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16151 s,@host_exeext@,$host_exeext,;t t
16152 s,@host_xm_file_list@,$host_xm_file_list,;t t
16153 s,@host_xm_include_list@,$host_xm_include_list,;t t
16154 s,@host_xm_defines@,$host_xm_defines,;t t
16155 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16156 s,@install@,$install,;t t
16157 s,@lang_opt_files@,$lang_opt_files,;t t
16158 s,@lang_specs_files@,$lang_specs_files,;t t
16159 s,@lang_tree_files@,$lang_tree_files,;t t
16160 s,@local_prefix@,$local_prefix,;t t
16161 s,@md_file@,$md_file,;t t
16162 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16163 s,@out_file@,$out_file,;t t
16164 s,@out_object_file@,$out_object_file,;t t
16165 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16166 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16167 s,@thread_file@,$thread_file,;t t
16168 s,@tm_file_list@,$tm_file_list,;t t
16169 s,@tm_include_list@,$tm_include_list,;t t
16170 s,@tm_defines@,$tm_defines,;t t
16171 s,@tm_p_file_list@,$tm_p_file_list,;t t
16172 s,@tm_p_include_list@,$tm_p_include_list,;t t
16173 s,@xm_file_list@,$xm_file_list,;t t
16174 s,@xm_include_list@,$xm_include_list,;t t
16175 s,@xm_defines@,$xm_defines,;t t
16176 s,@c_target_objs@,$c_target_objs,;t t
16177 s,@cxx_target_objs@,$cxx_target_objs,;t t
16178 s,@target_cpu_default@,$target_cpu_default,;t t
16179 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16180 s,@GMPLIBS@,$GMPLIBS,;t t
16181 s,@GMPINC@,$GMPINC,;t t
16182 s,@LIBOBJS@,$LIBOBJS,;t t
16183 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16184 /@language_hooks@/r $language_hooks
16185 s,@language_hooks@,,;t t
16186 CEOF
16187
16188 _ACEOF
16189
16190   cat >>$CONFIG_STATUS <<\_ACEOF
16191   # Split the substitutions into bite-sized pieces for seds with
16192   # small command number limits, like on Digital OSF/1 and HP-UX.
16193   ac_max_sed_lines=48
16194   ac_sed_frag=1 # Number of current file.
16195   ac_beg=1 # First line for current file.
16196   ac_end=$ac_max_sed_lines # Line after last line for current file.
16197   ac_more_lines=:
16198   ac_sed_cmds=
16199   while $ac_more_lines; do
16200     if test $ac_beg -gt 1; then
16201       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16202     else
16203       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16204     fi
16205     if test ! -s $tmp/subs.frag; then
16206       ac_more_lines=false
16207     else
16208       # The purpose of the label and of the branching condition is to
16209       # speed up the sed processing (if there are no `@' at all, there
16210       # is no need to browse any of the substitutions).
16211       # These are the two extra sed commands mentioned above.
16212       (echo ':t
16213   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16214       if test -z "$ac_sed_cmds"; then
16215         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16216       else
16217         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16218       fi
16219       ac_sed_frag=`expr $ac_sed_frag + 1`
16220       ac_beg=$ac_end
16221       ac_end=`expr $ac_end + $ac_max_sed_lines`
16222     fi
16223   done
16224   if test -z "$ac_sed_cmds"; then
16225     ac_sed_cmds=cat
16226   fi
16227 fi # test -n "$CONFIG_FILES"
16228
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<\_ACEOF
16231 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16232   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16233   case $ac_file in
16234   - | *:- | *:-:* ) # input from stdin
16235         cat >$tmp/stdin
16236         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16237         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16238   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16239         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16240   * )   ac_file_in=$ac_file.in ;;
16241   esac
16242
16243   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16244   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16246          X"$ac_file" : 'X\(//\)[^/]' \| \
16247          X"$ac_file" : 'X\(//\)$' \| \
16248          X"$ac_file" : 'X\(/\)' \| \
16249          .     : '\(.\)' 2>/dev/null ||
16250 echo X"$ac_file" |
16251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16252           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16253           /^X\(\/\/\)$/{ s//\1/; q; }
16254           /^X\(\/\).*/{ s//\1/; q; }
16255           s/.*/./; q'`
16256   { if $as_mkdir_p; then
16257     mkdir -p "$ac_dir"
16258   else
16259     as_dir="$ac_dir"
16260     as_dirs=
16261     while test ! -d "$as_dir"; do
16262       as_dirs="$as_dir $as_dirs"
16263       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16265          X"$as_dir" : 'X\(//\)[^/]' \| \
16266          X"$as_dir" : 'X\(//\)$' \| \
16267          X"$as_dir" : 'X\(/\)' \| \
16268          .     : '\(.\)' 2>/dev/null ||
16269 echo X"$as_dir" |
16270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16271           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16272           /^X\(\/\/\)$/{ s//\1/; q; }
16273           /^X\(\/\).*/{ s//\1/; q; }
16274           s/.*/./; q'`
16275     done
16276     test ! -n "$as_dirs" || mkdir $as_dirs
16277   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16279    { (exit 1); exit 1; }; }; }
16280
16281   ac_builddir=.
16282
16283 if test "$ac_dir" != .; then
16284   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16285   # A "../" for each directory in $ac_dir_suffix.
16286   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16287 else
16288   ac_dir_suffix= ac_top_builddir=
16289 fi
16290
16291 case $srcdir in
16292   .)  # No --srcdir option.  We are building in place.
16293     ac_srcdir=.
16294     if test -z "$ac_top_builddir"; then
16295        ac_top_srcdir=.
16296     else
16297        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16298     fi ;;
16299   [\\/]* | ?:[\\/]* )  # Absolute path.
16300     ac_srcdir=$srcdir$ac_dir_suffix;
16301     ac_top_srcdir=$srcdir ;;
16302   *) # Relative path.
16303     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16304     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16305 esac
16306
16307 # Do not use `cd foo && pwd` to compute absolute paths, because
16308 # the directories may not exist.
16309 case `pwd` in
16310 .) ac_abs_builddir="$ac_dir";;
16311 *)
16312   case "$ac_dir" in
16313   .) ac_abs_builddir=`pwd`;;
16314   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16315   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16316   esac;;
16317 esac
16318 case $ac_abs_builddir in
16319 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16320 *)
16321   case ${ac_top_builddir}. in
16322   .) ac_abs_top_builddir=$ac_abs_builddir;;
16323   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16324   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16325   esac;;
16326 esac
16327 case $ac_abs_builddir in
16328 .) ac_abs_srcdir=$ac_srcdir;;
16329 *)
16330   case $ac_srcdir in
16331   .) ac_abs_srcdir=$ac_abs_builddir;;
16332   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16333   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16334   esac;;
16335 esac
16336 case $ac_abs_builddir in
16337 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16338 *)
16339   case $ac_top_srcdir in
16340   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16341   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16342   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16343   esac;;
16344 esac
16345
16346
16347
16348   if test x"$ac_file" != x-; then
16349     { echo "$as_me:$LINENO: creating $ac_file" >&5
16350 echo "$as_me: creating $ac_file" >&6;}
16351     rm -f "$ac_file"
16352   fi
16353   # Let's still pretend it is `configure' which instantiates (i.e., don't
16354   # use $as_me), people would be surprised to read:
16355   #    /* config.h.  Generated by config.status.  */
16356   if test x"$ac_file" = x-; then
16357     configure_input=
16358   else
16359     configure_input="$ac_file.  "
16360   fi
16361   configure_input=$configure_input"Generated from `echo $ac_file_in |
16362                                      sed 's,.*/,,'` by configure."
16363
16364   # First look for the input files in the build tree, otherwise in the
16365   # src tree.
16366   ac_file_inputs=`IFS=:
16367     for f in $ac_file_in; do
16368       case $f in
16369       -) echo $tmp/stdin ;;
16370       [\\/$]*)
16371          # Absolute (can't be DOS-style, as IFS=:)
16372          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16373 echo "$as_me: error: cannot find input file: $f" >&2;}
16374    { (exit 1); exit 1; }; }
16375          echo "$f";;
16376       *) # Relative
16377          if test -f "$f"; then
16378            # Build tree
16379            echo "$f"
16380          elif test -f "$srcdir/$f"; then
16381            # Source tree
16382            echo "$srcdir/$f"
16383          else
16384            # /dev/null tree
16385            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16386 echo "$as_me: error: cannot find input file: $f" >&2;}
16387    { (exit 1); exit 1; }; }
16388          fi;;
16389       esac
16390     done` || { (exit 1); exit 1; }
16391 _ACEOF
16392 cat >>$CONFIG_STATUS <<_ACEOF
16393   sed "$ac_vpsub
16394 $extrasub
16395 _ACEOF
16396 cat >>$CONFIG_STATUS <<\_ACEOF
16397 :t
16398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16399 s,@configure_input@,$configure_input,;t t
16400 s,@srcdir@,$ac_srcdir,;t t
16401 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16402 s,@top_srcdir@,$ac_top_srcdir,;t t
16403 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16404 s,@builddir@,$ac_builddir,;t t
16405 s,@abs_builddir@,$ac_abs_builddir,;t t
16406 s,@top_builddir@,$ac_top_builddir,;t t
16407 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16408 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16409   rm -f $tmp/stdin
16410   if test x"$ac_file" != x-; then
16411     mv $tmp/out $ac_file
16412   else
16413     cat $tmp/out
16414     rm -f $tmp/out
16415   fi
16416
16417 done
16418 _ACEOF
16419 cat >>$CONFIG_STATUS <<\_ACEOF
16420
16421 #
16422 # CONFIG_HEADER section.
16423 #
16424
16425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16427 #
16428 # ac_d sets the value in "#define NAME VALUE" lines.
16429 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16430 ac_dB='[         ].*$,\1#\2'
16431 ac_dC=' '
16432 ac_dD=',;t'
16433 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16434 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16435 ac_uB='$,\1#\2define\3'
16436 ac_uC=' '
16437 ac_uD=',;t'
16438
16439 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16440   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16441   case $ac_file in
16442   - | *:- | *:-:* ) # input from stdin
16443         cat >$tmp/stdin
16444         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16445         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16446   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16447         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16448   * )   ac_file_in=$ac_file.in ;;
16449   esac
16450
16451   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16452 echo "$as_me: creating $ac_file" >&6;}
16453
16454   # First look for the input files in the build tree, otherwise in the
16455   # src tree.
16456   ac_file_inputs=`IFS=:
16457     for f in $ac_file_in; do
16458       case $f in
16459       -) echo $tmp/stdin ;;
16460       [\\/$]*)
16461          # Absolute (can't be DOS-style, as IFS=:)
16462          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16463 echo "$as_me: error: cannot find input file: $f" >&2;}
16464    { (exit 1); exit 1; }; }
16465          # Do quote $f, to prevent DOS paths from being IFS'd.
16466          echo "$f";;
16467       *) # Relative
16468          if test -f "$f"; then
16469            # Build tree
16470            echo "$f"
16471          elif test -f "$srcdir/$f"; then
16472            # Source tree
16473            echo "$srcdir/$f"
16474          else
16475            # /dev/null tree
16476            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16477 echo "$as_me: error: cannot find input file: $f" >&2;}
16478    { (exit 1); exit 1; }; }
16479          fi;;
16480       esac
16481     done` || { (exit 1); exit 1; }
16482   # Remove the trailing spaces.
16483   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16484
16485 _ACEOF
16486
16487 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16488 # `conftest.undefs', that substitutes the proper values into
16489 # config.h.in to produce config.h.  The first handles `#define'
16490 # templates, and the second `#undef' templates.
16491 # And first: Protect against being on the right side of a sed subst in
16492 # config.status.  Protect against being in an unquoted here document
16493 # in config.status.
16494 rm -f conftest.defines conftest.undefs
16495 # Using a here document instead of a string reduces the quoting nightmare.
16496 # Putting comments in sed scripts is not portable.
16497 #
16498 # `end' is used to avoid that the second main sed command (meant for
16499 # 0-ary CPP macros) applies to n-ary macro definitions.
16500 # See the Autoconf documentation for `clear'.
16501 cat >confdef2sed.sed <<\_ACEOF
16502 s/[\\&,]/\\&/g
16503 s,[\\$`],\\&,g
16504 t clear
16505 : clear
16506 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16507 t end
16508 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16509 : end
16510 _ACEOF
16511 # If some macros were called several times there might be several times
16512 # the same #defines, which is useless.  Nevertheless, we may not want to
16513 # sort them, since we want the *last* AC-DEFINE to be honored.
16514 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16515 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16516 rm -f confdef2sed.sed
16517
16518 # This sed command replaces #undef with comments.  This is necessary, for
16519 # example, in the case of _POSIX_SOURCE, which is predefined and required
16520 # on some systems where configure will not decide to define it.
16521 cat >>conftest.undefs <<\_ACEOF
16522 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16523 _ACEOF
16524
16525 # Break up conftest.defines because some shells have a limit on the size
16526 # of here documents, and old seds have small limits too (100 cmds).
16527 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16528 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16529 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16530 echo '  :' >>$CONFIG_STATUS
16531 rm -f conftest.tail
16532 while grep . conftest.defines >/dev/null
16533 do
16534   # Write a limited-size here document to $tmp/defines.sed.
16535   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16536   # Speed up: don't consider the non `#define' lines.
16537   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16538   # Work around the forget-to-reset-the-flag bug.
16539   echo 't clr' >>$CONFIG_STATUS
16540   echo ': clr' >>$CONFIG_STATUS
16541   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16542   echo 'CEOF
16543   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16544   rm -f $tmp/in
16545   mv $tmp/out $tmp/in
16546 ' >>$CONFIG_STATUS
16547   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16548   rm -f conftest.defines
16549   mv conftest.tail conftest.defines
16550 done
16551 rm -f conftest.defines
16552 echo '  fi # grep' >>$CONFIG_STATUS
16553 echo >>$CONFIG_STATUS
16554
16555 # Break up conftest.undefs because some shells have a limit on the size
16556 # of here documents, and old seds have small limits too (100 cmds).
16557 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16558 rm -f conftest.tail
16559 while grep . conftest.undefs >/dev/null
16560 do
16561   # Write a limited-size here document to $tmp/undefs.sed.
16562   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16563   # Speed up: don't consider the non `#undef'
16564   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16565   # Work around the forget-to-reset-the-flag bug.
16566   echo 't clr' >>$CONFIG_STATUS
16567   echo ': clr' >>$CONFIG_STATUS
16568   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16569   echo 'CEOF
16570   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16571   rm -f $tmp/in
16572   mv $tmp/out $tmp/in
16573 ' >>$CONFIG_STATUS
16574   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16575   rm -f conftest.undefs
16576   mv conftest.tail conftest.undefs
16577 done
16578 rm -f conftest.undefs
16579
16580 cat >>$CONFIG_STATUS <<\_ACEOF
16581   # Let's still pretend it is `configure' which instantiates (i.e., don't
16582   # use $as_me), people would be surprised to read:
16583   #    /* config.h.  Generated by config.status.  */
16584   if test x"$ac_file" = x-; then
16585     echo "/* Generated by configure.  */" >$tmp/config.h
16586   else
16587     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16588   fi
16589   cat $tmp/in >>$tmp/config.h
16590   rm -f $tmp/in
16591   if test x"$ac_file" != x-; then
16592     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16593       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16594 echo "$as_me: $ac_file is unchanged" >&6;}
16595     else
16596       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598          X"$ac_file" : 'X\(//\)[^/]' \| \
16599          X"$ac_file" : 'X\(//\)$' \| \
16600          X"$ac_file" : 'X\(/\)' \| \
16601          .     : '\(.\)' 2>/dev/null ||
16602 echo X"$ac_file" |
16603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16604           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16605           /^X\(\/\/\)$/{ s//\1/; q; }
16606           /^X\(\/\).*/{ s//\1/; q; }
16607           s/.*/./; q'`
16608       { if $as_mkdir_p; then
16609     mkdir -p "$ac_dir"
16610   else
16611     as_dir="$ac_dir"
16612     as_dirs=
16613     while test ! -d "$as_dir"; do
16614       as_dirs="$as_dir $as_dirs"
16615       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16617          X"$as_dir" : 'X\(//\)[^/]' \| \
16618          X"$as_dir" : 'X\(//\)$' \| \
16619          X"$as_dir" : 'X\(/\)' \| \
16620          .     : '\(.\)' 2>/dev/null ||
16621 echo X"$as_dir" |
16622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16623           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16624           /^X\(\/\/\)$/{ s//\1/; q; }
16625           /^X\(\/\).*/{ s//\1/; q; }
16626           s/.*/./; q'`
16627     done
16628     test ! -n "$as_dirs" || mkdir $as_dirs
16629   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16630 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16631    { (exit 1); exit 1; }; }; }
16632
16633       rm -f $ac_file
16634       mv $tmp/config.h $ac_file
16635     fi
16636   else
16637     cat $tmp/config.h
16638     rm -f $tmp/config.h
16639   fi
16640 done
16641 _ACEOF
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643
16644 #
16645 # CONFIG_COMMANDS section.
16646 #
16647 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16648   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16649   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16650   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16651 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16652          X"$ac_dest" : 'X\(//\)[^/]' \| \
16653          X"$ac_dest" : 'X\(//\)$' \| \
16654          X"$ac_dest" : 'X\(/\)' \| \
16655          .     : '\(.\)' 2>/dev/null ||
16656 echo X"$ac_dest" |
16657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16658           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16659           /^X\(\/\/\)$/{ s//\1/; q; }
16660           /^X\(\/\).*/{ s//\1/; q; }
16661           s/.*/./; q'`
16662   { if $as_mkdir_p; then
16663     mkdir -p "$ac_dir"
16664   else
16665     as_dir="$ac_dir"
16666     as_dirs=
16667     while test ! -d "$as_dir"; do
16668       as_dirs="$as_dir $as_dirs"
16669       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671          X"$as_dir" : 'X\(//\)[^/]' \| \
16672          X"$as_dir" : 'X\(//\)$' \| \
16673          X"$as_dir" : 'X\(/\)' \| \
16674          .     : '\(.\)' 2>/dev/null ||
16675 echo X"$as_dir" |
16676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16678           /^X\(\/\/\)$/{ s//\1/; q; }
16679           /^X\(\/\).*/{ s//\1/; q; }
16680           s/.*/./; q'`
16681     done
16682     test ! -n "$as_dirs" || mkdir $as_dirs
16683   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16685    { (exit 1); exit 1; }; }; }
16686
16687   ac_builddir=.
16688
16689 if test "$ac_dir" != .; then
16690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16691   # A "../" for each directory in $ac_dir_suffix.
16692   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16693 else
16694   ac_dir_suffix= ac_top_builddir=
16695 fi
16696
16697 case $srcdir in
16698   .)  # No --srcdir option.  We are building in place.
16699     ac_srcdir=.
16700     if test -z "$ac_top_builddir"; then
16701        ac_top_srcdir=.
16702     else
16703        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16704     fi ;;
16705   [\\/]* | ?:[\\/]* )  # Absolute path.
16706     ac_srcdir=$srcdir$ac_dir_suffix;
16707     ac_top_srcdir=$srcdir ;;
16708   *) # Relative path.
16709     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16710     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16711 esac
16712
16713 # Do not use `cd foo && pwd` to compute absolute paths, because
16714 # the directories may not exist.
16715 case `pwd` in
16716 .) ac_abs_builddir="$ac_dir";;
16717 *)
16718   case "$ac_dir" in
16719   .) ac_abs_builddir=`pwd`;;
16720   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16721   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16722   esac;;
16723 esac
16724 case $ac_abs_builddir in
16725 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16726 *)
16727   case ${ac_top_builddir}. in
16728   .) ac_abs_top_builddir=$ac_abs_builddir;;
16729   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16730   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16731   esac;;
16732 esac
16733 case $ac_abs_builddir in
16734 .) ac_abs_srcdir=$ac_srcdir;;
16735 *)
16736   case $ac_srcdir in
16737   .) ac_abs_srcdir=$ac_abs_builddir;;
16738   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16739   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16740   esac;;
16741 esac
16742 case $ac_abs_builddir in
16743 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16744 *)
16745   case $ac_top_srcdir in
16746   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16747   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16748   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16749   esac;;
16750 esac
16751
16752
16753   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16754 echo "$as_me: executing $ac_dest commands" >&6;}
16755   case $ac_dest in
16756     default )
16757 case ${CONFIG_HEADERS} in
16758   *auto-host.h:config.in*)
16759   echo > cstamp-h ;;
16760 esac
16761 # Make sure all the subdirs exist.
16762 for d in $subdirs doc build
16763 do
16764     test -d $d || mkdir $d
16765 done
16766 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16767 # bootstrapping and the installation procedure can still use
16768 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
16769 # FLAGS_TO_PASS has been modified to solve the problem there.
16770 # This is virtually a duplicate of what happens in configure.lang; we do
16771 # an extra check to make sure this only happens if ln -s can be used.
16772 case "$LN_S" in
16773   *-s*)
16774     for d in ${subdirs} ; do
16775         STARTDIR=`${PWDCMD-pwd}`
16776         cd $d
16777         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16778         do
16779                 rm -f $t
16780                 $LN_S ../$t $t 2>/dev/null
16781         done
16782         cd $STARTDIR
16783     done
16784   ;;
16785 esac
16786  ;;
16787   esac
16788 done
16789 _ACEOF
16790
16791 cat >>$CONFIG_STATUS <<\_ACEOF
16792
16793 { (exit 0); exit 0; }
16794 _ACEOF
16795 chmod +x $CONFIG_STATUS
16796 ac_clean_files=$ac_clean_files_save
16797
16798
16799 # configure is writing to config.log, and then calls config.status.
16800 # config.status does its own redirection, appending to config.log.
16801 # Unfortunately, on DOS this fails, as config.log is still kept open
16802 # by configure, so config.status won't be able to write to it; its
16803 # output is simply discarded.  So we exec the FD to /dev/null,
16804 # effectively closing config.log, so it can be properly (re)opened and
16805 # appended to by config.status.  When coming back to configure, we
16806 # need to make the FD available again.
16807 if test "$no_create" != yes; then
16808   ac_cs_success=:
16809   ac_config_status_args=
16810   test "$silent" = yes &&
16811     ac_config_status_args="$ac_config_status_args --quiet"
16812   exec 5>/dev/null
16813   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16814   exec 5>>config.log
16815   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16816   # would make configure fail if this is the last instruction.
16817   $ac_cs_success || { (exit 1); exit 1; }
16818 fi
16819