OSDN Git Service

f14366c98adc9fd98aeeb1d1b7b6d25e8e8da810
[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_libsubdir 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 loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir 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 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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT am__leading_dot DEPDIR CCDEPMODE BUILD_DEPMODE gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages 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 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 thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always  enable -Werror despite compiler version
866   --enable-checking=LIST
867                           enable expensive run-time checks.  With LIST,
868                           enable only specific categories of checks.
869                           Categories are: yes,no,all,none,release.
870                           Flags are: assert,df,fold,gc,gcac,misc,
871                           rtlflag,rtl,runtime,tree,valgrind,types.
872   --enable-coverage=LEVEL
873                           enable compiler's code coverage collection.
874                           Use to measure compiler performance and locate
875                           unused parts of the compiler. With LEVEL, specify
876                           optimization. Values are opt, noopt,
877                           default is noopt
878   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
879   --enable-multilib       enable library support for multiple ABIs
880   --enable-__cxa_atexit   enable __cxa_atexit for C++
881   --enable-decimal-float={no,yes,bid,dpd}
882                         enable decimal float extension to C.  Selecting 'bid'
883                         or 'dpd' choses which decimal floating point format
884                         to use
885   --enable-fixed-point    enable fixed-point arithmetic extension to C
886   --enable-threads        enable thread usage for target GCC
887   --enable-threads=LIB    use LIB thread package for target GCC
888   --enable-tls            enable or disable generation of tls code
889                           overriding the assembler check for tls support
890   --enable-objc-gc        enable the use of Boehm's garbage collector with
891                           the GNU Objective-C runtime
892   --disable-shared        don't provide a shared libgcc
893   --enable-intermodule    build the compiler in one step
894   --enable-languages=LIST specify which front-ends to build
895   --disable-rpath         do not hardcode runtime library paths
896   --enable-initfini-array       use .init_array/.fini_array sections
897   --enable-sjlj-exceptions
898                           arrange to use setjmp/longjmp exception handling
899   --enable-secureplt      enable -msecure-plt by default for PowerPC
900   --disable-win32-registry
901                           disable lookup of installation paths in the
902                           Registry on Windows hosts
903   --enable-win32-registry enable registry lookup (default)
904   --enable-win32-registry=KEY
905                           use KEY instead of GCC version as the last portion
906                           of the registry key
907   --enable-maintainer-mode
908                           enable make rules and dependencies not useful
909                           (and sometimes confusing) to the casual installer
910   --enable-version-specific-runtime-libs
911                           specify that runtime libraries should be
912                           installed in a compiler-specific directory
913
914 Optional Packages:
915   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
916   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
917   --with-build-libsubdir=DIR  Directory where to find libraries for build system
918   --with-local-prefix=DIR specifies directory to put local include
919   --with-gxx-include-dir=DIR
920                           specifies directory to put g++ header files
921   --with-cpp-install-dir=DIR
922                           install the user visible C preprocessor in DIR
923                           (relative to PREFIX) as well as PREFIX/bin
924   --with-gnu-ld           arrange to work with GNU ld.
925   --with-ld               arrange to use the specified ld (full pathname)
926   --with-demangler-in-ld  try to use demangler in GNU ld.
927   --with-gnu-as           arrange to work with GNU as
928   --with-as               arrange to use the specified as (full pathname)
929   --with-stabs            arrange to use stabs instead of host debug format
930   --with-dwarf2           force the default debug format to be DWARF 2
931   --with-build-sysroot=sysroot
932                           use sysroot as the system root during the build
933   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
935   --with-bugurl=URL       Direct users to URL to report a bug
936   --with-gnu-ld           assume the C compiler uses GNU ld default=no
937   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
938   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
939   --with-system-libunwind use installed libunwind
940   --with-long-double-128  Use 128-bit long double by default.
941   --with-gc={page,zone}   choose the garbage collection mechanism to use
942                           with the compiler
943   --with-system-zlib      use installed libz
944   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
945   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
946   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
947   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
948
949 Some influential environment variables:
950   CC          C compiler command
951   CFLAGS      C compiler flags
952   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
953               nonstandard directory <lib dir>
954   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
955               headers in a nonstandard directory <include dir>
956   CPP         C preprocessor
957   GMPLIBS     How to link GMP
958   GMPINC      How to find GMP include files
959
960 Use these variables to override the choices made by `configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
962
963 _ACEOF
964 fi
965
966 if test "$ac_init_help" = "recursive"; then
967   # If there are subdirs, report their specific --help.
968   ac_popdir=`pwd`
969   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
970     test -d $ac_dir || continue
971     ac_builddir=.
972
973 if test "$ac_dir" != .; then
974   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
975   # A "../" for each directory in $ac_dir_suffix.
976   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
977 else
978   ac_dir_suffix= ac_top_builddir=
979 fi
980
981 case $srcdir in
982   .)  # No --srcdir option.  We are building in place.
983     ac_srcdir=.
984     if test -z "$ac_top_builddir"; then
985        ac_top_srcdir=.
986     else
987        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
988     fi ;;
989   [\\/]* | ?:[\\/]* )  # Absolute path.
990     ac_srcdir=$srcdir$ac_dir_suffix;
991     ac_top_srcdir=$srcdir ;;
992   *) # Relative path.
993     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
994     ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 esac
996
997 # Do not use `cd foo && pwd` to compute absolute paths, because
998 # the directories may not exist.
999 case `pwd` in
1000 .) ac_abs_builddir="$ac_dir";;
1001 *)
1002   case "$ac_dir" in
1003   .) ac_abs_builddir=`pwd`;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1005   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *)
1011   case ${ac_top_builddir}. in
1012   .) ac_abs_top_builddir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1014   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015   esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_srcdir=$ac_srcdir;;
1019 *)
1020   case $ac_srcdir in
1021   .) ac_abs_srcdir=$ac_abs_builddir;;
1022   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1023   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024   esac;;
1025 esac
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *)
1029   case $ac_top_srcdir in
1030   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1031   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1032   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033   esac;;
1034 esac
1035
1036     cd $ac_dir
1037     # Check for guested configure; otherwise get Cygnus style configure.
1038     if test -f $ac_srcdir/configure.gnu; then
1039       echo
1040       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1041     elif test -f $ac_srcdir/configure; then
1042       echo
1043       $SHELL $ac_srcdir/configure  --help=recursive
1044     elif test -f $ac_srcdir/configure.ac ||
1045            test -f $ac_srcdir/configure.in; then
1046       echo
1047       $ac_configure --help
1048     else
1049       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1050     fi
1051     cd $ac_popdir
1052   done
1053 fi
1054
1055 test -n "$ac_init_help" && exit 0
1056 if $ac_init_version; then
1057   cat <<\_ACEOF
1058
1059 Copyright (C) 2003 Free Software Foundation, Inc.
1060 This configure script is free software; the Free Software Foundation
1061 gives unlimited permission to copy, distribute and modify it.
1062 _ACEOF
1063   exit 0
1064 fi
1065 exec 5>config.log
1066 cat >&5 <<_ACEOF
1067 This file contains any messages produced by compilers while
1068 running configure, to aid debugging if configure makes a mistake.
1069
1070 It was created by $as_me, which was
1071 generated by GNU Autoconf 2.59.  Invocation command line was
1072
1073   $ $0 $@
1074
1075 _ACEOF
1076 {
1077 cat <<_ASUNAME
1078 ## --------- ##
1079 ## Platform. ##
1080 ## --------- ##
1081
1082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1087
1088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1089 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1090
1091 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1092 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1094 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1095 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1096 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1097 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1098
1099 _ASUNAME
1100
1101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1102 for as_dir in $PATH
1103 do
1104   IFS=$as_save_IFS
1105   test -z "$as_dir" && as_dir=.
1106   echo "PATH: $as_dir"
1107 done
1108
1109 } >&5
1110
1111 cat >&5 <<_ACEOF
1112
1113
1114 ## ----------- ##
1115 ## Core tests. ##
1116 ## ----------- ##
1117
1118 _ACEOF
1119
1120
1121 # Keep a trace of the command line.
1122 # Strip out --no-create and --no-recursion so they do not pile up.
1123 # Strip out --silent because we don't want to record it for future runs.
1124 # Also quote any args containing shell meta-characters.
1125 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_configure_args=
1127 ac_configure_args0=
1128 ac_configure_args1=
1129 ac_sep=
1130 ac_must_keep_next=false
1131 for ac_pass in 1 2
1132 do
1133   for ac_arg
1134   do
1135     case $ac_arg in
1136     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1137     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138     | -silent | --silent | --silen | --sile | --sil)
1139       continue ;;
1140     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1141       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142     esac
1143     case $ac_pass in
1144     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1145     2)
1146       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1147       if test $ac_must_keep_next = true; then
1148         ac_must_keep_next=false # Got value, back to normal.
1149       else
1150         case $ac_arg in
1151           *=* | --config-cache | -C | -disable-* | --disable-* \
1152           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1153           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1154           | -with-* | --with-* | -without-* | --without-* | --x)
1155             case "$ac_configure_args0 " in
1156               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157             esac
1158             ;;
1159           -* ) ac_must_keep_next=true ;;
1160         esac
1161       fi
1162       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1163       # Get rid of the leading space.
1164       ac_sep=" "
1165       ;;
1166     esac
1167   done
1168 done
1169 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1170 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1171
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log.  We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178   # Save into config.log some information that might help in debugging.
1179   {
1180     echo
1181
1182     cat <<\_ASBOX
1183 ## ---------------- ##
1184 ## Cache variables. ##
1185 ## ---------------- ##
1186 _ASBOX
1187     echo
1188     # The following way of writing the cache mishandles newlines in values,
1189 {
1190   (set) 2>&1 |
1191     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192     *ac_space=\ *)
1193       sed -n \
1194         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1196       ;;
1197     *)
1198       sed -n \
1199         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1200       ;;
1201     esac;
1202 }
1203     echo
1204
1205     cat <<\_ASBOX
1206 ## ----------------- ##
1207 ## Output variables. ##
1208 ## ----------------- ##
1209 _ASBOX
1210     echo
1211     for ac_var in $ac_subst_vars
1212     do
1213       eval ac_val=$`echo $ac_var`
1214       echo "$ac_var='"'"'$ac_val'"'"'"
1215     done | sort
1216     echo
1217
1218     if test -n "$ac_subst_files"; then
1219       cat <<\_ASBOX
1220 ## ------------- ##
1221 ## Output files. ##
1222 ## ------------- ##
1223 _ASBOX
1224       echo
1225       for ac_var in $ac_subst_files
1226       do
1227         eval ac_val=$`echo $ac_var`
1228         echo "$ac_var='"'"'$ac_val'"'"'"
1229       done | sort
1230       echo
1231     fi
1232
1233     if test -s confdefs.h; then
1234       cat <<\_ASBOX
1235 ## ----------- ##
1236 ## confdefs.h. ##
1237 ## ----------- ##
1238 _ASBOX
1239       echo
1240       sed "/^$/d" confdefs.h | sort
1241       echo
1242     fi
1243     test "$ac_signal" != 0 &&
1244       echo "$as_me: caught signal $ac_signal"
1245     echo "$as_me: exit $exit_status"
1246   } >&5
1247   rm -f core *.core &&
1248   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249     exit $exit_status
1250      ' 0
1251 for ac_signal in 1 2 13 15; do
1252   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1253 done
1254 ac_signal=0
1255
1256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1257 rm -rf conftest* confdefs.h
1258 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 echo >confdefs.h
1260
1261 # Predefined preprocessor variables.
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_NAME "$PACKAGE_NAME"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_STRING "$PACKAGE_STRING"
1280 _ACEOF
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1285 _ACEOF
1286
1287
1288 # Let the site file select an alternate cache file if it wants to.
1289 # Prefer explicitly selected file to automatically selected ones.
1290 if test -z "$CONFIG_SITE"; then
1291   if test "x$prefix" != xNONE; then
1292     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1293   else
1294     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295   fi
1296 fi
1297 for ac_site_file in $CONFIG_SITE; do
1298   if test -r "$ac_site_file"; then
1299     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1300 echo "$as_me: loading site script $ac_site_file" >&6;}
1301     sed 's/^/| /' "$ac_site_file" >&5
1302     . "$ac_site_file"
1303   fi
1304 done
1305
1306 if test -r "$cache_file"; then
1307   # Some versions of bash will fail to source /dev/null (special
1308   # files actually), so we avoid doing that.
1309   if test -f "$cache_file"; then
1310     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1311 echo "$as_me: loading cache $cache_file" >&6;}
1312     case $cache_file in
1313       [\\/]* | ?:[\\/]* ) . $cache_file;;
1314       *)                      . ./$cache_file;;
1315     esac
1316   fi
1317 else
1318   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1319 echo "$as_me: creating cache $cache_file" >&6;}
1320   >$cache_file
1321 fi
1322
1323 # Check that the precious variables saved in the cache have kept the same
1324 # value.
1325 ac_cache_corrupted=false
1326 for ac_var in `(set) 2>&1 |
1327                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1328   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1329   eval ac_new_set=\$ac_env_${ac_var}_set
1330   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1331   eval ac_new_val="\$ac_env_${ac_var}_value"
1332   case $ac_old_set,$ac_new_set in
1333     set,)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,set)
1338       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1339 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1340       ac_cache_corrupted=: ;;
1341     ,);;
1342     *)
1343       if test "x$ac_old_val" != "x$ac_new_val"; then
1344         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1345 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1346         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1347 echo "$as_me:   former value:  $ac_old_val" >&2;}
1348         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1349 echo "$as_me:   current value: $ac_new_val" >&2;}
1350         ac_cache_corrupted=:
1351       fi;;
1352   esac
1353   # Pass precious variables to config.status.
1354   if test "$ac_new_set" = set; then
1355     case $ac_new_val in
1356     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1357       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1358     *) ac_arg=$ac_var=$ac_new_val ;;
1359     esac
1360     case " $ac_configure_args " in
1361       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1362       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1363     esac
1364   fi
1365 done
1366 if $ac_cache_corrupted; then
1367   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1368 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1369   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1370 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1371    { (exit 1); exit 1; }; }
1372 fi
1373
1374 ac_ext=c
1375 ac_cpp='$CPP $CPPFLAGS'
1376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400
1401
1402 gcc_version=`cat $srcdir/BASE-VER`
1403
1404 # Determine the host, build, and target systems
1405 ac_aux_dir=
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407   if test -f $ac_dir/install-sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install-sh -c"
1410     break
1411   elif test -f $ac_dir/install.sh; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/install.sh -c"
1414     break
1415   elif test -f $ac_dir/shtool; then
1416     ac_aux_dir=$ac_dir
1417     ac_install_sh="$ac_aux_dir/shtool install -c"
1418     break
1419   fi
1420 done
1421 if test -z "$ac_aux_dir"; then
1422   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424    { (exit 1); exit 1; }; }
1425 fi
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1429
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434    { (exit 1); exit 1; }; }
1435
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443   ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447    { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451    { (exit 1); exit 1; }; }
1452
1453 fi
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1456 build=$ac_cv_build
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
1461
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469   ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473    { (exit 1); exit 1; }; }
1474
1475 fi
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1478 host=$ac_cv_host
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482
1483
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491   ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509   test "$program_prefix$program_suffix$program_transform_name" = \
1510     NONENONEs,x,x, &&
1511   program_prefix=${target_alias}-
1512
1513 # Determine the noncanonical target name, for directory use.
1514  case ${build_alias} in
1515   "") build_noncanonical=${build} ;;
1516   *) build_noncanonical=${build_alias} ;;
1517 esac
1518
1519  case ${host_alias} in
1520   "") host_noncanonical=${build_noncanonical} ;;
1521   *) host_noncanonical=${host_alias} ;;
1522 esac
1523
1524  case ${target_alias} in
1525   "") target_noncanonical=${host_noncanonical} ;;
1526   *) target_noncanonical=${target_alias} ;;
1527 esac
1528
1529
1530
1531
1532 # Determine the target- and build-specific subdirectories
1533
1534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1535 # have matching libraries, they should use host libraries: Makefile.tpl
1536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1537 # However, they still use the build modules, because the corresponding
1538 # host modules (e.g. bison) are only built for the host when bootstrap
1539 # finishes. So:
1540 # - build_subdir is where we find build modules, and never changes.
1541 # - build_libsubdir is where we find build libraries, and can be overridden.
1542
1543 # Prefix 'build-' so this never conflicts with target_subdir.
1544 build_subdir="build-${build_noncanonical}"
1545
1546 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1547 if test "${with_build_libsubdir+set}" = set; then
1548   withval="$with_build_libsubdir"
1549   build_libsubdir="$withval"
1550 else
1551   build_libsubdir="$build_subdir"
1552 fi;
1553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1554 if ( test $srcdir = . && test -d gcc ) \
1555    || test -d $srcdir/../host-${host_noncanonical}; then
1556   host_subdir="host-${host_noncanonical}"
1557 else
1558   host_subdir=.
1559 fi
1560 # No prefix.
1561 target_subdir=${target_noncanonical}
1562
1563
1564 # Set program_transform_name
1565 test "$program_prefix" != NONE &&
1566   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1567 # Use a double $ so make ignores it.
1568 test "$program_suffix" != NONE &&
1569   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1570 # Double any \ or $.  echo might interpret backslashes.
1571 # By default was `s,x,x', remove it if useless.
1572 cat <<\_ACEOF >conftest.sed
1573 s/[\\$]/&&/g;s/;s,x,x,$//
1574 _ACEOF
1575 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1576 rm conftest.sed
1577
1578
1579 # Check for bogus environment variables.
1580 # Test if LIBRARY_PATH contains the notation for the current directory
1581 # since this would lead to problems installing/building glibc.
1582 # LIBRARY_PATH contains the current directory if one of the following
1583 # is true:
1584 # - one of the terminals (":" and ";") is the first or last sign
1585 # - two terminals occur directly after each other
1586 # - the path contains an element with a dot in it
1587 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1588 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1589 case ${LIBRARY_PATH} in
1590   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1591     library_path_setting="contains current directory"
1592     ;;
1593   *)
1594     library_path_setting="ok"
1595     ;;
1596 esac
1597 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1598 echo "${ECHO_T}$library_path_setting" >&6
1599 if test "$library_path_setting" != "ok"; then
1600 { { echo "$as_me:$LINENO: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&5
1604 echo "$as_me: error:
1605 *** LIBRARY_PATH shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&2;}
1608    { (exit 1); exit 1; }; }
1609 fi
1610
1611 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1612 # since this would lead to problems installing/building glibc.
1613 # GCC_EXEC_PREFIX contains the current directory if one of the following
1614 # is true:
1615 # - one of the terminals (":" and ";") is the first or last sign
1616 # - two terminals occur directly after each other
1617 # - the path contains an element with a dot in it
1618 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1619 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1620 case ${GCC_EXEC_PREFIX} in
1621   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1622     gcc_exec_prefix_setting="contains current directory"
1623     ;;
1624   *)
1625     gcc_exec_prefix_setting="ok"
1626     ;;
1627 esac
1628 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1629 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1630 if test "$gcc_exec_prefix_setting" != "ok"; then
1631 { { echo "$as_me:$LINENO: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&5
1635 echo "$as_me: error:
1636 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1637 *** building gcc. Please change the environment variable
1638 *** and run configure again." >&2;}
1639    { (exit 1); exit 1; }; }
1640 fi
1641
1642 # -----------
1643 # Directories
1644 # -----------
1645
1646 # Specify the local prefix
1647 local_prefix=
1648
1649 # Check whether --with-local-prefix or --without-local-prefix was given.
1650 if test "${with_local_prefix+set}" = set; then
1651   withval="$with_local_prefix"
1652   case "${withval}" in
1653 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1654 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1655    { (exit 1); exit 1; }; } ;;
1656 no)     ;;
1657 *)      local_prefix=$with_local_prefix ;;
1658 esac
1659 fi;
1660
1661 # Default local prefix if it is empty
1662 if test x$local_prefix = x; then
1663         local_prefix=/usr/local
1664 fi
1665
1666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1667 # passed in by the toplevel make and thus we'd get different behavior
1668 # depending on where we built the sources.
1669 gcc_gxx_include_dir=
1670 # Specify the g++ header file directory
1671
1672 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1673 if test "${with_gxx_include_dir+set}" = set; then
1674   withval="$with_gxx_include_dir"
1675   case "${withval}" in
1676 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1677 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1678    { (exit 1); exit 1; }; } ;;
1679 no)     ;;
1680 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1681 esac
1682 fi;
1683
1684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1685 if test x${gcc_gxx_include_dir} = x; then
1686   if test x${enable_version_specific_runtime_libs} = xyes; then
1687     gcc_gxx_include_dir='${libsubdir}/include/c++'
1688   else
1689     libstdcxx_incdir='include/c++/$(version)'
1690     if test x$host != x$target; then
1691        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1692     fi
1693     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1694   fi
1695 fi
1696
1697
1698 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1699 if test "${with_cpp_install_dir+set}" = set; then
1700   withval="$with_cpp_install_dir"
1701   if test x$withval = xyes; then
1702   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1703 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1704    { (exit 1); exit 1; }; }
1705 elif test x$withval != xno; then
1706   cpp_install_dir=$withval
1707 fi
1708 fi;
1709
1710 # We would like to our source tree to be readonly.  However when releases or
1711 # pre-releases are generated, the flex/bison generated files as well as the
1712 # various formats of manuals need to be included along with the rest of the
1713 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1714 # just that.
1715
1716 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1717 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1718     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1719 if test "${enable_generated_files_in_srcdir+set}" = set; then
1720   enableval="$enable_generated_files_in_srcdir"
1721   generated_files_in_srcdir=$enableval
1722 else
1723   generated_files_in_srcdir=no
1724 fi;
1725
1726 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1727 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1728
1729 if test "$generated_files_in_srcdir" = "yes"; then
1730   GENINSRC=''
1731 else
1732   GENINSRC='#'
1733 fi
1734
1735
1736 # -------------------
1737 # Find default linker
1738 # -------------------
1739
1740 # With GNU ld
1741
1742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744   withval="$with_gnu_ld"
1745   gnu_ld_flag="$with_gnu_ld"
1746 else
1747   gnu_ld_flag=no
1748 fi;
1749
1750 # With pre-defined ld
1751
1752 # Check whether --with-ld or --without-ld was given.
1753 if test "${with_ld+set}" = set; then
1754   withval="$with_ld"
1755   DEFAULT_LINKER="$with_ld"
1756 fi;
1757 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1758   if test ! -x "$DEFAULT_LINKER"; then
1759     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761    { (exit 1); exit 1; }; }
1762   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763     gnu_ld_flag=yes
1764   fi
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1768 _ACEOF
1769
1770 fi
1771
1772 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define HAVE_GNU_LD $gnu_ld
1776 _ACEOF
1777
1778
1779 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1780 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1781 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1782   if test x"$gnu_ld_flag" = x"no"; then
1783     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1784 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1785   else
1786     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1788   fi
1789 else
1790   echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794 # With demangler in GNU ld
1795
1796 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1797 if test "${with_demangler_in_ld+set}" = set; then
1798   withval="$with_demangler_in_ld"
1799   demangler_in_ld="$with_demangler_in_ld"
1800 else
1801   demangler_in_ld=no
1802 fi;
1803
1804 # ----------------------
1805 # Find default assembler
1806 # ----------------------
1807
1808 # With GNU as
1809
1810 # Check whether --with-gnu-as or --without-gnu-as was given.
1811 if test "${with_gnu_as+set}" = set; then
1812   withval="$with_gnu_as"
1813   gas_flag="$with_gnu_as"
1814 else
1815   gas_flag=no
1816 fi;
1817
1818
1819 # Check whether --with-as or --without-as was given.
1820 if test "${with_as+set}" = set; then
1821   withval="$with_as"
1822   DEFAULT_ASSEMBLER="$with_as"
1823 fi;
1824 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1825   if test ! -x "$DEFAULT_ASSEMBLER"; then
1826     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1827 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1828    { (exit 1); exit 1; }; }
1829   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1830     gas_flag=yes
1831   fi
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1835 _ACEOF
1836
1837 fi
1838
1839 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define HAVE_GNU_AS $gnu_as
1843 _ACEOF
1844
1845
1846 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1847 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1848 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1849   if test x"$gas_flag" = x"no"; then
1850     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1851 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1852   else
1853     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1854 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1855   fi
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 # ---------------
1862 # Find C compiler
1863 # ---------------
1864
1865 # If a non-executable a.out is present (e.g. created by GNU as above even if
1866 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1867 # file, even when creating an executable, so an execution test fails.
1868 # Remove possible default executable files to avoid this.
1869 #
1870 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1871 # Autoconf includes it.
1872 rm -f a.out a.exe b.out
1873
1874 # Find the native compiler
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$CC"; then
1889   ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 fi
1917 if test -z "$ac_cv_prog_CC"; then
1918   ac_ct_CC=$CC
1919   # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="gcc"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   CC=$ac_ct_CC
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 if test -z "$CC"; then
1960   if test -n "$ac_tool_prefix"; then
1961   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_CC="${ac_tool_prefix}cc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 CC=$ac_cv_prog_CC
1988 if test -n "$CC"; then
1989   echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996 fi
1997 if test -z "$ac_cv_prog_CC"; then
1998   ac_ct_CC=$CC
1999   # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CC"; then
2007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CC="cc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   CC=$ac_ct_CC
2035 else
2036   CC="$ac_cv_prog_CC"
2037 fi
2038
2039 fi
2040 if test -z "$CC"; then
2041   # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$CC"; then
2049   ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051   ac_prog_rejected=no
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060        ac_prog_rejected=yes
2061        continue
2062      fi
2063     ac_cv_prog_CC="cc"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 if test $ac_prog_rejected = yes; then
2071   # We found a bogon in the path, so make sure we never use it.
2072   set dummy $ac_cv_prog_CC
2073   shift
2074   if test $# != 0; then
2075     # We chose a different compiler from the bogus one.
2076     # However, it has the same basename, so the bogon will be chosen
2077     # first if we set CC to just the basename; use the full file name.
2078     shift
2079     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2080   fi
2081 fi
2082 fi
2083 fi
2084 CC=$ac_cv_prog_CC
2085 if test -n "$CC"; then
2086   echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2088 else
2089   echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 fi
2094 if test -z "$CC"; then
2095   if test -n "$ac_tool_prefix"; then
2096   for ac_prog in cl
2097   do
2098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test -n "$CC"; then
2106   ac_cv_prog_CC="$CC" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111   IFS=$as_save_IFS
2112   test -z "$as_dir" && as_dir=.
2113   for ac_exec_ext in '' $ac_executable_extensions; do
2114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121
2122 fi
2123 fi
2124 CC=$ac_cv_prog_CC
2125 if test -n "$CC"; then
2126   echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2128 else
2129   echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2131 fi
2132
2133     test -n "$CC" && break
2134   done
2135 fi
2136 if test -z "$CC"; then
2137   ac_ct_CC=$CC
2138   for ac_prog in cl
2139 do
2140   # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$ac_ct_CC"; then
2148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_ac_ct_CC="$ac_prog"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175   test -n "$ac_ct_CC" && break
2176 done
2177
2178   CC=$ac_ct_CC
2179 fi
2180
2181 fi
2182
2183
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188    { (exit 1); exit 1; }; }
2189
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192      "checking for C compiler version" >&5
2193 ac_compiler=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195   (eval $ac_compiler --version </dev/null >&5) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200   (eval $ac_compiler -v </dev/null >&5) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205   (eval $ac_compiler -V </dev/null >&5) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }
2209
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h.  */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h.  */
2216
2217 int
2218 main ()
2219 {
2220
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2229 # of exeext.
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234   (eval $ac_link_default) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; then
2238   # Find the output, starting from the most likely.  This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2240 # resort.
2241
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2244 ac_cv_exeext=
2245 # b.out is created by i960 compilers.
2246 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2247 do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2251         ;;
2252     conftest.$ac_ext )
2253         # This is the source file.
2254         ;;
2255     [ab].out )
2256         # We found the default executable, but exeext='' is most
2257         # certainly right.
2258         break;;
2259     *.* )
2260         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261         # FIXME: I believe we export ac_cv_exeext for Libtool,
2262         # but it would be cool to find out if it's true.  Does anybody
2263         # maintain Libtool? --akim.
2264         export ac_cv_exeext
2265         break;;
2266     * )
2267         break;;
2268   esac
2269 done
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278    { (exit 77); exit 77; }; }
2279 fi
2280
2281 ac_exeext=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2284
2285 # Check the compiler produces executables we can run.  If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292   if { ac_try='./$ac_file'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298     cross_compiling=no
2299   else
2300     if test "$cross_compiling" = maybe; then
2301         cross_compiling=yes
2302     else
2303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310     fi
2311   fi
2312 fi
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2315
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check the compiler produces executables we can run.  If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2324
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328   (eval $ac_link) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2335 # `rm'.
2336 for ac_file in conftest.exe conftest conftest.*; do
2337   test -f "$ac_file" || continue
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2340     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2341           export ac_cv_exeext
2342           break;;
2343     * ) break;;
2344   esac
2345 done
2346 else
2347   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354 rm -f conftest$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2357
2358 rm -f conftest.$ac_ext
2359 EXEEXT=$ac_cv_exeext
2360 ac_exeext=$EXEEXT
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; then
2387   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2388   case $ac_file in
2389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2390     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2391        break;;
2392   esac
2393 done
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402    { (exit 1); exit 1; }; }
2403 fi
2404
2405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT=$ac_cv_objext
2410 ac_objext=$OBJEXT
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422
2423 int
2424 main ()
2425 {
2426 #ifndef __GNUC__
2427        choke me
2428 #endif
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_compiler_gnu=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_compiler_gnu=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 CFLAGS="-g"
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_cv_prog_cc_g=no
2521 fi
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527   CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529   if test "$GCC" = yes; then
2530     CFLAGS="-g -O2"
2531   else
2532     CFLAGS="-g"
2533   fi
2534 else
2535   if test "$GCC" = yes; then
2536     CFLAGS="-O2"
2537   else
2538     CFLAGS=
2539   fi
2540 fi
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   ac_cv_prog_cc_stdc=no
2547 ac_save_CC=$CC
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554 #include <stdarg.h>
2555 #include <stdio.h>
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2562      char **p;
2563      int i;
2564 {
2565   return p[i];
2566 }
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2568 {
2569   char *s;
2570   va_list v;
2571   va_start (v,p);
2572   s = g (p, va_arg (v,int));
2573   va_end (v);
2574   return s;
2575 }
2576
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2578    function prototypes and stuff, but not '\xHH' hex character constants.
2579    These don't provoke an error unfortunately, instead are silently treated
2580    as 'x'.  The following induces an error, until -std1 is added to get
2581    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2582    array size at least.  It's necessary to write '\x00'==0 to get something
2583    that's true only with -std1.  */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2590 int argc;
2591 char **argv;
2592 int
2593 main ()
2594 {
2595 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX                   -qlanglvl=ansi
2603 # Ultrix and OSF/1      -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2606 # SVR4                  -Xc -D__EXTENSIONS__
2607 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2608 do
2609   CC="$ac_save_CC $ac_arg"
2610   rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_stdc=$ac_arg
2633 break
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 fi
2639 rm -f conftest.err conftest.$ac_objext
2640 done
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2642 CC=$ac_save_CC
2643
2644 fi
2645
2646 case "x$ac_cv_prog_cc_stdc" in
2647   x|xno)
2648     echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2650   *)
2651     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653     CC="$CC $ac_cv_prog_cc_stdc" ;;
2654 esac
2655
2656 # Some people use a C++ compiler to compile C.  Since we use `exit',
2657 # in C++ we need to declare it.  In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #ifndef __cplusplus
2662   choke me
2663 #endif
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   for ac_declaration in \
2688    '' \
2689    'extern "C" void std::exit (int) throw (); using std::exit;' \
2690    'extern "C" void std::exit (int); using std::exit;' \
2691    'extern "C" void exit (int) throw ();' \
2692    'extern "C" void exit (int);' \
2693    'void exit (int);'
2694 do
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 $ac_declaration
2702 #include <stdlib.h>
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 $ac_declaration
2748 int
2749 main ()
2750 {
2751 exit (42);
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_c_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   break
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788   echo '#ifdef __cplusplus' >>confdefs.h
2789   echo $ac_declaration      >>confdefs.h
2790   echo '#endif'             >>confdefs.h
2791 fi
2792
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 fi
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805 if test "x$CC" != xcc; then
2806   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2808 else
2809   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2811 fi
2812 set dummy $CC; ac_cc=`echo $2 |
2813                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2814 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823
2824 int
2825 main ()
2826 {
2827
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 # Make sure it works both with $CC and with simple cc.
2833 # We do the test twice because some compilers refuse to overwrite an
2834 # existing .o file with -o, though they will create one.
2835 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2836 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842   (eval $ac_try) 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); };
2846 then
2847   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2848   if test "x$CC" != xcc; then
2849     # Test first that cc exists at all.
2850     if { ac_try='cc -c conftest.$ac_ext >&5'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); };
2867       then
2868         # cc works too.
2869         :
2870       else
2871         # cc exists but doesn't like -o.
2872         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873       fi
2874     fi
2875   fi
2876 else
2877   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2878 fi
2879 rm -f conftest*
2880
2881 fi
2882 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2883   echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888
2889 cat >>confdefs.h <<\_ACEOF
2890 #define NO_MINUS_C_MINUS_O 1
2891 _ACEOF
2892
2893 fi
2894
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2897
2898 # FIXME: we rely on the cache variable name because
2899 # there is no other way.
2900 set dummy $CC
2901 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2903    # Losing compiler, so override with the script.
2904    # FIXME: It is wrong to rewrite CC.
2905    # But if we don't then we get into trouble of one sort or another.
2906    # A longer-term fix would be to have automake use am__CC in this case,
2907    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2908    CC="$am_aux_dir/compile $CC"
2909 fi
2910
2911 # autoconf is lame and doesn't give us any substitution variable for this.
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2913   NO_MINUS_C_MINUS_O=yes
2914 else
2915   OUTPUT_OPTION='-o $@'
2916 fi
2917
2918
2919
2920 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2921 # optimizations to be activated explicitly by the toplevel.
2922 case "$CC" in
2923   */prev-gcc/xgcc*) ;;
2924   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2925 esac
2926
2927
2928 # -------------------------
2929 # Check C compiler features
2930 # -------------------------
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942   CPP=
2943 fi
2944 if test -z "$CPP"; then
2945   if test "${ac_cv_prog_CPP+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948       # Double quotes because CPP needs to be expanded
2949     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2950     do
2951       ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2953 do
2954   # Use a header file that comes with gcc, so configuring glibc
2955   # with a fresh cross-compiler works.
2956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957   # <limits.h> exists even on freestanding compilers.
2958   # On the NeXT, cc -E runs the code through the compiler's parser,
2959   # not just through cpp. "Syntax error" is here to catch this case.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #ifdef __STDC__
2967 # include <limits.h>
2968 #else
2969 # include <assert.h>
2970 #endif
2971                      Syntax error
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } >/dev/null; then
2981   if test -s conftest.err; then
2982     ac_cpp_err=$ac_c_preproc_warn_flag
2983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984   else
2985     ac_cpp_err=
2986   fi
2987 else
2988   ac_cpp_err=yes
2989 fi
2990 if test -z "$ac_cpp_err"; then
2991   :
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996   # Broken: fails on valid input.
2997 continue
2998 fi
2999 rm -f conftest.err conftest.$ac_ext
3000
3001   # OK, works on sane cases.  Now check whether non-existent headers
3002   # can be detected and how.
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 #include <ac_nonexistent.h>
3010 _ACEOF
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } >/dev/null; then
3019   if test -s conftest.err; then
3020     ac_cpp_err=$ac_c_preproc_warn_flag
3021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3022   else
3023     ac_cpp_err=
3024   fi
3025 else
3026   ac_cpp_err=yes
3027 fi
3028 if test -z "$ac_cpp_err"; then
3029   # Broken: success on invalid input.
3030 continue
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035   # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045   break
3046 fi
3047
3048     done
3049     ac_cv_prog_CPP=$CPP
3050
3051 fi
3052   CPP=$ac_cv_prog_CPP
3053 else
3054   ac_cv_prog_CPP=$CPP
3055 fi
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3060 do
3061   # Use a header file that comes with gcc, so configuring glibc
3062   # with a fresh cross-compiler works.
3063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064   # <limits.h> exists even on freestanding compilers.
3065   # On the NeXT, cc -E runs the code through the compiler's parser,
3066   # not just through cpp. "Syntax error" is here to catch this case.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078                      Syntax error
3079 _ACEOF
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } >/dev/null; then
3088   if test -s conftest.err; then
3089     ac_cpp_err=$ac_c_preproc_warn_flag
3090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091   else
3092     ac_cpp_err=
3093   fi
3094 else
3095   ac_cpp_err=yes
3096 fi
3097 if test -z "$ac_cpp_err"; then
3098   :
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Broken: fails on valid input.
3104 continue
3105 fi
3106 rm -f conftest.err conftest.$ac_ext
3107
3108   # OK, works on sane cases.  Now check whether non-existent headers
3109   # can be detected and how.
3110   cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } >/dev/null; then
3126   if test -s conftest.err; then
3127     ac_cpp_err=$ac_c_preproc_warn_flag
3128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129   else
3130     ac_cpp_err=
3131   fi
3132 else
3133   ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136   # Broken: success on invalid input.
3137 continue
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142   # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3152   :
3153 else
3154   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158    { (exit 1); exit 1; }; }
3159 fi
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167
3168 echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174     then ac_cv_prog_egrep='grep -E'
3175     else ac_cv_prog_egrep='egrep'
3176     fi
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180  EGREP=$ac_cv_prog_egrep
3181
3182
3183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3185 if test "${ac_cv_header_stdc+set}" = set; then
3186   echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #include <stdlib.h>
3195 #include <stdarg.h>
3196 #include <string.h>
3197 #include <float.h>
3198
3199 int
3200 main ()
3201 {
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209   (eval $ac_compile) 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } &&
3216          { ac_try='test -z "$ac_c_werror_flag"
3217                          || test ! -s conftest.err'
3218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225   (eval $ac_try) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; }; then
3229   ac_cv_header_stdc=yes
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 ac_cv_header_stdc=no
3235 fi
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237
3238 if test $ac_cv_header_stdc = yes; then
3239   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3240   cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246 #include <string.h>
3247
3248 _ACEOF
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250   $EGREP "memchr" >/dev/null 2>&1; then
3251   :
3252 else
3253   ac_cv_header_stdc=no
3254 fi
3255 rm -f conftest*
3256
3257 fi
3258
3259 if test $ac_cv_header_stdc = yes; then
3260   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <stdlib.h>
3268
3269 _ACEOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271   $EGREP "free" >/dev/null 2>&1; then
3272   :
3273 else
3274   ac_cv_header_stdc=no
3275 fi
3276 rm -f conftest*
3277
3278 fi
3279
3280 if test $ac_cv_header_stdc = yes; then
3281   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3282   if test "$cross_compiling" = yes; then
3283   :
3284 else
3285   cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include <ctype.h>
3292 #if ((' ' & 0x0FF) == 0x020)
3293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3295 #else
3296 # define ISLOWER(c) \
3297                    (('a' <= (c) && (c) <= 'i') \
3298                      || ('j' <= (c) && (c) <= 'r') \
3299                      || ('s' <= (c) && (c) <= 'z'))
3300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3301 #endif
3302
3303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3304 int
3305 main ()
3306 {
3307   int i;
3308   for (i = 0; i < 256; i++)
3309     if (XOR (islower (i), ISLOWER (i))
3310         || toupper (i) != TOUPPER (i))
3311       exit(2);
3312   exit (0);
3313 }
3314 _ACEOF
3315 rm -f conftest$ac_exeext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3317   (eval $ac_link) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; }; then
3326   :
3327 else
3328   echo "$as_me: program exited with status $ac_status" >&5
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ( exit $ac_status )
3333 ac_cv_header_stdc=no
3334 fi
3335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3336 fi
3337 fi
3338 fi
3339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3341 if test $ac_cv_header_stdc = yes; then
3342
3343 cat >>confdefs.h <<\_ACEOF
3344 #define STDC_HEADERS 1
3345 _ACEOF
3346
3347 fi
3348
3349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3360                   inttypes.h stdint.h unistd.h
3361 do
3362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3363 echo "$as_me:$LINENO: checking for $ac_header" >&5
3364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 $ac_includes_default
3375
3376 #include <$ac_header>
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380   (eval $ac_compile) 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } &&
3387          { ac_try='test -z "$ac_c_werror_flag"
3388                          || test ! -s conftest.err'
3389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390   (eval $ac_try) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; } &&
3394          { ac_try='test -s conftest.$ac_objext'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400   eval "$as_ac_Header=yes"
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 eval "$as_ac_Header=no"
3406 fi
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3412   cat >>confdefs.h <<_ACEOF
3413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3414 _ACEOF
3415
3416 fi
3417
3418 done
3419
3420
3421
3422   if test "${ac_cv_header_minix_config_h+set}" = set; then
3423   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3425 if test "${ac_cv_header_minix_config_h+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 fi
3428 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3430 else
3431   # Is the header compilable?
3432 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 $ac_includes_default
3441 #include <minix/config.h>
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445   (eval $ac_compile) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag"
3453                          || test ! -s conftest.err'
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); }; } &&
3459          { ac_try='test -s conftest.$ac_objext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   ac_header_compiler=yes
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_header_compiler=no
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3474 echo "${ECHO_T}$ac_header_compiler" >&6
3475
3476 # Is the header present?
3477 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3478 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #include <minix/config.h>
3486 _ACEOF
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } >/dev/null; then
3495   if test -s conftest.err; then
3496     ac_cpp_err=$ac_c_preproc_warn_flag
3497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498   else
3499     ac_cpp_err=
3500   fi
3501 else
3502   ac_cpp_err=yes
3503 fi
3504 if test -z "$ac_cpp_err"; then
3505   ac_header_preproc=yes
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510   ac_header_preproc=no
3511 fi
3512 rm -f conftest.err conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3514 echo "${ECHO_T}$ac_header_preproc" >&6
3515
3516 # So?  What about this header?
3517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3518   yes:no: )
3519     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3520 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3521     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3522 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3523     ac_header_preproc=yes
3524     ;;
3525   no:yes:* )
3526     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3527 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3528     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3529 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3530     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3531 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3532     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3533 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3534     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3535 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3536     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3537 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3538     (
3539       cat <<\_ASBOX
3540 ## ------------------------------------------ ##
3541 ## Report this to the AC_PACKAGE_NAME lists.  ##
3542 ## ------------------------------------------ ##
3543 _ASBOX
3544     ) |
3545       sed "s/^/$as_me: WARNING:     /" >&2
3546     ;;
3547 esac
3548 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3550 if test "${ac_cv_header_minix_config_h+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   ac_cv_header_minix_config_h=$ac_header_preproc
3554 fi
3555 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3557
3558 fi
3559 if test $ac_cv_header_minix_config_h = yes; then
3560   MINIX=yes
3561 else
3562   MINIX=
3563 fi
3564
3565
3566   if test "$MINIX" = yes; then
3567
3568 cat >>confdefs.h <<\_ACEOF
3569 #define _POSIX_SOURCE 1
3570 _ACEOF
3571
3572
3573 cat >>confdefs.h <<\_ACEOF
3574 #define _POSIX_1_SOURCE 2
3575 _ACEOF
3576
3577
3578 cat >>confdefs.h <<\_ACEOF
3579 #define _MINIX 1
3580 _ACEOF
3581
3582   fi
3583
3584
3585
3586   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3587 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597
3598 #         define __EXTENSIONS__ 1
3599           $ac_includes_default
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610   (eval $ac_compile) 2>conftest.er1
3611   ac_status=$?
3612   grep -v '^ *+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } &&
3617          { ac_try='test -z "$ac_c_werror_flag"
3618                          || test ! -s conftest.err'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   ac_cv_safe_to_define___extensions__=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_cv_safe_to_define___extensions__=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3640 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3641   test $ac_cv_safe_to_define___extensions__ = yes &&
3642     cat >>confdefs.h <<\_ACEOF
3643 #define __EXTENSIONS__ 1
3644 _ACEOF
3645
3646   cat >>confdefs.h <<\_ACEOF
3647 #define _ALL_SOURCE 1
3648 _ACEOF
3649
3650   cat >>confdefs.h <<\_ACEOF
3651 #define _GNU_SOURCE 1
3652 _ACEOF
3653
3654   cat >>confdefs.h <<\_ACEOF
3655 #define _POSIX_PTHREAD_SEMANTICS 1
3656 _ACEOF
3657
3658   cat >>confdefs.h <<\_ACEOF
3659 #define _TANDEM_SOURCE 1
3660 _ACEOF
3661
3662
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3670 # On Suns, sometimes $CPP names a directory.
3671 if test -n "$CPP" && test -d "$CPP"; then
3672   CPP=
3673 fi
3674 if test -z "$CPP"; then
3675   if test "${ac_cv_prog_CPP+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678       # Double quotes because CPP needs to be expanded
3679     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680     do
3681       ac_preproc_ok=false
3682 for ac_c_preproc_warn_flag in '' yes
3683 do
3684   # Use a header file that comes with gcc, so configuring glibc
3685   # with a fresh cross-compiler works.
3686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687   # <limits.h> exists even on freestanding compilers.
3688   # On the NeXT, cc -E runs the code through the compiler's parser,
3689   # not just through cpp. "Syntax error" is here to catch this case.
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #ifdef __STDC__
3697 # include <limits.h>
3698 #else
3699 # include <assert.h>
3700 #endif
3701                      Syntax error
3702 _ACEOF
3703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } >/dev/null; then
3711   if test -s conftest.err; then
3712     ac_cpp_err=$ac_c_preproc_warn_flag
3713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3714   else
3715     ac_cpp_err=
3716   fi
3717 else
3718   ac_cpp_err=yes
3719 fi
3720 if test -z "$ac_cpp_err"; then
3721   :
3722 else
3723   echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726   # Broken: fails on valid input.
3727 continue
3728 fi
3729 rm -f conftest.err conftest.$ac_ext
3730
3731   # OK, works on sane cases.  Now check whether non-existent headers
3732   # can be detected and how.
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <ac_nonexistent.h>
3740 _ACEOF
3741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3743   ac_status=$?
3744   grep -v '^ *+' conftest.er1 >conftest.err
3745   rm -f conftest.er1
3746   cat conftest.err >&5
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } >/dev/null; then
3749   if test -s conftest.err; then
3750     ac_cpp_err=$ac_c_preproc_warn_flag
3751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3752   else
3753     ac_cpp_err=
3754   fi
3755 else
3756   ac_cpp_err=yes
3757 fi
3758 if test -z "$ac_cpp_err"; then
3759   # Broken: success on invalid input.
3760 continue
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765   # Passes both tests.
3766 ac_preproc_ok=:
3767 break
3768 fi
3769 rm -f conftest.err conftest.$ac_ext
3770
3771 done
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then
3775   break
3776 fi
3777
3778     done
3779     ac_cv_prog_CPP=$CPP
3780
3781 fi
3782   CPP=$ac_cv_prog_CPP
3783 else
3784   ac_cv_prog_CPP=$CPP
3785 fi
3786 echo "$as_me:$LINENO: result: $CPP" >&5
3787 echo "${ECHO_T}$CPP" >&6
3788 ac_preproc_ok=false
3789 for ac_c_preproc_warn_flag in '' yes
3790 do
3791   # Use a header file that comes with gcc, so configuring glibc
3792   # with a fresh cross-compiler works.
3793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794   # <limits.h> exists even on freestanding compilers.
3795   # On the NeXT, cc -E runs the code through the compiler's parser,
3796   # not just through cpp. "Syntax error" is here to catch this case.
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 #ifdef __STDC__
3804 # include <limits.h>
3805 #else
3806 # include <assert.h>
3807 #endif
3808                      Syntax error
3809 _ACEOF
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } >/dev/null; then
3818   if test -s conftest.err; then
3819     ac_cpp_err=$ac_c_preproc_warn_flag
3820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3821   else
3822     ac_cpp_err=
3823   fi
3824 else
3825   ac_cpp_err=yes
3826 fi
3827 if test -z "$ac_cpp_err"; then
3828   :
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833   # Broken: fails on valid input.
3834 continue
3835 fi
3836 rm -f conftest.err conftest.$ac_ext
3837
3838   # OK, works on sane cases.  Now check whether non-existent headers
3839   # can be detected and how.
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 #include <ac_nonexistent.h>
3847 _ACEOF
3848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } >/dev/null; then
3856   if test -s conftest.err; then
3857     ac_cpp_err=$ac_c_preproc_warn_flag
3858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3859   else
3860     ac_cpp_err=
3861   fi
3862 else
3863   ac_cpp_err=yes
3864 fi
3865 if test -z "$ac_cpp_err"; then
3866   # Broken: success on invalid input.
3867 continue
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872   # Passes both tests.
3873 ac_preproc_ok=:
3874 break
3875 fi
3876 rm -f conftest.err conftest.$ac_ext
3877
3878 done
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then
3882   :
3883 else
3884   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&5
3886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&2;}
3888    { (exit 1); exit 1; }; }
3889 fi
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
3897 echo "$as_me:$LINENO: checking for inline" >&5
3898 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3899 if test "${ac_cv_c_inline+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   ac_cv_c_inline=no
3903 for ac_kw in inline __inline__ __inline; do
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #ifndef __cplusplus
3911 typedef int foo_t;
3912 static $ac_kw foo_t static_foo () {return 0; }
3913 $ac_kw foo_t foo () {return 0; }
3914 #endif
3915
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919   (eval $ac_compile) 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } &&
3926          { ac_try='test -z "$ac_c_werror_flag"
3927                          || test ! -s conftest.err'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; } &&
3933          { ac_try='test -s conftest.$ac_objext'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; }; then
3939   ac_cv_c_inline=$ac_kw; break
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 fi
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946 done
3947
3948 fi
3949 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3950 echo "${ECHO_T}$ac_cv_c_inline" >&6
3951
3952
3953 case $ac_cv_c_inline in
3954   inline | yes) ;;
3955   *)
3956     case $ac_cv_c_inline in
3957       no) ac_val=;;
3958       *) ac_val=$ac_cv_c_inline;;
3959     esac
3960     cat >>confdefs.h <<_ACEOF
3961 #ifndef __cplusplus
3962 #define inline $ac_val
3963 #endif
3964 _ACEOF
3965     ;;
3966 esac
3967
3968
3969 # sizeof(char) is 1 by definition.
3970 echo "$as_me:$LINENO: checking for void *" >&5
3971 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3972 if test "${ac_cv_type_void_p+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 $ac_includes_default
3982 int
3983 main ()
3984 {
3985 if ((void * *) 0)
3986   return 0;
3987 if (sizeof (void *))
3988   return 0;
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995   (eval $ac_compile) 2>conftest.er1
3996   ac_status=$?
3997   grep -v '^ *+' conftest.er1 >conftest.err
3998   rm -f conftest.er1
3999   cat conftest.err >&5
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); } &&
4002          { ac_try='test -z "$ac_c_werror_flag"
4003                          || test ! -s conftest.err'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; } &&
4009          { ac_try='test -s conftest.$ac_objext'
4010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011   (eval $ac_try) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }; }; then
4015   ac_cv_type_void_p=yes
4016 else
4017   echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 ac_cv_type_void_p=no
4021 fi
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 fi
4024 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4025 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4026
4027 echo "$as_me:$LINENO: checking size of void *" >&5
4028 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4029 if test "${ac_cv_sizeof_void_p+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   if test "$ac_cv_type_void_p" = yes; then
4033   # The cast to unsigned long works around a bug in the HP C Compiler
4034   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4035   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4036   # This bug is HP SR number 8606223364.
4037   if test "$cross_compiling" = yes; then
4038   # Depending upon the size, compute the lo and hi bounds.
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 $ac_includes_default
4046 int
4047 main ()
4048 {
4049 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4050 test_array [0] = 0
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058   (eval $ac_compile) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"
4066                          || test ! -s conftest.err'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest.$ac_objext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   ac_lo=0 ac_mid=0
4079   while :; do
4080     cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086 $ac_includes_default
4087 int
4088 main ()
4089 {
4090 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4091 test_array [0] = 0
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 rm -f conftest.$ac_objext
4098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4099   (eval $ac_compile) 2>conftest.er1
4100   ac_status=$?
4101   grep -v '^ *+' conftest.er1 >conftest.err
4102   rm -f conftest.er1
4103   cat conftest.err >&5
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } &&
4106          { ac_try='test -z "$ac_c_werror_flag"
4107                          || test ! -s conftest.err'
4108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109   (eval $ac_try) 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); }; } &&
4113          { ac_try='test -s conftest.$ac_objext'
4114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115   (eval $ac_try) 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); }; }; then
4119   ac_hi=$ac_mid; break
4120 else
4121   echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_lo=`expr $ac_mid + 1`
4125                     if test $ac_lo -le $ac_mid; then
4126                       ac_lo= ac_hi=
4127                       break
4128                     fi
4129                     ac_mid=`expr 2 '*' $ac_mid + 1`
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132   done
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 $ac_includes_default
4144 int
4145 main ()
4146 {
4147 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4148 test_array [0] = 0
4149
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156   (eval $ac_compile) 2>conftest.er1
4157   ac_status=$?
4158   grep -v '^ *+' conftest.er1 >conftest.err
4159   rm -f conftest.er1
4160   cat conftest.err >&5
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } &&
4163          { ac_try='test -z "$ac_c_werror_flag"
4164                          || test ! -s conftest.err'
4165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166   (eval $ac_try) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; } &&
4170          { ac_try='test -s conftest.$ac_objext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   ac_hi=-1 ac_mid=-1
4177   while :; do
4178     cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 $ac_includes_default
4185 int
4186 main ()
4187 {
4188 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4189 test_array [0] = 0
4190
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197   (eval $ac_compile) 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } &&
4204          { ac_try='test -z "$ac_c_werror_flag"
4205                          || test ! -s conftest.err'
4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207   (eval $ac_try) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; } &&
4211          { ac_try='test -s conftest.$ac_objext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   ac_lo=$ac_mid; break
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ac_hi=`expr '(' $ac_mid ')' - 1`
4223                        if test $ac_mid -le $ac_hi; then
4224                          ac_lo= ac_hi=
4225                          break
4226                        fi
4227                        ac_mid=`expr 2 '*' $ac_mid`
4228 fi
4229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230   done
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_lo= ac_hi=
4236 fi
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240 # Binary search between lo and hi bounds.
4241 while test "x$ac_lo" != "x$ac_hi"; do
4242   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 $ac_includes_default
4250 int
4251 main ()
4252 {
4253 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4254 test_array [0] = 0
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262   (eval $ac_compile) 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } &&
4269          { ac_try='test -z "$ac_c_werror_flag"
4270                          || test ! -s conftest.err'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; } &&
4276          { ac_try='test -s conftest.$ac_objext'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   ac_hi=$ac_mid
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 ac_lo=`expr '(' $ac_mid ')' + 1`
4288 fi
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290 done
4291 case $ac_lo in
4292 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: cannot compute sizeof (void *), 77
4296 See \`config.log' for more details." >&2;}
4297    { (exit 1); exit 1; }; } ;;
4298 esac
4299 else
4300   if test "$cross_compiling" = yes; then
4301   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&5
4303 echo "$as_me: error: cannot run test program while cross compiling
4304 See \`config.log' for more details." >&2;}
4305    { (exit 1); exit 1; }; }
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 $ac_includes_default
4314 long longval () { return (long) (sizeof (void *)); }
4315 unsigned long ulongval () { return (long) (sizeof (void *)); }
4316 #include <stdio.h>
4317 #include <stdlib.h>
4318 int
4319 main ()
4320 {
4321
4322   FILE *f = fopen ("conftest.val", "w");
4323   if (! f)
4324     exit (1);
4325   if (((long) (sizeof (void *))) < 0)
4326     {
4327       long i = longval ();
4328       if (i != ((long) (sizeof (void *))))
4329         exit (1);
4330       fprintf (f, "%ld\n", i);
4331     }
4332   else
4333     {
4334       unsigned long i = ulongval ();
4335       if (i != ((long) (sizeof (void *))))
4336         exit (1);
4337       fprintf (f, "%lu\n", i);
4338     }
4339   exit (ferror (f) || fclose (f) != 0);
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest$ac_exeext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347   (eval $ac_link) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; }; then
4356   ac_cv_sizeof_void_p=`cat conftest.val`
4357 else
4358   echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ( exit $ac_status )
4363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4364 See \`config.log' for more details." >&5
4365 echo "$as_me: error: cannot compute sizeof (void *), 77
4366 See \`config.log' for more details." >&2;}
4367    { (exit 1); exit 1; }; }
4368 fi
4369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 fi
4372 rm -f conftest.val
4373 else
4374   ac_cv_sizeof_void_p=0
4375 fi
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4378 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4379 cat >>confdefs.h <<_ACEOF
4380 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4381 _ACEOF
4382
4383
4384 echo "$as_me:$LINENO: checking for short" >&5
4385 echo $ECHO_N "checking for short... $ECHO_C" >&6
4386 if test "${ac_cv_type_short+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395 $ac_includes_default
4396 int
4397 main ()
4398 {
4399 if ((short *) 0)
4400   return 0;
4401 if (sizeof (short))
4402   return 0;
4403   ;
4404   return 0;
4405 }
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>conftest.er1
4410   ac_status=$?
4411   grep -v '^ *+' conftest.er1 >conftest.err
4412   rm -f conftest.er1
4413   cat conftest.err >&5
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); } &&
4416          { ac_try='test -z "$ac_c_werror_flag"
4417                          || test ! -s conftest.err'
4418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419   (eval $ac_try) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425   (eval $ac_try) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; }; then
4429   ac_cv_type_short=yes
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 ac_cv_type_short=no
4435 fi
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437 fi
4438 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4439 echo "${ECHO_T}$ac_cv_type_short" >&6
4440
4441 echo "$as_me:$LINENO: checking size of short" >&5
4442 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4443 if test "${ac_cv_sizeof_short+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   if test "$ac_cv_type_short" = yes; then
4447   # The cast to unsigned long works around a bug in the HP C Compiler
4448   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4449   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4450   # This bug is HP SR number 8606223364.
4451   if test "$cross_compiling" = yes; then
4452   # Depending upon the size, compute the lo and hi bounds.
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459 $ac_includes_default
4460 int
4461 main ()
4462 {
4463 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4464 test_array [0] = 0
4465
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472   (eval $ac_compile) 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } &&
4479          { ac_try='test -z "$ac_c_werror_flag"
4480                          || test ! -s conftest.err'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; } &&
4486          { ac_try='test -s conftest.$ac_objext'
4487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488   (eval $ac_try) 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; }; then
4492   ac_lo=0 ac_mid=0
4493   while :; do
4494     cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 $ac_includes_default
4501 int
4502 main ()
4503 {
4504 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4505 test_array [0] = 0
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513   (eval $ac_compile) 2>conftest.er1
4514   ac_status=$?
4515   grep -v '^ *+' conftest.er1 >conftest.err
4516   rm -f conftest.er1
4517   cat conftest.err >&5
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } &&
4520          { ac_try='test -z "$ac_c_werror_flag"
4521                          || test ! -s conftest.err'
4522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523   (eval $ac_try) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; } &&
4527          { ac_try='test -s conftest.$ac_objext'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   ac_hi=$ac_mid; break
4534 else
4535   echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ac_lo=`expr $ac_mid + 1`
4539                     if test $ac_lo -le $ac_mid; then
4540                       ac_lo= ac_hi=
4541                       break
4542                     fi
4543                     ac_mid=`expr 2 '*' $ac_mid + 1`
4544 fi
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546   done
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4562 test_array [0] = 0
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -z "$ac_c_werror_flag"
4578                          || test ! -s conftest.err'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; } &&
4584          { ac_try='test -s conftest.$ac_objext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_hi=-1 ac_mid=-1
4591   while :; do
4592     cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 $ac_includes_default
4599 int
4600 main ()
4601 {
4602 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4603 test_array [0] = 0
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } &&
4618          { ac_try='test -z "$ac_c_werror_flag"
4619                          || test ! -s conftest.err'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; } &&
4625          { ac_try='test -s conftest.$ac_objext'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   ac_lo=$ac_mid; break
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 ac_hi=`expr '(' $ac_mid ')' - 1`
4637                        if test $ac_mid -le $ac_hi; then
4638                          ac_lo= ac_hi=
4639                          break
4640                        fi
4641                        ac_mid=`expr 2 '*' $ac_mid`
4642 fi
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644   done
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_lo= ac_hi=
4650 fi
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 # Binary search between lo and hi bounds.
4655 while test "x$ac_lo" != "x$ac_hi"; do
4656   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 $ac_includes_default
4664 int
4665 main ()
4666 {
4667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4668 test_array [0] = 0
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>conftest.er1
4677   ac_status=$?
4678   grep -v '^ *+' conftest.er1 >conftest.err
4679   rm -f conftest.er1
4680   cat conftest.err >&5
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } &&
4683          { ac_try='test -z "$ac_c_werror_flag"
4684                          || test ! -s conftest.err'
4685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686   (eval $ac_try) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   ac_hi=$ac_mid
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_lo=`expr '(' $ac_mid ')' + 1`
4702 fi
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 done
4705 case $ac_lo in
4706 ?*) ac_cv_sizeof_short=$ac_lo;;
4707 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4708 See \`config.log' for more details." >&5
4709 echo "$as_me: error: cannot compute sizeof (short), 77
4710 See \`config.log' for more details." >&2;}
4711    { (exit 1); exit 1; }; } ;;
4712 esac
4713 else
4714   if test "$cross_compiling" = yes; then
4715   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot run test program while cross compiling
4718 See \`config.log' for more details." >&2;}
4719    { (exit 1); exit 1; }; }
4720 else
4721   cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727 $ac_includes_default
4728 long longval () { return (long) (sizeof (short)); }
4729 unsigned long ulongval () { return (long) (sizeof (short)); }
4730 #include <stdio.h>
4731 #include <stdlib.h>
4732 int
4733 main ()
4734 {
4735
4736   FILE *f = fopen ("conftest.val", "w");
4737   if (! f)
4738     exit (1);
4739   if (((long) (sizeof (short))) < 0)
4740     {
4741       long i = longval ();
4742       if (i != ((long) (sizeof (short))))
4743         exit (1);
4744       fprintf (f, "%ld\n", i);
4745     }
4746   else
4747     {
4748       unsigned long i = ulongval ();
4749       if (i != ((long) (sizeof (short))))
4750         exit (1);
4751       fprintf (f, "%lu\n", i);
4752     }
4753   exit (ferror (f) || fclose (f) != 0);
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest$ac_exeext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4761   (eval $ac_link) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; }; then
4770   ac_cv_sizeof_short=`cat conftest.val`
4771 else
4772   echo "$as_me: program exited with status $ac_status" >&5
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776 ( exit $ac_status )
4777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4778 See \`config.log' for more details." >&5
4779 echo "$as_me: error: cannot compute sizeof (short), 77
4780 See \`config.log' for more details." >&2;}
4781    { (exit 1); exit 1; }; }
4782 fi
4783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 fi
4786 rm -f conftest.val
4787 else
4788   ac_cv_sizeof_short=0
4789 fi
4790 fi
4791 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4792 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4793 cat >>confdefs.h <<_ACEOF
4794 #define SIZEOF_SHORT $ac_cv_sizeof_short
4795 _ACEOF
4796
4797
4798 echo "$as_me:$LINENO: checking for int" >&5
4799 echo $ECHO_N "checking for int... $ECHO_C" >&6
4800 if test "${ac_cv_type_int+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 int
4811 main ()
4812 {
4813 if ((int *) 0)
4814   return 0;
4815 if (sizeof (int))
4816   return 0;
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823   (eval $ac_compile) 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } &&
4830          { ac_try='test -z "$ac_c_werror_flag"
4831                          || test ! -s conftest.err'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; } &&
4837          { ac_try='test -s conftest.$ac_objext'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; }; then
4843   ac_cv_type_int=yes
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 ac_cv_type_int=no
4849 fi
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4853 echo "${ECHO_T}$ac_cv_type_int" >&6
4854
4855 echo "$as_me:$LINENO: checking size of int" >&5
4856 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4857 if test "${ac_cv_sizeof_int+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test "$ac_cv_type_int" = yes; then
4861   # The cast to unsigned long works around a bug in the HP C Compiler
4862   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4863   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4864   # This bug is HP SR number 8606223364.
4865   if test "$cross_compiling" = yes; then
4866   # Depending upon the size, compute the lo and hi bounds.
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873 $ac_includes_default
4874 int
4875 main ()
4876 {
4877 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4878 test_array [0] = 0
4879
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest.$ac_objext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   ac_lo=0 ac_mid=0
4907   while :; do
4908     cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 $ac_includes_default
4915 int
4916 main ()
4917 {
4918 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4919 test_array [0] = 0
4920
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927   (eval $ac_compile) 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -z "$ac_c_werror_flag"
4935                          || test ! -s conftest.err'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; } &&
4941          { ac_try='test -s conftest.$ac_objext'
4942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943   (eval $ac_try) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; }; then
4947   ac_hi=$ac_mid; break
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_lo=`expr $ac_mid + 1`
4953                     if test $ac_lo -le $ac_mid; then
4954                       ac_lo= ac_hi=
4955                       break
4956                     fi
4957                     ac_mid=`expr 2 '*' $ac_mid + 1`
4958 fi
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960   done
4961 else
4962   echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 $ac_includes_default
4972 int
4973 main ()
4974 {
4975 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4976 test_array [0] = 0
4977
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } &&
4991          { ac_try='test -z "$ac_c_werror_flag"
4992                          || test ! -s conftest.err'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; } &&
4998          { ac_try='test -s conftest.$ac_objext'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   ac_hi=-1 ac_mid=-1
5005   while :; do
5006     cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 $ac_includes_default
5013 int
5014 main ()
5015 {
5016 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5017 test_array [0] = 0
5018
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } &&
5032          { ac_try='test -z "$ac_c_werror_flag"
5033                          || test ! -s conftest.err'
5034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035   (eval $ac_try) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; } &&
5039          { ac_try='test -s conftest.$ac_objext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_lo=$ac_mid; break
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_hi=`expr '(' $ac_mid ')' - 1`
5051                        if test $ac_mid -le $ac_hi; then
5052                          ac_lo= ac_hi=
5053                          break
5054                        fi
5055                        ac_mid=`expr 2 '*' $ac_mid`
5056 fi
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058   done
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_lo= ac_hi=
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 fi
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 # Binary search between lo and hi bounds.
5069 while test "x$ac_lo" != "x$ac_hi"; do
5070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5071   cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 $ac_includes_default
5078 int
5079 main ()
5080 {
5081 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5082 test_array [0] = 0
5083
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090   (eval $ac_compile) 2>conftest.er1
5091   ac_status=$?
5092   grep -v '^ *+' conftest.er1 >conftest.err
5093   rm -f conftest.er1
5094   cat conftest.err >&5
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } &&
5097          { ac_try='test -z "$ac_c_werror_flag"
5098                          || test ! -s conftest.err'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; } &&
5104          { ac_try='test -s conftest.$ac_objext'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   ac_hi=$ac_mid
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_lo=`expr '(' $ac_mid ')' + 1`
5116 fi
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118 done
5119 case $ac_lo in
5120 ?*) ac_cv_sizeof_int=$ac_lo;;
5121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: cannot compute sizeof (int), 77
5124 See \`config.log' for more details." >&2;}
5125    { (exit 1); exit 1; }; } ;;
5126 esac
5127 else
5128   if test "$cross_compiling" = yes; then
5129   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot run test program while cross compiling
5132 See \`config.log' for more details." >&2;}
5133    { (exit 1); exit 1; }; }
5134 else
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 $ac_includes_default
5142 long longval () { return (long) (sizeof (int)); }
5143 unsigned long ulongval () { return (long) (sizeof (int)); }
5144 #include <stdio.h>
5145 #include <stdlib.h>
5146 int
5147 main ()
5148 {
5149
5150   FILE *f = fopen ("conftest.val", "w");
5151   if (! f)
5152     exit (1);
5153   if (((long) (sizeof (int))) < 0)
5154     {
5155       long i = longval ();
5156       if (i != ((long) (sizeof (int))))
5157         exit (1);
5158       fprintf (f, "%ld\n", i);
5159     }
5160   else
5161     {
5162       unsigned long i = ulongval ();
5163       if (i != ((long) (sizeof (int))))
5164         exit (1);
5165       fprintf (f, "%lu\n", i);
5166     }
5167   exit (ferror (f) || fclose (f) != 0);
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175   (eval $ac_link) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; }; then
5184   ac_cv_sizeof_int=`cat conftest.val`
5185 else
5186   echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 ( exit $ac_status )
5191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5192 See \`config.log' for more details." >&5
5193 echo "$as_me: error: cannot compute sizeof (int), 77
5194 See \`config.log' for more details." >&2;}
5195    { (exit 1); exit 1; }; }
5196 fi
5197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 fi
5200 rm -f conftest.val
5201 else
5202   ac_cv_sizeof_int=0
5203 fi
5204 fi
5205 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5206 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5207 cat >>confdefs.h <<_ACEOF
5208 #define SIZEOF_INT $ac_cv_sizeof_int
5209 _ACEOF
5210
5211
5212 echo "$as_me:$LINENO: checking for long" >&5
5213 echo $ECHO_N "checking for long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 $ac_includes_default
5224 int
5225 main ()
5226 {
5227 if ((long *) 0)
5228   return 0;
5229 if (sizeof (long))
5230   return 0;
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237   (eval $ac_compile) 2>conftest.er1
5238   ac_status=$?
5239   grep -v '^ *+' conftest.er1 >conftest.err
5240   rm -f conftest.er1
5241   cat conftest.err >&5
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } &&
5244          { ac_try='test -z "$ac_c_werror_flag"
5245                          || test ! -s conftest.err'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_type_long=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_type_long=no
5263 fi
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long" >&6
5268
5269 echo "$as_me:$LINENO: checking size of long" >&5
5270 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test "$ac_cv_type_long" = yes; then
5275   # The cast to unsigned long works around a bug in the HP C Compiler
5276   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278   # This bug is HP SR number 8606223364.
5279   if test "$cross_compiling" = yes; then
5280   # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 $ac_includes_default
5288 int
5289 main ()
5290 {
5291 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5292 test_array [0] = 0
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"
5308                          || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_lo=0 ac_mid=0
5321   while :; do
5322     cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 $ac_includes_default
5329 int
5330 main ()
5331 {
5332 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5333 test_array [0] = 0
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341   (eval $ac_compile) 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -z "$ac_c_werror_flag"
5349                          || test ! -s conftest.err'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; } &&
5355          { ac_try='test -s conftest.$ac_objext'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; }; then
5361   ac_hi=$ac_mid; break
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_lo=`expr $ac_mid + 1`
5367                     if test $ac_lo -le $ac_mid; then
5368                       ac_lo= ac_hi=
5369                       break
5370                     fi
5371                     ac_mid=`expr 2 '*' $ac_mid + 1`
5372 fi
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374   done
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"
5406                          || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_hi=-1 ac_mid=-1
5419   while :; do
5420     cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 $ac_includes_default
5427 int
5428 main ()
5429 {
5430 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5431 test_array [0] = 0
5432
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439   (eval $ac_compile) 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -z "$ac_c_werror_flag"
5447                          || test ! -s conftest.err'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; } &&
5453          { ac_try='test -s conftest.$ac_objext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   ac_lo=$ac_mid; break
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_hi=`expr '(' $ac_mid ')' - 1`
5465                        if test $ac_mid -le $ac_hi; then
5466                          ac_lo= ac_hi=
5467                          break
5468                        fi
5469                        ac_mid=`expr 2 '*' $ac_mid`
5470 fi
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472   done
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_lo= ac_hi=
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485   cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491 $ac_includes_default
5492 int
5493 main ()
5494 {
5495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5496 test_array [0] = 0
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -z "$ac_c_werror_flag"
5512                          || test ! -s conftest.err'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; } &&
5518          { ac_try='test -s conftest.$ac_objext'
5519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520   (eval $ac_try) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); }; }; then
5524   ac_hi=$ac_mid
5525 else
5526   echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_lo=`expr '(' $ac_mid ')' + 1`
5530 fi
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 done
5533 case $ac_lo in
5534 ?*) ac_cv_sizeof_long=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long), 77
5538 See \`config.log' for more details." >&2;}
5539    { (exit 1); exit 1; }; } ;;
5540 esac
5541 else
5542   if test "$cross_compiling" = yes; then
5543   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547    { (exit 1); exit 1; }; }
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long)); }
5558 #include <stdio.h>
5559 #include <stdlib.h>
5560 int
5561 main ()
5562 {
5563
5564   FILE *f = fopen ("conftest.val", "w");
5565   if (! f)
5566     exit (1);
5567   if (((long) (sizeof (long))) < 0)
5568     {
5569       long i = longval ();
5570       if (i != ((long) (sizeof (long))))
5571         exit (1);
5572       fprintf (f, "%ld\n", i);
5573     }
5574   else
5575     {
5576       unsigned long i = ulongval ();
5577       if (i != ((long) (sizeof (long))))
5578         exit (1);
5579       fprintf (f, "%lu\n", i);
5580     }
5581   exit (ferror (f) || fclose (f) != 0);
5582
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589   (eval $ac_link) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   ac_cv_sizeof_long=`cat conftest.val`
5599 else
5600   echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ( exit $ac_status )
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long), 77
5608 See \`config.log' for more details." >&2;}
5609    { (exit 1); exit 1; }; }
5610 fi
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 fi
5614 rm -f conftest.val
5615 else
5616   ac_cv_sizeof_long=0
5617 fi
5618 fi
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5621 cat >>confdefs.h <<_ACEOF
5622 #define SIZEOF_LONG $ac_cv_sizeof_long
5623 _ACEOF
5624
5625
5626 echo "$as_me:$LINENO: checking for long long" >&5
5627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5628 if test "${ac_cv_type_long_long+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637 $ac_includes_default
5638 int
5639 main ()
5640 {
5641 if ((long long *) 0)
5642   return 0;
5643 if (sizeof (long long))
5644   return 0;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; } &&
5665          { ac_try='test -s conftest.$ac_objext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_type_long_long=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_type_long_long=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5682 if test $ac_cv_type_long_long = yes; then
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_LONG_LONG 1
5686 _ACEOF
5687
5688 echo "$as_me:$LINENO: checking for long long" >&5
5689 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5690 if test "${ac_cv_type_long_long+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699 $ac_includes_default
5700 int
5701 main ()
5702 {
5703 if ((long long *) 0)
5704   return 0;
5705 if (sizeof (long long))
5706   return 0;
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -z "$ac_c_werror_flag"
5721                          || test ! -s conftest.err'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; } &&
5727          { ac_try='test -s conftest.$ac_objext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_type_long_long=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cv_type_long_long=no
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5743 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5744
5745 echo "$as_me:$LINENO: checking size of long long" >&5
5746 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5747 if test "${ac_cv_sizeof_long_long+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test "$ac_cv_type_long_long" = yes; then
5751   # The cast to unsigned long works around a bug in the HP C Compiler
5752   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754   # This bug is HP SR number 8606223364.
5755   if test "$cross_compiling" = yes; then
5756   # Depending upon the size, compute the lo and hi bounds.
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 $ac_includes_default
5764 int
5765 main ()
5766 {
5767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5768 test_array [0] = 0
5769
5770   ;
5771   return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776   (eval $ac_compile) 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } &&
5783          { ac_try='test -z "$ac_c_werror_flag"
5784                          || test ! -s conftest.err'
5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786   (eval $ac_try) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_lo=0 ac_mid=0
5797   while :; do
5798     cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5809 test_array [0] = 0
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817   (eval $ac_compile) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   ac_hi=$ac_mid; break
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_lo=`expr $ac_mid + 1`
5843                     if test $ac_lo -le $ac_mid; then
5844                       ac_lo= ac_hi=
5845                       break
5846                     fi
5847                     ac_mid=`expr 2 '*' $ac_mid + 1`
5848 fi
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850   done
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 $ac_includes_default
5862 int
5863 main ()
5864 {
5865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5866 test_array [0] = 0
5867
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>conftest.er1
5875   ac_status=$?
5876   grep -v '^ *+' conftest.er1 >conftest.err
5877   rm -f conftest.er1
5878   cat conftest.err >&5
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } &&
5881          { ac_try='test -z "$ac_c_werror_flag"
5882                          || test ! -s conftest.err'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890   (eval $ac_try) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   ac_hi=-1 ac_mid=-1
5895   while :; do
5896     cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 $ac_includes_default
5903 int
5904 main ()
5905 {
5906 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5907 test_array [0] = 0
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915   (eval $ac_compile) 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } &&
5922          { ac_try='test -z "$ac_c_werror_flag"
5923                          || test ! -s conftest.err'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest.$ac_objext'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; }; then
5935   ac_lo=$ac_mid; break
5936 else
5937   echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 ac_hi=`expr '(' $ac_mid ')' - 1`
5941                        if test $ac_mid -le $ac_hi; then
5942                          ac_lo= ac_hi=
5943                          break
5944                        fi
5945                        ac_mid=`expr 2 '*' $ac_mid`
5946 fi
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948   done
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_lo= ac_hi=
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 # Binary search between lo and hi bounds.
5959 while test "x$ac_lo" != "x$ac_hi"; do
5960   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5961   cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 $ac_includes_default
5968 int
5969 main ()
5970 {
5971 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5972 test_array [0] = 0
5973
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980   (eval $ac_compile) 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag"
5988                          || test ! -s conftest.err'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996   (eval $ac_try) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; }; then
6000   ac_hi=$ac_mid
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_lo=`expr '(' $ac_mid ')' + 1`
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 done
6009 case $ac_lo in
6010 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6012 See \`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (long long), 77
6014 See \`config.log' for more details." >&2;}
6015    { (exit 1); exit 1; }; } ;;
6016 esac
6017 else
6018   if test "$cross_compiling" = yes; then
6019   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&2;}
6023    { (exit 1); exit 1; }; }
6024 else
6025   cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 $ac_includes_default
6032 long longval () { return (long) (sizeof (long long)); }
6033 unsigned long ulongval () { return (long) (sizeof (long long)); }
6034 #include <stdio.h>
6035 #include <stdlib.h>
6036 int
6037 main ()
6038 {
6039
6040   FILE *f = fopen ("conftest.val", "w");
6041   if (! f)
6042     exit (1);
6043   if (((long) (sizeof (long long))) < 0)
6044     {
6045       long i = longval ();
6046       if (i != ((long) (sizeof (long long))))
6047         exit (1);
6048       fprintf (f, "%ld\n", i);
6049     }
6050   else
6051     {
6052       unsigned long i = ulongval ();
6053       if (i != ((long) (sizeof (long long))))
6054         exit (1);
6055       fprintf (f, "%lu\n", i);
6056     }
6057   exit (ferror (f) || fclose (f) != 0);
6058
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   ac_cv_sizeof_long_long=`cat conftest.val`
6075 else
6076   echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ( exit $ac_status )
6081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: cannot compute sizeof (long long), 77
6084 See \`config.log' for more details." >&2;}
6085    { (exit 1); exit 1; }; }
6086 fi
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 fi
6090 rm -f conftest.val
6091 else
6092   ac_cv_sizeof_long_long=0
6093 fi
6094 fi
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6100
6101
6102 fi
6103
6104 echo "$as_me:$LINENO: checking for __int64" >&5
6105 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6106 if test "${ac_cv_type___int64+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 $ac_includes_default
6116 int
6117 main ()
6118 {
6119 if ((__int64 *) 0)
6120   return 0;
6121 if (sizeof (__int64))
6122   return 0;
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -z "$ac_c_werror_flag"
6137                          || test ! -s conftest.err'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; } &&
6143          { ac_try='test -s conftest.$ac_objext'
6144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145   (eval $ac_try) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; }; then
6149   ac_cv_type___int64=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_type___int64=no
6155 fi
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6157 fi
6158 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6159 echo "${ECHO_T}$ac_cv_type___int64" >&6
6160 if test $ac_cv_type___int64 = yes; then
6161
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE___INT64 1
6164 _ACEOF
6165
6166 echo "$as_me:$LINENO: checking for __int64" >&5
6167 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6168 if test "${ac_cv_type___int64+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 $ac_includes_default
6178 int
6179 main ()
6180 {
6181 if ((__int64 *) 0)
6182   return 0;
6183 if (sizeof (__int64))
6184   return 0;
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191   (eval $ac_compile) 2>conftest.er1
6192   ac_status=$?
6193   grep -v '^ *+' conftest.er1 >conftest.err
6194   rm -f conftest.er1
6195   cat conftest.err >&5
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -z "$ac_c_werror_flag"
6199                          || test ! -s conftest.err'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; } &&
6205          { ac_try='test -s conftest.$ac_objext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_type___int64=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_cv_type___int64=no
6217 fi
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6221 echo "${ECHO_T}$ac_cv_type___int64" >&6
6222
6223 echo "$as_me:$LINENO: checking size of __int64" >&5
6224 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6225 if test "${ac_cv_sizeof___int64+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   if test "$ac_cv_type___int64" = yes; then
6229   # The cast to unsigned long works around a bug in the HP C Compiler
6230   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6231   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6232   # This bug is HP SR number 8606223364.
6233   if test "$cross_compiling" = yes; then
6234   # Depending upon the size, compute the lo and hi bounds.
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241 $ac_includes_default
6242 int
6243 main ()
6244 {
6245 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6246 test_array [0] = 0
6247
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254   (eval $ac_compile) 2>conftest.er1
6255   ac_status=$?
6256   grep -v '^ *+' conftest.er1 >conftest.err
6257   rm -f conftest.er1
6258   cat conftest.err >&5
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -z "$ac_c_werror_flag"
6262                          || test ! -s conftest.err'
6263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264   (eval $ac_try) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; } &&
6268          { ac_try='test -s conftest.$ac_objext'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_lo=0 ac_mid=0
6275   while :; do
6276     cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 $ac_includes_default
6283 int
6284 main ()
6285 {
6286 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6287 test_array [0] = 0
6288
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295   (eval $ac_compile) 2>conftest.er1
6296   ac_status=$?
6297   grep -v '^ *+' conftest.er1 >conftest.err
6298   rm -f conftest.er1
6299   cat conftest.err >&5
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } &&
6302          { ac_try='test -z "$ac_c_werror_flag"
6303                          || test ! -s conftest.err'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; } &&
6309          { ac_try='test -s conftest.$ac_objext'
6310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311   (eval $ac_try) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; }; then
6315   ac_hi=$ac_mid; break
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_lo=`expr $ac_mid + 1`
6321                     if test $ac_lo -le $ac_mid; then
6322                       ac_lo= ac_hi=
6323                       break
6324                     fi
6325                     ac_mid=`expr 2 '*' $ac_mid + 1`
6326 fi
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328   done
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 $ac_includes_default
6340 int
6341 main ()
6342 {
6343 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6344 test_array [0] = 0
6345
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352   (eval $ac_compile) 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -z "$ac_c_werror_flag"
6360                          || test ! -s conftest.err'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest.$ac_objext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_hi=-1 ac_mid=-1
6373   while :; do
6374     cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6385 test_array [0] = 0
6386
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393   (eval $ac_compile) 2>conftest.er1
6394   ac_status=$?
6395   grep -v '^ *+' conftest.er1 >conftest.err
6396   rm -f conftest.er1
6397   cat conftest.err >&5
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); } &&
6400          { ac_try='test -z "$ac_c_werror_flag"
6401                          || test ! -s conftest.err'
6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403   (eval $ac_try) 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; } &&
6407          { ac_try='test -s conftest.$ac_objext'
6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409   (eval $ac_try) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); }; }; then
6413   ac_lo=$ac_mid; break
6414 else
6415   echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_hi=`expr '(' $ac_mid ')' - 1`
6419                        if test $ac_mid -le $ac_hi; then
6420                          ac_lo= ac_hi=
6421                          break
6422                        fi
6423                        ac_mid=`expr 2 '*' $ac_mid`
6424 fi
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426   done
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ac_lo= ac_hi=
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 # Binary search between lo and hi bounds.
6437 while test "x$ac_lo" != "x$ac_hi"; do
6438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6439   cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 $ac_includes_default
6446 int
6447 main ()
6448 {
6449 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6450 test_array [0] = 0
6451
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458   (eval $ac_compile) 2>conftest.er1
6459   ac_status=$?
6460   grep -v '^ *+' conftest.er1 >conftest.err
6461   rm -f conftest.er1
6462   cat conftest.err >&5
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } &&
6465          { ac_try='test -z "$ac_c_werror_flag"
6466                          || test ! -s conftest.err'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; } &&
6472          { ac_try='test -s conftest.$ac_objext'
6473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474   (eval $ac_try) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); }; }; then
6478   ac_hi=$ac_mid
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_lo=`expr '(' $ac_mid ')' + 1`
6484 fi
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 done
6487 case $ac_lo in
6488 ?*) ac_cv_sizeof___int64=$ac_lo;;
6489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6490 See \`config.log' for more details." >&5
6491 echo "$as_me: error: cannot compute sizeof (__int64), 77
6492 See \`config.log' for more details." >&2;}
6493    { (exit 1); exit 1; }; } ;;
6494 esac
6495 else
6496   if test "$cross_compiling" = yes; then
6497   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6498 See \`config.log' for more details." >&5
6499 echo "$as_me: error: cannot run test program while cross compiling
6500 See \`config.log' for more details." >&2;}
6501    { (exit 1); exit 1; }; }
6502 else
6503   cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 $ac_includes_default
6510 long longval () { return (long) (sizeof (__int64)); }
6511 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6512 #include <stdio.h>
6513 #include <stdlib.h>
6514 int
6515 main ()
6516 {
6517
6518   FILE *f = fopen ("conftest.val", "w");
6519   if (! f)
6520     exit (1);
6521   if (((long) (sizeof (__int64))) < 0)
6522     {
6523       long i = longval ();
6524       if (i != ((long) (sizeof (__int64))))
6525         exit (1);
6526       fprintf (f, "%ld\n", i);
6527     }
6528   else
6529     {
6530       unsigned long i = ulongval ();
6531       if (i != ((long) (sizeof (__int64))))
6532         exit (1);
6533       fprintf (f, "%lu\n", i);
6534     }
6535   exit (ferror (f) || fclose (f) != 0);
6536
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543   (eval $ac_link) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548   (eval $ac_try) 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }; }; then
6552   ac_cv_sizeof___int64=`cat conftest.val`
6553 else
6554   echo "$as_me: program exited with status $ac_status" >&5
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ( exit $ac_status )
6559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6560 See \`config.log' for more details." >&5
6561 echo "$as_me: error: cannot compute sizeof (__int64), 77
6562 See \`config.log' for more details." >&2;}
6563    { (exit 1); exit 1; }; }
6564 fi
6565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 fi
6568 rm -f conftest.val
6569 else
6570   ac_cv_sizeof___int64=0
6571 fi
6572 fi
6573 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6574 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6575 cat >>confdefs.h <<_ACEOF
6576 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6577 _ACEOF
6578
6579
6580 fi
6581
6582
6583 # ---------------------
6584 # Warnings and checking
6585 # ---------------------
6586
6587 # Check $CC warning features (if it's GCC).
6588 # We want to use -pedantic, but we don't want warnings about
6589 # * 'long long'
6590 # * variadic macros
6591 # * overlong strings
6592 # So, we only use -pedantic if we can disable those warnings.
6593
6594 loose_warn=
6595 save_CFLAGS="$CFLAGS"
6596 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6597                           -Wmissing-prototypes; do
6598   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6599
6600   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6601 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6602 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   CFLAGS="$option"
6606     cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612
6613 int
6614 main ()
6615 {
6616
6617   ;
6618   return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623   (eval $ac_compile) 2>conftest.er1
6624   ac_status=$?
6625   grep -v '^ *+' conftest.er1 >conftest.err
6626   rm -f conftest.er1
6627   cat conftest.err >&5
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); } &&
6630          { ac_try='test -z "$ac_c_werror_flag"
6631                          || test ! -s conftest.err'
6632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633   (eval $ac_try) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; } &&
6637          { ac_try='test -s conftest.$ac_objext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   eval "$as_acx_Woption=yes"
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648 eval "$as_acx_Woption=no"
6649 fi
6650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6651
6652 fi
6653 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6654 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6655   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6656   loose_warn="$loose_warn${loose_warn:+ }$option"
6657 fi
6658
6659   done
6660 CFLAGS="$save_CFLAGS"
6661
6662 cxx_compat_warn=
6663 save_CFLAGS="$CFLAGS"
6664 for option in -Wc++-compat; do
6665   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6666
6667   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6668 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6669 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   CFLAGS="$option"
6673     cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679
6680 int
6681 main ()
6682 {
6683
6684   ;
6685   return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690   (eval $ac_compile) 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -z "$ac_c_werror_flag"
6698                          || test ! -s conftest.err'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; }; then
6710   eval "$as_acx_Woption=yes"
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 eval "$as_acx_Woption=no"
6716 fi
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719 fi
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6722   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6723   cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6724 fi
6725
6726   done
6727 CFLAGS="$save_CFLAGS"
6728
6729 strict_warn=
6730 save_CFLAGS="$CFLAGS"
6731 for option in -Wold-style-definition \
6732                           -Wmissing-format-attribute; do
6733   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6734
6735   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6736 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6737 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   CFLAGS="$option"
6741     cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h.  */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h.  */
6747
6748 int
6749 main ()
6750 {
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758   (eval $ac_compile) 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } &&
6765          { ac_try='test -z "$ac_c_werror_flag"
6766                          || test ! -s conftest.err'
6767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768   (eval $ac_try) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); }; } &&
6772          { ac_try='test -s conftest.$ac_objext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   eval "$as_acx_Woption=yes"
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 eval "$as_acx_Woption=no"
6784 fi
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786
6787 fi
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6790   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6791   strict_warn="$strict_warn${strict_warn:+ }$option"
6792 fi
6793
6794   done
6795 CFLAGS="$save_CFLAGS"
6796
6797 if test "$GCC" = yes; then
6798   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6799                                      -Wno-overlength-strings" >&5
6800 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6801                                      -Wno-overlength-strings... $ECHO_C" >&6
6802 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   save_CFLAGS="$CFLAGS"
6806 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6807                                      -Wno-overlength-strings"
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h.  */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h.  */
6814
6815 int
6816 main ()
6817 {
6818
6819   ;
6820   return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6825   (eval $ac_compile) 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } &&
6832          { ac_try='test -z "$ac_c_werror_flag"
6833                          || test ! -s conftest.err'
6834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835   (eval $ac_try) 2>&5
6836   ac_status=$?
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); }; } &&
6839          { ac_try='test -s conftest.$ac_objext'
6840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841   (eval $ac_try) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; }; then
6845   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6846 else
6847   echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6851 fi
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6853 CFLAGS="$save_CFLAGS"
6854 fi
6855 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6856 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6857 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6858   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6859                                      -Wno-overlength-strings"
6860 fi
6861
6862
6863 fi
6864
6865
6866 # Check whether --enable-werror-always or --disable-werror-always was given.
6867 if test "${enable_werror_always+set}" = set; then
6868   enableval="$enable_werror_always"
6869
6870 else
6871   enable_werror_always=no
6872 fi;
6873 if test $enable_werror_always = yes; then
6874   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6875 fi
6876
6877
6878
6879
6880 # The above macros do nothing if the compiler is not GCC.  However, the
6881 # Makefile has more goo to add other flags, so this variabl is used to
6882 # enables warnings only for GCC.
6883 warn_cflags=
6884 if test "x$GCC" = "xyes"; then
6885   warn_cflags='$(GCC_WARN_CFLAGS)'
6886 fi
6887
6888
6889 # Enable expensive internal checks
6890 is_release=
6891 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6892   is_release=yes
6893 fi
6894
6895 # Check whether --enable-checking or --disable-checking was given.
6896 if test "${enable_checking+set}" = set; then
6897   enableval="$enable_checking"
6898   ac_checking_flags="${enableval}"
6899 else
6900
6901 # Determine the default checks.
6902 if test x$is_release = x ; then
6903   ac_checking_flags=yes
6904 else
6905   ac_checking_flags=release
6906 fi
6907 fi;
6908 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6909 for check in release $ac_checking_flags
6910 do
6911         case $check in
6912         # these set all the flags to specific states
6913         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6914                         ac_fold_checking= ; ac_gc_checking=1 ;
6915                         ac_gc_always_collect= ; ac_rtl_checking= ;
6916                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6917                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6918                         ac_types_checking=1 ;;
6919         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6920                         ac_fold_checking= ; ac_gc_checking= ;
6921                         ac_gc_always_collect= ; ac_rtl_checking= ;
6922                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6923                         ac_tree_checking= ; ac_valgrind_checking= ;
6924                         ac_types_checking= ;;
6925         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6926                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6927                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6928                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6929                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6930                         ac_types_checking=1 ;;
6931         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6932                         ac_fold_checking= ; ac_gc_checking= ;
6933                         ac_gc_always_collect= ; ac_rtl_checking= ;
6934                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6935                         ac_tree_checking= ; ac_valgrind_checking= ;
6936                         ac_types_checking= ;;
6937         # these enable particular checks
6938         assert)         ac_assert_checking=1 ;;
6939         df)             ac_df_checking=1 ;;
6940         fold)           ac_fold_checking=1 ;;
6941         gc)             ac_gc_checking=1 ;;
6942         gcac)           ac_gc_always_collect=1 ;;
6943         misc)           ac_checking=1 ;;
6944         rtl)            ac_rtl_checking=1 ;;
6945         rtlflag)        ac_rtlflag_checking=1 ;;
6946         runtime)        ac_runtime_checking=1 ;;
6947         tree)           ac_tree_checking=1 ;;
6948         types)          ac_types_checking=1 ;;
6949         valgrind)       ac_valgrind_checking=1 ;;
6950         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6951 echo "$as_me: error: unknown check category $check" >&2;}
6952    { (exit 1); exit 1; }; } ;;
6953         esac
6954 done
6955 IFS="$ac_save_IFS"
6956
6957 nocommon_flag=""
6958 if test x$ac_checking != x ; then
6959
6960 cat >>confdefs.h <<\_ACEOF
6961 #define ENABLE_CHECKING 1
6962 _ACEOF
6963
6964   nocommon_flag=-fno-common
6965 fi
6966
6967 if test x$ac_df_checking != x ; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define ENABLE_DF_CHECKING 1
6971 _ACEOF
6972
6973 fi
6974 if test x$ac_assert_checking != x ; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define ENABLE_ASSERT_CHECKING 1
6978 _ACEOF
6979
6980 fi
6981
6982 if test x$ac_runtime_checking != x ; then
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define ENABLE_RUNTIME_CHECKING 1
6986 _ACEOF
6987
6988 fi
6989 if test x$ac_tree_checking != x ; then
6990
6991 cat >>confdefs.h <<\_ACEOF
6992 #define ENABLE_TREE_CHECKING 1
6993 _ACEOF
6994
6995   TREEBROWSER=tree-browser.o
6996 fi
6997 if test x$ac_types_checking != x ; then
6998
6999 cat >>confdefs.h <<\_ACEOF
7000 #define ENABLE_TYPES_CHECKING 1
7001 _ACEOF
7002
7003 fi
7004
7005 if test x$ac_rtl_checking != x ; then
7006
7007 cat >>confdefs.h <<\_ACEOF
7008 #define ENABLE_RTL_CHECKING 1
7009 _ACEOF
7010
7011 fi
7012 if test x$ac_rtlflag_checking != x ; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define ENABLE_RTL_FLAG_CHECKING 1
7016 _ACEOF
7017
7018 fi
7019 if test x$ac_gc_checking != x ; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define ENABLE_GC_CHECKING 1
7023 _ACEOF
7024
7025 fi
7026 if test x$ac_gc_always_collect != x ; then
7027
7028 cat >>confdefs.h <<\_ACEOF
7029 #define ENABLE_GC_ALWAYS_COLLECT 1
7030 _ACEOF
7031
7032 fi
7033 if test x$ac_fold_checking != x ; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define ENABLE_FOLD_CHECKING 1
7037 _ACEOF
7038
7039 fi
7040 valgrind_path_defines=
7041 valgrind_command=
7042
7043 if test "${ac_cv_header_valgrind_h+set}" = set; then
7044   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7045 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7046 if test "${ac_cv_header_valgrind_h+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 fi
7049 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7051 else
7052   # Is the header compilable?
7053 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7054 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 $ac_includes_default
7062 #include <valgrind.h>
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066   (eval $ac_compile) 2>conftest.er1
7067   ac_status=$?
7068   grep -v '^ *+' conftest.er1 >conftest.err
7069   rm -f conftest.er1
7070   cat conftest.err >&5
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -z "$ac_c_werror_flag"
7074                          || test ! -s conftest.err'
7075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076   (eval $ac_try) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; } &&
7080          { ac_try='test -s conftest.$ac_objext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   ac_header_compiler=yes
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7090
7091 ac_header_compiler=no
7092 fi
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7096
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7099 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 #include <valgrind.h>
7107 _ACEOF
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } >/dev/null; then
7116   if test -s conftest.err; then
7117     ac_cpp_err=$ac_c_preproc_warn_flag
7118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7119   else
7120     ac_cpp_err=
7121   fi
7122 else
7123   ac_cpp_err=yes
7124 fi
7125 if test -z "$ac_cpp_err"; then
7126   ac_header_preproc=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131   ac_header_preproc=no
7132 fi
7133 rm -f conftest.err conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 echo "${ECHO_T}$ac_header_preproc" >&6
7136
7137 # So?  What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7139   yes:no: )
7140     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7141 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7143 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7144     ac_header_preproc=yes
7145     ;;
7146   no:yes:* )
7147     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7148 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7149     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7150 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7151     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7152 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7153     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7154 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7155     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7156 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7157     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7158 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7159     (
7160       cat <<\_ASBOX
7161 ## ------------------------------------------ ##
7162 ## Report this to the AC_PACKAGE_NAME lists.  ##
7163 ## ------------------------------------------ ##
7164 _ASBOX
7165     ) |
7166       sed "s/^/$as_me: WARNING:     /" >&2
7167     ;;
7168 esac
7169 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7171 if test "${ac_cv_header_valgrind_h+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   ac_cv_header_valgrind_h=$ac_header_preproc
7175 fi
7176 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7178
7179 fi
7180 if test $ac_cv_header_valgrind_h = yes; then
7181   have_valgrind_h=yes
7182 else
7183   have_valgrind_h=no
7184 fi
7185
7186
7187
7188 if test x$ac_valgrind_checking != x ; then
7189   # It is certainly possible that there's valgrind but no valgrind.h.
7190   # GCC relies on making annotations so we must have both.
7191   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 #include <valgrind/memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7202 #endif
7203 _ACEOF
7204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7206   ac_status=$?
7207   grep -v '^ *+' conftest.er1 >conftest.err
7208   rm -f conftest.er1
7209   cat conftest.err >&5
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); } >/dev/null; then
7212   if test -s conftest.err; then
7213     ac_cpp_err=$ac_c_preproc_warn_flag
7214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7215   else
7216     ac_cpp_err=
7217   fi
7218 else
7219   ac_cpp_err=yes
7220 fi
7221 if test -z "$ac_cpp_err"; then
7222   gcc_cv_header_valgrind_memcheck_h=yes
7223 else
7224   echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227   gcc_cv_header_valgrind_memcheck_h=no
7228 fi
7229 rm -f conftest.err conftest.$ac_ext
7230   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7232   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7234   cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 #include <memcheck.h>
7241 #ifndef VALGRIND_DISCARD
7242 #error VALGRIND_DISCARD not defined
7243 #endif
7244 _ACEOF
7245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7247   ac_status=$?
7248   grep -v '^ *+' conftest.er1 >conftest.err
7249   rm -f conftest.er1
7250   cat conftest.err >&5
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } >/dev/null; then
7253   if test -s conftest.err; then
7254     ac_cpp_err=$ac_c_preproc_warn_flag
7255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7256   else
7257     ac_cpp_err=
7258   fi
7259 else
7260   ac_cpp_err=yes
7261 fi
7262 if test -z "$ac_cpp_err"; then
7263   gcc_cv_header_memcheck_h=yes
7264 else
7265   echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268   gcc_cv_header_memcheck_h=no
7269 fi
7270 rm -f conftest.err conftest.$ac_ext
7271   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7273
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277   echo "#! /bin/sh" >conf$$.sh
7278   echo  "exit 0"   >>conf$$.sh
7279   chmod +x conf$$.sh
7280   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281     PATH_SEPARATOR=';'
7282   else
7283     PATH_SEPARATOR=:
7284   fi
7285   rm -f conf$$.sh
7286 fi
7287
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7291 #! /bin/sh
7292 exit 0
7293 _ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296   ac_executable_p="test -x"
7297 else
7298   ac_executable_p="test -f"
7299 fi
7300 rm -f conf$$.file
7301
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   case "$valgrind_path" in
7310   [\\/]* | ?:[\\/]*)
7311     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7312     ;;
7313   *)
7314     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315     for ac_dir in $PATH; do
7316       IFS="$ac_save_IFS"
7317       test -z "$ac_dir" && ac_dir=.
7318       for ac_exec_ext in '' $ac_executable_extensions; do
7319         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7322             break 2
7323           fi
7324         fi
7325       done
7326     done
7327     IFS="$ac_save_IFS"
7328     ;;
7329 esac
7330 fi
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334 echo "${ECHO_T}$valgrind_path" >&6
7335 else
7336   echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7338 fi
7339
7340   if test "x$valgrind_path" = "x" \
7341     || (test $have_valgrind_h = no \
7342         && test $gcc_cv_header_memcheck_h = no \
7343         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346    { (exit 1); exit 1; }; }
7347   fi
7348   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349   valgrind_command="$valgrind_path -q"
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define ENABLE_VALGRIND_CHECKING 1
7353 _ACEOF
7354
7355   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7356
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_VALGRIND_MEMCHECK_H 1
7359 _ACEOF
7360
7361   fi
7362   if test $gcc_cv_header_memcheck_h = yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MEMCHECK_H 1
7366 _ACEOF
7367
7368   fi
7369 fi
7370
7371
7372
7373 # Enable code coverage collection
7374 # Check whether --enable-coverage or --disable-coverage was given.
7375 if test "${enable_coverage+set}" = set; then
7376   enableval="$enable_coverage"
7377   case "${enableval}" in
7378   yes|noopt)
7379     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7380     ;;
7381   opt)
7382     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7383     ;;
7384   no)
7385     # a.k.a. --disable-coverage
7386     coverage_flags=""
7387     ;;
7388   *)
7389     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7390 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7391    { (exit 1); exit 1; }; }
7392     ;;
7393 esac
7394 else
7395   coverage_flags=""
7396 fi;
7397
7398
7399 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7400 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7401   enableval="$enable_gather_detailed_mem_stats"
7402
7403 else
7404   enable_gather_detailed_mem_stats=no
7405 fi;
7406 if test x$enable_gather_detailed_mem_stats = xyes ; then
7407
7408 cat >>confdefs.h <<\_ACEOF
7409 #define GATHER_STATISTICS 1
7410 _ACEOF
7411
7412 fi
7413
7414 # -------------------------------
7415 # Miscenalleous configure options
7416 # -------------------------------
7417
7418 # With stabs
7419
7420 # Check whether --with-stabs or --without-stabs was given.
7421 if test "${with_stabs+set}" = set; then
7422   withval="$with_stabs"
7423   stabs="$with_stabs"
7424 else
7425   stabs=no
7426 fi;
7427
7428 # Determine whether or not multilibs are enabled.
7429 # Check whether --enable-multilib or --disable-multilib was given.
7430 if test "${enable_multilib+set}" = set; then
7431   enableval="$enable_multilib"
7432
7433 else
7434   enable_multilib=yes
7435 fi;
7436
7437
7438 # Enable __cxa_atexit for C++.
7439 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7440 if test "${enable___cxa_atexit+set}" = set; then
7441   enableval="$enable___cxa_atexit"
7442
7443 fi;
7444
7445 # Enable C extension for decimal float if target supports it.
7446 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7447 if test "${enable_decimal_float+set}" = set; then
7448   enableval="$enable_decimal_float"
7449
7450   case $enable_decimal_float in
7451     yes | no | bid | dpd) ;;
7452     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7453 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7454 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7455 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7456    { (exit 1); exit 1; }; } ;;
7457   esac
7458
7459 else
7460
7461   case $target in
7462     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7463       enable_decimal_float=yes
7464       ;;
7465     *)
7466       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7467 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7468       enable_decimal_float=no
7469       ;;
7470   esac
7471
7472 fi;
7473
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7478 _ACEOF
7479
7480
7481 # x86's use BID format instead of DPD
7482 case x$enable_decimal_float in
7483   xyes)
7484     case $target in
7485       i?86*-*-linux* | x86_64*-*-linux*)
7486         enable_decimal_float=bid
7487         ;;
7488       *)
7489         enable_decimal_float=dpd
7490         ;;
7491     esac
7492     ;;
7493   xno)
7494     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7495     # dependency on libdecnumber.
7496     enable_decimal_float=dpd
7497     ;;
7498 esac
7499
7500
7501 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7505 _ACEOF
7506
7507
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then
7511   enableval="$enable_fixed_point"
7512
7513
7514 else
7515
7516   case $target in
7517     mips*-*-*)
7518       case $host in
7519         mips*-sgi-irix*)
7520           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7521 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7522           enable_fixed_point=no
7523           ;;
7524         *)
7525           enable_fixed_point=yes
7526           ;;
7527       esac
7528       ;;
7529     *)
7530       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7531 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7532       enable_fixed_point=no
7533       ;;
7534   esac
7535
7536 fi;
7537
7538
7539 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7540
7541 cat >>confdefs.h <<_ACEOF
7542 #define ENABLE_FIXED_POINT $fixedpoint
7543 _ACEOF
7544
7545
7546 # Enable threads
7547 # Pass with no value to take the default
7548 # Pass with a value to specify a thread package
7549 # Check whether --enable-threads or --disable-threads was given.
7550 if test "${enable_threads+set}" = set; then
7551   enableval="$enable_threads"
7552
7553 else
7554   enable_threads=''
7555 fi;
7556
7557 # Check whether --enable-tls or --disable-tls was given.
7558 if test "${enable_tls+set}" = set; then
7559   enableval="$enable_tls"
7560
7561   case $enable_tls in
7562     yes | no) ;;
7563     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7564 Valid choices are 'yes' and 'no'." >&5
7565 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7566 Valid choices are 'yes' and 'no'." >&2;}
7567    { (exit 1); exit 1; }; } ;;
7568   esac
7569
7570 else
7571   enable_tls=''
7572 fi;
7573
7574 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7575 if test "${enable_objc_gc+set}" = set; then
7576   enableval="$enable_objc_gc"
7577   if test x$enable_objc_gc = xno; then
7578         objc_boehm_gc=''
7579 else
7580         objc_boehm_gc=1
7581 fi
7582 else
7583   objc_boehm_gc=''
7584 fi;
7585
7586
7587 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7588 if test "${with_dwarf2+set}" = set; then
7589   withval="$with_dwarf2"
7590   dwarf2="$with_dwarf2"
7591 else
7592   dwarf2=no
7593 fi;
7594
7595 # Check whether --enable-shared or --disable-shared was given.
7596 if test "${enable_shared+set}" = set; then
7597   enableval="$enable_shared"
7598
7599   case $enable_shared in
7600   yes | no) ;;
7601   *)
7602     enable_shared=no
7603     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7604     for pkg in $enableval; do
7605       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7606         enable_shared=yes
7607       fi
7608     done
7609     IFS="$ac_save_ifs"
7610     ;;
7611   esac
7612
7613 else
7614   enable_shared=yes
7615 fi;
7616
7617
7618
7619 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7620 if test "${with_build_sysroot+set}" = set; then
7621   withval="$with_build_sysroot"
7622
7623 fi;
7624
7625
7626 # Check whether --with-sysroot or --without-sysroot was given.
7627 if test "${with_sysroot+set}" = set; then
7628   withval="$with_sysroot"
7629
7630  case ${with_sysroot} in
7631  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7632  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7633  esac
7634
7635  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7636  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7637
7638  if test "x$prefix" = xNONE; then
7639   test_prefix=/usr/local
7640  else
7641   test_prefix=$prefix
7642  fi
7643  if test "x$exec_prefix" = xNONE; then
7644   test_exec_prefix=$test_prefix
7645  else
7646   test_exec_prefix=$exec_prefix
7647  fi
7648  case ${TARGET_SYSTEM_ROOT} in
7649  "${test_prefix}"|"${test_prefix}/"*|\
7650  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7651  '${prefix}'|'${prefix}/'*|\
7652  '${exec_prefix}'|'${exec_prefix}/'*)
7653    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7654    TARGET_SYSTEM_ROOT_DEFINE="$t"
7655    ;;
7656  esac
7657
7658 else
7659
7660  TARGET_SYSTEM_ROOT=
7661  TARGET_SYSTEM_ROOT_DEFINE=
7662  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7663
7664 fi;
7665
7666
7667
7668
7669 # Build with intermodule optimisations
7670 # Check whether --enable-intermodule or --disable-intermodule was given.
7671 if test "${enable_intermodule+set}" = set; then
7672   enableval="$enable_intermodule"
7673   case ${enable_intermodule} in
7674   yes) onestep="-onestep";;
7675   *) onestep="";;
7676 esac
7677 else
7678   onestep=""
7679 fi;
7680
7681
7682
7683
7684 # Check whether --with-pkgversion or --without-pkgversion was given.
7685 if test "${with_pkgversion+set}" = set; then
7686   withval="$with_pkgversion"
7687   case "$withval" in
7688       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7689 echo "$as_me: error: package version not specified" >&2;}
7690    { (exit 1); exit 1; }; } ;;
7691       no)  PKGVERSION= ;;
7692       *)   PKGVERSION="($withval) " ;;
7693      esac
7694 else
7695   PKGVERSION="(GCC) "
7696
7697 fi;
7698
7699
7700
7701
7702 # Check whether --with-bugurl or --without-bugurl was given.
7703 if test "${with_bugurl+set}" = set; then
7704   withval="$with_bugurl"
7705   case "$withval" in
7706       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7707 echo "$as_me: error: bug URL not specified" >&2;}
7708    { (exit 1); exit 1; }; } ;;
7709       no)  BUGURL=
7710            ;;
7711       *)   BUGURL="$withval"
7712            ;;
7713      esac
7714 else
7715   BUGURL="http://gcc.gnu.org/bugs.html"
7716
7717 fi;
7718   case ${BUGURL} in
7719   "")
7720     REPORT_BUGS_TO=
7721     REPORT_BUGS_TEXI=
7722     ;;
7723   *)
7724     REPORT_BUGS_TO="<$BUGURL>"
7725     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7726     ;;
7727   esac;
7728
7729
7730
7731
7732 # Sanity check enable_languages in case someone does not run the toplevel
7733 # configure # script.
7734 # Check whether --enable-languages or --disable-languages was given.
7735 if test "${enable_languages+set}" = set; then
7736   enableval="$enable_languages"
7737   case ,${enable_languages}, in
7738        ,,|,yes,)
7739                 # go safe -- we cannot be much sure without the toplevel
7740                 # configure's
7741                 # analysis of which target libs are present and usable
7742                 enable_languages=c
7743                 ;;
7744          *,all,*)
7745                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7746 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7747    { (exit 1); exit 1; }; }
7748                 ;;
7749         *,c,*)
7750                 ;;
7751         *)
7752                 enable_languages=c,${enable_languages}
7753                 ;;
7754 esac
7755 else
7756   enable_languages=c
7757 fi;
7758
7759 # Used by documentation targets
7760
7761
7762
7763
7764 # -------------------------
7765 # Checks for other programs
7766 # -------------------------
7767
7768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   cat >conftest.make <<\_ACEOF
7775 all:
7776         @echo 'ac_maketemp="$(MAKE)"'
7777 _ACEOF
7778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7780 if test -n "$ac_maketemp"; then
7781   eval ac_cv_prog_make_${ac_make}_set=yes
7782 else
7783   eval ac_cv_prog_make_${ac_make}_set=no
7784 fi
7785 rm -f conftest.make
7786 fi
7787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7788   echo "$as_me:$LINENO: result: yes" >&5
7789 echo "${ECHO_T}yes" >&6
7790   SET_MAKE=
7791 else
7792   echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794   SET_MAKE="MAKE=${MAKE-make}"
7795 fi
7796
7797
7798 # Find some useful tools
7799 for ac_prog in gawk mawk nawk awk
7800 do
7801   # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805 if test "${ac_cv_prog_AWK+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   if test -n "$AWK"; then
7809   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816   for ac_exec_ext in '' $ac_executable_extensions; do
7817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818     ac_cv_prog_AWK="$ac_prog"
7819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823 done
7824
7825 fi
7826 fi
7827 AWK=$ac_cv_prog_AWK
7828 if test -n "$AWK"; then
7829   echo "$as_me:$LINENO: result: $AWK" >&5
7830 echo "${ECHO_T}$AWK" >&6
7831 else
7832   echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7834 fi
7835
7836   test -n "$AWK" && break
7837 done
7838
7839 # We need awk to create options.c and options.h.
7840 # Bail out if it's missing.
7841 case ${AWK} in
7842   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7843 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7844    { (exit 1); exit 1; }; } ;;
7845 esac
7846
7847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7849 if test "${gcc_cv_prog_LN_S+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7855 then
7856   gcc_cv_prog_LN_S="ln -s"
7857 else
7858   if ln conftestdata_f conftestdata_t 2>/dev/null
7859   then
7860     gcc_cv_prog_LN_S=ln
7861   else
7862     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7863     then
7864       gcc_cv_prog_LN_S="cp -p"
7865     else
7866       gcc_cv_prog_LN_S=cp
7867     fi
7868   fi
7869 fi
7870 rm -f conftestdata_f conftestdata_t
7871
7872 fi
7873 LN_S="$gcc_cv_prog_LN_S"
7874 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7875   echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7877 else
7878   if test "$gcc_cv_prog_LN_S" = "ln"; then
7879     echo "$as_me:$LINENO: result: no, using ln" >&5
7880 echo "${ECHO_T}no, using ln" >&6
7881   else
7882     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7883 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7884   fi
7885 fi
7886
7887 echo "$as_me:$LINENO: checking whether ln works" >&5
7888 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7889 if test "${acx_cv_prog_LN+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln conftestdata_f conftestdata_t 2>/dev/null
7895 then
7896   acx_cv_prog_LN=ln
7897 else
7898   acx_cv_prog_LN=no
7899 fi
7900 rm -f conftestdata_f conftestdata_t
7901
7902 fi
7903 if test $acx_cv_prog_LN = no; then
7904   LN="$LN_S"
7905   echo "$as_me:$LINENO: result: no, using $LN" >&5
7906 echo "${ECHO_T}no, using $LN" >&6
7907 else
7908   LN="$acx_cv_prog_LN"
7909   echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7911 fi
7912
7913 if test -n "$ac_tool_prefix"; then
7914   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_RANLIB+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   if test -n "$RANLIB"; then
7922   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929   for ac_exec_ext in '' $ac_executable_extensions; do
7930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936 done
7937
7938 fi
7939 fi
7940 RANLIB=$ac_cv_prog_RANLIB
7941 if test -n "$RANLIB"; then
7942   echo "$as_me:$LINENO: result: $RANLIB" >&5
7943 echo "${ECHO_T}$RANLIB" >&6
7944 else
7945   echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6
7947 fi
7948
7949 fi
7950 if test -z "$ac_cv_prog_RANLIB"; then
7951   ac_ct_RANLIB=$RANLIB
7952   # Extract the first word of "ranlib", so it can be a program name with args.
7953 set dummy ranlib; ac_word=$2
7954 echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   if test -n "$ac_ct_RANLIB"; then
7960   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969     ac_cv_prog_ac_ct_RANLIB="ranlib"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975
7976   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7977 fi
7978 fi
7979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7980 if test -n "$ac_ct_RANLIB"; then
7981   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7982 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7983 else
7984   echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7986 fi
7987
7988   RANLIB=$ac_ct_RANLIB
7989 else
7990   RANLIB="$ac_cv_prog_RANLIB"
7991 fi
7992
7993 case "${host}" in
7994 *-*-darwin*)
7995   # By default, the Darwin ranlib will not treat common symbols as
7996   # definitions when  building the archive table of contents.  Other
7997   # ranlibs do that; pass an option to the Darwin ranlib that makes
7998   # it behave similarly.
7999   ranlib_flags="-c"
8000   ;;
8001 *)
8002   ranlib_flags=""
8003 esac
8004
8005
8006 # Find a good install program.  We prefer a C program (faster),
8007 # so one script is as good as another.  But avoid the broken or
8008 # incompatible versions:
8009 # SysV /etc/install, /usr/sbin/install
8010 # SunOS /usr/etc/install
8011 # IRIX /sbin/install
8012 # AIX /bin/install
8013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8015 # ./install, which can be erroneously created by make from ./install.sh.
8016 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8017 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8018 if test -z "$INSTALL"; then
8019 if test "${ac_cv_path_install+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8023   for ac_dir in $PATH; do
8024     # Account for people who put trailing slashes in PATH elements.
8025     case "$ac_dir/" in
8026     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8027     *)
8028       # OSF1 and SCO ODT 3.0 have their own names for install.
8029       for ac_prog in ginstall scoinst install; do
8030         if test -f $ac_dir/$ac_prog; then
8031           if test $ac_prog = install &&
8032             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8033             # AIX install.  It has an incompatible calling convention.
8034             # OSF/1 installbsd also uses dspmsg, but is usable.
8035             :
8036           else
8037             ac_cv_path_install="$ac_dir/$ac_prog -c"
8038             break 2
8039           fi
8040         fi
8041       done
8042       ;;
8043     esac
8044   done
8045   IFS="$ac_save_IFS"
8046
8047 fi
8048   if test "${ac_cv_path_install+set}" = set; then
8049     INSTALL="$ac_cv_path_install"
8050   else
8051     # As a last resort, use the slow shell script.  We don't cache a
8052     # path for INSTALL within a source directory, because that will
8053     # break other packages using the cache if that directory is
8054     # removed, or if the path is relative.
8055     INSTALL="$ac_install_sh"
8056   fi
8057 fi
8058 echo "$as_me:$LINENO: result: $INSTALL" >&5
8059 echo "${ECHO_T}$INSTALL" >&6
8060
8061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8062 # It thinks the first close brace ends the variable substitution.
8063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8064
8065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8066
8067
8068 # See if cmp has --ignore-initial.
8069 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8070 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8071 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074    echo abfoo >t1
8075   echo cdfoo >t2
8076   gcc_cv_prog_cmp_skip=slowcompare
8077   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8078     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8079       :
8080     else
8081       gcc_cv_prog_cmp_skip=gnucompare
8082     fi
8083   fi
8084   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8085     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8086       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8087         :
8088       else
8089         gcc_cv_prog_cmp_skip=fastcompare
8090       fi
8091     fi
8092   fi
8093   rm t1 t2
8094
8095 fi
8096 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8097 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8098 make_compare_target=$gcc_cv_prog_cmp_skip
8099
8100
8101
8102 # See if we have the mktemp command.
8103 # Extract the first word of "mktemp", so it can be a program name with args.
8104 set dummy mktemp; ac_word=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   if test -n "$have_mktemp_command"; then
8111   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116   IFS=$as_save_IFS
8117   test -z "$as_dir" && as_dir=.
8118   for ac_exec_ext in '' $ac_executable_extensions; do
8119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120     ac_cv_prog_have_mktemp_command="yes"
8121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122     break 2
8123   fi
8124 done
8125 done
8126
8127   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8128 fi
8129 fi
8130 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8131 if test -n "$have_mktemp_command"; then
8132   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8133 echo "${ECHO_T}$have_mktemp_command" >&6
8134 else
8135   echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137 fi
8138
8139
8140 # See if makeinfo has been installed and is modern enough
8141 # that we can use it.
8142
8143   # Extract the first word of "makeinfo", so it can be a program name with args.
8144 set dummy makeinfo; ac_word=$2
8145 echo "$as_me:$LINENO: checking for $ac_word" >&5
8146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8147 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150   if test -n "$MAKEINFO"; then
8151   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158   for ac_exec_ext in '' $ac_executable_extensions; do
8159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160     ac_cv_prog_MAKEINFO="makeinfo"
8161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165 done
8166
8167 fi
8168 fi
8169 MAKEINFO=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8172 echo "${ECHO_T}$MAKEINFO" >&6
8173 else
8174   echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8176 fi
8177
8178   if test -n "$MAKEINFO"; then
8179     # Found it, now check the version.
8180     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8181 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8182 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8186                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8187
8188                     case $ac_prog_version in
8189                       '')  gcc_cv_prog_makeinfo_modern=no;;
8190                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8191                       *)   gcc_cv_prog_makeinfo_modern=no;;
8192                     esac
8193
8194 fi
8195 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8196 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8197   else
8198     gcc_cv_prog_makeinfo_modern=no
8199   fi
8200   if test $gcc_cv_prog_makeinfo_modern = no; then
8201     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8202   fi
8203
8204 if test $gcc_cv_prog_makeinfo_modern = no; then
8205   { echo "$as_me:$LINENO: WARNING:
8206 *** Makeinfo is missing or too old.
8207 *** Info documentation will not be built." >&5
8208 echo "$as_me: WARNING:
8209 *** Makeinfo is missing or too old.
8210 *** Info documentation will not be built." >&2;}
8211   BUILD_INFO=
8212 else
8213   BUILD_INFO=info
8214 fi
8215
8216
8217 # Is pod2man recent enough to regenerate manpages?
8218 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8219 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8220 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8221   echo "$as_me:$LINENO: result: yes" >&5
8222 echo "${ECHO_T}yes" >&6
8223   GENERATED_MANPAGES=generated-manpages
8224 else
8225   echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8227   GENERATED_MANPAGES=
8228 fi
8229
8230
8231 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8232
8233 # How about lex?
8234 for ac_prog in flex
8235 do
8236   # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8240 if test "${ac_cv_prog_FLEX+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   if test -n "$FLEX"; then
8244   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249   IFS=$as_save_IFS
8250   test -z "$as_dir" && as_dir=.
8251   for ac_exec_ext in '' $ac_executable_extensions; do
8252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253     ac_cv_prog_FLEX="$ac_prog"
8254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255     break 2
8256   fi
8257 done
8258 done
8259
8260 fi
8261 fi
8262 FLEX=$ac_cv_prog_FLEX
8263 if test -n "$FLEX"; then
8264   echo "$as_me:$LINENO: result: $FLEX" >&5
8265 echo "${ECHO_T}$FLEX" >&6
8266 else
8267   echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8269 fi
8270
8271   test -n "$FLEX" && break
8272 done
8273 test -n "$FLEX" || FLEX="$MISSING flex"
8274
8275
8276 # Bison?
8277 for ac_prog in bison
8278 do
8279   # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_BISON+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   if test -n "$BISON"; then
8287   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292   IFS=$as_save_IFS
8293   test -z "$as_dir" && as_dir=.
8294   for ac_exec_ext in '' $ac_executable_extensions; do
8295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296     ac_cv_prog_BISON="$ac_prog"
8297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298     break 2
8299   fi
8300 done
8301 done
8302
8303 fi
8304 fi
8305 BISON=$ac_cv_prog_BISON
8306 if test -n "$BISON"; then
8307   echo "$as_me:$LINENO: result: $BISON" >&5
8308 echo "${ECHO_T}$BISON" >&6
8309 else
8310   echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312 fi
8313
8314   test -n "$BISON" && break
8315 done
8316 test -n "$BISON" || BISON="$MISSING bison"
8317
8318
8319 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8320 # check for build == host before using them.
8321
8322 # NM
8323 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8324   && test -d ../binutils ; then
8325   NM='$(objdir)/../binutils/nm-new'
8326 else
8327   # Extract the first word of "nm", so it can be a program name with args.
8328 set dummy nm; ac_word=$2
8329 echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331 if test "${ac_cv_prog_NM+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   if test -n "$NM"; then
8335   ac_cv_prog_NM="$NM" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340   IFS=$as_save_IFS
8341   test -z "$as_dir" && as_dir=.
8342   for ac_exec_ext in '' $ac_executable_extensions; do
8343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344     ac_cv_prog_NM="nm"
8345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346     break 2
8347   fi
8348 done
8349 done
8350
8351   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8352 fi
8353 fi
8354 NM=$ac_cv_prog_NM
8355 if test -n "$NM"; then
8356   echo "$as_me:$LINENO: result: $NM" >&5
8357 echo "${ECHO_T}$NM" >&6
8358 else
8359   echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8361 fi
8362
8363 fi
8364
8365 # AR
8366 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8367   && test -d ../binutils ; then
8368   AR='$(objdir)/../binutils/ar'
8369 else
8370   # Extract the first word of "ar", so it can be a program name with args.
8371 set dummy ar; ac_word=$2
8372 echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8374 if test "${ac_cv_prog_AR+set}" = set; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   if test -n "$AR"; then
8378   ac_cv_prog_AR="$AR" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383   IFS=$as_save_IFS
8384   test -z "$as_dir" && as_dir=.
8385   for ac_exec_ext in '' $ac_executable_extensions; do
8386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8387     ac_cv_prog_AR="ar"
8388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389     break 2
8390   fi
8391 done
8392 done
8393
8394   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8395 fi
8396 fi
8397 AR=$ac_cv_prog_AR
8398 if test -n "$AR"; then
8399   echo "$as_me:$LINENO: result: $AR" >&5
8400 echo "${ECHO_T}$AR" >&6
8401 else
8402   echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8404 fi
8405
8406 fi
8407
8408
8409 # --------------------
8410 # Checks for C headers
8411 # --------------------
8412
8413 # Need to reject headers which give warnings, so that the -Werror bootstrap
8414 # works later. *sigh*  This needs to come before all header checks.
8415
8416 ac_c_preproc_warn_flag=yes
8417
8418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8420 if test "${ac_cv_header_stdc+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429 #include <stdlib.h>
8430 #include <stdarg.h>
8431 #include <string.h>
8432 #include <float.h>
8433
8434 int
8435 main ()
8436 {
8437
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444   (eval $ac_compile) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag"
8452                          || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_cv_header_stdc=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_header_stdc=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472
8473 if test $ac_cv_header_stdc = yes; then
8474   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8475   cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 #include <string.h>
8482
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485   $EGREP "memchr" >/dev/null 2>&1; then
8486   :
8487 else
8488   ac_cv_header_stdc=no
8489 fi
8490 rm -f conftest*
8491
8492 fi
8493
8494 if test $ac_cv_header_stdc = yes; then
8495   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502 #include <stdlib.h>
8503
8504 _ACEOF
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506   $EGREP "free" >/dev/null 2>&1; then
8507   :
8508 else
8509   ac_cv_header_stdc=no
8510 fi
8511 rm -f conftest*
8512
8513 fi
8514
8515 if test $ac_cv_header_stdc = yes; then
8516   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8517   if test "$cross_compiling" = yes; then
8518   :
8519 else
8520   cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 #include <ctype.h>
8527 #if ((' ' & 0x0FF) == 0x020)
8528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8530 #else
8531 # define ISLOWER(c) \
8532                    (('a' <= (c) && (c) <= 'i') \
8533                      || ('j' <= (c) && (c) <= 'r') \
8534                      || ('s' <= (c) && (c) <= 'z'))
8535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8536 #endif
8537
8538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8539 int
8540 main ()
8541 {
8542   int i;
8543   for (i = 0; i < 256; i++)
8544     if (XOR (islower (i), ISLOWER (i))
8545         || toupper (i) != TOUPPER (i))
8546       exit(2);
8547   exit (0);
8548 }
8549 _ACEOF
8550 rm -f conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552   (eval $ac_link) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   :
8562 else
8563   echo "$as_me: program exited with status $ac_status" >&5
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ( exit $ac_status )
8568 ac_cv_header_stdc=no
8569 fi
8570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 fi
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8576 if test $ac_cv_header_stdc = yes; then
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define STDC_HEADERS 1
8580 _ACEOF
8581
8582 fi
8583
8584 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8585 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8586 if test "${ac_cv_header_time+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589   cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595 #include <sys/types.h>
8596 #include <sys/time.h>
8597 #include <time.h>
8598
8599 int
8600 main ()
8601 {
8602 if ((struct tm *) 0)
8603 return 0;
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610   (eval $ac_compile) 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -z "$ac_c_werror_flag"
8618                          || test ! -s conftest.err'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; } &&
8624          { ac_try='test -s conftest.$ac_objext'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_header_time=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 ac_cv_header_time=no
8636 fi
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8640 echo "${ECHO_T}$ac_cv_header_time" >&6
8641 if test $ac_cv_header_time = yes; then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define TIME_WITH_SYS_TIME 1
8645 _ACEOF
8646
8647 fi
8648
8649 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8650 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8651 if test "${gcc_cv_header_string+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 #include <string.h>
8661 #include <strings.h>
8662 int
8663 main ()
8664 {
8665
8666   ;
8667   return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672   (eval $ac_compile) 2>conftest.er1
8673   ac_status=$?
8674   grep -v '^ *+' conftest.er1 >conftest.err
8675   rm -f conftest.er1
8676   cat conftest.err >&5
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); } &&
8679          { ac_try='test -z "$ac_c_werror_flag"
8680                          || test ! -s conftest.err'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; } &&
8686          { ac_try='test -s conftest.$ac_objext'
8687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688   (eval $ac_try) 2>&5
8689   ac_status=$?
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); }; }; then
8692   gcc_cv_header_string=yes
8693 else
8694   echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 gcc_cv_header_string=no
8698 fi
8699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8702 echo "${ECHO_T}$gcc_cv_header_string" >&6
8703 if test $gcc_cv_header_string = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define STRING_WITH_STRINGS 1
8707 _ACEOF
8708
8709 fi
8710
8711 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8712 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8713 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722 #include <sys/types.h>
8723 #include <sys/wait.h>
8724 #ifndef WEXITSTATUS
8725 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8726 #endif
8727 #ifndef WIFEXITED
8728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8729 #endif
8730
8731 int
8732 main ()
8733 {
8734   int s;
8735   wait (&s);
8736   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743   (eval $ac_compile) 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } &&
8750          { ac_try='test -z "$ac_c_werror_flag"
8751                          || test ! -s conftest.err'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; } &&
8757          { ac_try='test -s conftest.$ac_objext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   ac_cv_header_sys_wait_h=yes
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_header_sys_wait_h=no
8769 fi
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8774 if test $ac_cv_header_sys_wait_h = yes; then
8775
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_SYS_WAIT_H 1
8778 _ACEOF
8779
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8805                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8806                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8807                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8808 do
8809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810 echo "$as_me:$LINENO: checking for $ac_header" >&5
8811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821 #include <$ac_header>
8822 _ACEOF
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } >/dev/null; then
8831   if test -s conftest.err; then
8832     ac_cpp_err=$ac_c_preproc_warn_flag
8833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8834   else
8835     ac_cpp_err=
8836   fi
8837 else
8838   ac_cpp_err=yes
8839 fi
8840 if test -z "$ac_cpp_err"; then
8841   eval "$as_ac_Header=yes"
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846   eval "$as_ac_Header=no"
8847 fi
8848 rm -f conftest.err conftest.$ac_ext
8849 fi
8850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853   cat >>confdefs.h <<_ACEOF
8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8855 _ACEOF
8856
8857 fi
8858 done
8859
8860
8861 # Check for thread headers.
8862 echo "$as_me:$LINENO: checking for thread.h" >&5
8863 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8864 if test "${ac_cv_header_thread_h+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <thread.h>
8874 _ACEOF
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877   ac_status=$?
8878   grep -v '^ *+' conftest.er1 >conftest.err
8879   rm -f conftest.er1
8880   cat conftest.err >&5
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); } >/dev/null; then
8883   if test -s conftest.err; then
8884     ac_cpp_err=$ac_c_preproc_warn_flag
8885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8886   else
8887     ac_cpp_err=
8888   fi
8889 else
8890   ac_cpp_err=yes
8891 fi
8892 if test -z "$ac_cpp_err"; then
8893   ac_cv_header_thread_h=yes
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898   ac_cv_header_thread_h=no
8899 fi
8900 rm -f conftest.err conftest.$ac_ext
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8903 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8904 if test $ac_cv_header_thread_h = yes; then
8905   have_thread_h=yes
8906 else
8907   have_thread_h=
8908 fi
8909
8910 echo "$as_me:$LINENO: checking for pthread.h" >&5
8911 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8912 if test "${ac_cv_header_pthread_h+set}" = set; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915   cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h.  */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h.  */
8921 #include <pthread.h>
8922 _ACEOF
8923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8925   ac_status=$?
8926   grep -v '^ *+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } >/dev/null; then
8931   if test -s conftest.err; then
8932     ac_cpp_err=$ac_c_preproc_warn_flag
8933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8934   else
8935     ac_cpp_err=
8936   fi
8937 else
8938   ac_cpp_err=yes
8939 fi
8940 if test -z "$ac_cpp_err"; then
8941   ac_cv_header_pthread_h=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946   ac_cv_header_pthread_h=no
8947 fi
8948 rm -f conftest.err conftest.$ac_ext
8949 fi
8950 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8951 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8952 if test $ac_cv_header_pthread_h = yes; then
8953   have_pthread_h=yes
8954 else
8955   have_pthread_h=
8956 fi
8957
8958
8959 # These tests can't be done till we know if we have limits.h.
8960 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8961 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8962 if test "${gcc_cv_decl_char_bit+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971 #ifdef HAVE_LIMITS_H
8972 #include <limits.h>
8973 #endif
8974 #ifdef CHAR_BIT
8975 found
8976 #endif
8977 _ACEOF
8978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8979   $EGREP "found" >/dev/null 2>&1; then
8980   gcc_cv_decl_char_bit=yes
8981 else
8982   gcc_cv_decl_char_bit=no
8983 fi
8984 rm -f conftest*
8985
8986
8987 fi
8988 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8989 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8990 if test $gcc_cv_decl_char_bit = no; then
8991   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8992 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8993 if test "${gcc_cv_c_nbby+set}" = set; then
8994   echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996   i=8
8997  gcc_cv_c_nbby=
8998  while test $i -lt 65; do
8999    cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005
9006 int
9007 main ()
9008 {
9009 switch(0) {
9010   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9011   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9012   ; }
9013   ;
9014   return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019   (eval $ac_compile) 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } &&
9026          { ac_try='test -z "$ac_c_werror_flag"
9027                          || test ! -s conftest.err'
9028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029   (eval $ac_try) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); }; } &&
9033          { ac_try='test -s conftest.$ac_objext'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; }; then
9039   gcc_cv_c_nbby=$i; break
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 fi
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046    i=`expr $i + 1`
9047  done
9048  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9049
9050 fi
9051 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9052 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9053 if test $gcc_cv_c_nbby = failed; then
9054   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9055 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9056    { (exit 1); exit 1; }; }
9057 else
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define CHAR_BIT $gcc_cv_c_nbby
9061 _ACEOF
9062
9063 fi
9064 fi
9065 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9066 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9067 if test "${ac_cv_c_bigendian+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   # See if sys/param.h defines the BYTE_ORDER macro.
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077 #include <sys/types.h>
9078 #include <sys/param.h>
9079
9080 int
9081 main ()
9082 {
9083 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9084  bogus endian macros
9085 #endif
9086
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093   (eval $ac_compile) 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } &&
9100          { ac_try='test -z "$ac_c_werror_flag"
9101                          || test ! -s conftest.err'
9102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103   (eval $ac_try) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; } &&
9107          { ac_try='test -s conftest.$ac_objext'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; }; then
9113   # It does; now see whether it defined to BIG_ENDIAN or not.
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h.  */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h.  */
9120 #include <sys/types.h>
9121 #include <sys/param.h>
9122
9123 int
9124 main ()
9125 {
9126 #if BYTE_ORDER != BIG_ENDIAN
9127  not big endian
9128 #endif
9129
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136   (eval $ac_compile) 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -z "$ac_c_werror_flag"
9144                          || test ! -s conftest.err'
9145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146   (eval $ac_try) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest.$ac_objext'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; }; then
9156   ac_cv_c_bigendian=yes
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 ac_cv_c_bigendian=no
9162 fi
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 # It does not; compile a test program.
9169 if test "$cross_compiling" = yes; then
9170   # try to guess the endianness by grepping values into an object file
9171   ac_cv_c_bigendian=unknown
9172   cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h.  */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h.  */
9178 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9179 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9181 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9182 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9184 int
9185 main ()
9186 {
9187  _ascii (); _ebcdic ();
9188   ;
9189   return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -z "$ac_c_werror_flag"
9202                          || test ! -s conftest.err'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9215   ac_cv_c_bigendian=yes
9216 fi
9217 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9218   if test "$ac_cv_c_bigendian" = unknown; then
9219     ac_cv_c_bigendian=no
9220   else
9221     # finding both strings is unlikely to happen, but who knows?
9222     ac_cv_c_bigendian=unknown
9223   fi
9224 fi
9225 else
9226   echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 fi
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 else
9232   cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 int
9239 main ()
9240 {
9241   /* Are we little or big endian?  From Harbison&Steele.  */
9242   union
9243   {
9244     long l;
9245     char c[sizeof (long)];
9246   } u;
9247   u.l = 1;
9248   exit (u.c[sizeof (long) - 1] == 1);
9249 }
9250 _ACEOF
9251 rm -f conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   ac_cv_c_bigendian=no
9263 else
9264   echo "$as_me: program exited with status $ac_status" >&5
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 ( exit $ac_status )
9269 ac_cv_c_bigendian=yes
9270 fi
9271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9272 fi
9273 fi
9274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9275 fi
9276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9278 case $ac_cv_c_bigendian in
9279   yes)
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define WORDS_BIGENDIAN 1
9283 _ACEOF
9284  ;;
9285   no)
9286      ;;
9287   *)
9288     { { echo "$as_me:$LINENO: error: unknown endianness
9289 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9290 echo "$as_me: error: unknown endianness
9291 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9292    { (exit 1); exit 1; }; } ;;
9293 esac
9294
9295
9296 # --------
9297 # UNSORTED
9298 # --------
9299
9300
9301 # These libraries may be used by collect2.
9302 # We may need a special search path to get them linked.
9303 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9304 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9305 if test "${gcc_cv_collect2_libs+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   save_LIBS="$LIBS"
9309 for libs in '' -lld -lmld \
9310                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9311                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9312 do
9313         LIBS="$libs"
9314         cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320
9321 /* Override any gcc2 internal prototype to avoid an error.  */
9322 #ifdef __cplusplus
9323 extern "C"
9324 #endif
9325 /* We use char because int might match the return type of a gcc2
9326    builtin and then its argument prototype would still apply.  */
9327 char ldopen ();
9328 int
9329 main ()
9330 {
9331 ldopen ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338   (eval $ac_link) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -z "$ac_c_werror_flag"
9346                          || test ! -s conftest.err'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; } &&
9352          { ac_try='test -s conftest$ac_exeext'
9353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354   (eval $ac_try) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; }; then
9358   gcc_cv_collect2_libs="$libs"; break
9359 else
9360   echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 fi
9364 rm -f conftest.err conftest.$ac_objext \
9365       conftest$ac_exeext conftest.$ac_ext
9366 done
9367 LIBS="$save_LIBS"
9368 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9369 fi
9370 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9371 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9372 case $gcc_cv_collect2_libs in
9373         "none required")        ;;
9374         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9375 esac
9376
9377
9378 # When building Ada code on Alpha, we need exc_resume which is usually in
9379 # -lexc.  So test for it.
9380 save_LIBS="$LIBS"
9381 LIBS=
9382 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9383 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9384 if test "${ac_cv_search_exc_resume+set}" = set; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   ac_func_search_save_LIBS=$LIBS
9388 ac_cv_search_exc_resume=no
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h.  */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h.  */
9395
9396 /* Override any gcc2 internal prototype to avoid an error.  */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401    builtin and then its argument prototype would still apply.  */
9402 char exc_resume ();
9403 int
9404 main ()
9405 {
9406 exc_resume ();
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413   (eval $ac_link) 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -z "$ac_c_werror_flag"
9421                          || test ! -s conftest.err'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; } &&
9427          { ac_try='test -s conftest$ac_exeext'
9428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429   (eval $ac_try) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; }; then
9433   ac_cv_search_exc_resume="none required"
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 fi
9439 rm -f conftest.err conftest.$ac_objext \
9440       conftest$ac_exeext conftest.$ac_ext
9441 if test "$ac_cv_search_exc_resume" = no; then
9442   for ac_lib in exc; do
9443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9444     cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450
9451 /* Override any gcc2 internal prototype to avoid an error.  */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 /* We use char because int might match the return type of a gcc2
9456    builtin and then its argument prototype would still apply.  */
9457 char exc_resume ();
9458 int
9459 main ()
9460 {
9461 exc_resume ();
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468   (eval $ac_link) 2>conftest.er1
9469   ac_status=$?
9470   grep -v '^ *+' conftest.er1 >conftest.err
9471   rm -f conftest.er1
9472   cat conftest.err >&5
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } &&
9475          { ac_try='test -z "$ac_c_werror_flag"
9476                          || test ! -s conftest.err'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; } &&
9482          { ac_try='test -s conftest$ac_exeext'
9483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484   (eval $ac_try) 2>&5
9485   ac_status=$?
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); }; }; then
9488   ac_cv_search_exc_resume="-l$ac_lib"
9489 break
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 fi
9495 rm -f conftest.err conftest.$ac_objext \
9496       conftest$ac_exeext conftest.$ac_ext
9497   done
9498 fi
9499 LIBS=$ac_func_search_save_LIBS
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9502 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9503 if test "$ac_cv_search_exc_resume" != no; then
9504   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9505
9506 fi
9507
9508 GNAT_LIBEXC="$LIBS"
9509 LIBS="$save_LIBS"
9510
9511
9512 # Some systems put ldexp and frexp in libm instead of libc; assume
9513 # they're both in the same place.  jcf-dump needs them.
9514 save_LIBS="$LIBS"
9515 LIBS=
9516 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9517 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9518 if test "${ac_cv_search_ldexp+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   ac_func_search_save_LIBS=$LIBS
9522 ac_cv_search_ldexp=no
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529
9530 /* Override any gcc2 internal prototype to avoid an error.  */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 /* We use char because int might match the return type of a gcc2
9535    builtin and then its argument prototype would still apply.  */
9536 char ldexp ();
9537 int
9538 main ()
9539 {
9540 ldexp ();
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547   (eval $ac_link) 2>conftest.er1
9548   ac_status=$?
9549   grep -v '^ *+' conftest.er1 >conftest.err
9550   rm -f conftest.er1
9551   cat conftest.err >&5
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } &&
9554          { ac_try='test -z "$ac_c_werror_flag"
9555                          || test ! -s conftest.err'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; } &&
9561          { ac_try='test -s conftest$ac_exeext'
9562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563   (eval $ac_try) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567   ac_cv_search_ldexp="none required"
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 fi
9573 rm -f conftest.err conftest.$ac_objext \
9574       conftest$ac_exeext conftest.$ac_ext
9575 if test "$ac_cv_search_ldexp" = no; then
9576   for ac_lib in m; do
9577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9578     cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h.  */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h.  */
9584
9585 /* Override any gcc2 internal prototype to avoid an error.  */
9586 #ifdef __cplusplus
9587 extern "C"
9588 #endif
9589 /* We use char because int might match the return type of a gcc2
9590    builtin and then its argument prototype would still apply.  */
9591 char ldexp ();
9592 int
9593 main ()
9594 {
9595 ldexp ();
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602   (eval $ac_link) 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } &&
9609          { ac_try='test -z "$ac_c_werror_flag"
9610                          || test ! -s conftest.err'
9611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612   (eval $ac_try) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; } &&
9616          { ac_try='test -s conftest$ac_exeext'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   ac_cv_search_ldexp="-l$ac_lib"
9623 break
9624 else
9625   echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 fi
9629 rm -f conftest.err conftest.$ac_objext \
9630       conftest$ac_exeext conftest.$ac_ext
9631   done
9632 fi
9633 LIBS=$ac_func_search_save_LIBS
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9636 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9637 if test "$ac_cv_search_ldexp" != no; then
9638   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9639
9640 fi
9641
9642 LDEXP_LIB="$LIBS"
9643 LIBS="$save_LIBS"
9644
9645
9646 # Use <inttypes.h> only if it exists,
9647 # doesn't clash with <sys/types.h>, and declares intmax_t.
9648 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9649 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9650 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659 #include <sys/types.h>
9660 #include <inttypes.h>
9661 int
9662 main ()
9663 {
9664 intmax_t i = -1;
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671   (eval $ac_compile) 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } &&
9678          { ac_try='test -z "$ac_c_werror_flag"
9679                          || test ! -s conftest.err'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   gcc_cv_header_inttypes_h=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 gcc_cv_header_inttypes_h=no
9697 fi
9698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9699 fi
9700
9701 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9702 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9703 if test $gcc_cv_header_inttypes_h = yes; then
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_INTTYPES_H 1
9707 _ACEOF
9708
9709 fi
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9749         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9750         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9751         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9752 do
9753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754 echo "$as_me:$LINENO: checking for $ac_func" >&5
9755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9756 if eval "test \"\${$as_ac_var+set}\" = set"; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9767 #define $ac_func innocuous_$ac_func
9768
9769 /* System header to define __stub macros and hopefully few prototypes,
9770     which can conflict with char $ac_func (); below.
9771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772     <limits.h> exists even on freestanding compilers.  */
9773
9774 #ifdef __STDC__
9775 # include <limits.h>
9776 #else
9777 # include <assert.h>
9778 #endif
9779
9780 #undef $ac_func
9781
9782 /* Override any gcc2 internal prototype to avoid an error.  */
9783 #ifdef __cplusplus
9784 extern "C"
9785 {
9786 #endif
9787 /* We use char because int might match the return type of a gcc2
9788    builtin and then its argument prototype would still apply.  */
9789 char $ac_func ();
9790 /* The GNU C library defines this for functions which it implements
9791     to always fail with ENOSYS.  Some functions are actually named
9792     something starting with __ and the normal name is an alias.  */
9793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9794 choke me
9795 #else
9796 char (*f) () = $ac_func;
9797 #endif
9798 #ifdef __cplusplus
9799 }
9800 #endif
9801
9802 int
9803 main ()
9804 {
9805 return f != $ac_func;
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812   (eval $ac_link) 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag"
9820                          || test ! -s conftest.err'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; } &&
9826          { ac_try='test -s conftest$ac_exeext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   eval "$as_ac_var=yes"
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 eval "$as_ac_var=no"
9838 fi
9839 rm -f conftest.err conftest.$ac_objext \
9840       conftest$ac_exeext conftest.$ac_ext
9841 fi
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9844 if test `eval echo '${'$as_ac_var'}'` = yes; then
9845   cat >>confdefs.h <<_ACEOF
9846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9847 _ACEOF
9848
9849 fi
9850 done
9851
9852
9853 if test x$ac_cv_func_mbstowcs = xyes; then
9854   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9855 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9856 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859       if test "$cross_compiling" = yes; then
9860   gcc_cv_func_mbstowcs_works=yes
9861 else
9862   cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h.  */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h.  */
9868 #include <stdlib.h>
9869 int main()
9870 {
9871   mbstowcs(0, "", 0);
9872   return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877   (eval $ac_link) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   gcc_cv_func_mbstowcs_works=yes
9887 else
9888   echo "$as_me: program exited with status $ac_status" >&5
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ( exit $ac_status )
9893 gcc_cv_func_mbstowcs_works=no
9894 fi
9895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 fi
9898 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9899 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9900   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9901
9902 cat >>confdefs.h <<\_ACEOF
9903 #define HAVE_WORKING_MBSTOWCS 1
9904 _ACEOF
9905
9906   fi
9907 fi
9908
9909 echo "$as_me:$LINENO: checking for ssize_t" >&5
9910 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9911 if test "${ac_cv_type_ssize_t+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920 $ac_includes_default
9921 int
9922 main ()
9923 {
9924 if ((ssize_t *) 0)
9925   return 0;
9926 if (sizeof (ssize_t))
9927   return 0;
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934   (eval $ac_compile) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest.$ac_objext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_type_ssize_t=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ac_cv_type_ssize_t=no
9960 fi
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 fi
9963 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9965 if test $ac_cv_type_ssize_t = yes; then
9966   :
9967 else
9968
9969 cat >>confdefs.h <<_ACEOF
9970 #define ssize_t int
9971 _ACEOF
9972
9973 fi
9974
9975
9976 # Try to determine the array type of the second argument of getgroups
9977 # for the target system (int or gid_t).
9978 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9979 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9980 if test "${ac_cv_type_uid_t+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989 #include <sys/types.h>
9990
9991 _ACEOF
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993   $EGREP "uid_t" >/dev/null 2>&1; then
9994   ac_cv_type_uid_t=yes
9995 else
9996   ac_cv_type_uid_t=no
9997 fi
9998 rm -f conftest*
9999
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10003 if test $ac_cv_type_uid_t = no; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define uid_t int
10007 _ACEOF
10008
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define gid_t int
10012 _ACEOF
10013
10014 fi
10015
10016 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10017 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10018 if test "${ac_cv_type_getgroups+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   if test "$cross_compiling" = yes; then
10022   ac_cv_type_getgroups=cross
10023 else
10024   cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030 /* Thanks to Mike Rendell for this test.  */
10031 #include <sys/types.h>
10032 #define NGID 256
10033 #undef MAX
10034 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10035
10036 int
10037 main ()
10038 {
10039   gid_t gidset[NGID];
10040   int i, n;
10041   union { gid_t gval; long lval; }  val;
10042
10043   val.lval = -1;
10044   for (i = 0; i < NGID; i++)
10045     gidset[i] = val.gval;
10046   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10047                  gidset);
10048   /* Exit non-zero if getgroups seems to require an array of ints.  This
10049      happens when gid_t is short but getgroups modifies an array of ints.  */
10050   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10051 }
10052 _ACEOF
10053 rm -f conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055   (eval $ac_link) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_type_getgroups=gid_t
10065 else
10066   echo "$as_me: program exited with status $ac_status" >&5
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 ( exit $ac_status )
10071 ac_cv_type_getgroups=int
10072 fi
10073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10074 fi
10075 if test $ac_cv_type_getgroups = cross; then
10076         cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h.  */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h.  */
10082 #include <unistd.h>
10083
10084 _ACEOF
10085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10086   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10087   ac_cv_type_getgroups=gid_t
10088 else
10089   ac_cv_type_getgroups=int
10090 fi
10091 rm -f conftest*
10092
10093 fi
10094 fi
10095 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10096 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10097
10098 cat >>confdefs.h <<_ACEOF
10099 #define GETGROUPS_T $ac_cv_type_getgroups
10100 _ACEOF
10101
10102
10103 if test "${target}" = "${build}"; then
10104   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10105 else
10106   case "${target}" in
10107         # This condition may need some tweaking.  It should include all
10108         # targets where the array type of the second argument of getgroups
10109         # is int and the type of gid_t is not equivalent to int.
10110         *-*-sunos* | *-*-ultrix*)
10111                 TARGET_GETGROUPS_T=int
10112                 ;;
10113         *)
10114                 TARGET_GETGROUPS_T=gid_t
10115                 ;;
10116   esac
10117 fi
10118
10119
10120
10121 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10122 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10123 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 #include <sys/mman.h>
10133 _ACEOF
10134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } >/dev/null; then
10142   if test -s conftest.err; then
10143     ac_cpp_err=$ac_c_preproc_warn_flag
10144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10145   else
10146     ac_cpp_err=
10147   fi
10148 else
10149   ac_cpp_err=yes
10150 fi
10151 if test -z "$ac_cpp_err"; then
10152   ac_cv_header_sys_mman_h=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157   ac_cv_header_sys_mman_h=no
10158 fi
10159 rm -f conftest.err conftest.$ac_ext
10160 fi
10161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10162 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10163 if test $ac_cv_header_sys_mman_h = yes; then
10164   gcc_header_sys_mman_h=yes
10165 else
10166   gcc_header_sys_mman_h=no
10167 fi
10168
10169 echo "$as_me:$LINENO: checking for mmap" >&5
10170 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10171 if test "${ac_cv_func_mmap+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10182 #define mmap innocuous_mmap
10183
10184 /* System header to define __stub macros and hopefully few prototypes,
10185     which can conflict with char mmap (); below.
10186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187     <limits.h> exists even on freestanding compilers.  */
10188
10189 #ifdef __STDC__
10190 # include <limits.h>
10191 #else
10192 # include <assert.h>
10193 #endif
10194
10195 #undef mmap
10196
10197 /* Override any gcc2 internal prototype to avoid an error.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 {
10201 #endif
10202 /* We use char because int might match the return type of a gcc2
10203    builtin and then its argument prototype would still apply.  */
10204 char mmap ();
10205 /* The GNU C library defines this for functions which it implements
10206     to always fail with ENOSYS.  Some functions are actually named
10207     something starting with __ and the normal name is an alias.  */
10208 #if defined (__stub_mmap) || defined (__stub___mmap)
10209 choke me
10210 #else
10211 char (*f) () = mmap;
10212 #endif
10213 #ifdef __cplusplus
10214 }
10215 #endif
10216
10217 int
10218 main ()
10219 {
10220 return f != mmap;
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227   (eval $ac_link) 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -z "$ac_c_werror_flag"
10235                          || test ! -s conftest.err'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest$ac_exeext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   ac_cv_func_mmap=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 ac_cv_func_mmap=no
10253 fi
10254 rm -f conftest.err conftest.$ac_objext \
10255       conftest$ac_exeext conftest.$ac_ext
10256 fi
10257 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10259 if test $ac_cv_func_mmap = yes; then
10260   gcc_func_mmap=yes
10261 else
10262   gcc_func_mmap=no
10263 fi
10264
10265 if test "$gcc_header_sys_mman_h" != yes \
10266  || test "$gcc_func_mmap" != yes; then
10267    gcc_cv_func_mmap_file=no
10268    gcc_cv_func_mmap_dev_zero=no
10269    gcc_cv_func_mmap_anon=no
10270 else
10271    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10272 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10273 if test "${gcc_cv_func_mmap_file+set}" = set; then
10274   echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276   # Add a system to this blacklist if
10277    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10278    # memory area containing the same data that you'd get if you applied
10279    # read() to the same fd.  The only system known to have a problem here
10280    # is VMS, where text files have record structure.
10281    case "$host_os" in
10282      vms* | ultrix*)
10283         gcc_cv_func_mmap_file=no ;;
10284      *)
10285         gcc_cv_func_mmap_file=yes;;
10286    esac
10287 fi
10288 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10289 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10290    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10291 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10292 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   # Add a system to this blacklist if it has mmap() but /dev/zero
10296    # does not exist, or if mmapping /dev/zero does not give anonymous
10297    # zeroed pages with both the following properties:
10298    # 1. If you map N consecutive pages in with one call, and then
10299    #    unmap any subset of those pages, the pages that were not
10300    #    explicitly unmapped remain accessible.
10301    # 2. If you map two adjacent blocks of memory and then unmap them
10302    #    both at once, they must both go away.
10303    # Systems known to be in this category are Windows (all variants),
10304    # VMS, and Darwin.
10305    case "$host_os" in
10306      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10307         gcc_cv_func_mmap_dev_zero=no ;;
10308      *)
10309         gcc_cv_func_mmap_dev_zero=yes;;
10310    esac
10311 fi
10312 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10313 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10314
10315    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10316    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10317 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10318 if test "${gcc_cv_decl_map_anon+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 #include <sys/types.h>
10328 #include <sys/mman.h>
10329 #include <unistd.h>
10330
10331 #ifndef MAP_ANONYMOUS
10332 #define MAP_ANONYMOUS MAP_ANON
10333 #endif
10334
10335 int
10336 main ()
10337 {
10338 int n = MAP_ANONYMOUS;
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345   (eval $ac_compile) 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -z "$ac_c_werror_flag"
10353                          || test ! -s conftest.err'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; } &&
10359          { ac_try='test -s conftest.$ac_objext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   gcc_cv_decl_map_anon=yes
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 gcc_cv_decl_map_anon=no
10371 fi
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10373 fi
10374 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10375 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10376
10377    if test $gcc_cv_decl_map_anon = no; then
10378      gcc_cv_func_mmap_anon=no
10379    else
10380      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10381 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10382 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10386    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10387    # doesn't give anonymous zeroed pages with the same properties listed
10388    # above for use of /dev/zero.
10389    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10390    case "$host_os" in
10391      vms* | cygwin* | pe | mingw* | sco* | udk* )
10392         gcc_cv_func_mmap_anon=no ;;
10393      *)
10394         gcc_cv_func_mmap_anon=yes;;
10395    esac
10396 fi
10397 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10398 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10399    fi
10400 fi
10401
10402 if test $gcc_cv_func_mmap_file = yes; then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_MMAP_FILE 1
10406 _ACEOF
10407
10408 fi
10409 if test $gcc_cv_func_mmap_dev_zero = yes; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_MMAP_DEV_ZERO 1
10413 _ACEOF
10414
10415 fi
10416 if test $gcc_cv_func_mmap_anon = yes; then
10417
10418 cat >>confdefs.h <<\_ACEOF
10419 #define HAVE_MMAP_ANON 1
10420 _ACEOF
10421
10422 fi
10423
10424
10425 case "${host}" in
10426 *-*-*vms*)
10427   # Under VMS, vfork works very differently than on Unix. The standard test
10428   # won't work, and it isn't easily adaptable. It makes more sense to
10429   # just force it.
10430   ac_cv_func_vfork_works=yes
10431   ;;
10432 esac
10433 echo "$as_me:$LINENO: checking for pid_t" >&5
10434 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10435 if test "${ac_cv_type_pid_t+set}" = set; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444 $ac_includes_default
10445 int
10446 main ()
10447 {
10448 if ((pid_t *) 0)
10449   return 0;
10450 if (sizeof (pid_t))
10451   return 0;
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458   (eval $ac_compile) 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -z "$ac_c_werror_flag"
10466                          || test ! -s conftest.err'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; } &&
10472          { ac_try='test -s conftest.$ac_objext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   ac_cv_type_pid_t=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_cv_type_pid_t=no
10484 fi
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10486 fi
10487 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10489 if test $ac_cv_type_pid_t = yes; then
10490   :
10491 else
10492
10493 cat >>confdefs.h <<_ACEOF
10494 #define pid_t int
10495 _ACEOF
10496
10497 fi
10498
10499
10500
10501 for ac_header in unistd.h vfork.h
10502 do
10503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <$ac_header>
10516 _ACEOF
10517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } >/dev/null; then
10525   if test -s conftest.err; then
10526     ac_cpp_err=$ac_c_preproc_warn_flag
10527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10528   else
10529     ac_cpp_err=
10530   fi
10531 else
10532   ac_cpp_err=yes
10533 fi
10534 if test -z "$ac_cpp_err"; then
10535   eval "$as_ac_Header=yes"
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540   eval "$as_ac_Header=no"
10541 fi
10542 rm -f conftest.err conftest.$ac_ext
10543 fi
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10547   cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10549 _ACEOF
10550
10551 fi
10552 done
10553
10554
10555
10556 for ac_func in fork vfork
10557 do
10558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559 echo "$as_me:$LINENO: checking for $ac_func" >&5
10560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10561 if eval "test \"\${$as_ac_var+set}\" = set"; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564   cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10572 #define $ac_func innocuous_$ac_func
10573
10574 /* System header to define __stub macros and hopefully few prototypes,
10575     which can conflict with char $ac_func (); below.
10576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577     <limits.h> exists even on freestanding compilers.  */
10578
10579 #ifdef __STDC__
10580 # include <limits.h>
10581 #else
10582 # include <assert.h>
10583 #endif
10584
10585 #undef $ac_func
10586
10587 /* Override any gcc2 internal prototype to avoid an error.  */
10588 #ifdef __cplusplus
10589 extern "C"
10590 {
10591 #endif
10592 /* We use char because int might match the return type of a gcc2
10593    builtin and then its argument prototype would still apply.  */
10594 char $ac_func ();
10595 /* The GNU C library defines this for functions which it implements
10596     to always fail with ENOSYS.  Some functions are actually named
10597     something starting with __ and the normal name is an alias.  */
10598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10599 choke me
10600 #else
10601 char (*f) () = $ac_func;
10602 #endif
10603 #ifdef __cplusplus
10604 }
10605 #endif
10606
10607 int
10608 main ()
10609 {
10610 return f != $ac_func;
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617   (eval $ac_link) 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag"
10625                          || test ! -s conftest.err'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; } &&
10631          { ac_try='test -s conftest$ac_exeext'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   eval "$as_ac_var=yes"
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 eval "$as_ac_var=no"
10643 fi
10644 rm -f conftest.err conftest.$ac_objext \
10645       conftest$ac_exeext conftest.$ac_ext
10646 fi
10647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10649 if test `eval echo '${'$as_ac_var'}'` = yes; then
10650   cat >>confdefs.h <<_ACEOF
10651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10652 _ACEOF
10653
10654 fi
10655 done
10656
10657 if test "x$ac_cv_func_fork" = xyes; then
10658   echo "$as_me:$LINENO: checking for working fork" >&5
10659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10660 if test "${ac_cv_func_fork_works+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   if test "$cross_compiling" = yes; then
10664   ac_cv_func_fork_works=cross
10665 else
10666   cat >conftest.$ac_ext <<_ACEOF
10667 /* By Ruediger Kuhlmann. */
10668       #include <sys/types.h>
10669       #if HAVE_UNISTD_H
10670       # include <unistd.h>
10671       #endif
10672       /* Some systems only have a dummy stub for fork() */
10673       int main ()
10674       {
10675         if (fork() < 0)
10676           exit (1);
10677         exit (0);
10678       }
10679 _ACEOF
10680 rm -f conftest$ac_exeext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682   (eval $ac_link) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_cv_func_fork_works=yes
10692 else
10693   echo "$as_me: program exited with status $ac_status" >&5
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ( exit $ac_status )
10698 ac_cv_func_fork_works=no
10699 fi
10700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10701 fi
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10705
10706 else
10707   ac_cv_func_fork_works=$ac_cv_func_fork
10708 fi
10709 if test "x$ac_cv_func_fork_works" = xcross; then
10710   case $host in
10711     *-*-amigaos* | *-*-msdosdjgpp*)
10712       # Override, as these systems have only a dummy fork() stub
10713       ac_cv_func_fork_works=no
10714       ;;
10715     *)
10716       ac_cv_func_fork_works=yes
10717       ;;
10718   esac
10719   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10721 fi
10722 ac_cv_func_vfork_works=$ac_cv_func_vfork
10723 if test "x$ac_cv_func_vfork" = xyes; then
10724   echo "$as_me:$LINENO: checking for working vfork" >&5
10725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10726 if test "${ac_cv_func_vfork_works+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   if test "$cross_compiling" = yes; then
10730   ac_cv_func_vfork_works=cross
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 /* Thanks to Paul Eggert for this test.  */
10739 #include <stdio.h>
10740 #include <stdlib.h>
10741 #include <sys/types.h>
10742 #include <sys/stat.h>
10743 #include <sys/wait.h>
10744 #if HAVE_UNISTD_H
10745 # include <unistd.h>
10746 #endif
10747 #if HAVE_VFORK_H
10748 # include <vfork.h>
10749 #endif
10750 /* On some sparc systems, changes by the child to local and incoming
10751    argument registers are propagated back to the parent.  The compiler
10752    is told about this with #include <vfork.h>, but some compilers
10753    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10754    static variable whose address is put into a register that is
10755    clobbered by the vfork.  */
10756 static void
10757 #ifdef __cplusplus
10758 sparc_address_test (int arg)
10759 # else
10760 sparc_address_test (arg) int arg;
10761 #endif
10762 {
10763   static pid_t child;
10764   if (!child) {
10765     child = vfork ();
10766     if (child < 0) {
10767       perror ("vfork");
10768       _exit(2);
10769     }
10770     if (!child) {
10771       arg = getpid();
10772       write(-1, "", 0);
10773       _exit (arg);
10774     }
10775   }
10776 }
10777
10778 int
10779 main ()
10780 {
10781   pid_t parent = getpid ();
10782   pid_t child;
10783
10784   sparc_address_test (0);
10785
10786   child = vfork ();
10787
10788   if (child == 0) {
10789     /* Here is another test for sparc vfork register problems.  This
10790        test uses lots of local variables, at least as many local
10791        variables as main has allocated so far including compiler
10792        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10793        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10794        reuse the register of parent for one of the local variables,
10795        since it will think that parent can't possibly be used any more
10796        in this routine.  Assigning to the local variable will thus
10797        munge parent in the parent process.  */
10798     pid_t
10799       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10800       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10801     /* Convince the compiler that p..p7 are live; otherwise, it might
10802        use the same hardware register for all 8 local variables.  */
10803     if (p != p1 || p != p2 || p != p3 || p != p4
10804         || p != p5 || p != p6 || p != p7)
10805       _exit(1);
10806
10807     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10808        from child file descriptors.  If the child closes a descriptor
10809        before it execs or exits, this munges the parent's descriptor
10810        as well.  Test for this by closing stdout in the child.  */
10811     _exit(close(fileno(stdout)) != 0);
10812   } else {
10813     int status;
10814     struct stat st;
10815
10816     while (wait(&status) != child)
10817       ;
10818     exit(
10819          /* Was there some problem with vforking?  */
10820          child < 0
10821
10822          /* Did the child fail?  (This shouldn't happen.)  */
10823          || status
10824
10825          /* Did the vfork/compiler bug occur?  */
10826          || parent != getpid()
10827
10828          /* Did the file descriptor bug occur?  */
10829          || fstat(fileno(stdout), &st) != 0
10830          );
10831   }
10832 }
10833 _ACEOF
10834 rm -f conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836   (eval $ac_link) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; }; then
10845   ac_cv_func_vfork_works=yes
10846 else
10847   echo "$as_me: program exited with status $ac_status" >&5
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ( exit $ac_status )
10852 ac_cv_func_vfork_works=no
10853 fi
10854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10855 fi
10856 fi
10857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10859
10860 fi;
10861 if test "x$ac_cv_func_fork_works" = xcross; then
10862   ac_cv_func_vfork_works=$ac_cv_func_vfork
10863   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10865 fi
10866
10867 if test "x$ac_cv_func_vfork_works" = xyes; then
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_WORKING_VFORK 1
10871 _ACEOF
10872
10873 else
10874
10875 cat >>confdefs.h <<\_ACEOF
10876 #define vfork fork
10877 _ACEOF
10878
10879 fi
10880 if test "x$ac_cv_func_fork_works" = xyes; then
10881
10882 cat >>confdefs.h <<\_ACEOF
10883 #define HAVE_WORKING_FORK 1
10884 _ACEOF
10885
10886 fi
10887
10888
10889
10890       if test "X$prefix" = "XNONE"; then
10891     acl_final_prefix="$ac_default_prefix"
10892   else
10893     acl_final_prefix="$prefix"
10894   fi
10895   if test "X$exec_prefix" = "XNONE"; then
10896     acl_final_exec_prefix='${prefix}'
10897   else
10898     acl_final_exec_prefix="$exec_prefix"
10899   fi
10900   acl_save_prefix="$prefix"
10901   prefix="$acl_final_prefix"
10902   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10903   prefix="$acl_save_prefix"
10904
10905
10906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10907 if test "${with_gnu_ld+set}" = set; then
10908   withval="$with_gnu_ld"
10909   test "$withval" = no || with_gnu_ld=yes
10910 else
10911   with_gnu_ld=no
10912 fi;
10913 # Prepare PATH_SEPARATOR.
10914 # The user is always right.
10915 if test "${PATH_SEPARATOR+set}" != set; then
10916   echo "#! /bin/sh" >conf$$.sh
10917   echo  "exit 0"   >>conf$$.sh
10918   chmod +x conf$$.sh
10919   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10920     PATH_SEPARATOR=';'
10921   else
10922     PATH_SEPARATOR=:
10923   fi
10924   rm -f conf$$.sh
10925 fi
10926 ac_prog=ld
10927 if test "$GCC" = yes; then
10928   # Check if gcc -print-prog-name=ld gives a path.
10929   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10931   case $host in
10932   *-*-mingw*)
10933     # gcc leaves a trailing carriage return which upsets mingw
10934     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10935   *)
10936     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10937   esac
10938   case $ac_prog in
10939     # Accept absolute paths.
10940     [\\/]* | [A-Za-z]:[\\/]*)
10941       re_direlt='/[^/][^/]*/\.\./'
10942       # Canonicalize the path of ld
10943       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10944       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10945         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10946       done
10947       test -z "$LD" && LD="$ac_prog"
10948       ;;
10949   "")
10950     # If it fails, then pretend we aren't using GCC.
10951     ac_prog=ld
10952     ;;
10953   *)
10954     # If it is relative, then search for the first ld in PATH.
10955     with_gnu_ld=unknown
10956     ;;
10957   esac
10958 elif test "$with_gnu_ld" = yes; then
10959   echo "$as_me:$LINENO: checking for GNU ld" >&5
10960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10961 else
10962   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10964 fi
10965 if test "${acl_cv_path_LD+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   if test -z "$LD"; then
10969   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10970   for ac_dir in $PATH; do
10971     test -z "$ac_dir" && ac_dir=.
10972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973       acl_cv_path_LD="$ac_dir/$ac_prog"
10974       # Check to see if the program is GNU ld.  I'd rather use --version,
10975       # but apparently some GNU ld's only accept -v.
10976       # Break only if it was the GNU/non-GNU ld that we prefer.
10977       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10978         test "$with_gnu_ld" != no && break
10979       else
10980         test "$with_gnu_ld" != yes && break
10981       fi
10982     fi
10983   done
10984   IFS="$ac_save_ifs"
10985 else
10986   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10987 fi
10988 fi
10989
10990 LD="$acl_cv_path_LD"
10991 if test -n "$LD"; then
10992   echo "$as_me:$LINENO: result: $LD" >&5
10993 echo "${ECHO_T}$LD" >&6
10994 else
10995   echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6
10997 fi
10998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11000    { (exit 1); exit 1; }; }
11001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11003 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11007 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11008   acl_cv_prog_gnu_ld=yes
11009 else
11010   acl_cv_prog_gnu_ld=no
11011 fi
11012 fi
11013 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11014 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11015 with_gnu_ld=$acl_cv_prog_gnu_ld
11016
11017
11018
11019                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11021 if test "${acl_cv_rpath+set}" = set; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024
11025     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11026     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11027     . ./conftest.sh
11028     rm -f ./conftest.sh
11029     acl_cv_rpath=done
11030
11031 fi
11032 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11033 echo "${ECHO_T}$acl_cv_rpath" >&6
11034   wl="$acl_cv_wl"
11035   libext="$acl_cv_libext"
11036   shlibext="$acl_cv_shlibext"
11037   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11038   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11039   hardcode_direct="$acl_cv_hardcode_direct"
11040   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11041     # Check whether --enable-rpath or --disable-rpath was given.
11042 if test "${enable_rpath+set}" = set; then
11043   enableval="$enable_rpath"
11044   :
11045 else
11046   enable_rpath=yes
11047 fi;
11048
11049
11050
11051
11052
11053
11054
11055     use_additional=yes
11056
11057   acl_save_prefix="$prefix"
11058   prefix="$acl_final_prefix"
11059   acl_save_exec_prefix="$exec_prefix"
11060   exec_prefix="$acl_final_exec_prefix"
11061
11062     eval additional_includedir=\"$includedir\"
11063     eval additional_libdir=\"$libdir\"
11064
11065   exec_prefix="$acl_save_exec_prefix"
11066   prefix="$acl_save_prefix"
11067
11068
11069 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11070 if test "${with_libiconv_prefix+set}" = set; then
11071   withval="$with_libiconv_prefix"
11072
11073     if test "X$withval" = "Xno"; then
11074       use_additional=no
11075     else
11076       if test "X$withval" = "X"; then
11077
11078   acl_save_prefix="$prefix"
11079   prefix="$acl_final_prefix"
11080   acl_save_exec_prefix="$exec_prefix"
11081   exec_prefix="$acl_final_exec_prefix"
11082
11083           eval additional_includedir=\"$includedir\"
11084           eval additional_libdir=\"$libdir\"
11085
11086   exec_prefix="$acl_save_exec_prefix"
11087   prefix="$acl_save_prefix"
11088
11089       else
11090         additional_includedir="$withval/include"
11091         additional_libdir="$withval/lib"
11092       fi
11093     fi
11094
11095 fi;
11096       LIBICONV=
11097   LTLIBICONV=
11098   INCICONV=
11099   rpathdirs=
11100   ltrpathdirs=
11101   names_already_handled=
11102   names_next_round='iconv '
11103   while test -n "$names_next_round"; do
11104     names_this_round="$names_next_round"
11105     names_next_round=
11106     for name in $names_this_round; do
11107       already_handled=
11108       for n in $names_already_handled; do
11109         if test "$n" = "$name"; then
11110           already_handled=yes
11111           break
11112         fi
11113       done
11114       if test -z "$already_handled"; then
11115         names_already_handled="$names_already_handled $name"
11116                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11117         eval value=\"\$HAVE_LIB$uppername\"
11118         if test -n "$value"; then
11119           if test "$value" = yes; then
11120             eval value=\"\$LIB$uppername\"
11121             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11122             eval value=\"\$LTLIB$uppername\"
11123             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11124           else
11125                                     :
11126           fi
11127         else
11128                               found_dir=
11129           found_la=
11130           found_so=
11131           found_a=
11132           if test $use_additional = yes; then
11133             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11134               found_dir="$additional_libdir"
11135               found_so="$additional_libdir/lib$name.$shlibext"
11136               if test -f "$additional_libdir/lib$name.la"; then
11137                 found_la="$additional_libdir/lib$name.la"
11138               fi
11139             else
11140               if test -f "$additional_libdir/lib$name.$libext"; then
11141                 found_dir="$additional_libdir"
11142                 found_a="$additional_libdir/lib$name.$libext"
11143                 if test -f "$additional_libdir/lib$name.la"; then
11144                   found_la="$additional_libdir/lib$name.la"
11145                 fi
11146               fi
11147             fi
11148           fi
11149           if test "X$found_dir" = "X"; then
11150             for x in $LDFLAGS $LTLIBICONV; do
11151
11152   acl_save_prefix="$prefix"
11153   prefix="$acl_final_prefix"
11154   acl_save_exec_prefix="$exec_prefix"
11155   exec_prefix="$acl_final_exec_prefix"
11156   eval x=\"$x\"
11157   exec_prefix="$acl_save_exec_prefix"
11158   prefix="$acl_save_prefix"
11159
11160               case "$x" in
11161                 -L*)
11162                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11163                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11164                     found_dir="$dir"
11165                     found_so="$dir/lib$name.$shlibext"
11166                     if test -f "$dir/lib$name.la"; then
11167                       found_la="$dir/lib$name.la"
11168                     fi
11169                   else
11170                     if test -f "$dir/lib$name.$libext"; then
11171                       found_dir="$dir"
11172                       found_a="$dir/lib$name.$libext"
11173                       if test -f "$dir/lib$name.la"; then
11174                         found_la="$dir/lib$name.la"
11175                       fi
11176                     fi
11177                   fi
11178                   ;;
11179               esac
11180               if test "X$found_dir" != "X"; then
11181                 break
11182               fi
11183             done
11184           fi
11185           if test "X$found_dir" != "X"; then
11186                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11187             if test "X$found_so" != "X"; then
11188                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11189                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11190               else
11191                                                                                 haveit=
11192                 for x in $ltrpathdirs; do
11193                   if test "X$x" = "X$found_dir"; then
11194                     haveit=yes
11195                     break
11196                   fi
11197                 done
11198                 if test -z "$haveit"; then
11199                   ltrpathdirs="$ltrpathdirs $found_dir"
11200                 fi
11201                                 if test "$hardcode_direct" = yes; then
11202                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11203                 else
11204                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11205                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11206                                                             haveit=
11207                     for x in $rpathdirs; do
11208                       if test "X$x" = "X$found_dir"; then
11209                         haveit=yes
11210                         break
11211                       fi
11212                     done
11213                     if test -z "$haveit"; then
11214                       rpathdirs="$rpathdirs $found_dir"
11215                     fi
11216                   else
11217                                                                                 haveit=
11218                     for x in $LDFLAGS $LIBICONV; do
11219
11220   acl_save_prefix="$prefix"
11221   prefix="$acl_final_prefix"
11222   acl_save_exec_prefix="$exec_prefix"
11223   exec_prefix="$acl_final_exec_prefix"
11224   eval x=\"$x\"
11225   exec_prefix="$acl_save_exec_prefix"
11226   prefix="$acl_save_prefix"
11227
11228                       if test "X$x" = "X-L$found_dir"; then
11229                         haveit=yes
11230                         break
11231                       fi
11232                     done
11233                     if test -z "$haveit"; then
11234                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11235                     fi
11236                     if test "$hardcode_minus_L" != no; then
11237                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11238                     else
11239                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11240                     fi
11241                   fi
11242                 fi
11243               fi
11244             else
11245               if test "X$found_a" != "X"; then
11246                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11247               else
11248                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11249               fi
11250             fi
11251                         additional_includedir=
11252             case "$found_dir" in
11253               */lib | */lib/)
11254                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11255                 additional_includedir="$basedir/include"
11256                 ;;
11257             esac
11258             if test "X$additional_includedir" != "X"; then
11259                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11260                 haveit=
11261                 if test "X$additional_includedir" = "X/usr/local/include"; then
11262                   if test -n "$GCC"; then
11263                     case $host_os in
11264                       linux*) haveit=yes;;
11265                     esac
11266                   fi
11267                 fi
11268                 if test -z "$haveit"; then
11269                   for x in $CPPFLAGS $INCICONV; do
11270
11271   acl_save_prefix="$prefix"
11272   prefix="$acl_final_prefix"
11273   acl_save_exec_prefix="$exec_prefix"
11274   exec_prefix="$acl_final_exec_prefix"
11275   eval x=\"$x\"
11276   exec_prefix="$acl_save_exec_prefix"
11277   prefix="$acl_save_prefix"
11278
11279                     if test "X$x" = "X-I$additional_includedir"; then
11280                       haveit=yes
11281                       break
11282                     fi
11283                   done
11284                   if test -z "$haveit"; then
11285                     if test -d "$additional_includedir"; then
11286                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11287                     fi
11288                   fi
11289                 fi
11290               fi
11291             fi
11292                         if test -n "$found_la"; then
11293                                                         save_libdir="$libdir"
11294               case "$found_la" in
11295                 */* | *\\*) . "$found_la" ;;
11296                 *) . "./$found_la" ;;
11297               esac
11298               libdir="$save_libdir"
11299                             for dep in $dependency_libs; do
11300                 case "$dep" in
11301                   -L*)
11302                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11303                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11304                       haveit=
11305                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11306                         if test -n "$GCC"; then
11307                           case $host_os in
11308                             linux*) haveit=yes;;
11309                           esac
11310                         fi
11311                       fi
11312                       if test -z "$haveit"; then
11313                         haveit=
11314                         for x in $LDFLAGS $LIBICONV; do
11315
11316   acl_save_prefix="$prefix"
11317   prefix="$acl_final_prefix"
11318   acl_save_exec_prefix="$exec_prefix"
11319   exec_prefix="$acl_final_exec_prefix"
11320   eval x=\"$x\"
11321   exec_prefix="$acl_save_exec_prefix"
11322   prefix="$acl_save_prefix"
11323
11324                           if test "X$x" = "X-L$additional_libdir"; then
11325                             haveit=yes
11326                             break
11327                           fi
11328                         done
11329                         if test -z "$haveit"; then
11330                           if test -d "$additional_libdir"; then
11331                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11332                           fi
11333                         fi
11334                         haveit=
11335                         for x in $LDFLAGS $LTLIBICONV; do
11336
11337   acl_save_prefix="$prefix"
11338   prefix="$acl_final_prefix"
11339   acl_save_exec_prefix="$exec_prefix"
11340   exec_prefix="$acl_final_exec_prefix"
11341   eval x=\"$x\"
11342   exec_prefix="$acl_save_exec_prefix"
11343   prefix="$acl_save_prefix"
11344
11345                           if test "X$x" = "X-L$additional_libdir"; then
11346                             haveit=yes
11347                             break
11348                           fi
11349                         done
11350                         if test -z "$haveit"; then
11351                           if test -d "$additional_libdir"; then
11352                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11353                           fi
11354                         fi
11355                       fi
11356                     fi
11357                     ;;
11358                   -R*)
11359                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11360                     if test "$enable_rpath" != no; then
11361                                                                   haveit=
11362                       for x in $rpathdirs; do
11363                         if test "X$x" = "X$dir"; then
11364                           haveit=yes
11365                           break
11366                         fi
11367                       done
11368                       if test -z "$haveit"; then
11369                         rpathdirs="$rpathdirs $dir"
11370                       fi
11371                                                                   haveit=
11372                       for x in $ltrpathdirs; do
11373                         if test "X$x" = "X$dir"; then
11374                           haveit=yes
11375                           break
11376                         fi
11377                       done
11378                       if test -z "$haveit"; then
11379                         ltrpathdirs="$ltrpathdirs $dir"
11380                       fi
11381                     fi
11382                     ;;
11383                   -l*)
11384                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11385                     ;;
11386                   *.la)
11387                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11388                     ;;
11389                   *)
11390                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11391                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11392                     ;;
11393                 esac
11394               done
11395             fi
11396           else
11397                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11398             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11399           fi
11400         fi
11401       fi
11402     done
11403   done
11404   if test "X$rpathdirs" != "X"; then
11405     if test -n "$hardcode_libdir_separator"; then
11406                         alldirs=
11407       for found_dir in $rpathdirs; do
11408         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11409       done
11410             acl_save_libdir="$libdir"
11411       libdir="$alldirs"
11412       eval flag=\"$hardcode_libdir_flag_spec\"
11413       libdir="$acl_save_libdir"
11414       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11415     else
11416             for found_dir in $rpathdirs; do
11417         acl_save_libdir="$libdir"
11418         libdir="$found_dir"
11419         eval flag=\"$hardcode_libdir_flag_spec\"
11420         libdir="$acl_save_libdir"
11421         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11422       done
11423     fi
11424   fi
11425   if test "X$ltrpathdirs" != "X"; then
11426             for found_dir in $ltrpathdirs; do
11427       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11428     done
11429   fi
11430
11431
11432
11433
11434
11435
11436
11437           am_save_CPPFLAGS="$CPPFLAGS"
11438
11439   for element in $INCICONV; do
11440     haveit=
11441     for x in $CPPFLAGS; do
11442
11443   acl_save_prefix="$prefix"
11444   prefix="$acl_final_prefix"
11445   acl_save_exec_prefix="$exec_prefix"
11446   exec_prefix="$acl_final_exec_prefix"
11447   eval x=\"$x\"
11448   exec_prefix="$acl_save_exec_prefix"
11449   prefix="$acl_save_prefix"
11450
11451       if test "X$x" = "X$element"; then
11452         haveit=yes
11453         break
11454       fi
11455     done
11456     if test -z "$haveit"; then
11457       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11458     fi
11459   done
11460
11461
11462   echo "$as_me:$LINENO: checking for iconv" >&5
11463 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11464 if test "${am_cv_func_iconv+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467
11468     am_cv_func_iconv="no, consider installing GNU libiconv"
11469     am_cv_lib_iconv=no
11470     cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 #include <stdlib.h>
11477 #include <iconv.h>
11478 int
11479 main ()
11480 {
11481 iconv_t cd = iconv_open("","");
11482        iconv(cd,NULL,NULL,NULL,NULL);
11483        iconv_close(cd);
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490   (eval $ac_link) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"
11498                          || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   am_cv_func_iconv=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 fi
11516 rm -f conftest.err conftest.$ac_objext \
11517       conftest$ac_exeext conftest.$ac_ext
11518     if test "$am_cv_func_iconv" != yes; then
11519       am_save_LIBS="$LIBS"
11520       LIBS="$LIBS $LIBICONV"
11521       cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h.  */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h.  */
11527 #include <stdlib.h>
11528 #include <iconv.h>
11529 int
11530 main ()
11531 {
11532 iconv_t cd = iconv_open("","");
11533          iconv(cd,NULL,NULL,NULL,NULL);
11534          iconv_close(cd);
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541   (eval $ac_link) 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -z "$ac_c_werror_flag"
11549                          || test ! -s conftest.err'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; } &&
11555          { ac_try='test -s conftest$ac_exeext'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   am_cv_lib_iconv=yes
11562         am_cv_func_iconv=yes
11563 else
11564   echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567 fi
11568 rm -f conftest.err conftest.$ac_objext \
11569       conftest$ac_exeext conftest.$ac_ext
11570       LIBS="$am_save_LIBS"
11571     fi
11572
11573 fi
11574 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11575 echo "${ECHO_T}$am_cv_func_iconv" >&6
11576   if test "$am_cv_func_iconv" = yes; then
11577
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_ICONV 1
11580 _ACEOF
11581
11582   fi
11583   if test "$am_cv_lib_iconv" = yes; then
11584     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11585 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11586     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11587 echo "${ECHO_T}$LIBICONV" >&6
11588   else
11589             CPPFLAGS="$am_save_CPPFLAGS"
11590     LIBICONV=
11591     LTLIBICONV=
11592   fi
11593
11594
11595
11596   if test "$am_cv_func_iconv" = yes; then
11597     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11598 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11599     if test "${am_cv_proto_iconv+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602
11603       cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609
11610 #include <stdlib.h>
11611 #include <iconv.h>
11612 extern
11613 #ifdef __cplusplus
11614 "C"
11615 #endif
11616 #if defined(__STDC__) || defined(__cplusplus)
11617 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11618 #else
11619 size_t iconv();
11620 #endif
11621
11622 int
11623 main ()
11624 {
11625
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_c_werror_flag"
11640                          || test ! -s conftest.err'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   am_cv_proto_iconv_arg1=""
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 am_cv_proto_iconv_arg1="const"
11658 fi
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660       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);"
11661 fi
11662
11663     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11664     echo "$as_me:$LINENO: result: ${ac_t:-
11665          }$am_cv_proto_iconv" >&5
11666 echo "${ECHO_T}${ac_t:-
11667          }$am_cv_proto_iconv" >&6
11668
11669 cat >>confdefs.h <<_ACEOF
11670 #define ICONV_CONST $am_cv_proto_iconv_arg1
11671 _ACEOF
11672
11673   fi
11674
11675 # Until we have in-tree GNU iconv:
11676 LIBICONV_DEP=
11677
11678
11679
11680   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11681 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11682 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691 #include <locale.h>
11692 int
11693 main ()
11694 {
11695 return LC_MESSAGES
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702   (eval $ac_link) 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -z "$ac_c_werror_flag"
11710                          || test ! -s conftest.err'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; } &&
11716          { ac_try='test -s conftest$ac_exeext'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; }; then
11722   am_cv_val_LC_MESSAGES=yes
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 am_cv_val_LC_MESSAGES=no
11728 fi
11729 rm -f conftest.err conftest.$ac_objext \
11730       conftest$ac_exeext conftest.$ac_ext
11731 fi
11732 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11733 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11734   if test $am_cv_val_LC_MESSAGES = yes; then
11735
11736 cat >>confdefs.h <<\_ACEOF
11737 #define HAVE_LC_MESSAGES 1
11738 _ACEOF
11739
11740   fi
11741
11742
11743
11744   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11746 if test "${am_cv_langinfo_codeset+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 #include <langinfo.h>
11756 int
11757 main ()
11758 {
11759 char* cs = nl_langinfo(CODESET);
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766   (eval $ac_link) 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -z "$ac_c_werror_flag"
11774                          || test ! -s conftest.err'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; } &&
11780          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11786   am_cv_langinfo_codeset=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 am_cv_langinfo_codeset=no
11792 fi
11793 rm -f conftest.err conftest.$ac_objext \
11794       conftest$ac_exeext conftest.$ac_ext
11795
11796 fi
11797 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11798 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11799   if test $am_cv_langinfo_codeset = yes; then
11800
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_LANGINFO_CODESET 1
11803 _ACEOF
11804
11805   fi
11806
11807
11808 # We will need to find libiberty.h and ansidecl.h
11809 saved_CFLAGS="$CFLAGS"
11810 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11851         strsignal strstr strverscmp \
11852         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11853         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11854 do
11855   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11856 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11857 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11858 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11859   echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861   cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 #undef $ac_tr_decl
11868 #define $ac_tr_decl 1
11869
11870 #include "ansidecl.h"
11871 #include "system.h"
11872
11873 int
11874 main ()
11875 {
11876 #ifndef $ac_func
11877 char *(*pfn) = (char *(*)) $ac_func ;
11878 #endif
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885   (eval $ac_compile) 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } &&
11892          { ac_try='test -z "$ac_c_werror_flag"
11893                          || test ! -s conftest.err'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest.$ac_objext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   eval "gcc_cv_have_decl_$ac_func=yes"
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 eval "gcc_cv_have_decl_$ac_func=no"
11911 fi
11912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11913 fi
11914
11915 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11916   echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11918 #define $ac_tr_decl 1
11919 _ACEOF
11920
11921 else
11922   echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11924 #define $ac_tr_decl 0
11925 _ACEOF
11926
11927 fi
11928
11929 done
11930
11931
11932
11933
11934
11935 for ac_func in getrlimit setrlimit getrusage
11936 do
11937   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11938 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11939 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11940 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943   cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 #undef $ac_tr_decl
11950 #define $ac_tr_decl 1
11951
11952 #include "ansidecl.h"
11953 #include "system.h"
11954 #ifdef HAVE_SYS_RESOURCE_H
11955 #include <sys/resource.h>
11956 #endif
11957
11958
11959 int
11960 main ()
11961 {
11962 #ifndef $ac_func
11963 char *(*pfn) = (char *(*)) $ac_func ;
11964 #endif
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971   (eval $ac_compile) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   eval "gcc_cv_have_decl_$ac_func=yes"
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 eval "gcc_cv_have_decl_$ac_func=no"
11997 fi
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000
12001 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12002   echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12004 #define $ac_tr_decl 1
12005 _ACEOF
12006
12007 else
12008   echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12010 #define $ac_tr_decl 0
12011 _ACEOF
12012
12013 fi
12014
12015 done
12016
12017
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024
12025 #include "ansidecl.h"
12026 #include "system.h"
12027 #ifdef HAVE_SYS_RESOURCE_H
12028 #include <sys/resource.h>
12029 #endif
12030
12031 int
12032 main ()
12033 {
12034 rlim_t l = 0;
12035   ;
12036   return 0;
12037 }
12038 _ACEOF
12039 rm -f conftest.$ac_objext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041   (eval $ac_compile) 2>conftest.er1
12042   ac_status=$?
12043   grep -v '^ *+' conftest.er1 >conftest.err
12044   rm -f conftest.er1
12045   cat conftest.err >&5
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } &&
12048          { ac_try='test -z "$ac_c_werror_flag"
12049                          || test ! -s conftest.err'
12050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051   (eval $ac_try) 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; } &&
12055          { ac_try='test -s conftest.$ac_objext'
12056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057   (eval $ac_try) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   :
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12065
12066
12067 cat >>confdefs.h <<\_ACEOF
12068 #define rlim_t long
12069 _ACEOF
12070
12071 fi
12072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12073
12074 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12075 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12076 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12077 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12078
12079 for ac_func in ldgetname
12080 do
12081   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12082 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12083 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12084 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093 #undef $ac_tr_decl
12094 #define $ac_tr_decl 1
12095
12096 #include "ansidecl.h"
12097 #include "system.h"
12098 #ifdef HAVE_LDFCN_H
12099 #undef FREAD
12100 #undef FWRITE
12101 #include <ldfcn.h>
12102 #endif
12103
12104
12105 int
12106 main ()
12107 {
12108 #ifndef $ac_func
12109 char *(*pfn) = (char *(*)) $ac_func ;
12110 #endif
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117   (eval $ac_compile) 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } &&
12124          { ac_try='test -z "$ac_c_werror_flag"
12125                          || test ! -s conftest.err'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; } &&
12131          { ac_try='test -s conftest.$ac_objext'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   eval "gcc_cv_have_decl_$ac_func=yes"
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 eval "gcc_cv_have_decl_$ac_func=no"
12143 fi
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146
12147 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12148   echo "$as_me:$LINENO: result: yes" >&5
12149 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12150 #define $ac_tr_decl 1
12151 _ACEOF
12152
12153 else
12154   echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12156 #define $ac_tr_decl 0
12157 _ACEOF
12158
12159 fi
12160
12161 done
12162
12163
12164
12165 for ac_func in times
12166 do
12167   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12168 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12169 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12170 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12171   echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173   cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 #undef $ac_tr_decl
12180 #define $ac_tr_decl 1
12181
12182 #include "ansidecl.h"
12183 #include "system.h"
12184 #ifdef HAVE_SYS_TIMES_H
12185 #include <sys/times.h>
12186 #endif
12187
12188
12189 int
12190 main ()
12191 {
12192 #ifndef $ac_func
12193 char *(*pfn) = (char *(*)) $ac_func ;
12194 #endif
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag"
12209                          || test ! -s conftest.err'
12210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211   (eval $ac_try) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; } &&
12215          { ac_try='test -s conftest.$ac_objext'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   eval "gcc_cv_have_decl_$ac_func=yes"
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 eval "gcc_cv_have_decl_$ac_func=no"
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230
12231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12232   echo "$as_me:$LINENO: result: yes" >&5
12233 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12234 #define $ac_tr_decl 1
12235 _ACEOF
12236
12237 else
12238   echo "$as_me:$LINENO: result: no" >&5
12239 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12240 #define $ac_tr_decl 0
12241 _ACEOF
12242
12243 fi
12244
12245 done
12246
12247
12248
12249 for ac_func in sigaltstack
12250 do
12251   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12252 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12253 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12254 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263 #undef $ac_tr_decl
12264 #define $ac_tr_decl 1
12265
12266 #include "ansidecl.h"
12267 #include "system.h"
12268 #include <signal.h>
12269
12270
12271 int
12272 main ()
12273 {
12274 #ifndef $ac_func
12275 char *(*pfn) = (char *(*)) $ac_func ;
12276 #endif
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283   (eval $ac_compile) 2>conftest.er1
12284   ac_status=$?
12285   grep -v '^ *+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } &&
12290          { ac_try='test -z "$ac_c_werror_flag"
12291                          || test ! -s conftest.err'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; } &&
12297          { ac_try='test -s conftest.$ac_objext'
12298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299   (eval $ac_try) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); }; }; then
12303   eval "gcc_cv_have_decl_$ac_func=yes"
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 eval "gcc_cv_have_decl_$ac_func=no"
12309 fi
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312
12313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12314   echo "$as_me:$LINENO: result: yes" >&5
12315 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12316 #define $ac_tr_decl 1
12317 _ACEOF
12318
12319 else
12320   echo "$as_me:$LINENO: result: no" >&5
12321 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12322 #define $ac_tr_decl 0
12323 _ACEOF
12324
12325 fi
12326
12327 done
12328
12329
12330 # More time-related stuff.
12331 echo "$as_me:$LINENO: checking for struct tms" >&5
12332 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12333 if test "${ac_cv_struct_tms+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343
12344 #include "ansidecl.h"
12345 #include "system.h"
12346 #ifdef HAVE_SYS_TIMES_H
12347 #include <sys/times.h>
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 struct tms tms;
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag"
12368                          || test ! -s conftest.err'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; } &&
12374          { ac_try='test -s conftest.$ac_objext'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; }; then
12380   ac_cv_struct_tms=yes
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 ac_cv_struct_tms=no
12386 fi
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388 fi
12389 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12390 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12391 if test $ac_cv_struct_tms = yes; then
12392
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_STRUCT_TMS 1
12395 _ACEOF
12396
12397 fi
12398
12399 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12400 # revisit after autoconf 2.50.
12401 echo "$as_me:$LINENO: checking for clock_t" >&5
12402 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12403 if test "${gcc_cv_type_clock_t+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413
12414 #include "ansidecl.h"
12415 #include "system.h"
12416
12417 int
12418 main ()
12419 {
12420 clock_t x;
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427   (eval $ac_compile) 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -z "$ac_c_werror_flag"
12435                          || test ! -s conftest.err'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; } &&
12441          { ac_try='test -s conftest.$ac_objext'
12442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443   (eval $ac_try) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; }; then
12447   gcc_cv_type_clock_t=yes
12448 else
12449   echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 gcc_cv_type_clock_t=no
12453 fi
12454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12457 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12458 if test $gcc_cv_type_clock_t = yes; then
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_CLOCK_T 1
12462 _ACEOF
12463
12464 fi
12465
12466 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12467 CFLAGS="$saved_CFLAGS"
12468
12469 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12470 if test "${enable_initfini_array+set}" = set; then
12471   enableval="$enable_initfini_array"
12472
12473 else
12474
12475 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12476 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12477 if test "${gcc_cv_initfini_array+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480     if test "$cross_compiling" = yes; then
12481   gcc_cv_initfini_array=no
12482 else
12483   cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489
12490 static int x = -1;
12491 int main (void) { return x; }
12492 int foo (void) { x = 0; }
12493 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12494 _ACEOF
12495 rm -f conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497   (eval $ac_link) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502   (eval $ac_try) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; }; then
12506   gcc_cv_initfini_array=yes
12507 else
12508   echo "$as_me: program exited with status $ac_status" >&5
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ( exit $ac_status )
12513 gcc_cv_initfini_array=no
12514 fi
12515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12516 fi
12517 fi
12518 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12519 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12520   enable_initfini_array=$gcc_cv_initfini_array
12521
12522 fi;
12523 if test $enable_initfini_array = yes; then
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_INITFINI_ARRAY 1
12527 _ACEOF
12528
12529 fi
12530
12531 # mkdir takes a single argument on some systems.
12532 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12533 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12534 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h.  */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h.  */
12543
12544 #include <sys/types.h>
12545 #ifdef HAVE_SYS_STAT_H
12546 # include <sys/stat.h>
12547 #endif
12548 #ifdef HAVE_UNISTD_H
12549 # include <unistd.h>
12550 #endif
12551 #ifdef HAVE_DIRECT_H
12552 # include <direct.h>
12553 #endif
12554 int
12555 main ()
12556 {
12557 mkdir ("foo", 0);
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564   (eval $ac_compile) 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag"
12572                          || test ! -s conftest.err'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; } &&
12578          { ac_try='test -s conftest.$ac_objext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   gcc_cv_mkdir_takes_one_arg=no
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 gcc_cv_mkdir_takes_one_arg=yes
12590 fi
12591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12592 fi
12593 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12594 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12595 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12596
12597 cat >>confdefs.h <<\_ACEOF
12598 #define MKDIR_TAKES_ONE_ARG 1
12599 _ACEOF
12600
12601 fi
12602
12603
12604 # File extensions
12605 manext='.1'
12606 objext='.o'
12607
12608
12609
12610 # With Setjmp/Longjmp based exception handling.
12611 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12612 if test "${enable_sjlj_exceptions+set}" = set; then
12613   enableval="$enable_sjlj_exceptions"
12614   case $target in
12615   *-*-hpux10*)
12616     if test $enableval != yes; then
12617       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12618 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12619       enableval=yes
12620     fi
12621     ;;
12622 esac
12623 force_sjlj_exceptions=yes
12624 else
12625   case $target in
12626   *-*-hpux10*)
12627     force_sjlj_exceptions=yes
12628     enableval=yes
12629     ;;
12630   *)
12631     force_sjlj_exceptions=no
12632     ;;
12633 esac
12634 fi;
12635 if test $force_sjlj_exceptions = yes; then
12636   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12640 _ACEOF
12641
12642 fi
12643
12644 # For platforms with the unwind ABI which includes an unwind library,
12645 # libunwind, we can choose to use the system libunwind.
12646
12647 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12648 if test "${with_system_libunwind+set}" = set; then
12649   withval="$with_system_libunwind"
12650
12651 fi;
12652
12653 # config.gcc also contains tests of with_system_libunwind.
12654 if test x$with_system_libunwind = xyes; then
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_GETIPINFO 1
12658 _ACEOF
12659
12660 fi
12661
12662 # --------------------------------------------------------
12663 # Build, host, and target specific configuration fragments
12664 # --------------------------------------------------------
12665
12666 # Collect build-machine-specific information.
12667 . ${srcdir}/config.build
12668
12669 # Collect host-machine-specific information.
12670 . ${srcdir}/config.host
12671
12672 target_gtfiles=
12673
12674 # Collect target-machine-specific information.
12675 . ${srcdir}/config.gcc
12676
12677 extra_objs="${host_extra_objs} ${extra_objs}"
12678 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12679
12680 # Default the target-machine variables that were not explicitly set.
12681 if test x"$tm_file" = x
12682 then tm_file=$cpu_type/$cpu_type.h; fi
12683
12684 if test x"$extra_headers" = x
12685 then extra_headers=; fi
12686
12687 if test x$md_file = x
12688 then md_file=$cpu_type/$cpu_type.md; fi
12689
12690 if test x$out_file = x
12691 then out_file=$cpu_type/$cpu_type.c; fi
12692
12693 if test x"$tmake_file" = x
12694 then tmake_file=$cpu_type/t-$cpu_type
12695 fi
12696
12697 if test x"$dwarf2" = xyes
12698 then tm_file="$tm_file tm-dwarf2.h"
12699 fi
12700
12701 # Say what files are being used for the output code and MD file.
12702 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12703 echo "Using \`$srcdir/config/$md_file' as machine description file."
12704
12705 # If any of the xm_file variables contain nonexistent files, warn
12706 # about them and drop them.
12707
12708 bx=
12709 for x in $build_xm_file; do
12710   if    test -f $srcdir/config/$x
12711   then      bx="$bx $x"
12712   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12713 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12714   fi
12715 done
12716 build_xm_file="$bx"
12717
12718 hx=
12719 for x in $host_xm_file; do
12720   if    test -f $srcdir/config/$x
12721   then      hx="$hx $x"
12722   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12723 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12724   fi
12725 done
12726 host_xm_file="$hx"
12727
12728 tx=
12729 for x in $xm_file; do
12730   if    test -f $srcdir/config/$x
12731   then      tx="$tx $x"
12732   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12733 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12734   fi
12735 done
12736 xm_file="$tx"
12737
12738 count=a
12739 for f in $tm_file; do
12740         count=${count}x
12741 done
12742 if test $count = ax; then
12743         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12744 else
12745         echo "Using the following target machine macro files:"
12746         for f in $tm_file; do
12747                 echo "  $srcdir/config/$f"
12748         done
12749 fi
12750
12751 if test x$need_64bit_hwint = xyes; then
12752
12753 cat >>confdefs.h <<\_ACEOF
12754 #define NEED_64BIT_HOST_WIDE_INT 1
12755 _ACEOF
12756
12757 fi
12758
12759 if test x$use_long_long_for_widest_fast_int = xyes; then
12760
12761 cat >>confdefs.h <<\_ACEOF
12762 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12763 _ACEOF
12764
12765 fi
12766
12767 count=a
12768 for f in $host_xm_file; do
12769         count=${count}x
12770 done
12771 if test $count = a; then
12772         :
12773 elif test $count = ax; then
12774         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12775 else
12776         echo "Using the following host machine macro files:"
12777         for f in $host_xm_file; do
12778                 echo "  $srcdir/config/$f"
12779         done
12780 fi
12781 echo "Using ${out_host_hook_obj} for host machine hooks."
12782
12783 if test "$host_xm_file" != "$build_xm_file"; then
12784         count=a
12785         for f in $build_xm_file; do
12786                 count=${count}x
12787         done
12788         if test $count = a; then
12789                 :
12790         elif test $count = ax; then
12791                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12792         else
12793                 echo "Using the following build machine macro files:"
12794                 for f in $build_xm_file; do
12795                         echo "  $srcdir/config/$f"
12796                 done
12797         fi
12798 fi
12799
12800 case ${host} in
12801   powerpc*-*-darwin*)
12802     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12803 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12804 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   cat >conftest.$ac_ext <<_ACEOF
12808
12809 #include <sys/cdefs.h>
12810 #include <sys/signal.h>
12811 #include <ucontext.h>
12812 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12813
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817   (eval $ac_compile) 2>conftest.er1
12818   ac_status=$?
12819   grep -v '^ *+' conftest.er1 >conftest.err
12820   rm -f conftest.er1
12821   cat conftest.err >&5
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -z "$ac_c_werror_flag"
12825                          || test ! -s conftest.err'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; } &&
12831          { ac_try='test -s conftest.$ac_objext'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   gcc_cv_mcontext_underscores=no
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 gcc_cv_mcontext_underscores=yes
12843 fi
12844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12845 fi
12846 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12847 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12848       if test $gcc_cv_mcontext_underscores = yes; then
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAS_MCONTEXT_T_UNDERSCORES
12852 _ACEOF
12853
12854       fi
12855     ;;
12856 esac
12857
12858 # ---------
12859 # Threading
12860 # ---------
12861
12862 # Check if a valid thread package
12863 case ${enable_threads} in
12864   "" | no)
12865     # No threads
12866     target_thread_file='single'
12867     ;;
12868   yes)
12869     # default
12870     target_thread_file='single'
12871     ;;
12872   aix | dce | gnat | irix | posix | posix95 | rtems | \
12873   single | solaris | vxworks | win32 | mipssde)
12874     target_thread_file=${enable_threads}
12875     ;;
12876   *)
12877     echo "${enable_threads} is an unknown thread package" 1>&2
12878     exit 1
12879     ;;
12880 esac
12881
12882 if test x${thread_file} = x; then
12883   # No thread file set by target-specific clauses in config.gcc,
12884   # so use file chosen by default logic above
12885   thread_file=${target_thread_file}
12886 fi
12887
12888 # Make gthr-default.h if we have a thread file.
12889 gthread_flags=
12890 if test $thread_file != single; then
12891   rm -f gthr-default.h
12892   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12893   gthread_flags=-DHAVE_GTHR_DEFAULT
12894 fi
12895
12896
12897 # --------
12898 # UNSORTED
12899 # --------
12900
12901 use_cxa_atexit=no
12902 if test x$enable___cxa_atexit = xyes || \
12903    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12904   if test x$host = x$target; then
12905     case $host in
12906       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12907       # keyed to flag_use_cxa_atexit
12908       *-*-mingw32*)
12909         use_cxa_atexit=yes
12910         ;;
12911       *)
12912         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12913 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12914 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12925 #define __cxa_atexit innocuous___cxa_atexit
12926
12927 /* System header to define __stub macros and hopefully few prototypes,
12928     which can conflict with char __cxa_atexit (); below.
12929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930     <limits.h> exists even on freestanding compilers.  */
12931
12932 #ifdef __STDC__
12933 # include <limits.h>
12934 #else
12935 # include <assert.h>
12936 #endif
12937
12938 #undef __cxa_atexit
12939
12940 /* Override any gcc2 internal prototype to avoid an error.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 {
12944 #endif
12945 /* We use char because int might match the return type of a gcc2
12946    builtin and then its argument prototype would still apply.  */
12947 char __cxa_atexit ();
12948 /* The GNU C library defines this for functions which it implements
12949     to always fail with ENOSYS.  Some functions are actually named
12950     something starting with __ and the normal name is an alias.  */
12951 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12952 choke me
12953 #else
12954 char (*f) () = __cxa_atexit;
12955 #endif
12956 #ifdef __cplusplus
12957 }
12958 #endif
12959
12960 int
12961 main ()
12962 {
12963 return f != __cxa_atexit;
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970   (eval $ac_link) 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_c_werror_flag"
12978                          || test ! -s conftest.err'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest$ac_exeext'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; }; then
12990   ac_cv_func___cxa_atexit=yes
12991 else
12992   echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_cv_func___cxa_atexit=no
12996 fi
12997 rm -f conftest.err conftest.$ac_objext \
12998       conftest$ac_exeext conftest.$ac_ext
12999 fi
13000 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13001 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13002 if test $ac_cv_func___cxa_atexit = yes; then
13003   use_cxa_atexit=yes
13004 else
13005   echo "__cxa_atexit can't be enabled on this target"
13006 fi
13007
13008         ;;
13009     esac
13010   else
13011     # We can't check for __cxa_atexit when building a cross, so assume
13012     # it is available
13013     use_cxa_atexit=yes
13014   fi
13015   if test x$use_cxa_atexit = xyes; then
13016
13017 cat >>confdefs.h <<\_ACEOF
13018 #define DEFAULT_USE_CXA_ATEXIT 2
13019 _ACEOF
13020
13021   fi
13022 fi
13023
13024 use_getipinfo=yes
13025 if test x$with_system_libunwind = xyes; then
13026    if test x$host = x$target; then
13027      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13028 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13029 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   ac_func_search_save_LIBS=$LIBS
13033 ac_cv_search__Unwind_GetIPInfo=no
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040
13041 /* Override any gcc2 internal prototype to avoid an error.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 /* We use char because int might match the return type of a gcc2
13046    builtin and then its argument prototype would still apply.  */
13047 char _Unwind_GetIPInfo ();
13048 int
13049 main ()
13050 {
13051 _Unwind_GetIPInfo ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058   (eval $ac_link) 2>conftest.er1
13059   ac_status=$?
13060   grep -v '^ *+' conftest.er1 >conftest.err
13061   rm -f conftest.er1
13062   cat conftest.err >&5
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } &&
13065          { ac_try='test -z "$ac_c_werror_flag"
13066                          || test ! -s conftest.err'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; } &&
13072          { ac_try='test -s conftest$ac_exeext'
13073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074   (eval $ac_try) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; }; then
13078   ac_cv_search__Unwind_GetIPInfo="none required"
13079 else
13080   echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 fi
13084 rm -f conftest.err conftest.$ac_objext \
13085       conftest$ac_exeext conftest.$ac_ext
13086 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13087   for ac_lib in unwind; do
13088     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13089     cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096 /* Override any gcc2 internal prototype to avoid an error.  */
13097 #ifdef __cplusplus
13098 extern "C"
13099 #endif
13100 /* We use char because int might match the return type of a gcc2
13101    builtin and then its argument prototype would still apply.  */
13102 char _Unwind_GetIPInfo ();
13103 int
13104 main ()
13105 {
13106 _Unwind_GetIPInfo ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag"
13121                          || test ! -s conftest.err'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13134 break
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139 fi
13140 rm -f conftest.err conftest.$ac_objext \
13141       conftest$ac_exeext conftest.$ac_ext
13142   done
13143 fi
13144 LIBS=$ac_func_search_save_LIBS
13145 fi
13146 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13147 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13148 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13149   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13150
13151 else
13152   use_getipinfo=no
13153 fi
13154
13155    fi
13156 fi
13157
13158 if test x$use_getipinfo = xyes; then
13159
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_GETIPINFO 1
13162 _ACEOF
13163
13164 else
13165    echo "The system unwind library does not support _Unwind_GetIPInfo."
13166 fi
13167
13168 # Look for a file containing extra machine modes.
13169 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13170   extra_modes_file='$(srcdir)'/config/${extra_modes}
13171
13172
13173 cat >>confdefs.h <<_ACEOF
13174 #define EXTRA_MODES_FILE "config/$extra_modes"
13175 _ACEOF
13176
13177 fi
13178
13179 # Convert extra_options into a form suitable for Makefile use.
13180 extra_opt_files=
13181 for f in $extra_options; do
13182   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13183 done
13184
13185
13186 # auto-host.h is the file containing items generated by autoconf and is
13187 # the first file included by config.h.
13188 # If host=build, it is correct to have bconfig include auto-host.h
13189 # as well.  If host!=build, we are in error and need to do more
13190 # work to find out the build config parameters.
13191 if test x$host = x$build
13192 then
13193         build_auto=auto-host.h
13194 else
13195         # We create a subdir, then run autoconf in the subdir.
13196         # To prevent recursion we set host and build for the new
13197         # invocation of configure to the build for this invocation
13198         # of configure.
13199         tempdir=build.$$
13200         rm -rf $tempdir
13201         mkdir $tempdir
13202         cd $tempdir
13203         case ${srcdir} in
13204         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13205         *) realsrcdir=../${srcdir};;
13206         esac
13207         saved_CFLAGS="${CFLAGS}"
13208         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13209         ${realsrcdir}/configure \
13210                 --enable-languages=${enable_languages-all} \
13211                 --target=$target_alias --host=$build_alias --build=$build_alias
13212         CFLAGS="${saved_CFLAGS}"
13213
13214         # Extract this setting from the temporary Makefile.
13215         BUILD_DEPMODE=`grep '^CCDEPMODE = ' Makefile | sed -e 's,.* = ,,'`
13216
13217         # We just finished tests for the build machine, so rename
13218         # the file auto-build.h in the gcc directory.
13219         mv auto-host.h ../auto-build.h
13220         cd ..
13221         rm -rf $tempdir
13222         build_auto=auto-build.h
13223 fi
13224
13225
13226 tm_file="${tm_file} defaults.h"
13227 tm_p_file="${tm_p_file} tm-preds.h"
13228 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13229 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13230 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13231 # put this back in temporarily.
13232 xm_file="auto-host.h ansidecl.h ${xm_file}"
13233
13234 # --------
13235 # UNSORTED
13236 # --------
13237
13238 # Compile in configure arguments.
13239 if test -f configargs.h ; then
13240         # Being re-configured.
13241         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13242         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13243 else
13244         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13245 fi
13246
13247 # Double all backslashes and backslash all quotes to turn
13248 # gcc_config_arguments into a C string.
13249 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13250 $gcc_config_arguments
13251 EOF
13252 gcc_config_arguments_str=`cat conftest.out`
13253 rm -f conftest.out
13254
13255 cat > configargs.h <<EOF
13256 /* Generated automatically. */
13257 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13258 static const char thread_model[] = "$thread_file";
13259
13260 static const struct {
13261   const char *name, *value;
13262 } configure_default_options[] = $configure_default_options;
13263 EOF
13264
13265 # Internationalization
13266 # If we haven't got the data from the intl directory,
13267 # assume NLS is disabled.
13268 USE_NLS=no
13269 LIBINTL=
13270 LIBINTL_DEP=
13271 INCINTL=
13272 XGETTEXT=
13273 GMSGFMT=
13274 POSUB=
13275
13276 if test -f  ../intl/config.intl; then
13277   .  ../intl/config.intl
13278 fi
13279 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13280 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13281 if test x"$USE_NLS" != xyes; then
13282   echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6
13284 else
13285   echo "$as_me:$LINENO: result: yes" >&5
13286 echo "${ECHO_T}yes" >&6
13287
13288 cat >>confdefs.h <<\_ACEOF
13289 #define ENABLE_NLS 1
13290 _ACEOF
13291
13292
13293   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13294 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13295   # Look for .po and .gmo files in the source directory.
13296   CATALOGS=
13297   XLINGUAS=
13298   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13299     # If there aren't any .gmo files the shell will give us the
13300     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13301     # weeded out.
13302     case "$cat" in *\**)
13303       continue;;
13304     esac
13305     # The quadruple backslash is collapsed to a double backslash
13306     # by the backticks, then collapsed again by the double quotes,
13307     # leaving us with one backslash in the sed expression (right
13308     # before the dot that mustn't act as a wildcard).
13309     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13310     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13311     # The user is allowed to set LINGUAS to a list of languages to
13312     # install catalogs for.  If it's empty that means "all of them."
13313     if test "x$LINGUAS" = x; then
13314       CATALOGS="$CATALOGS $cat"
13315       XLINGUAS="$XLINGUAS $lang"
13316     else
13317       case "$LINGUAS" in *$lang*)
13318         CATALOGS="$CATALOGS $cat"
13319         XLINGUAS="$XLINGUAS $lang"
13320         ;;
13321       esac
13322     fi
13323   done
13324   LINGUAS="$XLINGUAS"
13325   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13326 echo "${ECHO_T}$LINGUAS" >&6
13327
13328
13329     DATADIRNAME=share
13330
13331   INSTOBJEXT=.mo
13332
13333   GENCAT=gencat
13334
13335   CATOBJEXT=.gmo
13336
13337 fi
13338
13339 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13340 # -liconv on the link line twice.
13341 case "$LIBINTL" in *$LIBICONV*)
13342         LIBICONV= ;;
13343 esac
13344
13345 # Check whether --enable-secureplt or --disable-secureplt was given.
13346 if test "${enable_secureplt+set}" = set; then
13347   enableval="$enable_secureplt"
13348
13349 fi;
13350
13351 # Windows32 Registry support for specifying GCC installation paths.
13352 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13353 if test "${enable_win32_registry+set}" = set; then
13354   enableval="$enable_win32_registry"
13355
13356 fi;
13357
13358 case $host_os in
13359   win32 | pe | cygwin* | mingw32* | uwin*)
13360     if test "x$enable_win32_registry" != xno; then
13361       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13362 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13363 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13364   echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366   ac_func_search_save_LIBS=$LIBS
13367 ac_cv_search_RegOpenKeyExA=no
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374
13375 /* Override any gcc2 internal prototype to avoid an error.  */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 /* We use char because int might match the return type of a gcc2
13380    builtin and then its argument prototype would still apply.  */
13381 char RegOpenKeyExA ();
13382 int
13383 main ()
13384 {
13385 RegOpenKeyExA ();
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392   (eval $ac_link) 2>conftest.er1
13393   ac_status=$?
13394   grep -v '^ *+' conftest.er1 >conftest.err
13395   rm -f conftest.er1
13396   cat conftest.err >&5
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); } &&
13399          { ac_try='test -z "$ac_c_werror_flag"
13400                          || test ! -s conftest.err'
13401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402   (eval $ac_try) 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; } &&
13406          { ac_try='test -s conftest$ac_exeext'
13407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408   (eval $ac_try) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; }; then
13412   ac_cv_search_RegOpenKeyExA="none required"
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 fi
13418 rm -f conftest.err conftest.$ac_objext \
13419       conftest$ac_exeext conftest.$ac_ext
13420 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13421   for ac_lib in advapi32; do
13422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13423     cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h.  */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h.  */
13429
13430 /* Override any gcc2 internal prototype to avoid an error.  */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 /* We use char because int might match the return type of a gcc2
13435    builtin and then its argument prototype would still apply.  */
13436 char RegOpenKeyExA ();
13437 int
13438 main ()
13439 {
13440 RegOpenKeyExA ();
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447   (eval $ac_link) 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } &&
13454          { ac_try='test -z "$ac_c_werror_flag"
13455                          || test ! -s conftest.err'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest$ac_exeext'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13468 break
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 fi
13474 rm -f conftest.err conftest.$ac_objext \
13475       conftest$ac_exeext conftest.$ac_ext
13476   done
13477 fi
13478 LIBS=$ac_func_search_save_LIBS
13479 fi
13480 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13481 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13482 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13483   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13484
13485 else
13486   enable_win32_registry=no
13487 fi
13488
13489     fi
13490
13491     if test "x$enable_win32_registry" != xno; then
13492
13493 cat >>confdefs.h <<\_ACEOF
13494 #define ENABLE_WIN32_REGISTRY 1
13495 _ACEOF
13496
13497
13498       if test "x$enable_win32_registry" != xyes \
13499          && test "x$enable_win32_registry" != x; then
13500
13501 cat >>confdefs.h <<_ACEOF
13502 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13503 _ACEOF
13504
13505       fi
13506     fi
13507   ;;
13508 esac
13509
13510 # Get an absolute path to the GCC top-level source directory
13511 holddir=`${PWDCMD-pwd}`
13512 cd $srcdir
13513 topdir=`${PWDCMD-pwd}`
13514 cd $holddir
13515
13516 # Conditionalize the makefile for this host machine.
13517 xmake_file=
13518 for f in ${host_xmake_file}
13519 do
13520         if test -f ${srcdir}/config/$f
13521         then
13522                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13523         fi
13524 done
13525
13526 # Conditionalize the makefile for this target machine.
13527 tmake_file_=
13528 for f in ${tmake_file}
13529 do
13530         if test -f ${srcdir}/config/$f
13531         then
13532                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13533         fi
13534 done
13535 tmake_file="${tmake_file_}"
13536
13537 # This is a terrible hack which will go away some day.
13538 host_cc_for_libada=${CC}
13539
13540
13541 out_object_file=`basename $out_file .c`.o
13542
13543 tm_file_list="options.h"
13544 tm_include_list="options.h"
13545 for f in $tm_file; do
13546   case $f in
13547     ./* )
13548        f=`echo $f | sed 's/^..//'`
13549        tm_file_list="${tm_file_list} $f"
13550        tm_include_list="${tm_include_list} $f"
13551        ;;
13552     defaults.h )
13553        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13554        tm_include_list="${tm_include_list} $f"
13555        ;;
13556     * )
13557        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13558        tm_include_list="${tm_include_list} config/$f"
13559        ;;
13560   esac
13561 done
13562
13563 tm_p_file_list=
13564 tm_p_include_list=
13565 for f in $tm_p_file; do
13566   case $f in
13567     tm-preds.h )
13568        tm_p_file_list="${tm_p_file_list} $f"
13569        tm_p_include_list="${tm_p_include_list} $f"
13570        ;;
13571     * )
13572        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13573        tm_p_include_list="${tm_p_include_list} config/$f"
13574   esac
13575 done
13576
13577 xm_file_list=
13578 xm_include_list=
13579 for f in $xm_file; do
13580   case $f in
13581     ansidecl.h )
13582        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13583        xm_include_list="${xm_include_list} $f"
13584        ;;
13585     auto-host.h )
13586        xm_file_list="${xm_file_list} $f"
13587        xm_include_list="${xm_include_list} $f"
13588        ;;
13589     * )
13590        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13591        xm_include_list="${xm_include_list} config/$f"
13592        ;;
13593   esac
13594 done
13595
13596 host_xm_file_list=
13597 host_xm_include_list=
13598 for f in $host_xm_file; do
13599   case $f in
13600     ansidecl.h )
13601        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13602        host_xm_include_list="${host_xm_include_list} $f"
13603        ;;
13604     auto-host.h )
13605        host_xm_file_list="${host_xm_file_list} $f"
13606        host_xm_include_list="${host_xm_include_list} $f"
13607        ;;
13608     * )
13609        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13610        host_xm_include_list="${host_xm_include_list} config/$f"
13611        ;;
13612   esac
13613 done
13614
13615 build_xm_file_list=
13616 for f in $build_xm_file; do
13617   case $f in
13618     ansidecl.h )
13619        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13620        build_xm_include_list="${build_xm_include_list} $f"
13621        ;;
13622     auto-build.h | auto-host.h )
13623        build_xm_file_list="${build_xm_file_list} $f"
13624        build_xm_include_list="${build_xm_include_list} $f"
13625        ;;
13626     * )
13627        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13628        build_xm_include_list="${build_xm_include_list} config/$f"
13629        ;;
13630   esac
13631 done
13632
13633 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13634 # cross-compiler which does not use the native headers and libraries.
13635 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13636 CROSS=
13637 ALL=all.internal
13638 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13639
13640 if test "x$with_build_sysroot" != x; then
13641   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13642 else
13643   # This value is used, even on a native system, because
13644   # CROSS_SYSTEM_HEADER_DIR is just
13645   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13646   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13647 fi
13648
13649 if test x$host != x$target
13650 then
13651         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13652         ALL=all.cross
13653         SYSTEM_HEADER_DIR=$build_system_header_dir
13654         case "$host","$target" in
13655         # Darwin crosses can use the host system's libraries and headers,
13656         # because of the fat library support.  Of course, it must be the
13657         # same version of Darwin on both sides.  Allow the user to
13658         # just say --target=foo-darwin without a version number to mean
13659         # "the version on this system".
13660             *-*-darwin*,*-*-darwin*)
13661                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13662                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13663                 if test $hostos = $targetos -o $targetos = darwin ; then
13664                     CROSS=
13665                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13666                     with_headers=yes
13667                 fi
13668                 ;;
13669
13670             i?86-*-*,x86_64-*-* \
13671             | powerpc*-*-*,powerpc64*-*-*)
13672                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13673         esac
13674 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13675         SYSTEM_HEADER_DIR=$build_system_header_dir
13676 fi
13677
13678 # If this is a cross-compiler that does not
13679 # have its own set of headers then define
13680 # inhibit_libc
13681
13682 # If this is using newlib, without having the headers available now,
13683 # then define inhibit_libc in LIBGCC2_CFLAGS.
13684 # This prevents libgcc2 from containing any code which requires libc
13685 # support.
13686 inhibit_libc=false
13687 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13688        test x$with_newlib = xyes ; } &&
13689      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13690        inhibit_libc=true
13691 fi
13692
13693
13694 # When building gcc with a cross-compiler, we need to adjust things so
13695 # that the generator programs are still built with the native compiler.
13696 # Also, we cannot run fixincludes or fix-header.
13697
13698 # These are the normal (build=host) settings:
13699 CC_FOR_BUILD='$(CC)'
13700 BUILD_CFLAGS='$(ALL_CFLAGS)'
13701 STMP_FIXINC=stmp-fixinc
13702
13703 # Possibly disable fixproto, on a per-target basis.
13704 case ${use_fixproto} in
13705   no)
13706     STMP_FIXPROTO=
13707     ;;
13708   yes)
13709     STMP_FIXPROTO=stmp-fixproto
13710     ;;
13711 esac
13712
13713
13714 # And these apply if build != host, or we are generating coverage data
13715 if test x$build != x$host || test "x$coverage_flags" != x
13716 then
13717     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13718
13719     if test "x$TARGET_SYSTEM_ROOT" = x; then
13720         if test "x$STMP_FIXPROTO" != x; then
13721           STMP_FIXPROTO=stmp-install-fixproto
13722         fi
13723     fi
13724 fi
13725
13726 # Expand extra_headers to include complete path.
13727 # This substitutes for lots of t-* files.
13728 extra_headers_list=
13729 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13730 for file in ${extra_headers} ; do
13731   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13732 done
13733
13734 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13735 if test x"$use_gcc_tgmath" = xyes
13736 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13737 fi
13738
13739 # Define collect2 in Makefile.
13740 case $host_can_use_collect2 in
13741   no) collect2= ;;
13742   *) collect2='collect2$(exeext)' ;;
13743 esac
13744
13745
13746 # Add a definition of USE_COLLECT2 if system wants one.
13747 case $use_collect2 in
13748   no) use_collect2= ;;
13749   "") ;;
13750   *)
13751     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13752     xm_defines="${xm_defines} USE_COLLECT2"
13753     case $host_can_use_collect2 in
13754       no)
13755         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13756 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13757    { (exit 1); exit 1; }; }
13758         ;;
13759     esac
13760     ;;
13761 esac
13762
13763 # ---------------------------
13764 # Assembler & linker features
13765 # ---------------------------
13766
13767 # Identify the assembler which will work hand-in-glove with the newly
13768 # built GCC, so that we can examine its features.  This is the assembler
13769 # which will be driven by the driver program.
13770 #
13771 # If build != host, and we aren't building gas in-tree, we identify a
13772 # build->target assembler and hope that it will have the same features
13773 # as the host->target assembler we'll be using.
13774 gcc_cv_gas_major_version=
13775 gcc_cv_gas_minor_version=
13776 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13777
13778 if test "${gcc_cv_as+set}" = set; then
13779   :
13780 else
13781
13782 if test -x "$DEFAULT_ASSEMBLER"; then
13783         gcc_cv_as="$DEFAULT_ASSEMBLER"
13784 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13785      && test -f ../gas/Makefile \
13786      && test x$build = x$host; then
13787         gcc_cv_as=../gas/as-new$build_exeext
13788 elif test -x as$build_exeext; then
13789         # Build using assembler in the current directory.
13790         gcc_cv_as=./as$build_exeext
13791 elif test -x $AS_FOR_TARGET; then
13792         gcc_cv_as="$AS_FOR_TARGET"
13793 else
13794         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13795 set dummy $AS_FOR_TARGET; ac_word=$2
13796 echo "$as_me:$LINENO: checking for $ac_word" >&5
13797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13798 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   case $gcc_cv_as in
13802   [\\/]* | ?:[\\/]*)
13803   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13804   ;;
13805   *)
13806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH
13808 do
13809   IFS=$as_save_IFS
13810   test -z "$as_dir" && as_dir=.
13811   for ac_exec_ext in '' $ac_executable_extensions; do
13812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13813     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13815     break 2
13816   fi
13817 done
13818 done
13819
13820   ;;
13821 esac
13822 fi
13823 gcc_cv_as=$ac_cv_path_gcc_cv_as
13824
13825 if test -n "$gcc_cv_as"; then
13826   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13827 echo "${ECHO_T}$gcc_cv_as" >&6
13828 else
13829   echo "$as_me:$LINENO: result: no" >&5
13830 echo "${ECHO_T}no" >&6
13831 fi
13832
13833 fi
13834 fi
13835
13836
13837 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13838
13839 case "$ORIGINAL_AS_FOR_TARGET" in
13840   ./as | ./as$build_exeext) ;;
13841   *)           ac_config_files="$ac_config_files as:exec-tool.in"
13842  ;;
13843 esac
13844
13845 echo "$as_me:$LINENO: checking what assembler to use" >&5
13846 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13847 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13848   # Single tree build which includes gas.  We want to prefer it
13849   # over whatever linker top-level may have detected, since
13850   # we'll use what we're building after installation anyway.
13851   echo "$as_me:$LINENO: result: newly built gas" >&5
13852 echo "${ECHO_T}newly built gas" >&6
13853   in_tree_gas=yes
13854   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13855 for f in $gcc_cv_as_bfd_srcdir/configure \
13856          $gcc_cv_as_gas_srcdir/configure \
13857          $gcc_cv_as_gas_srcdir/configure.in \
13858          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13859   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13860   if test x$gcc_cv_gas_version != x; then
13861     break
13862   fi
13863 done
13864 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13865 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13866 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13867 case $gcc_cv_gas_patch_version in
13868   "") gcc_cv_gas_patch_version="0" ;;
13869 esac
13870 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13871                             + $gcc_cv_gas_minor_version \) \* 1000 \
13872                             + $gcc_cv_gas_patch_version`
13873
13874   in_tree_gas_is_elf=no
13875   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13876      || (grep 'obj_format = multi' ../gas/Makefile \
13877          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13878   then
13879     in_tree_gas_is_elf=yes
13880   fi
13881 else
13882   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13883 echo "${ECHO_T}$gcc_cv_as" >&6
13884   in_tree_gas=no
13885 fi
13886
13887 # Identify the linker which will work hand-in-glove with the newly
13888 # built GCC, so that we can examine its features.  This is the linker
13889 # which will be driven by the driver program.
13890 #
13891 # If build != host, and we aren't building gas in-tree, we identify a
13892 # build->target linker and hope that it will have the same features
13893 # as the host->target linker we'll be using.
13894 gcc_cv_gld_major_version=
13895 gcc_cv_gld_minor_version=
13896 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13897 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13898
13899 if test "${gcc_cv_ld+set}" = set; then
13900   :
13901 else
13902
13903 if test -x "$DEFAULT_LINKER"; then
13904         gcc_cv_ld="$DEFAULT_LINKER"
13905 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13906      && test -f ../ld/Makefile \
13907      && test x$build = x$host; then
13908         gcc_cv_ld=../ld/ld-new$build_exeext
13909 elif test -x collect-ld$build_exeext; then
13910         # Build using linker in the current directory.
13911         gcc_cv_ld=./collect-ld$build_exeext
13912 elif test -x $LD_FOR_TARGET; then
13913         gcc_cv_ld="$LD_FOR_TARGET"
13914 else
13915         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13916 set dummy $LD_FOR_TARGET; ac_word=$2
13917 echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13919 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922   case $gcc_cv_ld in
13923   [\\/]* | ?:[\\/]*)
13924   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13925   ;;
13926   *)
13927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930   IFS=$as_save_IFS
13931   test -z "$as_dir" && as_dir=.
13932   for ac_exec_ext in '' $ac_executable_extensions; do
13933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936     break 2
13937   fi
13938 done
13939 done
13940
13941   ;;
13942 esac
13943 fi
13944 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13945
13946 if test -n "$gcc_cv_ld"; then
13947   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13948 echo "${ECHO_T}$gcc_cv_ld" >&6
13949 else
13950   echo "$as_me:$LINENO: result: no" >&5
13951 echo "${ECHO_T}no" >&6
13952 fi
13953
13954 fi
13955 fi
13956
13957
13958 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13959
13960 case "$ORIGINAL_LD_FOR_TARGET" in
13961   ./collect-ld | ./collect-ld$build_exeext) ;;
13962   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13963  ;;
13964 esac
13965
13966 echo "$as_me:$LINENO: checking what linker to use" >&5
13967 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13968 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13969         # Single tree build which includes ld.  We want to prefer it
13970         # over whatever linker top-level may have detected, since
13971         # we'll use what we're building after installation anyway.
13972         echo "$as_me:$LINENO: result: newly built ld" >&5
13973 echo "${ECHO_T}newly built ld" >&6
13974         in_tree_ld=yes
13975         in_tree_ld_is_elf=no
13976         if (grep 'EMUL = .*elf' ../ld/Makefile \
13977             || grep 'EMUL = .*linux' ../ld/Makefile \
13978             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13979           in_tree_ld_is_elf=yes
13980         fi
13981         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
13982         do
13983                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13984                 if test x$gcc_cv_gld_version != x; then
13985                         break
13986                 fi
13987         done
13988         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13989         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13990 else
13991         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13992 echo "${ECHO_T}$gcc_cv_ld" >&6
13993         in_tree_ld=no
13994 fi
13995
13996 # Figure out what nm we will be using.
13997 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13998 if test "${gcc_cv_nm+set}" = set; then
13999   :
14000 else
14001
14002 if test -f $gcc_cv_binutils_srcdir/configure.in \
14003      && test -f ../binutils/Makefile \
14004      && test x$build = x$host; then
14005         gcc_cv_nm=../binutils/nm-new$build_exeext
14006 elif test -x nm$build_exeext; then
14007         gcc_cv_nm=./nm$build_exeext
14008 elif test -x $NM_FOR_TARGET; then
14009         gcc_cv_nm="$NM_FOR_TARGET"
14010 else
14011         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14012 set dummy $NM_FOR_TARGET; ac_word=$2
14013 echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14015 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   case $gcc_cv_nm in
14019   [\\/]* | ?:[\\/]*)
14020   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14021   ;;
14022   *)
14023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14025 do
14026   IFS=$as_save_IFS
14027   test -z "$as_dir" && as_dir=.
14028   for ac_exec_ext in '' $ac_executable_extensions; do
14029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032     break 2
14033   fi
14034 done
14035 done
14036
14037   ;;
14038 esac
14039 fi
14040 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14041
14042 if test -n "$gcc_cv_nm"; then
14043   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14044 echo "${ECHO_T}$gcc_cv_nm" >&6
14045 else
14046   echo "$as_me:$LINENO: result: no" >&5
14047 echo "${ECHO_T}no" >&6
14048 fi
14049
14050 fi
14051 fi
14052
14053
14054 echo "$as_me:$LINENO: checking what nm to use" >&5
14055 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
14056 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14057         # Single tree build which includes binutils.
14058         echo "$as_me:$LINENO: result: newly built nm" >&5
14059 echo "${ECHO_T}newly built nm" >&6
14060         in_tree_nm=yes
14061 else
14062         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14063 echo "${ECHO_T}$gcc_cv_nm" >&6
14064         in_tree_nm=no
14065 fi
14066
14067 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14068
14069 case "$ORIGINAL_NM_FOR_TARGET" in
14070   ./nm | ./nm$build_exeext) ;;
14071   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
14072  ;;
14073 esac
14074
14075
14076 # Figure out what objdump we will be using.
14077 if test "${gcc_cv_objdump+set}" = set; then
14078   :
14079 else
14080
14081 if test -f $gcc_cv_binutils_srcdir/configure.in \
14082      && test -f ../binutils/Makefile \
14083      && test x$build = x$host; then
14084         # Single tree build which includes binutils.
14085         gcc_cv_objdump=../binutils/objdump$build_exeext
14086 elif test -x objdump$build_exeext; then
14087         gcc_cv_objdump=./objdump$build_exeext
14088 elif test -x $OBJDUMP_FOR_TARGET; then
14089         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14090 else
14091         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14092 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14093 echo "$as_me:$LINENO: checking for $ac_word" >&5
14094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14095 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   case $gcc_cv_objdump in
14099   [\\/]* | ?:[\\/]*)
14100   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14101   ;;
14102   *)
14103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106   IFS=$as_save_IFS
14107   test -z "$as_dir" && as_dir=.
14108   for ac_exec_ext in '' $ac_executable_extensions; do
14109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14112     break 2
14113   fi
14114 done
14115 done
14116
14117   ;;
14118 esac
14119 fi
14120 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14121
14122 if test -n "$gcc_cv_objdump"; then
14123   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14124 echo "${ECHO_T}$gcc_cv_objdump" >&6
14125 else
14126   echo "$as_me:$LINENO: result: no" >&5
14127 echo "${ECHO_T}no" >&6
14128 fi
14129
14130 fi
14131 fi
14132
14133
14134 echo "$as_me:$LINENO: checking what objdump to use" >&5
14135 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
14136 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14137         # Single tree build which includes binutils.
14138         echo "$as_me:$LINENO: result: newly built objdump" >&5
14139 echo "${ECHO_T}newly built objdump" >&6
14140 elif test x$gcc_cv_objdump = x; then
14141         echo "$as_me:$LINENO: result: not found" >&5
14142 echo "${ECHO_T}not found" >&6
14143 else
14144         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14145 echo "${ECHO_T}$gcc_cv_objdump" >&6
14146 fi
14147
14148 # Figure out what assembler alignment features are present.
14149 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14150 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
14151 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14152   echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154   gcc_cv_as_balign_and_p2align=no
14155     if test $in_tree_gas = yes; then
14156     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14157   then gcc_cv_as_balign_and_p2align=yes
14158 fi
14159   elif test x$gcc_cv_as != x; then
14160     echo '.balign 4
14161 .p2align 2' > conftest.s
14162     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }
14168     then
14169         gcc_cv_as_balign_and_p2align=yes
14170     else
14171       echo "configure: failed program was" >&5
14172       cat conftest.s >&5
14173     fi
14174     rm -f conftest.o conftest.s
14175   fi
14176 fi
14177 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14178 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
14179 if test $gcc_cv_as_balign_and_p2align = yes; then
14180
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14183 _ACEOF
14184
14185 fi
14186
14187 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14188 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
14189 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   gcc_cv_as_max_skip_p2align=no
14193     if test $in_tree_gas = yes; then
14194     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14195   then gcc_cv_as_max_skip_p2align=yes
14196 fi
14197   elif test x$gcc_cv_as != x; then
14198     echo '.p2align 4,,7' > conftest.s
14199     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }
14205     then
14206         gcc_cv_as_max_skip_p2align=yes
14207     else
14208       echo "configure: failed program was" >&5
14209       cat conftest.s >&5
14210     fi
14211     rm -f conftest.o conftest.s
14212   fi
14213 fi
14214 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14215 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
14216 if test $gcc_cv_as_max_skip_p2align = yes; then
14217
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14220 _ACEOF
14221
14222 fi
14223
14224 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14225 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
14226 if test "${gcc_cv_as_literal16+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   gcc_cv_as_literal16=no
14230     if test $in_tree_gas = yes; then
14231     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14232   then gcc_cv_as_literal16=yes
14233 fi
14234   elif test x$gcc_cv_as != x; then
14235     echo '.literal16' > conftest.s
14236     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; }
14242     then
14243         gcc_cv_as_literal16=yes
14244     else
14245       echo "configure: failed program was" >&5
14246       cat conftest.s >&5
14247     fi
14248     rm -f conftest.o conftest.s
14249   fi
14250 fi
14251 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14252 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
14253 if test $gcc_cv_as_literal16 = yes; then
14254
14255 cat >>confdefs.h <<\_ACEOF
14256 #define HAVE_GAS_LITERAL16 1
14257 _ACEOF
14258
14259 fi
14260
14261 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14262 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
14263 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14264   echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266   gcc_cv_as_subsection_m1=no
14267     if test $in_tree_gas = yes; then
14268     if test $in_tree_gas_is_elf = yes \
14269   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14270   then gcc_cv_as_subsection_m1=yes
14271 fi
14272   elif test x$gcc_cv_as != x; then
14273     echo 'conftest_label1: .word 0
14274 .subsection -1
14275 conftest_label2: .word 0
14276 .previous' > conftest.s
14277     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; }
14283     then
14284         if test x$gcc_cv_nm != x; then
14285     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14286     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14287     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14288     then :
14289     else gcc_cv_as_subsection_m1=yes
14290     fi
14291     rm -f conftest.nm1 conftest.nm2
14292   fi
14293     else
14294       echo "configure: failed program was" >&5
14295       cat conftest.s >&5
14296     fi
14297     rm -f conftest.o conftest.s
14298   fi
14299 fi
14300 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14301 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
14302 if test $gcc_cv_as_subsection_m1 = yes; then
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_GAS_SUBSECTION_ORDERING 1
14306 _ACEOF
14307
14308 fi
14309
14310 echo "$as_me:$LINENO: checking assembler for .weak" >&5
14311 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
14312 if test "${gcc_cv_as_weak+set}" = set; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   gcc_cv_as_weak=no
14316     if test $in_tree_gas = yes; then
14317     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14318   then gcc_cv_as_weak=yes
14319 fi
14320   elif test x$gcc_cv_as != x; then
14321     echo '      .weak foobar' > conftest.s
14322     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324   (eval $ac_try) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; }
14328     then
14329         gcc_cv_as_weak=yes
14330     else
14331       echo "configure: failed program was" >&5
14332       cat conftest.s >&5
14333     fi
14334     rm -f conftest.o conftest.s
14335   fi
14336 fi
14337 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14338 echo "${ECHO_T}$gcc_cv_as_weak" >&6
14339 if test $gcc_cv_as_weak = yes; then
14340
14341 cat >>confdefs.h <<\_ACEOF
14342 #define HAVE_GAS_WEAK 1
14343 _ACEOF
14344
14345 fi
14346
14347 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14348 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
14349 if test "${gcc_cv_as_weakref+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   gcc_cv_as_weakref=no
14353     if test $in_tree_gas = yes; then
14354     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14355   then gcc_cv_as_weakref=yes
14356 fi
14357   elif test x$gcc_cv_as != x; then
14358     echo '      .weakref foobar, barfnot' > conftest.s
14359     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361   (eval $ac_try) 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); }; }
14365     then
14366         gcc_cv_as_weakref=yes
14367     else
14368       echo "configure: failed program was" >&5
14369       cat conftest.s >&5
14370     fi
14371     rm -f conftest.o conftest.s
14372   fi
14373 fi
14374 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14375 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
14376 if test $gcc_cv_as_weakref = yes; then
14377
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_GAS_WEAKREF 1
14380 _ACEOF
14381
14382 fi
14383
14384 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14385 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
14386 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14387   echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389   gcc_cv_as_nsubspa_comdat=no
14390     if test $in_tree_gas = yes; then
14391     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14392   then gcc_cv_as_nsubspa_comdat=yes
14393 fi
14394   elif test x$gcc_cv_as != x; then
14395     echo '      .SPACE $TEXT$
14396         .NSUBSPA $CODE$,COMDAT' > conftest.s
14397     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }
14403     then
14404         gcc_cv_as_nsubspa_comdat=yes
14405     else
14406       echo "configure: failed program was" >&5
14407       cat conftest.s >&5
14408     fi
14409     rm -f conftest.o conftest.s
14410   fi
14411 fi
14412 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14413 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14414 if test $gcc_cv_as_nsubspa_comdat = yes; then
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_GAS_NSUBSPA_COMDAT 1
14418 _ACEOF
14419
14420 fi
14421
14422 # .hidden needs to be supported in both the assembler and the linker,
14423 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14424 # This is irritatingly difficult to feature test for; we have to check the
14425 # date string after the version number.  If we've got an in-tree
14426 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14427 # to be safe.
14428 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14429 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14430 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14431 if test "${gcc_cv_as_hidden+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   gcc_cv_as_hidden=no
14435     if test $in_tree_gas = yes; then
14436     if test $in_tree_gas_is_elf = yes \
14437   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14438   then gcc_cv_as_hidden=yes
14439 fi
14440   elif test x$gcc_cv_as != x; then
14441     echo '      .hidden foobar
14442 foobar:' > conftest.s
14443     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }
14449     then
14450         gcc_cv_as_hidden=yes
14451     else
14452       echo "configure: failed program was" >&5
14453       cat conftest.s >&5
14454     fi
14455     rm -f conftest.o conftest.s
14456   fi
14457 fi
14458 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14459 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14460
14461
14462 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14463 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14464 if test "${gcc_cv_ld_hidden+set}" = set; then
14465   echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467   if test $in_tree_ld = yes ; then
14468   gcc_cv_ld_hidden=no
14469   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 \
14470      && test $in_tree_ld_is_elf = yes; then
14471      gcc_cv_ld_hidden=yes
14472   fi
14473 else
14474   gcc_cv_ld_hidden=yes
14475   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14476   if echo "$ld_ver" | grep GNU > /dev/null; then
14477     ld_vers=`echo $ld_ver | sed -n \
14478         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14479     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'`
14480     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14481     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14482     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14483     if test 0"$ld_date" -lt 20020404; then
14484       if test -n "$ld_date"; then
14485         # If there was date string, but was earlier than 2002-04-04, fail
14486         gcc_cv_ld_hidden=no
14487       elif test -z "$ld_vers"; then
14488         # If there was no date string nor ld version number, something is wrong
14489         gcc_cv_ld_hidden=no
14490       else
14491         test -z "$ld_vers_patch" && ld_vers_patch=0
14492         if test "$ld_vers_major" -lt 2; then
14493           gcc_cv_ld_hidden=no
14494         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14495           gcc_cv_ld_hidden="no"
14496         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14497           gcc_cv_ld_hidden=no
14498         fi
14499       fi
14500     fi
14501   else
14502     case "${target}" in
14503       hppa64*-*-hpux* | ia64*-*-hpux*)
14504         gcc_cv_ld_hidden=yes
14505         ;;
14506       *)
14507         gcc_cv_ld_hidden=no
14508         ;;
14509     esac
14510   fi
14511 fi
14512 fi
14513 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14514 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14515 libgcc_visibility=no
14516
14517
14518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14519   libgcc_visibility=yes
14520
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_GAS_HIDDEN 1
14523 _ACEOF
14524
14525 fi
14526
14527 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14528 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14529 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14530 if test "${gcc_cv_as_leb128+set}" = set; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   gcc_cv_as_leb128=no
14534     if test $in_tree_gas = yes; then
14535     if test $in_tree_gas_is_elf = yes \
14536   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14537   then gcc_cv_as_leb128=yes
14538 fi
14539   elif test x$gcc_cv_as != x; then
14540     echo '      .data
14541         .uleb128 L2 - L1
14542 L1:
14543         .uleb128 1280
14544         .sleb128 -1010
14545 L2:' > conftest.s
14546     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }
14552     then
14553         # GAS versions before 2.11 do not support uleb128,
14554   # despite appearing to.
14555   # ??? There exists an elf-specific test that will crash
14556   # the assembler.  Perhaps it's better to figure out whether
14557   # arbitrary sections are supported and try the test.
14558   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14559   if echo "$as_ver" | grep GNU > /dev/null; then
14560     as_vers=`echo $as_ver | sed -n \
14561         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14562     as_major=`expr "$as_vers" : '\([0-9]*\)'`
14563     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14564     if test $as_major -eq 2 && test $as_minor -lt 11
14565     then :
14566     else gcc_cv_as_leb128=yes
14567     fi
14568   fi
14569     else
14570       echo "configure: failed program was" >&5
14571       cat conftest.s >&5
14572     fi
14573     rm -f conftest.o conftest.s
14574   fi
14575 fi
14576 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14577 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14578 if test $gcc_cv_as_leb128 = yes; then
14579
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_AS_LEB128 1
14582 _ACEOF
14583
14584 fi
14585
14586 # GAS versions up to and including 2.11.0 may mis-optimize
14587 # .eh_frame data.
14588 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14589 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14590 if test "${gcc_cv_as_eh_frame+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   gcc_cv_as_eh_frame=no
14594     if test $in_tree_gas = yes; then
14595     if test $in_tree_gas_is_elf = yes \
14596   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14597   then gcc_cv_as_eh_frame=yes
14598 fi
14599   elif test x$gcc_cv_as != x; then
14600     echo '      .text
14601 .LFB1:
14602         .4byte  0
14603 .L1:
14604         .4byte  0
14605 .LFE1:
14606         .section        .eh_frame,"aw",@progbits
14607 __FRAME_BEGIN__:
14608         .4byte  .LECIE1-.LSCIE1
14609 .LSCIE1:
14610         .4byte  0x0
14611         .byte   0x1
14612         .ascii "z\0"
14613         .byte   0x1
14614         .byte   0x78
14615         .byte   0x1a
14616         .byte   0x0
14617         .byte   0x4
14618         .4byte  1
14619         .p2align 1
14620 .LECIE1:
14621 .LSFDE1:
14622         .4byte  .LEFDE1-.LASFDE1
14623 .LASFDE1:
14624         .4byte  .LASFDE1-__FRAME_BEGIN__
14625         .4byte  .LFB1
14626         .4byte  .LFE1-.LFB1
14627         .byte   0x4
14628         .4byte  .LFE1-.LFB1
14629         .byte   0x4
14630         .4byte  .L1-.LFB1
14631 .LEFDE1:' > conftest.s
14632     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }
14638     then
14639           cat > conftest.lit <<EOF
14640  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14641  0010 01000000 12000000 18000000 00000000  ................
14642  0020 08000000 04080000 0044               .........D      
14643 EOF
14644 cat > conftest.big <<EOF
14645  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14646  0010 00000001 00000012 00000018 00000000  ................
14647  0020 00000008 04000000 0844               .........D      
14648 EOF
14649   # If the assembler didn't choke, and we can objdump,
14650   # and we got the correct data, then succeed.
14651   # The text in the here-document typically retains its unix-style line
14652   # endings, while the output of objdump will use host line endings.
14653   # Therefore, use diff -b for the comparisons.
14654   if test x$gcc_cv_objdump != x \
14655   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14656      | tail -3 > conftest.got \
14657   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14658     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14659   then
14660     gcc_cv_as_eh_frame=yes
14661   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; }; then
14667     gcc_cv_as_eh_frame=buggy
14668   else
14669     # Uh oh, what do we do now?
14670     gcc_cv_as_eh_frame=no
14671   fi
14672     else
14673       echo "configure: failed program was" >&5
14674       cat conftest.s >&5
14675     fi
14676     rm -f conftest.o conftest.s
14677   fi
14678 fi
14679 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14680 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14681
14682
14683 if test $gcc_cv_as_eh_frame = buggy; then
14684
14685 cat >>confdefs.h <<\_ACEOF
14686 #define USE_AS_TRADITIONAL_FORMAT 1
14687 _ACEOF
14688
14689 fi
14690
14691 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14692 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14693 if test "${gcc_cv_as_shf_merge+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   gcc_cv_as_shf_merge=no
14697     if test $in_tree_gas = yes; then
14698     if test $in_tree_gas_is_elf = yes \
14699   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14700   then gcc_cv_as_shf_merge=yes
14701 fi
14702   elif test x$gcc_cv_as != x; then
14703     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14704     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706   (eval $ac_try) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; }
14710     then
14711         gcc_cv_as_shf_merge=yes
14712     else
14713       echo "configure: failed program was" >&5
14714       cat conftest.s >&5
14715     fi
14716     rm -f conftest.o conftest.s
14717   fi
14718 fi
14719 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14720 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14721
14722 if test $gcc_cv_as_shf_merge = no; then
14723   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14724 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14725 if test "${gcc_cv_as_shf_merge+set}" = set; then
14726   echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728   gcc_cv_as_shf_merge=no
14729     if test $in_tree_gas = yes; then
14730     if test $in_tree_gas_is_elf = yes \
14731   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14732   then gcc_cv_as_shf_merge=yes
14733 fi
14734   elif test x$gcc_cv_as != x; then
14735     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14736     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }
14742     then
14743         gcc_cv_as_shf_merge=yes
14744     else
14745       echo "configure: failed program was" >&5
14746       cat conftest.s >&5
14747     fi
14748     rm -f conftest.o conftest.s
14749   fi
14750 fi
14751 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14752 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14753
14754 fi
14755
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14758 _ACEOF
14759
14760
14761 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14762 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14763 if test "${gcc_cv_as_comdat_group+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   gcc_cv_as_comdat_group=no
14767     if test $in_tree_gas = yes; then
14768     if test $in_tree_gas_is_elf = yes \
14769   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14770   then gcc_cv_as_comdat_group=yes
14771 fi
14772   elif test x$gcc_cv_as != x; then
14773     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14774     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; }
14780     then
14781         gcc_cv_as_comdat_group=yes
14782     else
14783       echo "configure: failed program was" >&5
14784       cat conftest.s >&5
14785     fi
14786     rm -f conftest.o conftest.s
14787   fi
14788 fi
14789 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14790 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14791
14792 if test $gcc_cv_as_comdat_group = yes; then
14793   gcc_cv_as_comdat_group_percent=no
14794 else
14795  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14796 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14797 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800   gcc_cv_as_comdat_group_percent=no
14801     if test $in_tree_gas = yes; then
14802     if test $in_tree_gas_is_elf = yes \
14803   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14804   then gcc_cv_as_comdat_group_percent=yes
14805 fi
14806   elif test x$gcc_cv_as != x; then
14807     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14808     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }
14814     then
14815         gcc_cv_as_comdat_group_percent=yes
14816     else
14817       echo "configure: failed program was" >&5
14818       cat conftest.s >&5
14819     fi
14820     rm -f conftest.o conftest.s
14821   fi
14822 fi
14823 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14824 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14825
14826 fi
14827 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14828   comdat_group=yes
14829   if test 0"$ld_date" -lt 20050308; then
14830     if test -n "$ld_date"; then
14831       # If there was date string, but was earlier than 2005-03-08, fail
14832       comdat_group=no
14833     elif test "$ld_vers_major" -lt 2; then
14834       comdat_group=no
14835     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14836       comdat_group=no
14837     fi
14838   fi
14839 else
14840   # assume linkers other than GNU ld don't support COMDAT group
14841   comdat_group=no
14842 fi
14843 if test $comdat_group = no; then
14844   gcc_cv_as_comdat_group=no
14845   gcc_cv_as_comdat_group_percent=no
14846 fi
14847
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14850 _ACEOF
14851
14852
14853 # Thread-local storage - the check is heavily parametrized.
14854 conftest_s=
14855 tls_first_major=
14856 tls_first_minor=
14857 tls_as_opt=
14858 case "$target" in
14859   alpha*-*-*)
14860     conftest_s='
14861         .section ".tdata","awT",@progbits
14862 foo:    .long   25
14863         .text
14864         ldq     $27,__tls_get_addr($29)         !literal!1
14865         lda     $16,foo($29)                    !tlsgd!1
14866         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14867         ldq     $27,__tls_get_addr($29)         !literal!2
14868         lda     $16,foo($29)                    !tlsldm!2
14869         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14870         ldq     $1,foo($29)                     !gotdtprel
14871         ldah    $2,foo($29)                     !dtprelhi
14872         lda     $3,foo($2)                      !dtprello
14873         lda     $4,foo($29)                     !dtprel
14874         ldq     $1,foo($29)                     !gottprel
14875         ldah    $2,foo($29)                     !tprelhi
14876         lda     $3,foo($2)                      !tprello
14877         lda     $4,foo($29)                     !tprel'
14878         tls_first_major=2
14879         tls_first_minor=13
14880         tls_as_opt=--fatal-warnings
14881         ;;
14882   frv*-*-*)
14883     conftest_s='
14884         .section ".tdata","awT",@progbits
14885 x:      .long   25
14886         .text
14887         call    #gettlsoff(x)'
14888         tls_first_major=2
14889         tls_first_minor=14
14890         ;;
14891   hppa*-*-linux*)
14892     conftest_s='
14893 t1:     .reg    %r20
14894 t2:     .reg    %r21
14895 gp:     .reg    %r19
14896         .section ".tdata","awT",@progbits
14897 foo:    .long   25
14898         .text
14899         .align  4
14900         addil LT%foo-$tls_gdidx$,gp
14901         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14902         b __tls_get_addr
14903         nop
14904         addil LT%foo-$tls_ldidx$,gp
14905         b __tls_get_addr
14906         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14907         addil LR%foo-$tls_dtpoff$,%ret0
14908         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14909         mfctl %cr27,%t1
14910         addil LT%foo-$tls_ieoff$,gp
14911         ldw RT%foo-$tls_ieoff$(%r1),%t2
14912         add %t1,%t2,%t3
14913         mfctl %cr27,%t1
14914         addil LR%foo-$tls_leoff$,%t1
14915         ldo RR%foo-$tls_leoff$(%r1),%t2'
14916         tls_first_major=2
14917         tls_first_minor=15
14918         tls_as_opt=--fatal-warnings
14919         ;;
14920   arm*-*-*)
14921     conftest_s='
14922         .section ".tdata","awT",%progbits
14923 foo:    .long   25
14924         .text
14925 .word foo(gottpoff)
14926 .word foo(tpoff)
14927 .word foo(tlsgd)
14928 .word foo(tlsldm)
14929 .word foo(tlsldo)'
14930         tls_first_major=2
14931         tls_first_minor=17
14932         ;;
14933   i[34567]86-*-*)
14934     conftest_s='
14935         .section ".tdata","awT",@progbits
14936 foo:    .long   25
14937         .text
14938         movl    %gs:0, %eax
14939         leal    foo@TLSGD(,%ebx,1), %eax
14940         leal    foo@TLSLDM(%ebx), %eax
14941         leal    foo@DTPOFF(%eax), %edx
14942         movl    foo@GOTTPOFF(%ebx), %eax
14943         subl    foo@GOTTPOFF(%ebx), %eax
14944         addl    foo@GOTNTPOFF(%ebx), %eax
14945         movl    foo@INDNTPOFF, %eax
14946         movl    $foo@TPOFF, %eax
14947         subl    $foo@TPOFF, %eax
14948         leal    foo@NTPOFF(%ecx), %eax'
14949         tls_first_major=2
14950         tls_first_minor=14
14951         tls_as_opt=--fatal-warnings
14952         ;;
14953   x86_64-*-*)
14954     conftest_s='
14955         .section ".tdata","awT",@progbits
14956 foo:    .long   25
14957         .text
14958         movq    %fs:0, %rax
14959         leaq    foo@TLSGD(%rip), %rdi
14960         leaq    foo@TLSLD(%rip), %rdi
14961         leaq    foo@DTPOFF(%rax), %rdx
14962         movq    foo@GOTTPOFF(%rip), %rax
14963         movq    $foo@TPOFF, %rax'
14964         tls_first_major=2
14965         tls_first_minor=14
14966         tls_as_opt=--fatal-warnings
14967         ;;
14968   ia64-*-*)
14969     conftest_s='
14970         .section ".tdata","awT",@progbits
14971 foo:    data8   25
14972         .text
14973         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14974         addl    r17 = @ltoff(@dtprel(foo#)), gp
14975         addl    r18 = @ltoff(@tprel(foo#)), gp
14976         addl    r19 = @dtprel(foo#), gp
14977         adds    r21 = @dtprel(foo#), r13
14978         movl    r23 = @dtprel(foo#)
14979         addl    r20 = @tprel(foo#), gp
14980         adds    r22 = @tprel(foo#), r13
14981         movl    r24 = @tprel(foo#)'
14982         tls_first_major=2
14983         tls_first_minor=13
14984         tls_as_opt=--fatal-warnings
14985         ;;
14986   mips*-*-*)
14987     conftest_s='
14988         .section .tdata,"awT",@progbits
14989 x:
14990         .word 2
14991         .text
14992         addiu $4, $28, %tlsgd(x)
14993         addiu $4, $28, %tlsldm(x)
14994         lui $4, %dtprel_hi(x)
14995         addiu $4, $4, %dtprel_lo(x)
14996         lw $4, %gottprel(x)($28)
14997         lui $4, %tprel_hi(x)
14998         addiu $4, $4, %tprel_lo(x)'
14999         tls_first_major=2
15000         tls_first_minor=16
15001         tls_as_opt='-32 --fatal-warnings'
15002         ;;
15003   powerpc-*-*)
15004     conftest_s='
15005         .section ".tdata","awT",@progbits
15006         .align 2
15007 ld0:    .space 4
15008 ld1:    .space 4
15009 x1:     .space 4
15010 x2:     .space 4
15011 x3:     .space 4
15012         .text
15013         addi 3,31,ld0@got@tlsgd
15014         bl __tls_get_addr
15015         addi 3,31,x1@got@tlsld
15016         bl __tls_get_addr
15017         addi 9,3,x1@dtprel
15018         addis 9,3,x2@dtprel@ha
15019         addi 9,9,x2@dtprel@l
15020         lwz 9,x3@got@tprel(31)
15021         add 9,9,x@tls
15022         addi 9,2,x1@tprel
15023         addis 9,2,x2@tprel@ha
15024         addi 9,9,x2@tprel@l'
15025         tls_first_major=2
15026         tls_first_minor=14
15027         tls_as_opt="-a32 --fatal-warnings"
15028         ;;
15029   powerpc64-*-*)
15030     conftest_s='
15031         .section ".tdata","awT",@progbits
15032         .align 3
15033 ld0:    .space 8
15034 ld1:    .space 8
15035 x1:     .space 8
15036 x2:     .space 8
15037 x3:     .space 8
15038         .text
15039         addi 3,2,ld0@got@tlsgd
15040         bl .__tls_get_addr
15041         nop
15042         addi 3,2,ld1@toc
15043         bl .__tls_get_addr
15044         nop
15045         addi 3,2,x1@got@tlsld
15046         bl .__tls_get_addr
15047         nop
15048         addi 9,3,x1@dtprel
15049         bl .__tls_get_addr
15050         nop
15051         addis 9,3,x2@dtprel@ha
15052         addi 9,9,x2@dtprel@l
15053         bl .__tls_get_addr
15054         nop
15055         ld 9,x3@got@dtprel(2)
15056         add 9,9,3
15057         bl .__tls_get_addr
15058         nop'
15059         tls_first_major=2
15060         tls_first_minor=14
15061         tls_as_opt="-a64 --fatal-warnings"
15062         ;;
15063   s390-*-*)
15064     conftest_s='
15065         .section ".tdata","awT",@progbits
15066 foo:    .long   25
15067         .text
15068         .long   foo@TLSGD
15069         .long   foo@TLSLDM
15070         .long   foo@DTPOFF
15071         .long   foo@NTPOFF
15072         .long   foo@GOTNTPOFF
15073         .long   foo@INDNTPOFF
15074         l       %r1,foo@GOTNTPOFF(%r12)
15075         l       %r1,0(%r1):tls_load:foo
15076         bas     %r14,0(%r1,%r13):tls_gdcall:foo
15077         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
15078         tls_first_major=2
15079         tls_first_minor=14
15080         tls_as_opt="-m31 --fatal-warnings"
15081         ;;
15082   s390x-*-*)
15083     conftest_s='
15084         .section ".tdata","awT",@progbits
15085 foo:    .long   25
15086         .text
15087         .quad   foo@TLSGD
15088         .quad   foo@TLSLDM
15089         .quad   foo@DTPOFF
15090         .quad   foo@NTPOFF
15091         .quad   foo@GOTNTPOFF
15092         lg      %r1,foo@GOTNTPOFF(%r12)
15093         larl    %r1,foo@INDNTPOFF
15094         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
15095         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15096         tls_first_major=2
15097         tls_first_minor=14
15098         tls_as_opt="-m64 -Aesame --fatal-warnings"
15099         ;;
15100   sh-*-* | sh[34]-*-*)
15101     conftest_s='
15102         .section ".tdata","awT",@progbits
15103 foo:    .long   25
15104         .text
15105         .long   foo@TLSGD
15106         .long   foo@TLSLDM
15107         .long   foo@DTPOFF
15108         .long   foo@GOTTPOFF
15109         .long   foo@TPOFF'
15110         tls_first_major=2
15111         tls_first_minor=13
15112         tls_as_opt=--fatal-warnings
15113         ;;
15114   sparc*-*-*)
15115     case "$target" in
15116       sparc*-sun-solaris2.[56789]*)
15117         # TLS was introduced in the Solaris 9 4/04 release but
15118         # we do not enable it by default on Solaris 9 either.
15119         if test "x$enable_tls" = xyes ; then
15120           on_solaris=yes
15121         else
15122           enable_tls=no;
15123         fi
15124         ;;
15125       sparc*-sun-solaris2.*)
15126         on_solaris=yes
15127         ;;
15128       *)
15129         on_solaris=no
15130         ;;
15131     esac
15132     if test x$on_solaris = xyes && test x$gas_flag = xno; then
15133       conftest_s='
15134         .section ".tdata",#alloc,#write,#tls
15135 foo:    .long   25
15136         .text
15137         sethi   %tgd_hi22(foo), %o0
15138         add     %o0, %tgd_lo10(foo), %o1
15139         add     %l7, %o1, %o0, %tgd_add(foo)
15140         call    __tls_get_addr, %tgd_call(foo)
15141         sethi   %tldm_hi22(foo), %l1
15142         add     %l1, %tldm_lo10(foo), %l2
15143         add     %l7, %l2, %o0, %tldm_add(foo)
15144         call    __tls_get_addr, %tldm_call(foo)
15145         sethi   %tldo_hix22(foo), %l3
15146         xor     %l3, %tldo_lox10(foo), %l4
15147         add     %o0, %l4, %l5, %tldo_add(foo)
15148         sethi   %tie_hi22(foo), %o3
15149         add     %o3, %tie_lo10(foo), %o3
15150         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15151         add     %g7, %o2, %o4, %tie_add(foo)
15152         sethi   %tle_hix22(foo), %l1
15153         xor     %l1, %tle_lox10(foo), %o5
15154         ld      [%g7 + %o5], %o1'
15155         tls_first_major=0
15156         tls_first_minor=0
15157     else
15158       conftest_s='
15159         .section ".tdata","awT",@progbits
15160 foo:    .long   25
15161         .text
15162         sethi   %tgd_hi22(foo), %o0
15163         add     %o0, %tgd_lo10(foo), %o1
15164         add     %l7, %o1, %o0, %tgd_add(foo)
15165         call    __tls_get_addr, %tgd_call(foo)
15166         sethi   %tldm_hi22(foo), %l1
15167         add     %l1, %tldm_lo10(foo), %l2
15168         add     %l7, %l2, %o0, %tldm_add(foo)
15169         call    __tls_get_addr, %tldm_call(foo)
15170         sethi   %tldo_hix22(foo), %l3
15171         xor     %l3, %tldo_lox10(foo), %l4
15172         add     %o0, %l4, %l5, %tldo_add(foo)
15173         sethi   %tie_hi22(foo), %o3
15174         add     %o3, %tie_lo10(foo), %o3
15175         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15176         add     %g7, %o2, %o4, %tie_add(foo)
15177         sethi   %tle_hix22(foo), %l1
15178         xor     %l1, %tle_lox10(foo), %o5
15179         ld      [%g7 + %o5], %o1'
15180         tls_first_major=2
15181         tls_first_minor=14
15182         tls_as_opt="-32 --fatal-warnings"
15183       fi
15184         ;;
15185 esac
15186 set_have_as_tls=no
15187 if test "x$enable_tls" = xno ; then
15188   : # TLS explicitly disabled.
15189 elif test "x$enable_tls" = xyes ; then
15190   set_have_as_tls=yes # TLS explicitly enabled.
15191 elif test -z "$tls_first_major"; then
15192   : # If we don't have a check, assume no support.
15193 else
15194   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15195 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
15196 if test "${gcc_cv_as_tls+set}" = set; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199   gcc_cv_as_tls=no
15200     if test $in_tree_gas = yes; then
15201     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15202   then gcc_cv_as_tls=yes
15203 fi
15204   elif test x$gcc_cv_as != x; then
15205     echo "$conftest_s" > conftest.s
15206     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; }
15212     then
15213         gcc_cv_as_tls=yes
15214     else
15215       echo "configure: failed program was" >&5
15216       cat conftest.s >&5
15217     fi
15218     rm -f conftest.o conftest.s
15219   fi
15220 fi
15221 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15222 echo "${ECHO_T}$gcc_cv_as_tls" >&6
15223 if test $gcc_cv_as_tls = yes; then
15224   set_have_as_tls=yes
15225 fi
15226 fi
15227 if test $set_have_as_tls = yes ; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_AS_TLS 1
15231 _ACEOF
15232
15233 fi
15234
15235 # Target-specific assembler checks.
15236
15237 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15238 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
15239 gcc_cv_ld_static_dynamic=no
15240 if test $in_tree_ld = yes ; then
15241   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15242     gcc_cv_ld_static_dynamic=yes
15243   fi
15244 elif test x$gcc_cv_ld != x; then
15245         # Check if linker supports -Bstatic/-Bdynamic option
15246         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15247           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15248                 gcc_cv_ld_static_dynamic=yes
15249         fi
15250 fi
15251 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15252
15253 cat >>confdefs.h <<\_ACEOF
15254 #define HAVE_LD_STATIC_DYNAMIC 1
15255 _ACEOF
15256
15257 fi
15258 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15259 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
15260
15261 if test x"$demangler_in_ld" = xyes; then
15262   echo "$as_me:$LINENO: checking linker --demangle support" >&5
15263 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
15264   gcc_cv_ld_demangle=no
15265   if test $in_tree_ld = yes; then
15266     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 \
15267       gcc_cv_ld_demangle=yes
15268     fi
15269   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15270     # Check if the GNU linker supports --demangle option
15271     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15272       gcc_cv_ld_demangle=yes
15273     fi
15274   fi
15275   if test x"$gcc_cv_ld_demangle" = xyes; then
15276
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_LD_DEMANGLE 1
15279 _ACEOF
15280
15281   fi
15282   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15283 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
15284 fi
15285
15286 case "$target" in
15287   # All TARGET_ABI_OSF targets.
15288   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15289     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15290 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15291 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   gcc_cv_as_alpha_explicit_relocs=no
15295     if test $in_tree_gas = yes; then
15296     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15297   then gcc_cv_as_alpha_explicit_relocs=yes
15298 fi
15299   elif test x$gcc_cv_as != x; then
15300     echo '      .set nomacro
15301         .text
15302         extbl   $3, $2, $3      !lituse_bytoff!1
15303         ldq     $2, a($29)      !literal!1
15304         ldq     $4, b($29)      !literal!2
15305         ldq_u   $3, 0($2)       !lituse_base!1
15306         ldq     $27, f($29)     !literal!5
15307         jsr     $26, ($27), f   !lituse_jsr!5
15308         ldah    $29, 0($26)     !gpdisp!3
15309         lda     $0, c($29)      !gprel
15310         ldah    $1, d($29)      !gprelhigh
15311         lda     $1, d($1)       !gprellow
15312         lda     $29, 0($29)     !gpdisp!3' > conftest.s
15313     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; }
15319     then
15320         gcc_cv_as_alpha_explicit_relocs=yes
15321     else
15322       echo "configure: failed program was" >&5
15323       cat conftest.s >&5
15324     fi
15325     rm -f conftest.o conftest.s
15326   fi
15327 fi
15328 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15329 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
15330 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15331
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_AS_EXPLICIT_RELOCS 1
15334 _ACEOF
15335
15336 fi
15337     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15338 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
15339 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   gcc_cv_as_alpha_jsrdirect_relocs=no
15343     if test $in_tree_gas = yes; then
15344     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15345   then gcc_cv_as_alpha_jsrdirect_relocs=yes
15346 fi
15347   elif test x$gcc_cv_as != x; then
15348     echo '      .set nomacro
15349         .text
15350         ldq     $27, a($29)     !literal!1
15351         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
15352     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354   (eval $ac_try) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }
15358     then
15359         gcc_cv_as_alpha_jsrdirect_relocs=yes
15360     else
15361       echo "configure: failed program was" >&5
15362       cat conftest.s >&5
15363     fi
15364     rm -f conftest.o conftest.s
15365   fi
15366 fi
15367 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15368 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
15369 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15370
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_AS_JSRDIRECT_RELOCS 1
15373 _ACEOF
15374
15375 fi
15376     ;;
15377
15378   cris-*-*)
15379     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15380 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
15381 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   gcc_cv_as_cris_no_mul_bug=no
15385     if test $in_tree_gas = yes; then
15386     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15387   then gcc_cv_as_cris_no_mul_bug=yes
15388 fi
15389   elif test x$gcc_cv_as != x; then
15390     echo '.text' > conftest.s
15391     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; }
15397     then
15398         gcc_cv_as_cris_no_mul_bug=yes
15399     else
15400       echo "configure: failed program was" >&5
15401       cat conftest.s >&5
15402     fi
15403     rm -f conftest.o conftest.s
15404   fi
15405 fi
15406 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15407 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
15408 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15409
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15412 _ACEOF
15413
15414 fi
15415     ;;
15416
15417   sparc*-*-*)
15418     echo "$as_me:$LINENO: checking assembler for .register" >&5
15419 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15420 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   gcc_cv_as_sparc_register_op=no
15424   if test x$gcc_cv_as != x; then
15425     echo '.register %g2, #scratch' > conftest.s
15426     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428   (eval $ac_try) 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; }
15432     then
15433         gcc_cv_as_sparc_register_op=yes
15434     else
15435       echo "configure: failed program was" >&5
15436       cat conftest.s >&5
15437     fi
15438     rm -f conftest.o conftest.s
15439   fi
15440 fi
15441 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15442 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15443 if test $gcc_cv_as_sparc_register_op = yes; then
15444
15445 cat >>confdefs.h <<\_ACEOF
15446 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15447 _ACEOF
15448
15449 fi
15450
15451     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15452 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15453 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   gcc_cv_as_sparc_relax=no
15457   if test x$gcc_cv_as != x; then
15458     echo '.text' > conftest.s
15459     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; }
15465     then
15466         gcc_cv_as_sparc_relax=yes
15467     else
15468       echo "configure: failed program was" >&5
15469       cat conftest.s >&5
15470     fi
15471     rm -f conftest.o conftest.s
15472   fi
15473 fi
15474 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15475 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15476 if test $gcc_cv_as_sparc_relax = yes; then
15477
15478 cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_AS_RELAX_OPTION 1
15480 _ACEOF
15481
15482 fi
15483
15484     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15485 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15486 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489   gcc_cv_as_sparc_ua_pcrel=no
15490   if test x$gcc_cv_as != x; then
15491     echo '.text
15492 foo:
15493         nop
15494 .data
15495 .align 4
15496 .byte 0
15497 .uaword %r_disp32(foo)' > conftest.s
15498     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }
15504     then
15505         if test x$gcc_cv_ld != x \
15506        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15507          gcc_cv_as_sparc_ua_pcrel=yes
15508        fi
15509        rm -f conftest
15510     else
15511       echo "configure: failed program was" >&5
15512       cat conftest.s >&5
15513     fi
15514     rm -f conftest.o conftest.s
15515   fi
15516 fi
15517 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15518 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15519 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15520
15521 cat >>confdefs.h <<\_ACEOF
15522 #define HAVE_AS_SPARC_UA_PCREL 1
15523 _ACEOF
15524
15525
15526       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15527 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15528 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   gcc_cv_as_sparc_ua_pcrel_hidden=no
15532   if test x$gcc_cv_as != x; then
15533     echo '.data
15534 .align 4
15535 .byte 0x31
15536 .uaword %r_disp32(foo)
15537 .byte 0x32, 0x33, 0x34
15538 .global foo
15539 .hidden foo
15540 foo:
15541 .skip 4' > conftest.s
15542     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544   (eval $ac_try) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }
15548     then
15549         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15550          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15551          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15552             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15553             if $gcc_cv_objdump -R conftest 2> /dev/null \
15554                | grep 'DISP32' > /dev/null 2>&1; then
15555                 :
15556             else
15557                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15558             fi
15559          fi
15560          rm -f conftest
15561     else
15562       echo "configure: failed program was" >&5
15563       cat conftest.s >&5
15564     fi
15565     rm -f conftest.o conftest.s
15566   fi
15567 fi
15568 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15569 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15570 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15571
15572 cat >>confdefs.h <<\_ACEOF
15573 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15574 _ACEOF
15575
15576 fi
15577
15578 fi # unaligned pcrel relocs
15579
15580     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15581 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15582 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585   gcc_cv_as_sparc_offsetable_lo10=no
15586   if test x$gcc_cv_as != x; then
15587     echo '.text
15588         or %g1, %lo(ab) + 12, %g1
15589         or %g1, %lo(ab + 12), %g1' > conftest.s
15590     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592   (eval $ac_try) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }
15596     then
15597         if test x$gcc_cv_objdump != x \
15598        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15599           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15600          gcc_cv_as_sparc_offsetable_lo10=yes
15601        fi
15602     else
15603       echo "configure: failed program was" >&5
15604       cat conftest.s >&5
15605     fi
15606     rm -f conftest.o conftest.s
15607   fi
15608 fi
15609 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15610 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15611 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15612
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_AS_OFFSETABLE_LO10 1
15615 _ACEOF
15616
15617 fi
15618     ;;
15619
15620   i[34567]86-*-* | x86_64-*-*)
15621     case $target_os in
15622       cygwin* | pe | mingw32*)
15623         # Used for DWARF 2 in PE
15624         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15625 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15626 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629   gcc_cv_as_ix86_pe_secrel32=no
15630     if test $in_tree_gas = yes; then
15631     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15632   then gcc_cv_as_ix86_pe_secrel32=yes
15633 fi
15634   elif test x$gcc_cv_as != x; then
15635     echo '.text
15636 foo:    nop
15637 .data
15638         .secrel32 foo' > conftest.s
15639     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641   (eval $ac_try) 2>&5
15642   ac_status=$?
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); }; }
15645     then
15646         if test x$gcc_cv_ld != x \
15647            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15648              gcc_cv_as_ix86_pe_secrel32=yes
15649            fi
15650            rm -f conftest
15651     else
15652       echo "configure: failed program was" >&5
15653       cat conftest.s >&5
15654     fi
15655     rm -f conftest.o conftest.s
15656   fi
15657 fi
15658 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15659 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15660 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15661
15662 cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_GAS_PE_SECREL32_RELOC 1
15664 _ACEOF
15665
15666 fi
15667         ;;
15668     esac
15669
15670     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15671 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15672 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15673   echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675   gcc_cv_as_ix86_filds_fists=no
15676     if test $in_tree_gas = yes; then
15677     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15678   then gcc_cv_as_ix86_filds_fists=yes
15679 fi
15680   elif test x$gcc_cv_as != x; then
15681     echo 'filds mem; fists mem' > conftest.s
15682     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }
15688     then
15689         gcc_cv_as_ix86_filds_fists=yes
15690     else
15691       echo "configure: failed program was" >&5
15692       cat conftest.s >&5
15693     fi
15694     rm -f conftest.o conftest.s
15695   fi
15696 fi
15697 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15698 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15699 if test $gcc_cv_as_ix86_filds_fists = yes; then
15700
15701 cat >>confdefs.h <<\_ACEOF
15702 #define HAVE_GAS_FILDS_FISTS 1
15703 _ACEOF
15704
15705 fi
15706
15707     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15708 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15709 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   gcc_cv_as_ix86_cmov_sun_syntax=no
15713   if test x$gcc_cv_as != x; then
15714     echo 'cmovl.l %edx, %eax' > conftest.s
15715     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717   (eval $ac_try) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); }; }
15721     then
15722         gcc_cv_as_ix86_cmov_sun_syntax=yes
15723     else
15724       echo "configure: failed program was" >&5
15725       cat conftest.s >&5
15726     fi
15727     rm -f conftest.o conftest.s
15728   fi
15729 fi
15730 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15731 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15732 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15733
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15736 _ACEOF
15737
15738 fi
15739
15740     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15741 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15742 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   gcc_cv_as_ix86_ffreep=no
15746   if test x$gcc_cv_as != x; then
15747     echo 'ffreep %st(1)' > conftest.s
15748     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750   (eval $ac_try) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; }
15754     then
15755         gcc_cv_as_ix86_ffreep=yes
15756     else
15757       echo "configure: failed program was" >&5
15758       cat conftest.s >&5
15759     fi
15760     rm -f conftest.o conftest.s
15761   fi
15762 fi
15763 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15764 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15765 if test $gcc_cv_as_ix86_ffreep = yes; then
15766
15767 cat >>confdefs.h <<\_ACEOF
15768 #define HAVE_AS_IX86_FFREEP 1
15769 _ACEOF
15770
15771 fi
15772
15773     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15774 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15775 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778   gcc_cv_as_ix86_sahf=no
15779   if test x$gcc_cv_as != x; then
15780     echo 'sahf' > conftest.s
15781     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783   (eval $ac_try) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; }
15787     then
15788         gcc_cv_as_ix86_sahf=yes
15789     else
15790       echo "configure: failed program was" >&5
15791       cat conftest.s >&5
15792     fi
15793     rm -f conftest.o conftest.s
15794   fi
15795 fi
15796 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15797 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15798 if test $gcc_cv_as_ix86_sahf = yes; then
15799
15800 cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_AS_IX86_SAHF 1
15802 _ACEOF
15803
15804 fi
15805
15806     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15807 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15808 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   gcc_cv_as_ix86_diff_sect_delta=no
15812   if test x$gcc_cv_as != x; then
15813     echo '.section .rodata
15814 .L1:
15815         .long .L2-.L1
15816         .long .L3-.L1
15817         .text
15818 .L3:    nop
15819 .L2:    nop' > conftest.s
15820     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822   (eval $ac_try) 2>&5
15823   ac_status=$?
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); }; }
15826     then
15827         gcc_cv_as_ix86_diff_sect_delta=yes
15828     else
15829       echo "configure: failed program was" >&5
15830       cat conftest.s >&5
15831     fi
15832     rm -f conftest.o conftest.s
15833   fi
15834 fi
15835 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15836 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15837 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15838
15839 cat >>confdefs.h <<\_ACEOF
15840 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15841 _ACEOF
15842
15843 fi
15844
15845     # This one is used unconditionally by i386.[ch]; it is to be defined
15846     # to 1 if the feature is present, 0 otherwise.
15847     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15848 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15849 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15850   echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852   gcc_cv_as_ix86_gotoff_in_data=no
15853     if test $in_tree_gas = yes; then
15854     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15855   then gcc_cv_as_ix86_gotoff_in_data=yes
15856 fi
15857   elif test x$gcc_cv_as != x; then
15858     echo '      .text
15859 .L0:
15860         nop
15861         .data
15862         .long .L0@GOTOFF' > conftest.s
15863     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }
15869     then
15870         gcc_cv_as_ix86_gotoff_in_data=yes
15871     else
15872       echo "configure: failed program was" >&5
15873       cat conftest.s >&5
15874     fi
15875     rm -f conftest.o conftest.s
15876   fi
15877 fi
15878 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15879 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15880
15881
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15884 _ACEOF
15885
15886     ;;
15887
15888   ia64*-*-*)
15889     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15890 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15891 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15895     if test $in_tree_gas = yes; then
15896     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15897   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15898 fi
15899   elif test x$gcc_cv_as != x; then
15900     echo '      .text
15901         addl r15 = @ltoffx(x#), gp
15902         ;;
15903         ld8.mov r16 = [r15], x#' > conftest.s
15904     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }
15910     then
15911         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15912     else
15913       echo "configure: failed program was" >&5
15914       cat conftest.s >&5
15915     fi
15916     rm -f conftest.o conftest.s
15917   fi
15918 fi
15919 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15920 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15921 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15922
15923 cat >>confdefs.h <<\_ACEOF
15924 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15925 _ACEOF
15926
15927 fi
15928
15929     ;;
15930
15931   powerpc*-*-*)
15932     case $target in
15933       *-*-aix*) conftest_s='    .machine "pwr5"
15934         .csect .text[PR]
15935         mfcr 3,128';;
15936       *-*-darwin*)
15937         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15938 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15939 if test "${gcc_cv_as_machine_directive+set}" = set; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942   gcc_cv_as_machine_directive=no
15943   if test x$gcc_cv_as != x; then
15944     echo '      .machine ppc7400' > conftest.s
15945     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947   (eval $ac_try) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); }; }
15951     then
15952         gcc_cv_as_machine_directive=yes
15953     else
15954       echo "configure: failed program was" >&5
15955       cat conftest.s >&5
15956     fi
15957     rm -f conftest.o conftest.s
15958   fi
15959 fi
15960 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15961 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15962
15963         if test x$gcc_cv_as_machine_directive != xyes; then
15964           echo "*** This target requires an assembler supporting \".machine\"" >&2
15965           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15966           test x$build = x$target && exit 1
15967         fi
15968         conftest_s='    .text
15969         mfcr r3,128';;
15970       *) conftest_s='   .machine power4
15971         .text
15972         mfcr 3,128';;
15973     esac
15974
15975     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15976 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15977 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15978   echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980   gcc_cv_as_powerpc_mfcrf=no
15981     if test $in_tree_gas = yes; then
15982     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15983   then gcc_cv_as_powerpc_mfcrf=yes
15984 fi
15985   elif test x$gcc_cv_as != x; then
15986     echo "$conftest_s" > conftest.s
15987     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; }
15993     then
15994         gcc_cv_as_powerpc_mfcrf=yes
15995     else
15996       echo "configure: failed program was" >&5
15997       cat conftest.s >&5
15998     fi
15999     rm -f conftest.o conftest.s
16000   fi
16001 fi
16002 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16003 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
16004 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16005
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_AS_MFCRF 1
16008 _ACEOF
16009
16010 fi
16011
16012     case $target in
16013       *-*-aix*) conftest_s='    .machine "pwr5"
16014         .csect .text[PR]
16015         popcntb 3,3';;
16016       *) conftest_s='   .machine power5
16017         .text
16018         popcntb 3,3';;
16019     esac
16020
16021     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16022 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
16023 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16024   echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026   gcc_cv_as_powerpc_popcntb=no
16027     if test $in_tree_gas = yes; then
16028     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16029   then gcc_cv_as_powerpc_popcntb=yes
16030 fi
16031   elif test x$gcc_cv_as != x; then
16032     echo "$conftest_s" > conftest.s
16033     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035   (eval $ac_try) 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }
16039     then
16040         gcc_cv_as_powerpc_popcntb=yes
16041     else
16042       echo "configure: failed program was" >&5
16043       cat conftest.s >&5
16044     fi
16045     rm -f conftest.o conftest.s
16046   fi
16047 fi
16048 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16049 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
16050 if test $gcc_cv_as_powerpc_popcntb = yes; then
16051
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_AS_POPCNTB 1
16054 _ACEOF
16055
16056 fi
16057
16058     case $target in
16059       *-*-aix*) conftest_s='    .machine "pwr5x"
16060         .csect .text[PR]
16061         frin 1,1';;
16062       *) conftest_s='   .machine power5
16063         .text
16064         frin 1,1';;
16065     esac
16066
16067     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16068 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
16069 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16070   echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072   gcc_cv_as_powerpc_fprnd=no
16073     if test $in_tree_gas = yes; then
16074     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16075   then gcc_cv_as_powerpc_fprnd=yes
16076 fi
16077   elif test x$gcc_cv_as != x; then
16078     echo "$conftest_s" > conftest.s
16079     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081   (eval $ac_try) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }
16085     then
16086         gcc_cv_as_powerpc_fprnd=yes
16087     else
16088       echo "configure: failed program was" >&5
16089       cat conftest.s >&5
16090     fi
16091     rm -f conftest.o conftest.s
16092   fi
16093 fi
16094 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16095 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
16096 if test $gcc_cv_as_powerpc_fprnd = yes; then
16097
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_AS_FPRND 1
16100 _ACEOF
16101
16102 fi
16103
16104     case $target in
16105       *-*-aix*) conftest_s='    .machine "pwr6"
16106         .csect .text[PR]
16107         mffgpr 1,3';;
16108       *) conftest_s='   .machine power6
16109         .text
16110         mffgpr 1,3';;
16111     esac
16112
16113     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16114 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
16115 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118   gcc_cv_as_powerpc_mfpgpr=no
16119     if test $in_tree_gas = yes; then
16120     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16121   then gcc_cv_as_powerpc_mfpgpr=yes
16122 fi
16123   elif test x$gcc_cv_as != x; then
16124     echo "$conftest_s" > conftest.s
16125     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127   (eval $ac_try) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; }
16131     then
16132         gcc_cv_as_powerpc_mfpgpr=yes
16133     else
16134       echo "configure: failed program was" >&5
16135       cat conftest.s >&5
16136     fi
16137     rm -f conftest.o conftest.s
16138   fi
16139 fi
16140 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16141 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
16142 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16143
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_AS_MFPGPR 1
16146 _ACEOF
16147
16148 fi
16149
16150     case $target in
16151       *-*-aix*) conftest_s='    .csect .text[PR]
16152 LCF..0:
16153         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16154       *-*-darwin*)
16155         conftest_s='    .text
16156 LCF0:
16157         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16158       *) conftest_s='   .text
16159 .LCF0:
16160         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16161     esac
16162
16163     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16164 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
16165 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   gcc_cv_as_powerpc_rel16=no
16169     if test $in_tree_gas = yes; then
16170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16171   then gcc_cv_as_powerpc_rel16=yes
16172 fi
16173   elif test x$gcc_cv_as != x; then
16174     echo "$conftest_s" > conftest.s
16175     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }
16181     then
16182         gcc_cv_as_powerpc_rel16=yes
16183     else
16184       echo "configure: failed program was" >&5
16185       cat conftest.s >&5
16186     fi
16187     rm -f conftest.o conftest.s
16188   fi
16189 fi
16190 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16191 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
16192 if test $gcc_cv_as_powerpc_rel16 = yes; then
16193
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_AS_REL16 1
16196 _ACEOF
16197
16198 fi
16199
16200     case $target in
16201       *-*-aix*) conftest_s='    .machine "pwr6"
16202         .csect .text[PR]
16203         cmpb 3,4,5';;
16204       *) conftest_s='   .machine power6
16205         .text
16206         cmpb 3,4,5';;
16207     esac
16208
16209     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16210 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
16211 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16212   echo $ECHO_N "(cached) $ECHO_C" >&6
16213 else
16214   gcc_cv_as_powerpc_cmpb=no
16215     if test $in_tree_gas = yes; then
16216     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16217   then gcc_cv_as_powerpc_cmpb=yes
16218 fi
16219   elif test x$gcc_cv_as != x; then
16220     echo "$conftest_s" > conftest.s
16221     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223   (eval $ac_try) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; }
16227     then
16228         gcc_cv_as_powerpc_cmpb=yes
16229     else
16230       echo "configure: failed program was" >&5
16231       cat conftest.s >&5
16232     fi
16233     rm -f conftest.o conftest.s
16234   fi
16235 fi
16236 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16237 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
16238 if test $gcc_cv_as_powerpc_cmpb = yes; then
16239
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE_AS_CMPB 1
16242 _ACEOF
16243
16244 fi
16245
16246     case $target in
16247       *-*-aix*) conftest_s='    .machine "pwr6"
16248         .csect .text[PR]
16249         dadd 1,2,3';;
16250       *) conftest_s='   .machine power6
16251         .text
16252         dadd 1,2,3';;
16253     esac
16254
16255     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16256 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
16257 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16258   echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260   gcc_cv_as_powerpc_dfp=no
16261     if test $in_tree_gas = yes; then
16262     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16263   then gcc_cv_as_powerpc_dfp=yes
16264 fi
16265   elif test x$gcc_cv_as != x; then
16266     echo "$conftest_s" > conftest.s
16267     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }
16273     then
16274         gcc_cv_as_powerpc_dfp=yes
16275     else
16276       echo "configure: failed program was" >&5
16277       cat conftest.s >&5
16278     fi
16279     rm -f conftest.o conftest.s
16280   fi
16281 fi
16282 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16283 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
16284 if test $gcc_cv_as_powerpc_dfp = yes; then
16285
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_AS_DFP 1
16288 _ACEOF
16289
16290 fi
16291
16292     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16293 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16294 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
16295   echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297   gcc_cv_as_powerpc_gnu_attribute=no
16298     if test $in_tree_gas = yes; then
16299     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16300   then gcc_cv_as_powerpc_gnu_attribute=yes
16301 fi
16302   elif test x$gcc_cv_as != x; then
16303     echo '.gnu_attribute 4,1' > conftest.s
16304     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; }
16310     then
16311         gcc_cv_as_powerpc_gnu_attribute=yes
16312     else
16313       echo "configure: failed program was" >&5
16314       cat conftest.s >&5
16315     fi
16316     rm -f conftest.o conftest.s
16317   fi
16318 fi
16319 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
16320 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
16321 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_AS_GNU_ATTRIBUTE 1
16325 _ACEOF
16326
16327 fi
16328     ;;
16329
16330   mips*-*-*)
16331     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16332 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
16333 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336   gcc_cv_as_mips_explicit_relocs=no
16337     if test $in_tree_gas = yes; then
16338     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16339   then gcc_cv_as_mips_explicit_relocs=yes
16340 fi
16341   elif test x$gcc_cv_as != x; then
16342     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
16343     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }
16349     then
16350         gcc_cv_as_mips_explicit_relocs=yes
16351     else
16352       echo "configure: failed program was" >&5
16353       cat conftest.s >&5
16354     fi
16355     rm -f conftest.o conftest.s
16356   fi
16357 fi
16358 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16359 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
16360 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16361   if test x$target_cpu_default = x
16362        then target_cpu_default=MASK_EXPLICIT_RELOCS
16363        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16364        fi
16365 fi
16366     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16367 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
16368 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371   gcc_cv_as_mips_no_shared=no
16372     if test $in_tree_gas = yes; then
16373     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16374   then gcc_cv_as_mips_no_shared=yes
16375 fi
16376   elif test x$gcc_cv_as != x; then
16377     echo 'nop' > conftest.s
16378     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380   (eval $ac_try) 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }
16384     then
16385         gcc_cv_as_mips_no_shared=yes
16386     else
16387       echo "configure: failed program was" >&5
16388       cat conftest.s >&5
16389     fi
16390     rm -f conftest.o conftest.s
16391   fi
16392 fi
16393 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16394 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
16395 if test $gcc_cv_as_mips_no_shared = yes; then
16396
16397 cat >>confdefs.h <<\_ACEOF
16398 #define HAVE_AS_NO_SHARED 1
16399 _ACEOF
16400
16401 fi
16402
16403     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16404 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16405 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
16406   echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408   gcc_cv_as_mips_gnu_attribute=no
16409     if test $in_tree_gas = yes; then
16410     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16411   then gcc_cv_as_mips_gnu_attribute=yes
16412 fi
16413   elif test x$gcc_cv_as != x; then
16414     echo '.gnu_attribute 4,1' > conftest.s
16415     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }
16421     then
16422         gcc_cv_as_mips_gnu_attribute=yes
16423     else
16424       echo "configure: failed program was" >&5
16425       cat conftest.s >&5
16426     fi
16427     rm -f conftest.o conftest.s
16428   fi
16429 fi
16430 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16431 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16432 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16433
16434 cat >>confdefs.h <<\_ACEOF
16435 #define HAVE_AS_GNU_ATTRIBUTE 1
16436 _ACEOF
16437
16438 fi
16439
16440     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16441 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16442 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   gcc_cv_as_mips_dtprelword=no
16446     if test $in_tree_gas = yes; then
16447     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16448   then gcc_cv_as_mips_dtprelword=yes
16449 fi
16450   elif test x$gcc_cv_as != x; then
16451     echo '.section .tdata,"awT",@progbits
16452 x:
16453         .word 2
16454         .text
16455         .dtprelword x+0x8000' > conftest.s
16456     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458   (eval $ac_try) 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); }; }
16462     then
16463         gcc_cv_as_mips_dtprelword=yes
16464     else
16465       echo "configure: failed program was" >&5
16466       cat conftest.s >&5
16467     fi
16468     rm -f conftest.o conftest.s
16469   fi
16470 fi
16471 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16472 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16473 if test $gcc_cv_as_mips_dtprelword = yes; then
16474
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_AS_DTPRELWORD 1
16477 _ACEOF
16478
16479 fi
16480     ;;
16481 esac
16482
16483 # Mips and HP-UX need the GNU assembler.
16484 # Linux on IA64 might be able to use the Intel assembler.
16485
16486 case "$target" in
16487   mips*-*-* | *-*-hpux* )
16488     if test x$gas_flag = xyes \
16489        || test x"$host" != x"$build" \
16490        || test ! -x "$gcc_cv_as" \
16491        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16492       :
16493     else
16494       echo "*** This configuration requires the GNU assembler" >&2
16495       exit 1
16496     fi
16497     ;;
16498 esac
16499
16500 # ??? Not all targets support dwarf2 debug_line, even within a version
16501 # of gas.  Moreover, we need to emit a valid instruction to trigger any
16502 # info to the output file.  So, as supported targets are added to gas 2.11,
16503 # add some instruction here to (also) show we expect this might work.
16504 # ??? Once 2.11 is released, probably need to add first known working
16505 # version to the per-target configury.
16506 case "$target" in
16507   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16508   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16509   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16510     insn="nop"
16511     ;;
16512   ia64*-*-* | s390*-*-*)
16513     insn="nop 0"
16514     ;;
16515   mmix-*-*)
16516     insn="swym 0"
16517     ;;
16518 esac
16519 if test x"$insn" != x; then
16520  conftest_s="\
16521         .file 1 \"conftest.s\"
16522         .loc 1 3 0
16523         $insn"
16524  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16525 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16526 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   gcc_cv_as_dwarf2_debug_line=no
16530     if test $in_tree_gas = yes; then
16531     if test $in_tree_gas_is_elf = yes \
16532   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16533   then gcc_cv_as_dwarf2_debug_line=yes
16534 fi
16535   elif test x$gcc_cv_as != x; then
16536     echo "$conftest_s" > conftest.s
16537     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539   (eval $ac_try) 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; }
16543     then
16544         if test x$gcc_cv_objdump != x \
16545    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16546       | grep debug_line > /dev/null 2>&1; then
16547      gcc_cv_as_dwarf2_debug_line=yes
16548    fi
16549     else
16550       echo "configure: failed program was" >&5
16551       cat conftest.s >&5
16552     fi
16553     rm -f conftest.o conftest.s
16554   fi
16555 fi
16556 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16557 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16558
16559
16560 # The .debug_line file table must be in the exact order that
16561 # we specified the files, since these indices are also used
16562 # by DW_AT_decl_file.  Approximate this test by testing if
16563 # the assembler bitches if the same index is assigned twice.
16564  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16565 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16566 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   gcc_cv_as_dwarf2_file_buggy=no
16570   if test x$gcc_cv_as != x; then
16571     echo '      .file 1 "foo.s"
16572         .file 1 "bar.s"' > conftest.s
16573     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575   (eval $ac_try) 2>&5
16576   ac_status=$?
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); }; }
16579     then
16580         gcc_cv_as_dwarf2_file_buggy=yes
16581     else
16582       echo "configure: failed program was" >&5
16583       cat conftest.s >&5
16584     fi
16585     rm -f conftest.o conftest.s
16586   fi
16587 fi
16588 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16589 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16590
16591
16592  if test $gcc_cv_as_dwarf2_debug_line = yes \
16593  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16594
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16597 _ACEOF
16598
16599  fi
16600
16601  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16602 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16603 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16604   echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606   gcc_cv_as_gdwarf2_flag=no
16607     if test $in_tree_gas = yes; then
16608     if test $in_tree_gas_is_elf = yes \
16609   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16610   then gcc_cv_as_gdwarf2_flag=yes
16611 fi
16612   elif test x$gcc_cv_as != x; then
16613     echo "$insn" > conftest.s
16614     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616   (eval $ac_try) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; }
16620     then
16621         gcc_cv_as_gdwarf2_flag=yes
16622     else
16623       echo "configure: failed program was" >&5
16624       cat conftest.s >&5
16625     fi
16626     rm -f conftest.o conftest.s
16627   fi
16628 fi
16629 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16630 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16631 if test $gcc_cv_as_gdwarf2_flag = yes; then
16632
16633 cat >>confdefs.h <<\_ACEOF
16634 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16635 _ACEOF
16636
16637 fi
16638
16639  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16640 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16641 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   gcc_cv_as_gstabs_flag=no
16645     if test $in_tree_gas = yes; then
16646     if test $in_tree_gas_is_elf = yes \
16647   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16648   then gcc_cv_as_gstabs_flag=yes
16649 fi
16650   elif test x$gcc_cv_as != x; then
16651     echo "$insn" > conftest.s
16652     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }
16658     then
16659         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16660    # and warns about it, but still exits successfully.  So check for
16661    # this.
16662    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664   (eval $ac_try) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); }; }
16668    then :
16669    else gcc_cv_as_gstabs_flag=yes
16670    fi
16671     else
16672       echo "configure: failed program was" >&5
16673       cat conftest.s >&5
16674     fi
16675     rm -f conftest.o conftest.s
16676   fi
16677 fi
16678 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16679 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16680 if test $gcc_cv_as_gstabs_flag = yes; then
16681
16682 cat >>confdefs.h <<\_ACEOF
16683 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16684 _ACEOF
16685
16686 fi
16687
16688  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16689 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16690 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16691   echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693   gcc_cv_as_debug_prefix_map_flag=no
16694     if test $in_tree_gas = yes; then
16695     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16696   then gcc_cv_as_debug_prefix_map_flag=yes
16697 fi
16698   elif test x$gcc_cv_as != x; then
16699     echo "$insn" > conftest.s
16700     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702   (eval $ac_try) 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; }
16706     then
16707         gcc_cv_as_debug_prefix_map_flag=yes
16708     else
16709       echo "configure: failed program was" >&5
16710       cat conftest.s >&5
16711     fi
16712     rm -f conftest.o conftest.s
16713   fi
16714 fi
16715 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16716 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16717 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16718
16719 cat >>confdefs.h <<\_ACEOF
16720 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16721 _ACEOF
16722
16723 fi
16724 fi
16725
16726 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16727 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16728 if test "${gcc_cv_as_line_zero+set}" = set; then
16729   echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731   gcc_cv_as_line_zero=no
16732   if test $in_tree_gas = yes; then
16733     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16734   then gcc_cv_as_line_zero=yes
16735 fi
16736   elif test "x$gcc_cv_as" != x; then
16737     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16738     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; } &&
16744        test "x`cat conftest.out`" = x
16745     then
16746       gcc_cv_as_line_zero=yes
16747     else
16748       echo "configure: failed program was" >&5
16749       cat conftest.s >&5
16750       echo "configure: error output was" >&5
16751       cat conftest.out >&5
16752     fi
16753     rm -f conftest.o conftest.s conftest.out
16754   fi
16755 fi
16756 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16757 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16758 if test "x$gcc_cv_as_line_zero" = xyes; then
16759
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_AS_LINE_ZERO 1
16762 _ACEOF
16763
16764 fi
16765
16766 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16767 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16768 gcc_cv_ld_ro_rw_mix=unknown
16769 if test $in_tree_ld = yes ; then
16770   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 \
16771      && test $in_tree_ld_is_elf = yes; then
16772     gcc_cv_ld_ro_rw_mix=read-write
16773   fi
16774 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16775   echo '.section myfoosect, "a"' > conftest1.s
16776   echo '.section myfoosect, "aw"' > conftest2.s
16777   echo '.byte 1' >> conftest2.s
16778   echo '.section myfoosect, "a"' > conftest3.s
16779   echo '.byte 0' >> conftest3.s
16780   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16781      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16782      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16783      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16784         conftest2.o conftest3.o > /dev/null 2>&1; then
16785     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16786                          | sed -e '/myfoosect/!d' -e N`
16787     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16788       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16789         gcc_cv_ld_ro_rw_mix=read-only
16790       else
16791         gcc_cv_ld_ro_rw_mix=read-write
16792       fi
16793     fi
16794   fi
16795   rm -f conftest.* conftest[123].*
16796 fi
16797 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16798
16799 cat >>confdefs.h <<\_ACEOF
16800 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16801 _ACEOF
16802
16803 fi
16804 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16805 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16806
16807 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16808 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16809 gcc_cv_ld_eh_frame_hdr=no
16810 if test $in_tree_ld = yes ; then
16811   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 \
16812      && test $in_tree_ld_is_elf = yes; then
16813     gcc_cv_ld_eh_frame_hdr=yes
16814   fi
16815 elif test x$gcc_cv_ld != x; then
16816         # Check if linker supports --eh-frame-hdr option
16817         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16818                 gcc_cv_ld_eh_frame_hdr=yes
16819         fi
16820 fi
16821
16822 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16823
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_LD_EH_FRAME_HDR 1
16826 _ACEOF
16827
16828 fi
16829 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16830 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16831
16832 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16833 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16834 gcc_cv_ld_pie=no
16835 if test $in_tree_ld = yes ; then
16836   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 \
16837      && test $in_tree_ld_is_elf = yes; then
16838     gcc_cv_ld_pie=yes
16839   fi
16840 elif test x$gcc_cv_ld != x; then
16841         # Check if linker supports -pie option
16842         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16843                 gcc_cv_ld_pie=yes
16844         fi
16845 fi
16846 if test x"$gcc_cv_ld_pie" = xyes; then
16847
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_LD_PIE 1
16850 _ACEOF
16851
16852 fi
16853 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16854 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16855
16856 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16857 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16858 gcc_cv_ld_eh_gc_sections=no
16859 if test $in_tree_ld = yes ; then
16860   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16861      && test $in_tree_ld_is_elf = yes; then
16862     gcc_cv_ld_eh_gc_sections=yes
16863   fi
16864 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16865   cat > conftest.s <<EOF
16866         .section        .text
16867 .globl _start
16868         .type _start, @function
16869 _start:
16870         .long foo
16871         .size _start, .-_start
16872         .section        .text.foo,"ax",@progbits
16873         .type foo, @function
16874 foo:
16875         .long 0
16876         .size foo, .-foo
16877         .section        .gcc_except_table.foo,"a",@progbits
16878 .L0:
16879         .long 0
16880         .section        .eh_frame,"a",@progbits
16881         .long .L0
16882 EOF
16883   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16884     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16885          | grep "gc-sections option ignored" > /dev/null; then
16886       gcc_cv_ld_eh_gc_sections=no
16887     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16888       gcc_cv_ld_eh_gc_sections=yes
16889       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16890       if test x$gcc_cv_as_comdat_group != xyes; then
16891         gcc_cv_ld_eh_gc_sections=no
16892         cat > conftest.s <<EOF
16893         .section        .text
16894 .globl _start
16895         .type _start, @function
16896 _start:
16897         .long foo
16898         .size _start, .-_start
16899         .section        .gnu.linkonce.t.foo,"ax",@progbits
16900         .type foo, @function
16901 foo:
16902         .long 0
16903         .size foo, .-foo
16904         .section        .gcc_except_table.foo,"a",@progbits
16905 .L0:
16906         .long 0
16907         .section        .eh_frame,"a",@progbits
16908         .long .L0
16909 EOF
16910         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16911           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16912                | grep "gc-sections option ignored" > /dev/null; then
16913             gcc_cv_ld_eh_gc_sections=no
16914           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16915             gcc_cv_ld_eh_gc_sections=yes
16916           fi
16917         fi
16918       fi
16919     fi
16920   fi
16921   rm -f conftest.s conftest.o conftest
16922 fi
16923 case "$target" in
16924   hppa*-*-linux*)
16925     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16926     gcc_cv_ld_eh_gc_sections=no
16927     ;;
16928 esac
16929 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16930
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_LD_EH_GC_SECTIONS 1
16933 _ACEOF
16934
16935 fi
16936 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16937 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16938
16939 # --------
16940 # UNSORTED
16941 # --------
16942
16943 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16944 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16945 if test "${gcc_cv_ld_as_needed+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   gcc_cv_ld_as_needed=no
16949 if test $in_tree_ld = yes ; then
16950   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 \
16951      && test $in_tree_ld_is_elf = yes; then
16952     gcc_cv_ld_as_needed=yes
16953   fi
16954 elif test x$gcc_cv_ld != x; then
16955         # Check if linker supports --as-needed and --no-as-needed options
16956         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16957                 gcc_cv_ld_as_needed=yes
16958         fi
16959 fi
16960
16961 fi
16962 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16963 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16964 if test x"$gcc_cv_ld_as_needed" = xyes; then
16965
16966 cat >>confdefs.h <<\_ACEOF
16967 #define HAVE_LD_AS_NEEDED 1
16968 _ACEOF
16969
16970 fi
16971
16972 case "$target:$tm_file" in
16973   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16974     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16975 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16976 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16977   echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979   gcc_cv_ld_no_dot_syms=no
16980     if test $in_tree_ld = yes ; then
16981       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
16982         gcc_cv_ld_no_dot_syms=yes
16983       fi
16984     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16985       cat > conftest1.s <<EOF
16986         .text
16987         bl .foo
16988 EOF
16989       cat > conftest2.s <<EOF
16990         .section ".opd","aw"
16991         .align 3
16992         .globl foo
16993         .type foo,@function
16994 foo:
16995         .quad .LEfoo,.TOC.@tocbase,0
16996         .text
16997 .LEfoo:
16998         blr
16999         .size foo,.-.LEfoo
17000 EOF
17001       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
17002          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
17003          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
17004         gcc_cv_ld_no_dot_syms=yes
17005       fi
17006       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
17007     fi
17008
17009 fi
17010 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
17011 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
17012     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
17013
17014 cat >>confdefs.h <<\_ACEOF
17015 #define HAVE_LD_NO_DOT_SYMS 1
17016 _ACEOF
17017
17018     fi
17019     ;;
17020 esac
17021
17022 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
17023 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
17024 if test "${gcc_cv_ld_sysroot+set}" = set; then
17025   echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027   gcc_cv_ld_sysroot=no
17028   if test $in_tree_ld = yes ; then
17029       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
17030         gcc_cv_ld_sysroot=yes
17031       fi
17032   elif test x$gcc_cv_ld != x; then
17033     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
17034       gcc_cv_ld_sysroot=yes
17035     fi
17036   fi
17037 fi
17038 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
17039 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
17040 if test x"$gcc_cv_ld_sysroot" = xyes; then
17041
17042 cat >>confdefs.h <<\_ACEOF
17043 #define HAVE_LD_SYSROOT 1
17044 _ACEOF
17045
17046 fi
17047
17048 if test x$with_sysroot = x && test x$host = x$target \
17049    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
17050    && test "$prefix" != "NONE"; then
17051
17052 cat >>confdefs.h <<_ACEOF
17053 #define PREFIX_INCLUDE_DIR "$prefix/include"
17054 _ACEOF
17055
17056 fi
17057
17058 # Test for stack protector support in target C library.
17059 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
17060 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
17061 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   gcc_cv_libc_provides_ssp=no
17065     case "$target" in
17066        *-*-linux*)
17067       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17068         if test "x$with_sysroot" = x; then
17069           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17070         elif test "x$with_build_sysroot" != "x"; then
17071           glibc_header_dir="${with_build_sysroot}/usr/include"
17072         elif test "x$with_sysroot" = xyes; then
17073           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17074         else
17075           glibc_header_dir="${with_sysroot}/usr/include"
17076         fi
17077       else
17078         glibc_header_dir=/usr/include
17079       fi
17080       # glibc 2.4 and later provides __stack_chk_fail and
17081       # either __stack_chk_guard, or TLS access to stack guard canary.
17082       if test -f $glibc_header_dir/features.h \
17083          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
17084             $glibc_header_dir/features.h > /dev/null; then
17085         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
17086            $glibc_header_dir/features.h > /dev/null; then
17087           gcc_cv_libc_provides_ssp=yes
17088         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
17089              $glibc_header_dir/features.h > /dev/null \
17090              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
17091              $glibc_header_dir/features.h > /dev/null; then
17092           gcc_cv_libc_provides_ssp=yes
17093         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
17094              $glibc_header_dir/features.h > /dev/null && \
17095              test -f $glibc_header_dir/bits/uClibc_config.h && \
17096              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
17097              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
17098           gcc_cv_libc_provides_ssp=yes
17099         fi
17100       fi
17101         ;;
17102        *-*-darwin*)
17103          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
17104 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
17105 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
17115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17116 #define __stack_chk_fail innocuous___stack_chk_fail
17117
17118 /* System header to define __stub macros and hopefully few prototypes,
17119     which can conflict with char __stack_chk_fail (); below.
17120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17121     <limits.h> exists even on freestanding compilers.  */
17122
17123 #ifdef __STDC__
17124 # include <limits.h>
17125 #else
17126 # include <assert.h>
17127 #endif
17128
17129 #undef __stack_chk_fail
17130
17131 /* Override any gcc2 internal prototype to avoid an error.  */
17132 #ifdef __cplusplus
17133 extern "C"
17134 {
17135 #endif
17136 /* We use char because int might match the return type of a gcc2
17137    builtin and then its argument prototype would still apply.  */
17138 char __stack_chk_fail ();
17139 /* The GNU C library defines this for functions which it implements
17140     to always fail with ENOSYS.  Some functions are actually named
17141     something starting with __ and the normal name is an alias.  */
17142 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
17143 choke me
17144 #else
17145 char (*f) () = __stack_chk_fail;
17146 #endif
17147 #ifdef __cplusplus
17148 }
17149 #endif
17150
17151 int
17152 main ()
17153 {
17154 return f != __stack_chk_fail;
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17161   (eval $ac_link) 2>conftest.er1
17162   ac_status=$?
17163   grep -v '^ *+' conftest.er1 >conftest.err
17164   rm -f conftest.er1
17165   cat conftest.err >&5
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); } &&
17168          { ac_try='test -z "$ac_c_werror_flag"
17169                          || test ! -s conftest.err'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; } &&
17175          { ac_try='test -s conftest$ac_exeext'
17176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177   (eval $ac_try) 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; }; then
17181   ac_cv_func___stack_chk_fail=yes
17182 else
17183   echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 ac_cv_func___stack_chk_fail=no
17187 fi
17188 rm -f conftest.err conftest.$ac_objext \
17189       conftest$ac_exeext conftest.$ac_ext
17190 fi
17191 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
17192 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
17193 if test $ac_cv_func___stack_chk_fail = yes; then
17194   gcc_cv_libc_provides_ssp=yes
17195 else
17196   echo "no __stack_chk_fail on this target"
17197 fi
17198
17199         ;;
17200   *) gcc_cv_libc_provides_ssp=no ;;
17201     esac
17202 fi
17203 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17204 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
17205
17206 if test x$gcc_cv_libc_provides_ssp = xyes; then
17207
17208 cat >>confdefs.h <<\_ACEOF
17209 #define TARGET_LIBC_PROVIDES_SSP 1
17210 _ACEOF
17211
17212 fi
17213
17214 # Check if TFmode long double should be used by default or not.
17215 # Some glibc targets used DFmode long double, but with glibc 2.4
17216 # and later they can use TFmode.
17217 case "$target" in
17218   powerpc*-*-linux* | \
17219   powerpc*-*-gnu* | \
17220   sparc*-*-linux* | \
17221   s390*-*-linux* | \
17222   alpha*-*-linux*)
17223
17224 # Check whether --with-long-double-128 or --without-long-double-128 was given.
17225 if test "${with_long_double_128+set}" = set; then
17226   withval="$with_long_double_128"
17227   gcc_cv_target_ldbl128="$with_long_double_128"
17228 else
17229   gcc_cv_target_ldbl128=no
17230       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17231         if test "x$with_sysroot" = x; then
17232           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17233         elif test "x$with_build_sysroot" != "x"; then
17234           glibc_header_dir="${with_build_sysroot}/usr/include"
17235         elif test "x$with_sysroot" = xyes; then
17236           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17237         else
17238           glibc_header_dir="${with_sysroot}/usr/include"
17239         fi
17240       else
17241         glibc_header_dir=/usr/include
17242       fi
17243       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17244         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17245       && gcc_cv_target_ldbl128=yes
17246
17247 fi;
17248     ;;
17249 esac
17250 if test x$gcc_cv_target_ldbl128 = xyes; then
17251
17252 cat >>confdefs.h <<\_ACEOF
17253 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17254 _ACEOF
17255
17256 fi
17257
17258 # Find out what GC implementation we want, or may, use.
17259
17260 # Check whether --with-gc or --without-gc was given.
17261 if test "${with_gc+set}" = set; then
17262   withval="$with_gc"
17263   case "$withval" in
17264   page)
17265     GGC=ggc-$withval
17266     ;;
17267   zone)
17268     GGC=ggc-$withval
17269
17270 cat >>confdefs.h <<\_ACEOF
17271 #define GGC_ZONE 1
17272 _ACEOF
17273
17274     ;;
17275   *)
17276     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17277 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17278    { (exit 1); exit 1; }; }
17279     ;;
17280 esac
17281 else
17282   GGC=ggc-page
17283 fi;
17284
17285 echo "Using $GGC for garbage collection."
17286
17287 # Use the system's zlib library.
17288 zlibdir=-L../zlib
17289 zlibinc="-I\$(srcdir)/../zlib"
17290
17291 # Check whether --with-system-zlib or --without-system-zlib was given.
17292 if test "${with_system_zlib+set}" = set; then
17293   withval="$with_system_zlib"
17294   zlibdir=
17295 zlibinc=
17296
17297 fi;
17298
17299
17300
17301
17302 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17303 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
17304     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
17305 if test "${enable_maintainer_mode+set}" = set; then
17306   enableval="$enable_maintainer_mode"
17307   maintainer_mode=$enableval
17308 else
17309   maintainer_mode=no
17310 fi;
17311
17312 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17313 echo "${ECHO_T}$maintainer_mode" >&6
17314
17315 if test "$maintainer_mode" = "yes"; then
17316   MAINT=''
17317 else
17318   MAINT='#'
17319 fi
17320
17321 # --------------
17322 # Language hooks
17323 # --------------
17324
17325 # Make empty files to contain the specs and options for each language.
17326 # Then add #include lines to for a compiler that has specs and/or options.
17327
17328 subdirs=
17329 lang_opt_files=
17330 lang_specs_files=
17331 lang_tree_files=
17332 # These (without "all_") are set in each config-lang.in.
17333 # `language' must be a single word so is spelled singularly.
17334 all_languages=
17335 all_compilers=
17336 all_outputs='Makefile gccbug libada-mk'
17337 # List of language makefile fragments.
17338 all_lang_makefrags=
17339 # List of language subdirectory makefiles.  Deprecated.
17340 all_lang_makefiles=
17341 # Additional files for gengtype
17342 all_gtfiles="$target_gtfiles"
17343
17344 # These are the languages that are set in --enable-languages,
17345 # and are available in the GCC tree.
17346 all_selected_languages=
17347
17348 # Add the language fragments.
17349 # Languages are added via two mechanisms.  Some information must be
17350 # recorded in makefile variables, these are defined in config-lang.in.
17351 # We accumulate them and plug them into the main Makefile.
17352 # The other mechanism is a set of hooks for each of the main targets
17353 # like `clean', `install', etc.
17354
17355 language_hooks="Make-hooks"
17356
17357 for lang in ${srcdir}/*/config-lang.in
17358 do
17359         test "$lang" = "${srcdir}/*/config-lang.in" && continue
17360
17361         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
17362         if test "x$lang_alias" = x
17363         then
17364               echo "$lang doesn't set \$language." 1>&2
17365               exit 1
17366         fi
17367         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17368         subdirs="$subdirs $subdir"
17369         case ",$enable_languages," in
17370         *,$lang_alias,*)
17371             all_selected_languages="$all_selected_languages $lang_alias"
17372             if test -f $srcdir/$subdir/lang-specs.h; then
17373                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17374             fi
17375             ;;
17376         esac
17377
17378         language=
17379         boot_language=
17380         compilers=
17381         outputs=
17382         gtfiles=
17383         subdir_requires=
17384         . ${srcdir}/$subdir/config-lang.in
17385         if test "x$language" = x
17386         then
17387                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17388                 exit 1
17389         fi
17390
17391         ok=:
17392         case ",$enable_languages," in
17393                 *,$lang_alias,*) ;;
17394                 *)
17395                         for i in $subdir_requires; do
17396                                 test -f "${srcdir}/$i/config-lang.in" && continue
17397                                 ok=false
17398                                 break
17399                         done
17400                 ;;
17401         esac
17402         $ok || continue
17403
17404         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17405         if test -f $srcdir/$subdir/lang.opt; then
17406             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17407         fi
17408         if test -f $srcdir/$subdir/$subdir-tree.def; then
17409             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17410         fi
17411         if test -f ${srcdir}/$subdir/Makefile.in
17412                 then all_lang_makefiles="$subdir/Makefile"
17413         fi
17414         all_languages="$all_languages $language"
17415         all_compilers="$all_compilers $compilers"
17416         all_outputs="$all_outputs $outputs"
17417         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17418 done
17419
17420 # Pick up gtfiles for c
17421 gtfiles=
17422 . ${srcdir}/c-config-lang.in
17423 all_gtfiles="$all_gtfiles [c] $gtfiles"
17424
17425 check_languages=
17426 for language in $all_selected_languages
17427 do
17428         check_languages="$check_languages check-$language"
17429 done
17430
17431 # We link each language in with a set of hooks, reached indirectly via
17432 # lang.${target}.  Only do so for selected languages.
17433
17434 rm -f Make-hooks
17435 touch Make-hooks
17436 target_list="all.cross start.encap rest.encap tags \
17437         install-common install-man install-info install-pdf dvi pdf \
17438         html uninstall info man srcextra srcman srcinfo \
17439         mostlyclean clean distclean maintainer-clean"
17440
17441 for t in $target_list
17442 do
17443         x=
17444         for lang in $all_selected_languages
17445         do
17446                 x="$x $lang.$t"
17447         done
17448         echo "lang.$t: $x" >> Make-hooks
17449 done
17450
17451 # --------
17452 # Dependency checking.
17453 # --------
17454
17455 rm -rf .tst 2>/dev/null
17456 mkdir .tst 2>/dev/null
17457 if test -d .tst; then
17458   am__leading_dot=.
17459 else
17460   am__leading_dot=_
17461 fi
17462 rmdir .tst 2>/dev/null
17463
17464 DEPDIR="${am__leading_dot}deps"
17465
17466           ac_config_commands="$ac_config_commands depdir"
17467
17468
17469           ac_config_commands="$ac_config_commands gccdepdir"
17470
17471
17472 depcc="$CC"   am_compiler_list=
17473
17474 am_depcomp=$ac_aux_dir/depcomp
17475 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
17476 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
17477 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
17478   echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480   if test -f "$am_depcomp"; then
17481   # We make a subdir and do the tests there.  Otherwise we can end up
17482   # making bogus files that we don't know about and never remove.  For
17483   # instance it was reported that on HP-UX the gcc test will end up
17484   # making a dummy file named `D' -- because `-MD' means `put the output
17485   # in D'.
17486   mkdir conftest.dir
17487   # Copy depcomp to subdir because otherwise we won't find it if we're
17488   # using a relative directory.
17489   cp "$am_depcomp" conftest.dir
17490   cd conftest.dir
17491   # We will build objects and dependencies in a subdirectory because
17492   # it helps to detect inapplicable dependency modes.  For instance
17493   # both Tru64's cc and ICC support -MD to output dependencies as a
17494   # side effect of compilation, but ICC will put the dependencies in
17495   # the current directory while Tru64 will put them in the object
17496   # directory.
17497   mkdir sub
17498
17499   am_cv_CC_dependencies_compiler_type=none
17500   if test "$am_compiler_list" = ""; then
17501      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17502   fi
17503   for depmode in $am_compiler_list; do
17504     if test $depmode = none; then break; fi
17505
17506     echo "$as_me:$LINENO: trying $depmode" >&5
17507     # Setup a source with many dependencies, because some compilers
17508     # like to wrap large dependency lists on column 80 (with \), and
17509     # we should not choose a depcomp mode which is confused by this.
17510     #
17511     # We need to recreate these files for each test, as the compiler may
17512     # overwrite some of them when testing with obscure command lines.
17513     # This happens at least with the AIX C compiler.
17514     : > sub/conftest.c
17515     for i in 1 2 3 4 5 6; do
17516       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17517       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17518       # Solaris 8's {/usr,}/bin/sh.
17519       touch sub/conftst$i.h
17520     done
17521     echo "include sub/conftest.Po" > confmf
17522
17523     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17524     # mode.  It turns out that the SunPro C++ compiler does not properly
17525     # handle `-M -o', and we need to detect this.
17526     depcmd="depmode=$depmode \
17527        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17528        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17529        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17530     echo "| $depcmd" | sed -e 's/  */ /g' >&5
17531     if env $depcmd > conftest.err 2>&1 &&
17532        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
17533        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
17534        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
17535       # icc doesn't choke on unknown options, it will just issue warnings
17536       # or remarks (even with -Werror).  So we grep stderr for any message
17537       # that says an option was ignored or not supported.
17538       # When given -MP, icc 7.0 and 7.1 complain thusly:
17539       #   icc: Command line warning: ignoring option '-M'; no argument required
17540       # The diagnosis changed in icc 8.0:
17541       #   icc: Command line remark: option '-MP' not supported
17542       if (grep 'ignoring option' conftest.err ||
17543           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17544         am_cv_CC_dependencies_compiler_type=$depmode
17545         echo "$as_me:$LINENO: success" >&5
17546         break
17547       fi
17548     fi
17549     echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17550     sed -e 's/^/| /' < conftest.err >&5
17551   done
17552
17553   cd ..
17554   rm -rf conftest.dir
17555 else
17556   am_cv_CC_dependencies_compiler_type=none
17557 fi
17558
17559 fi
17560 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
17561 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
17562 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
17563 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
17564 echo "$as_me: error: no usable dependency style found" >&2;}
17565    { (exit 1); exit 1; }; }
17566 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17567
17568 fi
17569
17570 # Note that if build!=host then we extracted the value from the
17571 # temporary Makefile we created above, when we ran configure.
17572 if test "${build}" = "${host}" ; then
17573   BUILD_DEPMODE='$(CCDEPMODE)'
17574 fi
17575
17576
17577
17578 # --------
17579 # UNSORTED
17580 # --------
17581
17582 # Create .gdbinit.
17583
17584 echo "dir ." > .gdbinit
17585 echo "dir ${srcdir}" >> .gdbinit
17586 if test x$gdb_needs_out_file_path = xyes
17587 then
17588         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17589 fi
17590 if test "x$subdirs" != x; then
17591         for s in $subdirs
17592         do
17593                 echo "dir ${srcdir}/$s" >> .gdbinit
17594         done
17595 fi
17596 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17597
17598 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17599
17600
17601
17602 # Find a directory in which to install a shared libgcc.
17603
17604 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17605 if test "${enable_version_specific_runtime_libs+set}" = set; then
17606   enableval="$enable_version_specific_runtime_libs"
17607
17608 fi;
17609
17610
17611 # Check whether --with-slibdir or --without-slibdir was given.
17612 if test "${with_slibdir+set}" = set; then
17613   withval="$with_slibdir"
17614   slibdir="$with_slibdir"
17615 else
17616   if test "${enable_version_specific_runtime_libs+set}" = set; then
17617   slibdir='$(libsubdir)'
17618 elif test "$host" != "$target"; then
17619   slibdir='$(build_tooldir)/lib'
17620 else
17621   slibdir='$(libdir)'
17622 fi
17623 fi;
17624
17625
17626 objdir=`${PWDCMD-pwd}`
17627
17628
17629
17630 # Check whether --with-datarootdir or --without-datarootdir was given.
17631 if test "${with_datarootdir+set}" = set; then
17632   withval="$with_datarootdir"
17633   datarootdir="\${prefix}/$with_datarootdir"
17634 else
17635   datarootdir='$(prefix)/share'
17636 fi;
17637
17638
17639
17640 # Check whether --with-docdir or --without-docdir was given.
17641 if test "${with_docdir+set}" = set; then
17642   withval="$with_docdir"
17643   docdir="\${prefix}/$with_docdir"
17644 else
17645   docdir='$(datarootdir)'
17646 fi;
17647
17648
17649
17650 # Check whether --with-htmldir or --without-htmldir was given.
17651 if test "${with_htmldir+set}" = set; then
17652   withval="$with_htmldir"
17653   htmldir="\${prefix}/$with_htmldir"
17654 else
17655   htmldir='$(docdir)'
17656 fi;
17657
17658
17659 # Substitute configuration variables
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716 # Echo link setup.
17717 if test x${build} = x${host} ; then
17718   if test x${host} = x${target} ; then
17719     echo "Links are now set up to build a native compiler for ${target}." 1>&2
17720   else
17721     echo "Links are now set up to build a cross-compiler" 1>&2
17722     echo " from ${host} to ${target}." 1>&2
17723   fi
17724 else
17725   if test x${host} = x${target} ; then
17726     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17727     echo " for ${target}." 1>&2
17728   else
17729     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17730     echo " from ${host} to ${target}." 1>&2
17731   fi
17732 fi
17733
17734
17735
17736
17737 # Configure the subdirectories
17738 # AC_CONFIG_SUBDIRS($subdirs)
17739
17740 # Create the Makefile
17741 # and configure language subdirectories
17742           ac_config_files="$ac_config_files $all_outputs"
17743
17744
17745           ac_config_commands="$ac_config_commands default"
17746
17747 cat >confcache <<\_ACEOF
17748 # This file is a shell script that caches the results of configure
17749 # tests run on this system so they can be shared between configure
17750 # scripts and configure runs, see configure's option --config-cache.
17751 # It is not useful on other systems.  If it contains results you don't
17752 # want to keep, you may remove or edit it.
17753 #
17754 # config.status only pays attention to the cache file if you give it
17755 # the --recheck option to rerun configure.
17756 #
17757 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17759 # following values.
17760
17761 _ACEOF
17762
17763 # The following way of writing the cache mishandles newlines in values,
17764 # but we know of no workaround that is simple, portable, and efficient.
17765 # So, don't put newlines in cache variables' values.
17766 # Ultrix sh set writes to stderr and can't be redirected directly,
17767 # and sets the high bit in the cache file unless we assign to the vars.
17768 {
17769   (set) 2>&1 |
17770     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17771     *ac_space=\ *)
17772       # `set' does not quote correctly, so add quotes (double-quote
17773       # substitution turns \\\\ into \\, and sed turns \\ into \).
17774       sed -n \
17775         "s/'/'\\\\''/g;
17776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17777       ;;
17778     *)
17779       # `set' quotes correctly as required by POSIX, so do not add quotes.
17780       sed -n \
17781         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17782       ;;
17783     esac;
17784 } |
17785   sed '
17786      t clear
17787      : clear
17788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17789      t end
17790      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17791      : end' >>confcache
17792 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17793   if test -w $cache_file; then
17794     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17795     cat confcache >$cache_file
17796   else
17797     echo "not updating unwritable cache $cache_file"
17798   fi
17799 fi
17800 rm -f confcache
17801
17802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17803 # Let make expand exec_prefix.
17804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17805
17806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17808 # trailing colons and then remove the whole line if VPATH becomes empty
17809 # (actually we leave an empty line to preserve line numbers).
17810 if test "x$srcdir" = x.; then
17811   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17812 s/:*\$(srcdir):*/:/;
17813 s/:*\${srcdir}:*/:/;
17814 s/:*@srcdir@:*/:/;
17815 s/^\([^=]*=[     ]*\):*/\1/;
17816 s/:*$//;
17817 s/^[^=]*=[       ]*$//;
17818 }'
17819 fi
17820
17821 DEFS=-DHAVE_CONFIG_H
17822
17823 ac_libobjs=
17824 ac_ltlibobjs=
17825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17826   # 1. Remove the extension, and $U if already installed.
17827   ac_i=`echo "$ac_i" |
17828          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17829   # 2. Add them.
17830   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17831   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17832 done
17833 LIBOBJS=$ac_libobjs
17834
17835 LTLIBOBJS=$ac_ltlibobjs
17836
17837
17838
17839 : ${CONFIG_STATUS=./config.status}
17840 ac_clean_files_save=$ac_clean_files
17841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17842 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17843 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17844 cat >$CONFIG_STATUS <<_ACEOF
17845 #! $SHELL
17846 # Generated by $as_me.
17847 # Run this file to recreate the current configuration.
17848 # Compiler output produced by configure, useful for debugging
17849 # configure, is in config.log if it exists.
17850
17851 debug=false
17852 ac_cs_recheck=false
17853 ac_cs_silent=false
17854 SHELL=\${CONFIG_SHELL-$SHELL}
17855 _ACEOF
17856
17857 cat >>$CONFIG_STATUS <<\_ACEOF
17858 ## --------------------- ##
17859 ## M4sh Initialization.  ##
17860 ## --------------------- ##
17861
17862 # Be Bourne compatible
17863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17864   emulate sh
17865   NULLCMD=:
17866   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17867   # is contrary to our usage.  Disable this feature.
17868   alias -g '${1+"$@"}'='"$@"'
17869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17870   set -o posix
17871 fi
17872 DUALCASE=1; export DUALCASE # for MKS sh
17873
17874 # Support unset when possible.
17875 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17876   as_unset=unset
17877 else
17878   as_unset=false
17879 fi
17880
17881
17882 # Work around bugs in pre-3.0 UWIN ksh.
17883 $as_unset ENV MAIL MAILPATH
17884 PS1='$ '
17885 PS2='> '
17886 PS4='+ '
17887
17888 # NLS nuisances.
17889 for as_var in \
17890   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17891   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17892   LC_TELEPHONE LC_TIME
17893 do
17894   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17895     eval $as_var=C; export $as_var
17896   else
17897     $as_unset $as_var
17898   fi
17899 done
17900
17901 # Required to use basename.
17902 if expr a : '\(a\)' >/dev/null 2>&1; then
17903   as_expr=expr
17904 else
17905   as_expr=false
17906 fi
17907
17908 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17909   as_basename=basename
17910 else
17911   as_basename=false
17912 fi
17913
17914
17915 # Name of the executable.
17916 as_me=`$as_basename "$0" ||
17917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17918          X"$0" : 'X\(//\)$' \| \
17919          X"$0" : 'X\(/\)$' \| \
17920          .     : '\(.\)' 2>/dev/null ||
17921 echo X/"$0" |
17922     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17923           /^X\/\(\/\/\)$/{ s//\1/; q; }
17924           /^X\/\(\/\).*/{ s//\1/; q; }
17925           s/.*/./; q'`
17926
17927
17928 # PATH needs CR, and LINENO needs CR and PATH.
17929 # Avoid depending upon Character Ranges.
17930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17933 as_cr_digits='0123456789'
17934 as_cr_alnum=$as_cr_Letters$as_cr_digits
17935
17936 # The user is always right.
17937 if test "${PATH_SEPARATOR+set}" != set; then
17938   echo "#! /bin/sh" >conf$$.sh
17939   echo  "exit 0"   >>conf$$.sh
17940   chmod +x conf$$.sh
17941   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17942     PATH_SEPARATOR=';'
17943   else
17944     PATH_SEPARATOR=:
17945   fi
17946   rm -f conf$$.sh
17947 fi
17948
17949
17950   as_lineno_1=$LINENO
17951   as_lineno_2=$LINENO
17952   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17953   test "x$as_lineno_1" != "x$as_lineno_2" &&
17954   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17955   # Find who we are.  Look in the path if we contain no path at all
17956   # relative or not.
17957   case $0 in
17958     *[\\/]* ) as_myself=$0 ;;
17959     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17960 for as_dir in $PATH
17961 do
17962   IFS=$as_save_IFS
17963   test -z "$as_dir" && as_dir=.
17964   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17965 done
17966
17967        ;;
17968   esac
17969   # We did not find ourselves, most probably we were run as `sh COMMAND'
17970   # in which case we are not to be found in the path.
17971   if test "x$as_myself" = x; then
17972     as_myself=$0
17973   fi
17974   if test ! -f "$as_myself"; then
17975     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17976 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17977    { (exit 1); exit 1; }; }
17978   fi
17979   case $CONFIG_SHELL in
17980   '')
17981     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17982 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17983 do
17984   IFS=$as_save_IFS
17985   test -z "$as_dir" && as_dir=.
17986   for as_base in sh bash ksh sh5; do
17987          case $as_dir in
17988          /*)
17989            if ("$as_dir/$as_base" -c '
17990   as_lineno_1=$LINENO
17991   as_lineno_2=$LINENO
17992   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17993   test "x$as_lineno_1" != "x$as_lineno_2" &&
17994   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17995              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17996              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17997              CONFIG_SHELL=$as_dir/$as_base
17998              export CONFIG_SHELL
17999              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18000            fi;;
18001          esac
18002        done
18003 done
18004 ;;
18005   esac
18006
18007   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18008   # uniformly replaced by the line number.  The first 'sed' inserts a
18009   # line-number line before each line; the second 'sed' does the real
18010   # work.  The second script uses 'N' to pair each line-number line
18011   # with the numbered line, and appends trailing '-' during
18012   # substitution so that $LINENO is not a special case at line end.
18013   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18014   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18015   sed '=' <$as_myself |
18016     sed '
18017       N
18018       s,$,-,
18019       : loop
18020       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18021       t loop
18022       s,-$,,
18023       s,^['$as_cr_digits']*\n,,
18024     ' >$as_me.lineno &&
18025   chmod +x $as_me.lineno ||
18026     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18027 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18028    { (exit 1); exit 1; }; }
18029
18030   # Don't try to exec as it changes $[0], causing all sort of problems
18031   # (the dirname of $[0] is not the place where we might find the
18032   # original and so on.  Autoconf is especially sensible to this).
18033   . ./$as_me.lineno
18034   # Exit status is that of the last command.
18035   exit
18036 }
18037
18038
18039 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18040   *c*,-n*) ECHO_N= ECHO_C='
18041 ' ECHO_T='      ' ;;
18042   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18043   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18044 esac
18045
18046 if expr a : '\(a\)' >/dev/null 2>&1; then
18047   as_expr=expr
18048 else
18049   as_expr=false
18050 fi
18051
18052 rm -f conf$$ conf$$.exe conf$$.file
18053 echo >conf$$.file
18054 if ln -s conf$$.file conf$$ 2>/dev/null; then
18055   # We could just check for DJGPP; but this test a) works b) is more generic
18056   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18057   if test -f conf$$.exe; then
18058     # Don't use ln at all; we don't have any links
18059     as_ln_s='cp -p'
18060   else
18061     as_ln_s='ln -s'
18062   fi
18063 elif ln conf$$.file conf$$ 2>/dev/null; then
18064   as_ln_s=ln
18065 else
18066   as_ln_s='cp -p'
18067 fi
18068 rm -f conf$$ conf$$.exe conf$$.file
18069
18070 if mkdir -p . 2>/dev/null; then
18071   as_mkdir_p=:
18072 else
18073   test -d ./-p && rmdir ./-p
18074   as_mkdir_p=false
18075 fi
18076
18077 as_executable_p="test -f"
18078
18079 # Sed expression to map a string onto a valid CPP name.
18080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18081
18082 # Sed expression to map a string onto a valid variable name.
18083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18084
18085
18086 # IFS
18087 # We need space, tab and new line, in precisely that order.
18088 as_nl='
18089 '
18090 IFS="   $as_nl"
18091
18092 # CDPATH.
18093 $as_unset CDPATH
18094
18095 exec 6>&1
18096
18097 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18098 # report actual input values of CONFIG_FILES etc. instead of their
18099 # values after options handling.  Logging --version etc. is OK.
18100 exec 5>>config.log
18101 {
18102   echo
18103   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18104 ## Running $as_me. ##
18105 _ASBOX
18106 } >&5
18107 cat >&5 <<_CSEOF
18108
18109 This file was extended by $as_me, which was
18110 generated by GNU Autoconf 2.59.  Invocation command line was
18111
18112   CONFIG_FILES    = $CONFIG_FILES
18113   CONFIG_HEADERS  = $CONFIG_HEADERS
18114   CONFIG_LINKS    = $CONFIG_LINKS
18115   CONFIG_COMMANDS = $CONFIG_COMMANDS
18116   $ $0 $@
18117
18118 _CSEOF
18119 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18120 echo >&5
18121 _ACEOF
18122
18123 # Files that config.status was made for.
18124 if test -n "$ac_config_files"; then
18125   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18126 fi
18127
18128 if test -n "$ac_config_headers"; then
18129   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18130 fi
18131
18132 if test -n "$ac_config_links"; then
18133   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18134 fi
18135
18136 if test -n "$ac_config_commands"; then
18137   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18138 fi
18139
18140 cat >>$CONFIG_STATUS <<\_ACEOF
18141
18142 ac_cs_usage="\
18143 \`$as_me' instantiates files from templates according to the
18144 current configuration.
18145
18146 Usage: $0 [OPTIONS] [FILE]...
18147
18148   -h, --help       print this help, then exit
18149   -V, --version    print version number, then exit
18150   -q, --quiet      do not print progress messages
18151   -d, --debug      don't remove temporary files
18152       --recheck    update $as_me by reconfiguring in the same conditions
18153   --file=FILE[:TEMPLATE]
18154                    instantiate the configuration file FILE
18155   --header=FILE[:TEMPLATE]
18156                    instantiate the configuration header FILE
18157
18158 Configuration files:
18159 $config_files
18160
18161 Configuration headers:
18162 $config_headers
18163
18164 Configuration commands:
18165 $config_commands
18166
18167 Report bugs to <bug-autoconf@gnu.org>."
18168 _ACEOF
18169
18170 cat >>$CONFIG_STATUS <<_ACEOF
18171 ac_cs_version="\\
18172 config.status
18173 configured by $0, generated by GNU Autoconf 2.59,
18174   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18175
18176 Copyright (C) 2003 Free Software Foundation, Inc.
18177 This config.status script is free software; the Free Software Foundation
18178 gives unlimited permission to copy, distribute and modify it."
18179 srcdir=$srcdir
18180 _ACEOF
18181
18182 cat >>$CONFIG_STATUS <<\_ACEOF
18183 # If no file are specified by the user, then we need to provide default
18184 # value.  By we need to know if files were specified by the user.
18185 ac_need_defaults=:
18186 while test $# != 0
18187 do
18188   case $1 in
18189   --*=*)
18190     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18191     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18192     ac_shift=:
18193     ;;
18194   -*)
18195     ac_option=$1
18196     ac_optarg=$2
18197     ac_shift=shift
18198     ;;
18199   *) # This is not an option, so the user has probably given explicit
18200      # arguments.
18201      ac_option=$1
18202      ac_need_defaults=false;;
18203   esac
18204
18205   case $ac_option in
18206   # Handling of the options.
18207 _ACEOF
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18209   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18210     ac_cs_recheck=: ;;
18211   --version | --vers* | -V )
18212     echo "$ac_cs_version"; exit 0 ;;
18213   --he | --h)
18214     # Conflict between --help and --header
18215     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18216 Try \`$0 --help' for more information." >&5
18217 echo "$as_me: error: ambiguous option: $1
18218 Try \`$0 --help' for more information." >&2;}
18219    { (exit 1); exit 1; }; };;
18220   --help | --hel | -h )
18221     echo "$ac_cs_usage"; exit 0 ;;
18222   --debug | --d* | -d )
18223     debug=: ;;
18224   --file | --fil | --fi | --f )
18225     $ac_shift
18226     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18227     ac_need_defaults=false;;
18228   --header | --heade | --head | --hea )
18229     $ac_shift
18230     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18231     ac_need_defaults=false;;
18232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18234     ac_cs_silent=: ;;
18235
18236   # This is an error.
18237   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18238 Try \`$0 --help' for more information." >&5
18239 echo "$as_me: error: unrecognized option: $1
18240 Try \`$0 --help' for more information." >&2;}
18241    { (exit 1); exit 1; }; } ;;
18242
18243   *) ac_config_targets="$ac_config_targets $1" ;;
18244
18245   esac
18246   shift
18247 done
18248
18249 ac_configure_extra_args=
18250
18251 if $ac_cs_silent; then
18252   exec 6>/dev/null
18253   ac_configure_extra_args="$ac_configure_extra_args --silent"
18254 fi
18255
18256 _ACEOF
18257 cat >>$CONFIG_STATUS <<_ACEOF
18258 if \$ac_cs_recheck; then
18259   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18260   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18261 fi
18262
18263 _ACEOF
18264
18265 cat >>$CONFIG_STATUS <<_ACEOF
18266 #
18267 # INIT-COMMANDS section.
18268 #
18269
18270 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18271 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18272 subdirs='$subdirs'
18273
18274 _ACEOF
18275
18276
18277
18278 cat >>$CONFIG_STATUS <<\_ACEOF
18279 for ac_config_target in $ac_config_targets
18280 do
18281   case "$ac_config_target" in
18282   # Handling of arguments.
18283   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
18284   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
18285   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
18286   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18287   "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18288   "gccdepdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
18289   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18290   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18291   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18292 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18293    { (exit 1); exit 1; }; };;
18294   esac
18295 done
18296
18297 # If the user did not use the arguments to specify the items to instantiate,
18298 # then the envvar interface is used.  Set only those that are not.
18299 # We use the long form for the default assignment because of an extremely
18300 # bizarre bug on SunOS 4.1.3.
18301 if $ac_need_defaults; then
18302   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18303   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18304   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18305 fi
18306
18307 # Have a temporary directory for convenience.  Make it in the build tree
18308 # simply because there is no reason to put it here, and in addition,
18309 # creating and moving files from /tmp can sometimes cause problems.
18310 # Create a temporary directory, and hook for its removal unless debugging.
18311 $debug ||
18312 {
18313   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18314   trap '{ (exit 1); exit 1; }' 1 2 13 15
18315 }
18316
18317 # Create a (secure) tmp directory for tmp files.
18318
18319 {
18320   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18321   test -n "$tmp" && test -d "$tmp"
18322 }  ||
18323 {
18324   tmp=./confstat$$-$RANDOM
18325   (umask 077 && mkdir $tmp)
18326 } ||
18327 {
18328    echo "$me: cannot create a temporary directory in ." >&2
18329    { (exit 1); exit 1; }
18330 }
18331
18332 _ACEOF
18333
18334 cat >>$CONFIG_STATUS <<_ACEOF
18335
18336 #
18337 # CONFIG_FILES section.
18338 #
18339
18340 # No need to generate the scripts if there are no CONFIG_FILES.
18341 # This happens for instance when ./config.status config.h
18342 if test -n "\$CONFIG_FILES"; then
18343   # Protect against being on the right side of a sed subst in config.status.
18344   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18345    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18346 s,@SHELL@,$SHELL,;t t
18347 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18348 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18349 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18350 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18351 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18352 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18353 s,@exec_prefix@,$exec_prefix,;t t
18354 s,@prefix@,$prefix,;t t
18355 s,@program_transform_name@,$program_transform_name,;t t
18356 s,@bindir@,$bindir,;t t
18357 s,@sbindir@,$sbindir,;t t
18358 s,@libexecdir@,$libexecdir,;t t
18359 s,@datadir@,$datadir,;t t
18360 s,@sysconfdir@,$sysconfdir,;t t
18361 s,@sharedstatedir@,$sharedstatedir,;t t
18362 s,@localstatedir@,$localstatedir,;t t
18363 s,@libdir@,$libdir,;t t
18364 s,@includedir@,$includedir,;t t
18365 s,@oldincludedir@,$oldincludedir,;t t
18366 s,@infodir@,$infodir,;t t
18367 s,@mandir@,$mandir,;t t
18368 s,@build_alias@,$build_alias,;t t
18369 s,@host_alias@,$host_alias,;t t
18370 s,@target_alias@,$target_alias,;t t
18371 s,@DEFS@,$DEFS,;t t
18372 s,@ECHO_C@,$ECHO_C,;t t
18373 s,@ECHO_N@,$ECHO_N,;t t
18374 s,@ECHO_T@,$ECHO_T,;t t
18375 s,@LIBS@,$LIBS,;t t
18376 s,@build@,$build,;t t
18377 s,@build_cpu@,$build_cpu,;t t
18378 s,@build_vendor@,$build_vendor,;t t
18379 s,@build_os@,$build_os,;t t
18380 s,@host@,$host,;t t
18381 s,@host_cpu@,$host_cpu,;t t
18382 s,@host_vendor@,$host_vendor,;t t
18383 s,@host_os@,$host_os,;t t
18384 s,@target@,$target,;t t
18385 s,@target_cpu@,$target_cpu,;t t
18386 s,@target_vendor@,$target_vendor,;t t
18387 s,@target_os@,$target_os,;t t
18388 s,@target_noncanonical@,$target_noncanonical,;t t
18389 s,@build_libsubdir@,$build_libsubdir,;t t
18390 s,@build_subdir@,$build_subdir,;t t
18391 s,@host_subdir@,$host_subdir,;t t
18392 s,@target_subdir@,$target_subdir,;t t
18393 s,@GENINSRC@,$GENINSRC,;t t
18394 s,@CC@,$CC,;t t
18395 s,@CFLAGS@,$CFLAGS,;t t
18396 s,@LDFLAGS@,$LDFLAGS,;t t
18397 s,@CPPFLAGS@,$CPPFLAGS,;t t
18398 s,@ac_ct_CC@,$ac_ct_CC,;t t
18399 s,@EXEEXT@,$EXEEXT,;t t
18400 s,@OBJEXT@,$OBJEXT,;t t
18401 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
18402 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
18403 s,@CPP@,$CPP,;t t
18404 s,@EGREP@,$EGREP,;t t
18405 s,@loose_warn@,$loose_warn,;t t
18406 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
18407 s,@strict_warn@,$strict_warn,;t t
18408 s,@warn_cflags@,$warn_cflags,;t t
18409 s,@nocommon_flag@,$nocommon_flag,;t t
18410 s,@TREEBROWSER@,$TREEBROWSER,;t t
18411 s,@valgrind_path@,$valgrind_path,;t t
18412 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
18413 s,@valgrind_command@,$valgrind_command,;t t
18414 s,@coverage_flags@,$coverage_flags,;t t
18415 s,@enable_multilib@,$enable_multilib,;t t
18416 s,@enable_decimal_float@,$enable_decimal_float,;t t
18417 s,@enable_fixed_point@,$enable_fixed_point,;t t
18418 s,@enable_shared@,$enable_shared,;t t
18419 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
18420 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
18421 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
18422 s,@onestep@,$onestep,;t t
18423 s,@PKGVERSION@,$PKGVERSION,;t t
18424 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
18425 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
18426 s,@datarootdir@,$datarootdir,;t t
18427 s,@docdir@,$docdir,;t t
18428 s,@htmldir@,$htmldir,;t t
18429 s,@SET_MAKE@,$SET_MAKE,;t t
18430 s,@AWK@,$AWK,;t t
18431 s,@LN_S@,$LN_S,;t t
18432 s,@LN@,$LN,;t t
18433 s,@RANLIB@,$RANLIB,;t t
18434 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18435 s,@ranlib_flags@,$ranlib_flags,;t t
18436 s,@INSTALL@,$INSTALL,;t t
18437 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18438 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18439 s,@make_compare_target@,$make_compare_target,;t t
18440 s,@have_mktemp_command@,$have_mktemp_command,;t t
18441 s,@MAKEINFO@,$MAKEINFO,;t t
18442 s,@BUILD_INFO@,$BUILD_INFO,;t t
18443 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
18444 s,@FLEX@,$FLEX,;t t
18445 s,@BISON@,$BISON,;t t
18446 s,@NM@,$NM,;t t
18447 s,@AR@,$AR,;t t
18448 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
18449 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
18450 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
18451 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
18452 s,@LIBICONV@,$LIBICONV,;t t
18453 s,@LTLIBICONV@,$LTLIBICONV,;t t
18454 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
18455 s,@manext@,$manext,;t t
18456 s,@objext@,$objext,;t t
18457 s,@gthread_flags@,$gthread_flags,;t t
18458 s,@extra_modes_file@,$extra_modes_file,;t t
18459 s,@extra_opt_files@,$extra_opt_files,;t t
18460 s,@USE_NLS@,$USE_NLS,;t t
18461 s,@LIBINTL@,$LIBINTL,;t t
18462 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
18463 s,@INCINTL@,$INCINTL,;t t
18464 s,@XGETTEXT@,$XGETTEXT,;t t
18465 s,@GMSGFMT@,$GMSGFMT,;t t
18466 s,@POSUB@,$POSUB,;t t
18467 s,@CATALOGS@,$CATALOGS,;t t
18468 s,@DATADIRNAME@,$DATADIRNAME,;t t
18469 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18470 s,@GENCAT@,$GENCAT,;t t
18471 s,@CATOBJEXT@,$CATOBJEXT,;t t
18472 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
18473 s,@CROSS@,$CROSS,;t t
18474 s,@ALL@,$ALL,;t t
18475 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
18476 s,@inhibit_libc@,$inhibit_libc,;t t
18477 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
18478 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
18479 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
18480 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
18481 s,@collect2@,$collect2,;t t
18482 s,@gcc_cv_as@,$gcc_cv_as,;t t
18483 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
18484 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
18485 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
18486 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
18487 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
18488 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
18489 s,@libgcc_visibility@,$libgcc_visibility,;t t
18490 s,@GGC@,$GGC,;t t
18491 s,@zlibdir@,$zlibdir,;t t
18492 s,@zlibinc@,$zlibinc,;t t
18493 s,@MAINT@,$MAINT,;t t
18494 s,@am__leading_dot@,$am__leading_dot,;t t
18495 s,@DEPDIR@,$DEPDIR,;t t
18496 s,@CCDEPMODE@,$CCDEPMODE,;t t
18497 s,@BUILD_DEPMODE@,$BUILD_DEPMODE,;t t
18498 s,@gcc_tooldir@,$gcc_tooldir,;t t
18499 s,@dollar@,$dollar,;t t
18500 s,@slibdir@,$slibdir,;t t
18501 s,@objdir@,$objdir,;t t
18502 s,@subdirs@,$subdirs,;t t
18503 s,@srcdir@,$srcdir,;t t
18504 s,@all_compilers@,$all_compilers,;t t
18505 s,@all_gtfiles@,$all_gtfiles,;t t
18506 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
18507 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
18508 s,@all_languages@,$all_languages,;t t
18509 s,@all_selected_languages@,$all_selected_languages,;t t
18510 s,@build_exeext@,$build_exeext,;t t
18511 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
18512 s,@build_xm_file_list@,$build_xm_file_list,;t t
18513 s,@build_xm_include_list@,$build_xm_include_list,;t t
18514 s,@build_xm_defines@,$build_xm_defines,;t t
18515 s,@build_file_translate@,$build_file_translate,;t t
18516 s,@check_languages@,$check_languages,;t t
18517 s,@cpp_install_dir@,$cpp_install_dir,;t t
18518 s,@xmake_file@,$xmake_file,;t t
18519 s,@tmake_file@,$tmake_file,;t t
18520 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
18521 s,@extra_headers_list@,$extra_headers_list,;t t
18522 s,@extra_objs@,$extra_objs,;t t
18523 s,@extra_parts@,$extra_parts,;t t
18524 s,@extra_passes@,$extra_passes,;t t
18525 s,@extra_programs@,$extra_programs,;t t
18526 s,@float_h_file@,$float_h_file,;t t
18527 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
18528 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
18529 s,@host_exeext@,$host_exeext,;t t
18530 s,@host_xm_file_list@,$host_xm_file_list,;t t
18531 s,@host_xm_include_list@,$host_xm_include_list,;t t
18532 s,@host_xm_defines@,$host_xm_defines,;t t
18533 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
18534 s,@install@,$install,;t t
18535 s,@lang_opt_files@,$lang_opt_files,;t t
18536 s,@lang_specs_files@,$lang_specs_files,;t t
18537 s,@lang_tree_files@,$lang_tree_files,;t t
18538 s,@local_prefix@,$local_prefix,;t t
18539 s,@md_file@,$md_file,;t t
18540 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
18541 s,@out_file@,$out_file,;t t
18542 s,@out_object_file@,$out_object_file,;t t
18543 s,@thread_file@,$thread_file,;t t
18544 s,@tm_file_list@,$tm_file_list,;t t
18545 s,@tm_include_list@,$tm_include_list,;t t
18546 s,@tm_defines@,$tm_defines,;t t
18547 s,@tm_p_file_list@,$tm_p_file_list,;t t
18548 s,@tm_p_include_list@,$tm_p_include_list,;t t
18549 s,@xm_file_list@,$xm_file_list,;t t
18550 s,@xm_include_list@,$xm_include_list,;t t
18551 s,@xm_defines@,$xm_defines,;t t
18552 s,@c_target_objs@,$c_target_objs,;t t
18553 s,@cxx_target_objs@,$cxx_target_objs,;t t
18554 s,@target_cpu_default@,$target_cpu_default,;t t
18555 s,@GMPLIBS@,$GMPLIBS,;t t
18556 s,@GMPINC@,$GMPINC,;t t
18557 s,@LIBOBJS@,$LIBOBJS,;t t
18558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18559 /@language_hooks@/r $language_hooks
18560 s,@language_hooks@,,;t t
18561 CEOF
18562
18563 _ACEOF
18564
18565   cat >>$CONFIG_STATUS <<\_ACEOF
18566   # Split the substitutions into bite-sized pieces for seds with
18567   # small command number limits, like on Digital OSF/1 and HP-UX.
18568   ac_max_sed_lines=48
18569   ac_sed_frag=1 # Number of current file.
18570   ac_beg=1 # First line for current file.
18571   ac_end=$ac_max_sed_lines # Line after last line for current file.
18572   ac_more_lines=:
18573   ac_sed_cmds=
18574   while $ac_more_lines; do
18575     if test $ac_beg -gt 1; then
18576       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18577     else
18578       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18579     fi
18580     if test ! -s $tmp/subs.frag; then
18581       ac_more_lines=false
18582     else
18583       # The purpose of the label and of the branching condition is to
18584       # speed up the sed processing (if there are no `@' at all, there
18585       # is no need to browse any of the substitutions).
18586       # These are the two extra sed commands mentioned above.
18587       (echo ':t
18588   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18589       if test -z "$ac_sed_cmds"; then
18590         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18591       else
18592         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18593       fi
18594       ac_sed_frag=`expr $ac_sed_frag + 1`
18595       ac_beg=$ac_end
18596       ac_end=`expr $ac_end + $ac_max_sed_lines`
18597     fi
18598   done
18599   if test -z "$ac_sed_cmds"; then
18600     ac_sed_cmds=cat
18601   fi
18602 fi # test -n "$CONFIG_FILES"
18603
18604 _ACEOF
18605 cat >>$CONFIG_STATUS <<\_ACEOF
18606 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18607   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18608   case $ac_file in
18609   - | *:- | *:-:* ) # input from stdin
18610         cat >$tmp/stdin
18611         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18613   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18614         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18615   * )   ac_file_in=$ac_file.in ;;
18616   esac
18617
18618   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18619   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18621          X"$ac_file" : 'X\(//\)[^/]' \| \
18622          X"$ac_file" : 'X\(//\)$' \| \
18623          X"$ac_file" : 'X\(/\)' \| \
18624          .     : '\(.\)' 2>/dev/null ||
18625 echo X"$ac_file" |
18626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18628           /^X\(\/\/\)$/{ s//\1/; q; }
18629           /^X\(\/\).*/{ s//\1/; q; }
18630           s/.*/./; q'`
18631   { if $as_mkdir_p; then
18632     mkdir -p "$ac_dir"
18633   else
18634     as_dir="$ac_dir"
18635     as_dirs=
18636     while test ! -d "$as_dir"; do
18637       as_dirs="$as_dir $as_dirs"
18638       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640          X"$as_dir" : 'X\(//\)[^/]' \| \
18641          X"$as_dir" : 'X\(//\)$' \| \
18642          X"$as_dir" : 'X\(/\)' \| \
18643          .     : '\(.\)' 2>/dev/null ||
18644 echo X"$as_dir" |
18645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18647           /^X\(\/\/\)$/{ s//\1/; q; }
18648           /^X\(\/\).*/{ s//\1/; q; }
18649           s/.*/./; q'`
18650     done
18651     test ! -n "$as_dirs" || mkdir $as_dirs
18652   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18654    { (exit 1); exit 1; }; }; }
18655
18656   ac_builddir=.
18657
18658 if test "$ac_dir" != .; then
18659   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18660   # A "../" for each directory in $ac_dir_suffix.
18661   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18662 else
18663   ac_dir_suffix= ac_top_builddir=
18664 fi
18665
18666 case $srcdir in
18667   .)  # No --srcdir option.  We are building in place.
18668     ac_srcdir=.
18669     if test -z "$ac_top_builddir"; then
18670        ac_top_srcdir=.
18671     else
18672        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18673     fi ;;
18674   [\\/]* | ?:[\\/]* )  # Absolute path.
18675     ac_srcdir=$srcdir$ac_dir_suffix;
18676     ac_top_srcdir=$srcdir ;;
18677   *) # Relative path.
18678     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18679     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18680 esac
18681
18682 # Do not use `cd foo && pwd` to compute absolute paths, because
18683 # the directories may not exist.
18684 case `pwd` in
18685 .) ac_abs_builddir="$ac_dir";;
18686 *)
18687   case "$ac_dir" in
18688   .) ac_abs_builddir=`pwd`;;
18689   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18690   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18691   esac;;
18692 esac
18693 case $ac_abs_builddir in
18694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18695 *)
18696   case ${ac_top_builddir}. in
18697   .) ac_abs_top_builddir=$ac_abs_builddir;;
18698   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18699   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18700   esac;;
18701 esac
18702 case $ac_abs_builddir in
18703 .) ac_abs_srcdir=$ac_srcdir;;
18704 *)
18705   case $ac_srcdir in
18706   .) ac_abs_srcdir=$ac_abs_builddir;;
18707   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18708   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18709   esac;;
18710 esac
18711 case $ac_abs_builddir in
18712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18713 *)
18714   case $ac_top_srcdir in
18715   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18716   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18717   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18718   esac;;
18719 esac
18720
18721
18722
18723   if test x"$ac_file" != x-; then
18724     { echo "$as_me:$LINENO: creating $ac_file" >&5
18725 echo "$as_me: creating $ac_file" >&6;}
18726     rm -f "$ac_file"
18727   fi
18728   # Let's still pretend it is `configure' which instantiates (i.e., don't
18729   # use $as_me), people would be surprised to read:
18730   #    /* config.h.  Generated by config.status.  */
18731   if test x"$ac_file" = x-; then
18732     configure_input=
18733   else
18734     configure_input="$ac_file.  "
18735   fi
18736   configure_input=$configure_input"Generated from `echo $ac_file_in |
18737                                      sed 's,.*/,,'` by configure."
18738
18739   # First look for the input files in the build tree, otherwise in the
18740   # src tree.
18741   ac_file_inputs=`IFS=:
18742     for f in $ac_file_in; do
18743       case $f in
18744       -) echo $tmp/stdin ;;
18745       [\\/$]*)
18746          # Absolute (can't be DOS-style, as IFS=:)
18747          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18748 echo "$as_me: error: cannot find input file: $f" >&2;}
18749    { (exit 1); exit 1; }; }
18750          echo "$f";;
18751       *) # Relative
18752          if test -f "$f"; then
18753            # Build tree
18754            echo "$f"
18755          elif test -f "$srcdir/$f"; then
18756            # Source tree
18757            echo "$srcdir/$f"
18758          else
18759            # /dev/null tree
18760            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18761 echo "$as_me: error: cannot find input file: $f" >&2;}
18762    { (exit 1); exit 1; }; }
18763          fi;;
18764       esac
18765     done` || { (exit 1); exit 1; }
18766 _ACEOF
18767 cat >>$CONFIG_STATUS <<_ACEOF
18768   sed "$ac_vpsub
18769 $extrasub
18770 _ACEOF
18771 cat >>$CONFIG_STATUS <<\_ACEOF
18772 :t
18773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18774 s,@configure_input@,$configure_input,;t t
18775 s,@srcdir@,$ac_srcdir,;t t
18776 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18777 s,@top_srcdir@,$ac_top_srcdir,;t t
18778 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18779 s,@builddir@,$ac_builddir,;t t
18780 s,@abs_builddir@,$ac_abs_builddir,;t t
18781 s,@top_builddir@,$ac_top_builddir,;t t
18782 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18783 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18784   rm -f $tmp/stdin
18785   if test x"$ac_file" != x-; then
18786     mv $tmp/out $ac_file
18787   else
18788     cat $tmp/out
18789     rm -f $tmp/out
18790   fi
18791
18792   # Run the commands associated with the file.
18793   case $ac_file in
18794     as ) chmod +x as ;;
18795     collect-ld ) chmod +x collect-ld ;;
18796     nm ) chmod +x nm ;;
18797   esac
18798 done
18799 _ACEOF
18800 cat >>$CONFIG_STATUS <<\_ACEOF
18801
18802 #
18803 # CONFIG_HEADER section.
18804 #
18805
18806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18808 #
18809 # ac_d sets the value in "#define NAME VALUE" lines.
18810 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18811 ac_dB='[         ].*$,\1#\2'
18812 ac_dC=' '
18813 ac_dD=',;t'
18814 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18815 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18816 ac_uB='$,\1#\2define\3'
18817 ac_uC=' '
18818 ac_uD=',;t'
18819
18820 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18821   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18822   case $ac_file in
18823   - | *:- | *:-:* ) # input from stdin
18824         cat >$tmp/stdin
18825         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18826         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18827   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18828         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18829   * )   ac_file_in=$ac_file.in ;;
18830   esac
18831
18832   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18833 echo "$as_me: creating $ac_file" >&6;}
18834
18835   # First look for the input files in the build tree, otherwise in the
18836   # src tree.
18837   ac_file_inputs=`IFS=:
18838     for f in $ac_file_in; do
18839       case $f in
18840       -) echo $tmp/stdin ;;
18841       [\\/$]*)
18842          # Absolute (can't be DOS-style, as IFS=:)
18843          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18844 echo "$as_me: error: cannot find input file: $f" >&2;}
18845    { (exit 1); exit 1; }; }
18846          # Do quote $f, to prevent DOS paths from being IFS'd.
18847          echo "$f";;
18848       *) # Relative
18849          if test -f "$f"; then
18850            # Build tree
18851            echo "$f"
18852          elif test -f "$srcdir/$f"; then
18853            # Source tree
18854            echo "$srcdir/$f"
18855          else
18856            # /dev/null tree
18857            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18858 echo "$as_me: error: cannot find input file: $f" >&2;}
18859    { (exit 1); exit 1; }; }
18860          fi;;
18861       esac
18862     done` || { (exit 1); exit 1; }
18863   # Remove the trailing spaces.
18864   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18865
18866 _ACEOF
18867
18868 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18869 # `conftest.undefs', that substitutes the proper values into
18870 # config.h.in to produce config.h.  The first handles `#define'
18871 # templates, and the second `#undef' templates.
18872 # And first: Protect against being on the right side of a sed subst in
18873 # config.status.  Protect against being in an unquoted here document
18874 # in config.status.
18875 rm -f conftest.defines conftest.undefs
18876 # Using a here document instead of a string reduces the quoting nightmare.
18877 # Putting comments in sed scripts is not portable.
18878 #
18879 # `end' is used to avoid that the second main sed command (meant for
18880 # 0-ary CPP macros) applies to n-ary macro definitions.
18881 # See the Autoconf documentation for `clear'.
18882 cat >confdef2sed.sed <<\_ACEOF
18883 s/[\\&,]/\\&/g
18884 s,[\\$`],\\&,g
18885 t clear
18886 : clear
18887 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18888 t end
18889 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18890 : end
18891 _ACEOF
18892 # If some macros were called several times there might be several times
18893 # the same #defines, which is useless.  Nevertheless, we may not want to
18894 # sort them, since we want the *last* AC-DEFINE to be honored.
18895 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18896 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18897 rm -f confdef2sed.sed
18898
18899 # This sed command replaces #undef with comments.  This is necessary, for
18900 # example, in the case of _POSIX_SOURCE, which is predefined and required
18901 # on some systems where configure will not decide to define it.
18902 cat >>conftest.undefs <<\_ACEOF
18903 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18904 _ACEOF
18905
18906 # Break up conftest.defines because some shells have a limit on the size
18907 # of here documents, and old seds have small limits too (100 cmds).
18908 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18909 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18910 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18911 echo '  :' >>$CONFIG_STATUS
18912 rm -f conftest.tail
18913 while grep . conftest.defines >/dev/null
18914 do
18915   # Write a limited-size here document to $tmp/defines.sed.
18916   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18917   # Speed up: don't consider the non `#define' lines.
18918   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18919   # Work around the forget-to-reset-the-flag bug.
18920   echo 't clr' >>$CONFIG_STATUS
18921   echo ': clr' >>$CONFIG_STATUS
18922   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18923   echo 'CEOF
18924   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18925   rm -f $tmp/in
18926   mv $tmp/out $tmp/in
18927 ' >>$CONFIG_STATUS
18928   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18929   rm -f conftest.defines
18930   mv conftest.tail conftest.defines
18931 done
18932 rm -f conftest.defines
18933 echo '  fi # grep' >>$CONFIG_STATUS
18934 echo >>$CONFIG_STATUS
18935
18936 # Break up conftest.undefs because some shells have a limit on the size
18937 # of here documents, and old seds have small limits too (100 cmds).
18938 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18939 rm -f conftest.tail
18940 while grep . conftest.undefs >/dev/null
18941 do
18942   # Write a limited-size here document to $tmp/undefs.sed.
18943   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18944   # Speed up: don't consider the non `#undef'
18945   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18946   # Work around the forget-to-reset-the-flag bug.
18947   echo 't clr' >>$CONFIG_STATUS
18948   echo ': clr' >>$CONFIG_STATUS
18949   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18950   echo 'CEOF
18951   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18952   rm -f $tmp/in
18953   mv $tmp/out $tmp/in
18954 ' >>$CONFIG_STATUS
18955   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18956   rm -f conftest.undefs
18957   mv conftest.tail conftest.undefs
18958 done
18959 rm -f conftest.undefs
18960
18961 cat >>$CONFIG_STATUS <<\_ACEOF
18962   # Let's still pretend it is `configure' which instantiates (i.e., don't
18963   # use $as_me), people would be surprised to read:
18964   #    /* config.h.  Generated by config.status.  */
18965   if test x"$ac_file" = x-; then
18966     echo "/* Generated by configure.  */" >$tmp/config.h
18967   else
18968     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18969   fi
18970   cat $tmp/in >>$tmp/config.h
18971   rm -f $tmp/in
18972   if test x"$ac_file" != x-; then
18973     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18974       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18975 echo "$as_me: $ac_file is unchanged" >&6;}
18976     else
18977       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18979          X"$ac_file" : 'X\(//\)[^/]' \| \
18980          X"$ac_file" : 'X\(//\)$' \| \
18981          X"$ac_file" : 'X\(/\)' \| \
18982          .     : '\(.\)' 2>/dev/null ||
18983 echo X"$ac_file" |
18984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18985           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18986           /^X\(\/\/\)$/{ s//\1/; q; }
18987           /^X\(\/\).*/{ s//\1/; q; }
18988           s/.*/./; q'`
18989       { if $as_mkdir_p; then
18990     mkdir -p "$ac_dir"
18991   else
18992     as_dir="$ac_dir"
18993     as_dirs=
18994     while test ! -d "$as_dir"; do
18995       as_dirs="$as_dir $as_dirs"
18996       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18998          X"$as_dir" : 'X\(//\)[^/]' \| \
18999          X"$as_dir" : 'X\(//\)$' \| \
19000          X"$as_dir" : 'X\(/\)' \| \
19001          .     : '\(.\)' 2>/dev/null ||
19002 echo X"$as_dir" |
19003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19004           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19005           /^X\(\/\/\)$/{ s//\1/; q; }
19006           /^X\(\/\).*/{ s//\1/; q; }
19007           s/.*/./; q'`
19008     done
19009     test ! -n "$as_dirs" || mkdir $as_dirs
19010   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19012    { (exit 1); exit 1; }; }; }
19013
19014       rm -f $ac_file
19015       mv $tmp/config.h $ac_file
19016     fi
19017   else
19018     cat $tmp/config.h
19019     rm -f $tmp/config.h
19020   fi
19021 done
19022 _ACEOF
19023 cat >>$CONFIG_STATUS <<\_ACEOF
19024
19025 #
19026 # CONFIG_COMMANDS section.
19027 #
19028 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19029   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19030   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19031   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19032 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19033          X"$ac_dest" : 'X\(//\)[^/]' \| \
19034          X"$ac_dest" : 'X\(//\)$' \| \
19035          X"$ac_dest" : 'X\(/\)' \| \
19036          .     : '\(.\)' 2>/dev/null ||
19037 echo X"$ac_dest" |
19038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19040           /^X\(\/\/\)$/{ s//\1/; q; }
19041           /^X\(\/\).*/{ s//\1/; q; }
19042           s/.*/./; q'`
19043   { if $as_mkdir_p; then
19044     mkdir -p "$ac_dir"
19045   else
19046     as_dir="$ac_dir"
19047     as_dirs=
19048     while test ! -d "$as_dir"; do
19049       as_dirs="$as_dir $as_dirs"
19050       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19052          X"$as_dir" : 'X\(//\)[^/]' \| \
19053          X"$as_dir" : 'X\(//\)$' \| \
19054          X"$as_dir" : 'X\(/\)' \| \
19055          .     : '\(.\)' 2>/dev/null ||
19056 echo X"$as_dir" |
19057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19059           /^X\(\/\/\)$/{ s//\1/; q; }
19060           /^X\(\/\).*/{ s//\1/; q; }
19061           s/.*/./; q'`
19062     done
19063     test ! -n "$as_dirs" || mkdir $as_dirs
19064   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19066    { (exit 1); exit 1; }; }; }
19067
19068   ac_builddir=.
19069
19070 if test "$ac_dir" != .; then
19071   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19072   # A "../" for each directory in $ac_dir_suffix.
19073   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19074 else
19075   ac_dir_suffix= ac_top_builddir=
19076 fi
19077
19078 case $srcdir in
19079   .)  # No --srcdir option.  We are building in place.
19080     ac_srcdir=.
19081     if test -z "$ac_top_builddir"; then
19082        ac_top_srcdir=.
19083     else
19084        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19085     fi ;;
19086   [\\/]* | ?:[\\/]* )  # Absolute path.
19087     ac_srcdir=$srcdir$ac_dir_suffix;
19088     ac_top_srcdir=$srcdir ;;
19089   *) # Relative path.
19090     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19091     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19092 esac
19093
19094 # Do not use `cd foo && pwd` to compute absolute paths, because
19095 # the directories may not exist.
19096 case `pwd` in
19097 .) ac_abs_builddir="$ac_dir";;
19098 *)
19099   case "$ac_dir" in
19100   .) ac_abs_builddir=`pwd`;;
19101   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19102   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19103   esac;;
19104 esac
19105 case $ac_abs_builddir in
19106 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19107 *)
19108   case ${ac_top_builddir}. in
19109   .) ac_abs_top_builddir=$ac_abs_builddir;;
19110   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19111   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19112   esac;;
19113 esac
19114 case $ac_abs_builddir in
19115 .) ac_abs_srcdir=$ac_srcdir;;
19116 *)
19117   case $ac_srcdir in
19118   .) ac_abs_srcdir=$ac_abs_builddir;;
19119   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19120   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19121   esac;;
19122 esac
19123 case $ac_abs_builddir in
19124 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19125 *)
19126   case $ac_top_srcdir in
19127   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19128   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19129   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19130   esac;;
19131 esac
19132
19133
19134   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19135 echo "$as_me: executing $ac_dest commands" >&6;}
19136   case $ac_dest in
19137     depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19138     gccdepdir )
19139   ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
19140   for lang in $subdirs
19141   do
19142       ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
19143   done ;;
19144     default )
19145 case ${CONFIG_HEADERS} in
19146   *auto-host.h:config.in*)
19147   echo > cstamp-h ;;
19148 esac
19149 # Make sure all the subdirs exist.
19150 for d in $subdirs doc build
19151 do
19152     test -d $d || mkdir $d
19153 done
19154  ;;
19155   esac
19156 done
19157 _ACEOF
19158
19159 cat >>$CONFIG_STATUS <<\_ACEOF
19160
19161 { (exit 0); exit 0; }
19162 _ACEOF
19163 chmod +x $CONFIG_STATUS
19164 ac_clean_files=$ac_clean_files_save
19165
19166
19167 # configure is writing to config.log, and then calls config.status.
19168 # config.status does its own redirection, appending to config.log.
19169 # Unfortunately, on DOS this fails, as config.log is still kept open
19170 # by configure, so config.status won't be able to write to it; its
19171 # output is simply discarded.  So we exec the FD to /dev/null,
19172 # effectively closing config.log, so it can be properly (re)opened and
19173 # appended to by config.status.  When coming back to configure, we
19174 # need to make the FD available again.
19175 if test "$no_create" != yes; then
19176   ac_cs_success=:
19177   ac_config_status_args=
19178   test "$silent" = yes &&
19179     ac_config_status_args="$ac_config_status_args --quiet"
19180   exec 5>/dev/null
19181   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19182   exec 5>>config.log
19183   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19184   # would make configure fail if this is the last instruction.
19185   $ac_cs_success || { (exit 1); exit 1; }
19186 fi
19187