OSDN Git Service

./
[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 strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep 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 stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS 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 gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: yes,no,all,none,release.
871                           Flags are: assert,fold,gc,gcac,misc,
872                           rtlflag,rtl,runtime,tree,valgrind.
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-decimal-float  enable decimal float extension to C
884   --enable-threads        enable thread usage for target GCC
885   --enable-threads=LIB    use LIB thread package for target GCC
886   --enable-tls            enable or disable generation of tls code
887                           overriding the assembler check for tls support
888   --enable-objc-gc        enable the use of Boehm's garbage collector with
889                           the GNU Objective-C runtime
890   --disable-shared        don't provide a shared libgcc
891   --enable-intermodule    build the compiler in one step
892   --enable-languages=LIST specify which front-ends to build
893   --disable-rpath         do not hardcode runtime library paths
894   --enable-initfini-array       use .init_array/.fini_array sections
895   --enable-sjlj-exceptions
896                           arrange to use setjmp/longjmp exception handling
897   --enable-secureplt      enable -msecure-plt by default for PowerPC
898   --disable-win32-registry
899                           disable lookup of installation paths in the
900                           Registry on Windows hosts
901   --enable-win32-registry enable registry lookup (default)
902   --enable-win32-registry=KEY
903                           use KEY instead of GCC version as the last portion
904                           of the registry key
905   --enable-maintainer-mode
906                           enable make rules and dependencies not useful
907                           (and sometimes confusing) to the casual installer
908   --enable-version-specific-runtime-libs
909                           specify that runtime libraries should be
910                           installed in a compiler-specific directory
911
912 Optional Packages:
913   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
914   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
915   --with-build-libsubdir=DIR  Directory where to find libraries for build system
916   --with-local-prefix=DIR specifies directory to put local include
917   --with-gxx-include-dir=DIR
918                           specifies directory to put g++ header files
919   --with-cpp-install-dir=DIR
920                           install the user visible C preprocessor in DIR
921                           (relative to PREFIX) as well as PREFIX/bin
922   --with-gnu-ld           arrange to work with GNU ld.
923   --with-ld               arrange to use the specified ld (full pathname)
924   --with-demangler-in-ld  try to use demangler in GNU ld.
925   --with-gnu-as           arrange to work with GNU as
926   --with-as               arrange to use the specified as (full pathname)
927   --with-stabs            arrange to use stabs instead of host debug format
928   --with-dwarf2           force the default debug format to be DWARF 2
929   --with-build-sysroot=sysroot
930                           use sysroot as the system root during the build
931   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
932   --with-gnu-ld           assume the C compiler uses GNU ld default=no
933   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
934   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
935   --with-system-libunwind use installed libunwind
936   --with-long-double-128  Use 128-bit long double by default.
937   --with-gc={page,zone}   choose the garbage collection mechanism to use
938                           with the compiler
939   --with-system-zlib      use installed libz
940   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
941   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
942   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
943   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CPP         C preprocessor
953   GMPLIBS     How to link GMP
954   GMPINC      How to find GMP include files
955
956 Use these variables to override the choices made by `configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
958
959 _ACEOF
960 fi
961
962 if test "$ac_init_help" = "recursive"; then
963   # If there are subdirs, report their specific --help.
964   ac_popdir=`pwd`
965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966     test -d $ac_dir || continue
967     ac_builddir=.
968
969 if test "$ac_dir" != .; then
970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971   # A "../" for each directory in $ac_dir_suffix.
972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
973 else
974   ac_dir_suffix= ac_top_builddir=
975 fi
976
977 case $srcdir in
978   .)  # No --srcdir option.  We are building in place.
979     ac_srcdir=.
980     if test -z "$ac_top_builddir"; then
981        ac_top_srcdir=.
982     else
983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
984     fi ;;
985   [\\/]* | ?:[\\/]* )  # Absolute path.
986     ac_srcdir=$srcdir$ac_dir_suffix;
987     ac_top_srcdir=$srcdir ;;
988   *) # Relative path.
989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
991 esac
992
993 # Do not use `cd foo && pwd` to compute absolute paths, because
994 # the directories may not exist.
995 case `pwd` in
996 .) ac_abs_builddir="$ac_dir";;
997 *)
998   case "$ac_dir" in
999   .) ac_abs_builddir=`pwd`;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 *)
1007   case ${ac_top_builddir}. in
1008   .) ac_abs_top_builddir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1011   esac;;
1012 esac
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1015 *)
1016   case $ac_srcdir in
1017   .) ac_abs_srcdir=$ac_abs_builddir;;
1018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1020   esac;;
1021 esac
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 *)
1025   case $ac_top_srcdir in
1026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1029   esac;;
1030 esac
1031
1032     cd $ac_dir
1033     # Check for guested configure; otherwise get Cygnus style configure.
1034     if test -f $ac_srcdir/configure.gnu; then
1035       echo
1036       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1037     elif test -f $ac_srcdir/configure; then
1038       echo
1039       $SHELL $ac_srcdir/configure  --help=recursive
1040     elif test -f $ac_srcdir/configure.ac ||
1041            test -f $ac_srcdir/configure.in; then
1042       echo
1043       $ac_configure --help
1044     else
1045       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046     fi
1047     cd $ac_popdir
1048   done
1049 fi
1050
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1053   cat <<\_ACEOF
1054
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1058 _ACEOF
1059   exit 0
1060 fi
1061 exec 5>config.log
1062 cat >&5 <<_ACEOF
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1065
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59.  Invocation command line was
1068
1069   $ $0 $@
1070
1071 _ACEOF
1072 {
1073 cat <<_ASUNAME
1074 ## --------- ##
1075 ## Platform. ##
1076 ## --------- ##
1077
1078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083
1084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1086
1087 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1088 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1091 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1092 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1093 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1094
1095 _ASUNAME
1096
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1098 for as_dir in $PATH
1099 do
1100   IFS=$as_save_IFS
1101   test -z "$as_dir" && as_dir=.
1102   echo "PATH: $as_dir"
1103 done
1104
1105 } >&5
1106
1107 cat >&5 <<_ACEOF
1108
1109
1110 ## ----------- ##
1111 ## Core tests. ##
1112 ## ----------- ##
1113
1114 _ACEOF
1115
1116
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1122 ac_configure_args=
1123 ac_configure_args0=
1124 ac_configure_args1=
1125 ac_sep=
1126 ac_must_keep_next=false
1127 for ac_pass in 1 2
1128 do
1129   for ac_arg
1130   do
1131     case $ac_arg in
1132     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134     | -silent | --silent | --silen | --sile | --sil)
1135       continue ;;
1136     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1138     esac
1139     case $ac_pass in
1140     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141     2)
1142       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143       if test $ac_must_keep_next = true; then
1144         ac_must_keep_next=false # Got value, back to normal.
1145       else
1146         case $ac_arg in
1147           *=* | --config-cache | -C | -disable-* | --disable-* \
1148           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150           | -with-* | --with-* | -without-* | --without-* | --x)
1151             case "$ac_configure_args0 " in
1152               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1153             esac
1154             ;;
1155           -* ) ac_must_keep_next=true ;;
1156         esac
1157       fi
1158       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159       # Get rid of the leading space.
1160       ac_sep=" "
1161       ;;
1162     esac
1163   done
1164 done
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log.  We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close' the trap.
1173 trap 'exit_status=$?
1174   # Save into config.log some information that might help in debugging.
1175   {
1176     echo
1177
1178     cat <<\_ASBOX
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1182 _ASBOX
1183     echo
1184     # The following way of writing the cache mishandles newlines in values,
1185 {
1186   (set) 2>&1 |
1187     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1188     *ac_space=\ *)
1189       sed -n \
1190         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1192       ;;
1193     *)
1194       sed -n \
1195         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196       ;;
1197     esac;
1198 }
1199     echo
1200
1201     cat <<\_ASBOX
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1205 _ASBOX
1206     echo
1207     for ac_var in $ac_subst_vars
1208     do
1209       eval ac_val=$`echo $ac_var`
1210       echo "$ac_var='"'"'$ac_val'"'"'"
1211     done | sort
1212     echo
1213
1214     if test -n "$ac_subst_files"; then
1215       cat <<\_ASBOX
1216 ## ------------- ##
1217 ## Output files. ##
1218 ## ------------- ##
1219 _ASBOX
1220       echo
1221       for ac_var in $ac_subst_files
1222       do
1223         eval ac_val=$`echo $ac_var`
1224         echo "$ac_var='"'"'$ac_val'"'"'"
1225       done | sort
1226       echo
1227     fi
1228
1229     if test -s confdefs.h; then
1230       cat <<\_ASBOX
1231 ## ----------- ##
1232 ## confdefs.h. ##
1233 ## ----------- ##
1234 _ASBOX
1235       echo
1236       sed "/^$/d" confdefs.h | sort
1237       echo
1238     fi
1239     test "$ac_signal" != 0 &&
1240       echo "$as_me: caught signal $ac_signal"
1241     echo "$as_me: exit $exit_status"
1242   } >&5
1243   rm -f core *.core &&
1244   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1245     exit $exit_status
1246      ' 0
1247 for ac_signal in 1 2 13 15; do
1248   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1249 done
1250 ac_signal=0
1251
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1255 echo >confdefs.h
1256
1257 # Predefined preprocessor variables.
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1281 _ACEOF
1282
1283
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287   if test "x$prefix" != xNONE; then
1288     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289   else
1290     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1291   fi
1292 fi
1293 for ac_site_file in $CONFIG_SITE; do
1294   if test -r "$ac_site_file"; then
1295     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297     sed 's/^/| /' "$ac_site_file" >&5
1298     . "$ac_site_file"
1299   fi
1300 done
1301
1302 if test -r "$cache_file"; then
1303   # Some versions of bash will fail to source /dev/null (special
1304   # files actually), so we avoid doing that.
1305   if test -f "$cache_file"; then
1306     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1308     case $cache_file in
1309       [\\/]* | ?:[\\/]* ) . $cache_file;;
1310       *)                      . ./$cache_file;;
1311     esac
1312   fi
1313 else
1314   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1316   >$cache_file
1317 fi
1318
1319 # Check that the precious variables saved in the cache have kept the same
1320 # value.
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325   eval ac_new_set=\$ac_env_${ac_var}_set
1326   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327   eval ac_new_val="\$ac_env_${ac_var}_value"
1328   case $ac_old_set,$ac_new_set in
1329     set,)
1330       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332       ac_cache_corrupted=: ;;
1333     ,set)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,);;
1338     *)
1339       if test "x$ac_old_val" != "x$ac_new_val"; then
1340         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1343 echo "$as_me:   former value:  $ac_old_val" >&2;}
1344         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1345 echo "$as_me:   current value: $ac_new_val" >&2;}
1346         ac_cache_corrupted=:
1347       fi;;
1348   esac
1349   # Pass precious variables to config.status.
1350   if test "$ac_new_set" = set; then
1351     case $ac_new_val in
1352     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354     *) ac_arg=$ac_var=$ac_new_val ;;
1355     esac
1356     case " $ac_configure_args " in
1357       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1358       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1359     esac
1360   fi
1361 done
1362 if $ac_cache_corrupted; then
1363   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367    { (exit 1); exit 1; }; }
1368 fi
1369
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1396
1397
1398 gcc_version=`cat $srcdir/BASE-VER`
1399
1400 # Determine the host, build, and target systems
1401 ac_aux_dir=
1402 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403   if test -f $ac_dir/install-sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install-sh -c"
1406     break
1407   elif 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/shtool; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/shtool install -c"
1414     break
1415   fi
1416 done
1417 if test -z "$ac_aux_dir"; then
1418   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426 # Make sure we can run config.sub.
1427 $ac_config_sub sun4 >/dev/null 2>&1 ||
1428   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1429 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1430    { (exit 1); exit 1; }; }
1431
1432 echo "$as_me:$LINENO: checking build system type" >&5
1433 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1434 if test "${ac_cv_build+set}" = set; then
1435   echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437   ac_cv_build_alias=$build_alias
1438 test -z "$ac_cv_build_alias" &&
1439   ac_cv_build_alias=`$ac_config_guess`
1440 test -z "$ac_cv_build_alias" &&
1441   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1442 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1443    { (exit 1); exit 1; }; }
1444 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1445   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1446 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1447    { (exit 1); exit 1; }; }
1448
1449 fi
1450 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1451 echo "${ECHO_T}$ac_cv_build" >&6
1452 build=$ac_cv_build
1453 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456
1457
1458 echo "$as_me:$LINENO: checking host system type" >&5
1459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1460 if test "${ac_cv_host+set}" = set; then
1461   echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463   ac_cv_host_alias=$host_alias
1464 test -z "$ac_cv_host_alias" &&
1465   ac_cv_host_alias=$ac_cv_build_alias
1466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1467   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1469    { (exit 1); exit 1; }; }
1470
1471 fi
1472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1473 echo "${ECHO_T}$ac_cv_host" >&6
1474 host=$ac_cv_host
1475 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1476 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1477 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1478
1479
1480 echo "$as_me:$LINENO: checking target system type" >&5
1481 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1482 if test "${ac_cv_target+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   ac_cv_target_alias=$target_alias
1486 test "x$ac_cv_target_alias" = "x" &&
1487   ac_cv_target_alias=$ac_cv_host_alias
1488 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1489   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1491    { (exit 1); exit 1; }; }
1492
1493 fi
1494 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1495 echo "${ECHO_T}$ac_cv_target" >&6
1496 target=$ac_cv_target
1497 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1500
1501
1502 # The aliases save the names the user supplied, while $host etc.
1503 # will get canonicalized.
1504 test -n "$target_alias" &&
1505   test "$program_prefix$program_suffix$program_transform_name" = \
1506     NONENONEs,x,x, &&
1507   program_prefix=${target_alias}-
1508
1509 # Determine the noncanonical target name, for directory use.
1510  case ${build_alias} in
1511   "") build_noncanonical=${build} ;;
1512   *) build_noncanonical=${build_alias} ;;
1513 esac
1514
1515  case ${host_alias} in
1516   "") host_noncanonical=${build_noncanonical} ;;
1517   *) host_noncanonical=${host_alias} ;;
1518 esac
1519
1520  case ${target_alias} in
1521   "") target_noncanonical=${host_noncanonical} ;;
1522   *) target_noncanonical=${target_alias} ;;
1523 esac
1524
1525
1526
1527
1528 # Determine the target- and build-specific subdirectories
1529
1530 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1531 # have matching libraries, they should use host libraries: Makefile.tpl
1532 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1533 # However, they still use the build modules, because the corresponding
1534 # host modules (e.g. bison) are only built for the host when bootstrap
1535 # finishes. So:
1536 # - build_subdir is where we find build modules, and never changes.
1537 # - build_libsubdir is where we find build libraries, and can be overridden.
1538
1539 # Prefix 'build-' so this never conflicts with target_subdir.
1540 build_subdir="build-${build_noncanonical}"
1541
1542 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1543 if test "${with_build_libsubdir+set}" = set; then
1544   withval="$with_build_libsubdir"
1545   build_libsubdir="$withval"
1546 else
1547   build_libsubdir="$build_subdir"
1548 fi;
1549 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1550 if ( test $srcdir = . && test -d gcc ) \
1551    || test -d $srcdir/../host-${host_noncanonical}; then
1552   host_subdir="host-${host_noncanonical}"
1553 else
1554   host_subdir=.
1555 fi
1556 # No prefix.
1557 target_subdir=${target_noncanonical}
1558
1559
1560 # Set program_transform_name
1561 test "$program_prefix" != NONE &&
1562   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1563 # Use a double $ so make ignores it.
1564 test "$program_suffix" != NONE &&
1565   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1566 # Double any \ or $.  echo might interpret backslashes.
1567 # By default was `s,x,x', remove it if useless.
1568 cat <<\_ACEOF >conftest.sed
1569 s/[\\$]/&&/g;s/;s,x,x,$//
1570 _ACEOF
1571 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1572 rm conftest.sed
1573
1574
1575 # Check for bogus environment variables.
1576 # Test if LIBRARY_PATH contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # LIBRARY_PATH contains the current directory if one of the following
1579 # is true:
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1584 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1585 case ${LIBRARY_PATH} in
1586   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1587     library_path_setting="contains current directory"
1588     ;;
1589   *)
1590     library_path_setting="ok"
1591     ;;
1592 esac
1593 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1594 echo "${ECHO_T}$library_path_setting" >&6
1595 if test "$library_path_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** LIBRARY_PATH shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604    { (exit 1); exit 1; }; }
1605 fi
1606
1607 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1608 # since this would lead to problems installing/building glibc.
1609 # GCC_EXEC_PREFIX contains the current directory if one of the following
1610 # is true:
1611 # - one of the terminals (":" and ";") is the first or last sign
1612 # - two terminals occur directly after each other
1613 # - the path contains an element with a dot in it
1614 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1615 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1616 case ${GCC_EXEC_PREFIX} in
1617   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1618     gcc_exec_prefix_setting="contains current directory"
1619     ;;
1620   *)
1621     gcc_exec_prefix_setting="ok"
1622     ;;
1623 esac
1624 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1625 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1626 if test "$gcc_exec_prefix_setting" != "ok"; then
1627 { { echo "$as_me:$LINENO: error:
1628 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1629 *** building gcc. Please change the environment variable
1630 *** and run configure again." >&5
1631 echo "$as_me: 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." >&2;}
1635    { (exit 1); exit 1; }; }
1636 fi
1637
1638 # -----------
1639 # Directories
1640 # -----------
1641
1642 # Specify the local prefix
1643 local_prefix=
1644
1645 # Check whether --with-local-prefix or --without-local-prefix was given.
1646 if test "${with_local_prefix+set}" = set; then
1647   withval="$with_local_prefix"
1648   case "${withval}" in
1649 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1650 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1651    { (exit 1); exit 1; }; } ;;
1652 no)     ;;
1653 *)      local_prefix=$with_local_prefix ;;
1654 esac
1655 fi;
1656
1657 # Default local prefix if it is empty
1658 if test x$local_prefix = x; then
1659         local_prefix=/usr/local
1660 fi
1661
1662 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1663 # passed in by the toplevel make and thus we'd get different behavior
1664 # depending on where we built the sources.
1665 gcc_gxx_include_dir=
1666 # Specify the g++ header file directory
1667
1668 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1669 if test "${with_gxx_include_dir+set}" = set; then
1670   withval="$with_gxx_include_dir"
1671   case "${withval}" in
1672 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1673 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1674    { (exit 1); exit 1; }; } ;;
1675 no)     ;;
1676 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1677 esac
1678 fi;
1679
1680 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1681 if test x${gcc_gxx_include_dir} = x; then
1682   if test x${enable_version_specific_runtime_libs} = xyes; then
1683     gcc_gxx_include_dir='${libsubdir}/include/c++'
1684   else
1685     libstdcxx_incdir='include/c++/$(version)'
1686     if test x$host != x$target; then
1687        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1688     fi
1689     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1690   fi
1691 fi
1692
1693
1694 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1695 if test "${with_cpp_install_dir+set}" = set; then
1696   withval="$with_cpp_install_dir"
1697   if test x$withval = xyes; then
1698   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1699 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1700    { (exit 1); exit 1; }; }
1701 elif test x$withval != xno; then
1702   cpp_install_dir=$withval
1703 fi
1704 fi;
1705
1706 # We would like to our source tree to be readonly.  However when releases or
1707 # pre-releases are generated, the flex/bison generated files as well as the
1708 # various formats of manuals need to be included along with the rest of the
1709 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1710 # just that.
1711
1712 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1713 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1714     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1715 if test "${enable_generated_files_in_srcdir+set}" = set; then
1716   enableval="$enable_generated_files_in_srcdir"
1717   generated_files_in_srcdir=$enableval
1718 else
1719   generated_files_in_srcdir=no
1720 fi;
1721
1722 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1723 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1724
1725 if test "$generated_files_in_srcdir" = "yes"; then
1726   GENINSRC=''
1727 else
1728   GENINSRC='#'
1729 fi
1730
1731
1732 # -------------------
1733 # Find default linker
1734 # -------------------
1735
1736 # With GNU ld
1737
1738 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1739 if test "${with_gnu_ld+set}" = set; then
1740   withval="$with_gnu_ld"
1741   gnu_ld_flag="$with_gnu_ld"
1742 else
1743   gnu_ld_flag=no
1744 fi;
1745
1746 # With pre-defined ld
1747
1748 # Check whether --with-ld or --without-ld was given.
1749 if test "${with_ld+set}" = set; then
1750   withval="$with_ld"
1751   DEFAULT_LINKER="$with_ld"
1752 fi;
1753 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1754   if test ! -x "$DEFAULT_LINKER"; then
1755     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1756 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1757    { (exit 1); exit 1; }; }
1758   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1759     gnu_ld_flag=yes
1760   fi
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1764 _ACEOF
1765
1766 fi
1767
1768 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1769 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1770 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1771   if test x"$gnu_ld_flag" = x"no"; then
1772     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1773 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1774   else
1775     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1776 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1777   fi
1778 else
1779   echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 fi
1782
1783 # With demangler in GNU ld
1784
1785 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1786 if test "${with_demangler_in_ld+set}" = set; then
1787   withval="$with_demangler_in_ld"
1788   demangler_in_ld="$with_demangler_in_ld"
1789 else
1790   demangler_in_ld=no
1791 fi;
1792
1793 # ----------------------
1794 # Find default assembler
1795 # ----------------------
1796
1797 # With GNU as
1798
1799 # Check whether --with-gnu-as or --without-gnu-as was given.
1800 if test "${with_gnu_as+set}" = set; then
1801   withval="$with_gnu_as"
1802   gas_flag="$with_gnu_as"
1803 else
1804   gas_flag=no
1805 fi;
1806
1807
1808 # Check whether --with-as or --without-as was given.
1809 if test "${with_as+set}" = set; then
1810   withval="$with_as"
1811   DEFAULT_ASSEMBLER="$with_as"
1812 fi;
1813 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1814   if test ! -x "$DEFAULT_ASSEMBLER"; then
1815     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1816 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1817    { (exit 1); exit 1; }; }
1818   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1819     gas_flag=yes
1820   fi
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1824 _ACEOF
1825
1826 fi
1827
1828 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1829 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1830 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1831   if test x"$gas_flag" = x"no"; then
1832     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1833 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1834   else
1835     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1836 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1837   fi
1838 else
1839   echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1841 fi
1842
1843 # ---------------
1844 # Find C compiler
1845 # ---------------
1846
1847 # If a non-executable a.out is present (e.g. created by GNU as above even if
1848 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1849 # file, even when creating an executable, so an execution test fails.
1850 # Remove possible default executable files to avoid this.
1851 #
1852 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1853 # Autoconf includes it.
1854 rm -f a.out a.exe b.out
1855
1856 # Find the native compiler
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 if test -n "$ac_tool_prefix"; then
1863   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$CC"; then
1871   ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 CC=$ac_cv_prog_CC
1890 if test -n "$CC"; then
1891   echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898 fi
1899 if test -z "$ac_cv_prog_CC"; then
1900   ac_ct_CC=$CC
1901   # Extract the first word of "gcc", so it can be a program name with args.
1902 set dummy gcc; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1906   echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908   if test -n "$ac_ct_CC"; then
1909   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914   IFS=$as_save_IFS
1915   test -z "$as_dir" && as_dir=.
1916   for ac_exec_ext in '' $ac_executable_extensions; do
1917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918     ac_cv_prog_ac_ct_CC="gcc"
1919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920     break 2
1921   fi
1922 done
1923 done
1924
1925 fi
1926 fi
1927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1928 if test -n "$ac_ct_CC"; then
1929   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1930 echo "${ECHO_T}$ac_ct_CC" >&6
1931 else
1932   echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1935
1936   CC=$ac_ct_CC
1937 else
1938   CC="$ac_cv_prog_CC"
1939 fi
1940
1941 if test -z "$CC"; then
1942   if test -n "$ac_tool_prefix"; then
1943   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}cc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$CC"; then
1951   ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_CC="${ac_tool_prefix}cc"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971   echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 fi
1979 if test -z "$ac_cv_prog_CC"; then
1980   ac_ct_CC=$CC
1981   # Extract the first word of "cc", so it can be a program name with args.
1982 set dummy cc; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   if test -n "$ac_ct_CC"; then
1989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     ac_cv_prog_ac_ct_CC="cc"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004
2005 fi
2006 fi
2007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   CC=$ac_ct_CC
2017 else
2018   CC="$ac_cv_prog_CC"
2019 fi
2020
2021 fi
2022 if test -z "$CC"; then
2023   # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$CC"; then
2031   ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033   ac_prog_rejected=no
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   for ac_exec_ext in '' $ac_executable_extensions; do
2040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2042        ac_prog_rejected=yes
2043        continue
2044      fi
2045     ac_cv_prog_CC="cc"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 if test $ac_prog_rejected = yes; then
2053   # We found a bogon in the path, so make sure we never use it.
2054   set dummy $ac_cv_prog_CC
2055   shift
2056   if test $# != 0; then
2057     # We chose a different compiler from the bogus one.
2058     # However, it has the same basename, so the bogon will be chosen
2059     # first if we set CC to just the basename; use the full file name.
2060     shift
2061     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2062   fi
2063 fi
2064 fi
2065 fi
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068   echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075 fi
2076 if test -z "$CC"; then
2077   if test -n "$ac_tool_prefix"; then
2078   for ac_prog in cl
2079   do
2080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   if test -n "$CC"; then
2088   ac_cv_prog_CC="$CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093   IFS=$as_save_IFS
2094   test -z "$as_dir" && as_dir=.
2095   for ac_exec_ext in '' $ac_executable_extensions; do
2096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099     break 2
2100   fi
2101 done
2102 done
2103
2104 fi
2105 fi
2106 CC=$ac_cv_prog_CC
2107 if test -n "$CC"; then
2108   echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2110 else
2111   echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2113 fi
2114
2115     test -n "$CC" && break
2116   done
2117 fi
2118 if test -z "$CC"; then
2119   ac_ct_CC=$CC
2120   for ac_prog in cl
2121 do
2122   # Extract the first word of "$ac_prog", so it can be a program name with args.
2123 set dummy $ac_prog; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test -n "$ac_ct_CC"; then
2130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135   IFS=$as_save_IFS
2136   test -z "$as_dir" && as_dir=.
2137   for ac_exec_ext in '' $ac_executable_extensions; do
2138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139     ac_cv_prog_ac_ct_CC="$ac_prog"
2140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141     break 2
2142   fi
2143 done
2144 done
2145
2146 fi
2147 fi
2148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149 if test -n "$ac_ct_CC"; then
2150   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151 echo "${ECHO_T}$ac_ct_CC" >&6
2152 else
2153   echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2155 fi
2156
2157   test -n "$ac_ct_CC" && break
2158 done
2159
2160   CC=$ac_ct_CC
2161 fi
2162
2163 fi
2164
2165
2166 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2167 See \`config.log' for more details." >&5
2168 echo "$as_me: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&2;}
2170    { (exit 1); exit 1; }; }
2171
2172 # Provide some information about the compiler.
2173 echo "$as_me:$LINENO:" \
2174      "checking for C compiler version" >&5
2175 ac_compiler=`set X $ac_compile; echo $2`
2176 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2177   (eval $ac_compiler --version </dev/null >&5) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }
2181 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2182   (eval $ac_compiler -v </dev/null >&5) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }
2186 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2187   (eval $ac_compiler -V </dev/null >&5) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }
2191
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h.  */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h.  */
2198
2199 int
2200 main ()
2201 {
2202
2203   ;
2204   return 0;
2205 }
2206 _ACEOF
2207 ac_clean_files_save=$ac_clean_files
2208 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2209 # Try to create an executable without -o first, disregard a.out.
2210 # It will help us diagnose broken compilers, and finding out an intuition
2211 # of exeext.
2212 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2213 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2214 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2216   (eval $ac_link_default) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; then
2220   # Find the output, starting from the most likely.  This scheme is
2221 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2222 # resort.
2223
2224 # Be careful to initialize this variable, since it used to be cached.
2225 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2226 ac_cv_exeext=
2227 # b.out is created by i960 compilers.
2228 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2229 do
2230   test -f "$ac_file" || continue
2231   case $ac_file in
2232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2233         ;;
2234     conftest.$ac_ext )
2235         # This is the source file.
2236         ;;
2237     [ab].out )
2238         # We found the default executable, but exeext='' is most
2239         # certainly right.
2240         break;;
2241     *.* )
2242         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243         # FIXME: I believe we export ac_cv_exeext for Libtool,
2244         # but it would be cool to find out if it's true.  Does anybody
2245         # maintain Libtool? --akim.
2246         export ac_cv_exeext
2247         break;;
2248     * )
2249         break;;
2250   esac
2251 done
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: C compiler cannot create executables
2259 See \`config.log' for more details." >&2;}
2260    { (exit 77); exit 77; }; }
2261 fi
2262
2263 ac_exeext=$ac_cv_exeext
2264 echo "$as_me:$LINENO: result: $ac_file" >&5
2265 echo "${ECHO_T}$ac_file" >&6
2266
2267 # Check the compiler produces executables we can run.  If not, either
2268 # the compiler is broken, or we cross compile.
2269 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2271 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272 # If not cross compiling, check that we can run a simple program.
2273 if test "$cross_compiling" != yes; then
2274   if { ac_try='./$ac_file'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; }; then
2280     cross_compiling=no
2281   else
2282     if test "$cross_compiling" = maybe; then
2283         cross_compiling=yes
2284     else
2285         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot run C compiled programs.
2289 If you meant to cross compile, use \`--host'.
2290 See \`config.log' for more details." >&2;}
2291    { (exit 1); exit 1; }; }
2292     fi
2293   fi
2294 fi
2295 echo "$as_me:$LINENO: result: yes" >&5
2296 echo "${ECHO_T}yes" >&6
2297
2298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2299 ac_clean_files=$ac_clean_files_save
2300 # Check the compiler produces executables we can run.  If not, either
2301 # the compiler is broken, or we cross compile.
2302 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2304 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305 echo "${ECHO_T}$cross_compiling" >&6
2306
2307 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310   (eval $ac_link) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2315 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2316 # work properly (i.e., refer to `conftest.exe'), while it won't with
2317 # `rm'.
2318 for ac_file in conftest.exe conftest conftest.*; do
2319   test -f "$ac_file" || continue
2320   case $ac_file in
2321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2322     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323           export ac_cv_exeext
2324           break;;
2325     * ) break;;
2326   esac
2327 done
2328 else
2329   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }
2334 fi
2335
2336 rm -f conftest$ac_cv_exeext
2337 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2338 echo "${ECHO_T}$ac_cv_exeext" >&6
2339
2340 rm -f conftest.$ac_ext
2341 EXEEXT=$ac_cv_exeext
2342 ac_exeext=$EXEEXT
2343 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2345 if test "${ac_cv_objext+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h.  */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h.  */
2354
2355 int
2356 main ()
2357 {
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.o conftest.obj
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365   (eval $ac_compile) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; then
2369   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2372     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373        break;;
2374   esac
2375 done
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2383 See \`config.log' for more details." >&2;}
2384    { (exit 1); exit 1; }; }
2385 fi
2386
2387 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 fi
2389 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2390 echo "${ECHO_T}$ac_cv_objext" >&6
2391 OBJEXT=$ac_cv_objext
2392 ac_objext=$OBJEXT
2393 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2394 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2395 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404
2405 int
2406 main ()
2407 {
2408 #ifndef __GNUC__
2409        choke me
2410 #endif
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418   (eval $ac_compile) 2>conftest.er1
2419   ac_status=$?
2420   grep -v '^ *+' conftest.er1 >conftest.err
2421   rm -f conftest.er1
2422   cat conftest.err >&5
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); } &&
2425          { ac_try='test -z "$ac_c_werror_flag"
2426                          || test ! -s conftest.err'
2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428   (eval $ac_try) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; } &&
2432          { ac_try='test -s conftest.$ac_objext'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; }; then
2438   ac_compiler_gnu=yes
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 ac_compiler_gnu=no
2444 fi
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447
2448 fi
2449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2451 GCC=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS=${CFLAGS+set}
2453 ac_save_CFLAGS=$CFLAGS
2454 CFLAGS="-g"
2455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2457 if test "${ac_cv_prog_cc_g+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2466
2467 int
2468 main ()
2469 {
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477   (eval $ac_compile) 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag"
2485                          || test ! -s conftest.err'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; } &&
2491          { ac_try='test -s conftest.$ac_objext'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   ac_cv_prog_cc_g=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 ac_cv_prog_cc_g=no
2503 fi
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2508 if test "$ac_test_CFLAGS" = set; then
2509   CFLAGS=$ac_save_CFLAGS
2510 elif test $ac_cv_prog_cc_g = yes; then
2511   if test "$GCC" = yes; then
2512     CFLAGS="-g -O2"
2513   else
2514     CFLAGS="-g"
2515   fi
2516 else
2517   if test "$GCC" = yes; then
2518     CFLAGS="-O2"
2519   else
2520     CFLAGS=
2521   fi
2522 fi
2523 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2524 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2525 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   ac_cv_prog_cc_stdc=no
2529 ac_save_CC=$CC
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536 #include <stdarg.h>
2537 #include <stdio.h>
2538 #include <sys/types.h>
2539 #include <sys/stat.h>
2540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2541 struct buf { int x; };
2542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2543 static char *e (p, i)
2544      char **p;
2545      int i;
2546 {
2547   return p[i];
2548 }
2549 static char *f (char * (*g) (char **, int), char **p, ...)
2550 {
2551   char *s;
2552   va_list v;
2553   va_start (v,p);
2554   s = g (p, va_arg (v,int));
2555   va_end (v);
2556   return s;
2557 }
2558
2559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2560    function prototypes and stuff, but not '\xHH' hex character constants.
2561    These don't provoke an error unfortunately, instead are silently treated
2562    as 'x'.  The following induces an error, until -std1 is added to get
2563    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2564    array size at least.  It's necessary to write '\x00'==0 to get something
2565    that's true only with -std1.  */
2566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2567
2568 int test (int i, double x);
2569 struct s1 {int (*f) (int a);};
2570 struct s2 {int (*f) (double a);};
2571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2572 int argc;
2573 char **argv;
2574 int
2575 main ()
2576 {
2577 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 # Don't try gcc -ansi; that turns off useful extensions and
2583 # breaks some systems' header files.
2584 # AIX                   -qlanglvl=ansi
2585 # Ultrix and OSF/1      -std1
2586 # HP-UX 10.20 and later -Ae
2587 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2588 # SVR4                  -Xc -D__EXTENSIONS__
2589 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2590 do
2591   CC="$ac_save_CC $ac_arg"
2592   rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594   (eval $ac_compile) 2>conftest.er1
2595   ac_status=$?
2596   grep -v '^ *+' conftest.er1 >conftest.err
2597   rm -f conftest.er1
2598   cat conftest.err >&5
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } &&
2601          { ac_try='test -z "$ac_c_werror_flag"
2602                          || test ! -s conftest.err'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; } &&
2608          { ac_try='test -s conftest.$ac_objext'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; }; then
2614   ac_cv_prog_cc_stdc=$ac_arg
2615 break
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2619
2620 fi
2621 rm -f conftest.err conftest.$ac_objext
2622 done
2623 rm -f conftest.$ac_ext conftest.$ac_objext
2624 CC=$ac_save_CC
2625
2626 fi
2627
2628 case "x$ac_cv_prog_cc_stdc" in
2629   x|xno)
2630     echo "$as_me:$LINENO: result: none needed" >&5
2631 echo "${ECHO_T}none needed" >&6 ;;
2632   *)
2633     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2634 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2635     CC="$CC $ac_cv_prog_cc_stdc" ;;
2636 esac
2637
2638 # Some people use a C++ compiler to compile C.  Since we use `exit',
2639 # in C++ we need to declare it.  In case someone uses the same compiler
2640 # for both compiling C and C++ we need to have the C++ compiler decide
2641 # the declaration of exit, since it's the most demanding environment.
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #ifndef __cplusplus
2644   choke me
2645 #endif
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag"
2657                          || test ! -s conftest.err'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; } &&
2663          { ac_try='test -s conftest.$ac_objext'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   for ac_declaration in \
2670    '' \
2671    'extern "C" void std::exit (int) throw (); using std::exit;' \
2672    'extern "C" void std::exit (int); using std::exit;' \
2673    'extern "C" void exit (int) throw ();' \
2674    'extern "C" void exit (int);' \
2675    'void exit (int);'
2676 do
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683 $ac_declaration
2684 #include <stdlib.h>
2685 int
2686 main ()
2687 {
2688 exit (42);
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695   (eval $ac_compile) 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag"
2703                          || test ! -s conftest.err'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; }; then
2715   :
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 continue
2721 fi
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729 $ac_declaration
2730 int
2731 main ()
2732 {
2733 exit (42);
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_c_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   break
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 fi
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767 done
2768 rm -f conftest*
2769 if test -n "$ac_declaration"; then
2770   echo '#ifdef __cplusplus' >>confdefs.h
2771   echo $ac_declaration      >>confdefs.h
2772   echo '#endif'             >>confdefs.h
2773 fi
2774
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787 if test "x$CC" != xcc; then
2788   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2789 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2790 else
2791   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2792 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793 fi
2794 set dummy $CC; ac_cc=`echo $2 |
2795                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2796 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805
2806 int
2807 main ()
2808 {
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 # Make sure it works both with $CC and with simple cc.
2815 # We do the test twice because some compilers refuse to overwrite an
2816 # existing .o file with -o, though they will create one.
2817 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819   (eval $ac_try) 2>&5
2820   ac_status=$?
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); };
2828 then
2829   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2830   if test "x$CC" != xcc; then
2831     # Test first that cc exists at all.
2832     if { ac_try='cc -c conftest.$ac_ext >&5'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); };
2849       then
2850         # cc works too.
2851         :
2852       else
2853         # cc exists but doesn't like -o.
2854         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2855       fi
2856     fi
2857   fi
2858 else
2859   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2865   echo "$as_me:$LINENO: result: yes" >&5
2866 echo "${ECHO_T}yes" >&6
2867 else
2868   echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870
2871 cat >>confdefs.h <<\_ACEOF
2872 #define NO_MINUS_C_MINUS_O 1
2873 _ACEOF
2874
2875 fi
2876
2877 # expand $ac_aux_dir to an absolute path
2878 am_aux_dir=`cd $ac_aux_dir && pwd`
2879
2880 # FIXME: we rely on the cache variable name because
2881 # there is no other way.
2882 set dummy $CC
2883 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2885    # Losing compiler, so override with the script.
2886    # FIXME: It is wrong to rewrite CC.
2887    # But if we don't then we get into trouble of one sort or another.
2888    # A longer-term fix would be to have automake use am__CC in this case,
2889    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2890    CC="$am_aux_dir/compile $CC"
2891 fi
2892
2893 # autoconf is lame and doesn't give us any substitution variable for this.
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2895   NO_MINUS_C_MINUS_O=yes
2896 else
2897   OUTPUT_OPTION='-o $@'
2898 fi
2899
2900
2901
2902 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2903 # optimizations to be activated explicitly by the toplevel.
2904 case "$CC" in
2905   */prev-gcc/xgcc*) ;;
2906   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2907 esac
2908
2909
2910 # -------------------------
2911 # Check C compiler features
2912 # -------------------------
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921 # On Suns, sometimes $CPP names a directory.
2922 if test -n "$CPP" && test -d "$CPP"; then
2923   CPP=
2924 fi
2925 if test -z "$CPP"; then
2926   if test "${ac_cv_prog_CPP+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929       # Double quotes because CPP needs to be expanded
2930     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931     do
2932       ac_preproc_ok=false
2933 for ac_c_preproc_warn_flag in '' yes
2934 do
2935   # Use a header file that comes with gcc, so configuring glibc
2936   # with a fresh cross-compiler works.
2937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938   # <limits.h> exists even on freestanding compilers.
2939   # On the NeXT, cc -E runs the code through the compiler's parser,
2940   # not just through cpp. "Syntax error" is here to catch this case.
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947 #ifdef __STDC__
2948 # include <limits.h>
2949 #else
2950 # include <assert.h>
2951 #endif
2952                      Syntax error
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   :
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977   # Broken: fails on valid input.
2978 continue
2979 fi
2980 rm -f conftest.err conftest.$ac_ext
2981
2982   # OK, works on sane cases.  Now check whether non-existent headers
2983   # can be detected and how.
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 #include <ac_nonexistent.h>
2991 _ACEOF
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null; then
3000   if test -s conftest.err; then
3001     ac_cpp_err=$ac_c_preproc_warn_flag
3002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003   else
3004     ac_cpp_err=
3005   fi
3006 else
3007   ac_cpp_err=yes
3008 fi
3009 if test -z "$ac_cpp_err"; then
3010   # Broken: success on invalid input.
3011 continue
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016   # Passes both tests.
3017 ac_preproc_ok=:
3018 break
3019 fi
3020 rm -f conftest.err conftest.$ac_ext
3021
3022 done
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then
3026   break
3027 fi
3028
3029     done
3030     ac_cv_prog_CPP=$CPP
3031
3032 fi
3033   CPP=$ac_cv_prog_CPP
3034 else
3035   ac_cv_prog_CPP=$CPP
3036 fi
3037 echo "$as_me:$LINENO: result: $CPP" >&5
3038 echo "${ECHO_T}$CPP" >&6
3039 ac_preproc_ok=false
3040 for ac_c_preproc_warn_flag in '' yes
3041 do
3042   # Use a header file that comes with gcc, so configuring glibc
3043   # with a fresh cross-compiler works.
3044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045   # <limits.h> exists even on freestanding compilers.
3046   # On the NeXT, cc -E runs the code through the compiler's parser,
3047   # not just through cpp. "Syntax error" is here to catch this case.
3048   cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 #ifdef __STDC__
3055 # include <limits.h>
3056 #else
3057 # include <assert.h>
3058 #endif
3059                      Syntax error
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } >/dev/null; then
3069   if test -s conftest.err; then
3070     ac_cpp_err=$ac_c_preproc_warn_flag
3071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072   else
3073     ac_cpp_err=
3074   fi
3075 else
3076   ac_cpp_err=yes
3077 fi
3078 if test -z "$ac_cpp_err"; then
3079   :
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084   # Broken: fails on valid input.
3085 continue
3086 fi
3087 rm -f conftest.err conftest.$ac_ext
3088
3089   # OK, works on sane cases.  Now check whether non-existent headers
3090   # can be detected and how.
3091   cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097 #include <ac_nonexistent.h>
3098 _ACEOF
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } >/dev/null; then
3107   if test -s conftest.err; then
3108     ac_cpp_err=$ac_c_preproc_warn_flag
3109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110   else
3111     ac_cpp_err=
3112   fi
3113 else
3114   ac_cpp_err=yes
3115 fi
3116 if test -z "$ac_cpp_err"; then
3117   # Broken: success on invalid input.
3118 continue
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123   # Passes both tests.
3124 ac_preproc_ok=:
3125 break
3126 fi
3127 rm -f conftest.err conftest.$ac_ext
3128
3129 done
3130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131 rm -f conftest.err conftest.$ac_ext
3132 if $ac_preproc_ok; then
3133   :
3134 else
3135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&2;}
3139    { (exit 1); exit 1; }; }
3140 fi
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149 echo "$as_me:$LINENO: checking for inline" >&5
3150 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3151 if test "${ac_cv_c_inline+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   ac_cv_c_inline=no
3155 for ac_kw in inline __inline__ __inline; do
3156   cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 #ifndef __cplusplus
3163 typedef int foo_t;
3164 static $ac_kw foo_t static_foo () {return 0; }
3165 $ac_kw foo_t foo () {return 0; }
3166 #endif
3167
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171   (eval $ac_compile) 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } &&
3178          { ac_try='test -z "$ac_c_werror_flag"
3179                          || test ! -s conftest.err'
3180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181   (eval $ac_try) 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; } &&
3185          { ac_try='test -s conftest.$ac_objext'
3186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187   (eval $ac_try) 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_c_inline=$ac_kw; break
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 fi
3197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3198 done
3199
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3202 echo "${ECHO_T}$ac_cv_c_inline" >&6
3203
3204
3205 case $ac_cv_c_inline in
3206   inline | yes) ;;
3207   *)
3208     case $ac_cv_c_inline in
3209       no) ac_val=;;
3210       *) ac_val=$ac_cv_c_inline;;
3211     esac
3212     cat >>confdefs.h <<_ACEOF
3213 #ifndef __cplusplus
3214 #define inline $ac_val
3215 #endif
3216 _ACEOF
3217     ;;
3218 esac
3219
3220
3221 # sizeof(char) is 1 by definition.
3222
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229     then ac_cv_prog_egrep='grep -E'
3230     else ac_cv_prog_egrep='egrep'
3231     fi
3232 fi
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235  EGREP=$ac_cv_prog_egrep
3236
3237
3238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240 if test "${ac_cv_header_stdc+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h.  */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h.  */
3249 #include <stdlib.h>
3250 #include <stdarg.h>
3251 #include <string.h>
3252 #include <float.h>
3253
3254 int
3255 main ()
3256 {
3257
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264   (eval $ac_compile) 2>conftest.er1
3265   ac_status=$?
3266   grep -v '^ *+' conftest.er1 >conftest.err
3267   rm -f conftest.er1
3268   cat conftest.err >&5
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } &&
3271          { ac_try='test -z "$ac_c_werror_flag"
3272                          || test ! -s conftest.err'
3273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274   (eval $ac_try) 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; } &&
3278          { ac_try='test -s conftest.$ac_objext'
3279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280   (eval $ac_try) 2>&5
3281   ac_status=$?
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); }; }; then
3284   ac_cv_header_stdc=yes
3285 else
3286   echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 ac_cv_header_stdc=no
3290 fi
3291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292
3293 if test $ac_cv_header_stdc = yes; then
3294   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #include <string.h>
3302
3303 _ACEOF
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305   $EGREP "memchr" >/dev/null 2>&1; then
3306   :
3307 else
3308   ac_cv_header_stdc=no
3309 fi
3310 rm -f conftest*
3311
3312 fi
3313
3314 if test $ac_cv_header_stdc = yes; then
3315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322 #include <stdlib.h>
3323
3324 _ACEOF
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326   $EGREP "free" >/dev/null 2>&1; then
3327   :
3328 else
3329   ac_cv_header_stdc=no
3330 fi
3331 rm -f conftest*
3332
3333 fi
3334
3335 if test $ac_cv_header_stdc = yes; then
3336   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337   if test "$cross_compiling" = yes; then
3338   :
3339 else
3340   cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 #include <ctype.h>
3347 #if ((' ' & 0x0FF) == 0x020)
3348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350 #else
3351 # define ISLOWER(c) \
3352                    (('a' <= (c) && (c) <= 'i') \
3353                      || ('j' <= (c) && (c) <= 'r') \
3354                      || ('s' <= (c) && (c) <= 'z'))
3355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3356 #endif
3357
3358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359 int
3360 main ()
3361 {
3362   int i;
3363   for (i = 0; i < 256; i++)
3364     if (XOR (islower (i), ISLOWER (i))
3365         || toupper (i) != TOUPPER (i))
3366       exit(2);
3367   exit (0);
3368 }
3369 _ACEOF
3370 rm -f conftest$ac_exeext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372   (eval $ac_link) 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; }; then
3381   :
3382 else
3383   echo "$as_me: program exited with status $ac_status" >&5
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 ( exit $ac_status )
3388 ac_cv_header_stdc=no
3389 fi
3390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3391 fi
3392 fi
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3395 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3396 if test $ac_cv_header_stdc = yes; then
3397
3398 cat >>confdefs.h <<\_ACEOF
3399 #define STDC_HEADERS 1
3400 _ACEOF
3401
3402 fi
3403
3404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3415                   inttypes.h stdint.h unistd.h
3416 do
3417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3418 echo "$as_me:$LINENO: checking for $ac_header" >&5
3419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 $ac_includes_default
3430
3431 #include <$ac_header>
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435   (eval $ac_compile) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -z "$ac_c_werror_flag"
3443                          || test ! -s conftest.err'
3444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445   (eval $ac_try) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }; } &&
3449          { ac_try='test -s conftest.$ac_objext'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; }; then
3455   eval "$as_ac_Header=yes"
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 eval "$as_ac_Header=no"
3461 fi
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3467   cat >>confdefs.h <<_ACEOF
3468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3469 _ACEOF
3470
3471 fi
3472
3473 done
3474
3475
3476 echo "$as_me:$LINENO: checking for void *" >&5
3477 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3478 if test "${ac_cv_type_void_p+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487 $ac_includes_default
3488 int
3489 main ()
3490 {
3491 if ((void * *) 0)
3492   return 0;
3493 if (sizeof (void *))
3494   return 0;
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501   (eval $ac_compile) 2>conftest.er1
3502   ac_status=$?
3503   grep -v '^ *+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } &&
3508          { ac_try='test -z "$ac_c_werror_flag"
3509                          || test ! -s conftest.err'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; } &&
3515          { ac_try='test -s conftest.$ac_objext'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; }; then
3521   ac_cv_type_void_p=yes
3522 else
3523   echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526 ac_cv_type_void_p=no
3527 fi
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 fi
3530 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3531 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3532
3533 echo "$as_me:$LINENO: checking size of void *" >&5
3534 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3535 if test "${ac_cv_sizeof_void_p+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   if test "$ac_cv_type_void_p" = yes; then
3539   # The cast to unsigned long works around a bug in the HP C Compiler
3540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3542   # This bug is HP SR number 8606223364.
3543   if test "$cross_compiling" = yes; then
3544   # Depending upon the size, compute the lo and hi bounds.
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 $ac_includes_default
3552 int
3553 main ()
3554 {
3555 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3556 test_array [0] = 0
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564   (eval $ac_compile) 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } &&
3571          { ac_try='test -z "$ac_c_werror_flag"
3572                          || test ! -s conftest.err'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; } &&
3578          { ac_try='test -s conftest.$ac_objext'
3579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580   (eval $ac_try) 2>&5
3581   ac_status=$?
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); }; }; then
3584   ac_lo=0 ac_mid=0
3585   while :; do
3586     cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h.  */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h.  */
3592 $ac_includes_default
3593 int
3594 main ()
3595 {
3596 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3597 test_array [0] = 0
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605   (eval $ac_compile) 2>conftest.er1
3606   ac_status=$?
3607   grep -v '^ *+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } &&
3612          { ac_try='test -z "$ac_c_werror_flag"
3613                          || test ! -s conftest.err'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; } &&
3619          { ac_try='test -s conftest.$ac_objext'
3620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621   (eval $ac_try) 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); }; }; then
3625   ac_hi=$ac_mid; break
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 ac_lo=`expr $ac_mid + 1`
3631                     if test $ac_lo -le $ac_mid; then
3632                       ac_lo= ac_hi=
3633                       break
3634                     fi
3635                     ac_mid=`expr 2 '*' $ac_mid + 1`
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638   done
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 $ac_includes_default
3650 int
3651 main ()
3652 {
3653 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3654 test_array [0] = 0
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"
3670                          || test ! -s conftest.err'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; } &&
3676          { ac_try='test -s conftest.$ac_objext'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682   ac_hi=-1 ac_mid=-1
3683   while :; do
3684     cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690 $ac_includes_default
3691 int
3692 main ()
3693 {
3694 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3695 test_array [0] = 0
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703   (eval $ac_compile) 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } &&
3710          { ac_try='test -z "$ac_c_werror_flag"
3711                          || test ! -s conftest.err'
3712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713   (eval $ac_try) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; } &&
3717          { ac_try='test -s conftest.$ac_objext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   ac_lo=$ac_mid; break
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 ac_hi=`expr '(' $ac_mid ')' - 1`
3729                        if test $ac_mid -le $ac_hi; then
3730                          ac_lo= ac_hi=
3731                          break
3732                        fi
3733                        ac_mid=`expr 2 '*' $ac_mid`
3734 fi
3735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736   done
3737 else
3738   echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ac_lo= ac_hi=
3742 fi
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746 # Binary search between lo and hi bounds.
3747 while test "x$ac_lo" != "x$ac_hi"; do
3748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3749   cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h.  */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h.  */
3755 $ac_includes_default
3756 int
3757 main ()
3758 {
3759 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3760 test_array [0] = 0
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768   (eval $ac_compile) 2>conftest.er1
3769   ac_status=$?
3770   grep -v '^ *+' conftest.er1 >conftest.err
3771   rm -f conftest.er1
3772   cat conftest.err >&5
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); } &&
3775          { ac_try='test -z "$ac_c_werror_flag"
3776                          || test ! -s conftest.err'
3777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778   (eval $ac_try) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); }; } &&
3782          { ac_try='test -s conftest.$ac_objext'
3783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784   (eval $ac_try) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }; }; then
3788   ac_hi=$ac_mid
3789 else
3790   echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 ac_lo=`expr '(' $ac_mid ')' + 1`
3794 fi
3795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796 done
3797 case $ac_lo in
3798 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3800 See \`config.log' for more details." >&5
3801 echo "$as_me: error: cannot compute sizeof (void *), 77
3802 See \`config.log' for more details." >&2;}
3803    { (exit 1); exit 1; }; } ;;
3804 esac
3805 else
3806   if test "$cross_compiling" = yes; then
3807   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3808 See \`config.log' for more details." >&5
3809 echo "$as_me: error: cannot run test program while cross compiling
3810 See \`config.log' for more details." >&2;}
3811    { (exit 1); exit 1; }; }
3812 else
3813   cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819 $ac_includes_default
3820 long longval () { return (long) (sizeof (void *)); }
3821 unsigned long ulongval () { return (long) (sizeof (void *)); }
3822 #include <stdio.h>
3823 #include <stdlib.h>
3824 int
3825 main ()
3826 {
3827
3828   FILE *f = fopen ("conftest.val", "w");
3829   if (! f)
3830     exit (1);
3831   if (((long) (sizeof (void *))) < 0)
3832     {
3833       long i = longval ();
3834       if (i != ((long) (sizeof (void *))))
3835         exit (1);
3836       fprintf (f, "%ld\n", i);
3837     }
3838   else
3839     {
3840       unsigned long i = ulongval ();
3841       if (i != ((long) (sizeof (void *))))
3842         exit (1);
3843       fprintf (f, "%lu\n", i);
3844     }
3845   exit (ferror (f) || fclose (f) != 0);
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853   (eval $ac_link) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; }; then
3862   ac_cv_sizeof_void_p=`cat conftest.val`
3863 else
3864   echo "$as_me: program exited with status $ac_status" >&5
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 ( exit $ac_status )
3869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3870 See \`config.log' for more details." >&5
3871 echo "$as_me: error: cannot compute sizeof (void *), 77
3872 See \`config.log' for more details." >&2;}
3873    { (exit 1); exit 1; }; }
3874 fi
3875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876 fi
3877 fi
3878 rm -f conftest.val
3879 else
3880   ac_cv_sizeof_void_p=0
3881 fi
3882 fi
3883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3884 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3885 cat >>confdefs.h <<_ACEOF
3886 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3887 _ACEOF
3888
3889
3890 echo "$as_me:$LINENO: checking for short" >&5
3891 echo $ECHO_N "checking for short... $ECHO_C" >&6
3892 if test "${ac_cv_type_short+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 $ac_includes_default
3902 int
3903 main ()
3904 {
3905 if ((short *) 0)
3906   return 0;
3907 if (sizeof (short))
3908   return 0;
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915   (eval $ac_compile) 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } &&
3922          { ac_try='test -z "$ac_c_werror_flag"
3923                          || test ! -s conftest.err'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; } &&
3929          { ac_try='test -s conftest.$ac_objext'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; }; then
3935   ac_cv_type_short=yes
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 ac_cv_type_short=no
3941 fi
3942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943 fi
3944 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3945 echo "${ECHO_T}$ac_cv_type_short" >&6
3946
3947 echo "$as_me:$LINENO: checking size of short" >&5
3948 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3949 if test "${ac_cv_sizeof_short+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test "$ac_cv_type_short" = yes; then
3953   # The cast to unsigned long works around a bug in the HP C Compiler
3954   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3955   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3956   # This bug is HP SR number 8606223364.
3957   if test "$cross_compiling" = yes; then
3958   # Depending upon the size, compute the lo and hi bounds.
3959 cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965 $ac_includes_default
3966 int
3967 main ()
3968 {
3969 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3970 test_array [0] = 0
3971
3972   ;
3973   return 0;
3974 }
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -z "$ac_c_werror_flag"
3986                          || test ! -s conftest.err'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_lo=0 ac_mid=0
3999   while :; do
4000     cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h.  */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h.  */
4006 $ac_includes_default
4007 int
4008 main ()
4009 {
4010 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4011 test_array [0] = 0
4012
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019   (eval $ac_compile) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag"
4027                          || test ! -s conftest.err'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; }; then
4039   ac_hi=$ac_mid; break
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 ac_lo=`expr $ac_mid + 1`
4045                     if test $ac_lo -le $ac_mid; then
4046                       ac_lo= ac_hi=
4047                       break
4048                     fi
4049                     ac_mid=`expr 2 '*' $ac_mid + 1`
4050 fi
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052   done
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h.  */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h.  */
4063 $ac_includes_default
4064 int
4065 main ()
4066 {
4067 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4068 test_array [0] = 0
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076   (eval $ac_compile) 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } &&
4083          { ac_try='test -z "$ac_c_werror_flag"
4084                          || test ! -s conftest.err'
4085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086   (eval $ac_try) 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; } &&
4090          { ac_try='test -s conftest.$ac_objext'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; }; then
4096   ac_hi=-1 ac_mid=-1
4097   while :; do
4098     cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 $ac_includes_default
4105 int
4106 main ()
4107 {
4108 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4109 test_array [0] = 0
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117   (eval $ac_compile) 2>conftest.er1
4118   ac_status=$?
4119   grep -v '^ *+' conftest.er1 >conftest.err
4120   rm -f conftest.er1
4121   cat conftest.err >&5
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); } &&
4124          { ac_try='test -z "$ac_c_werror_flag"
4125                          || test ! -s conftest.err'
4126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127   (eval $ac_try) 2>&5
4128   ac_status=$?
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); }; } &&
4131          { ac_try='test -s conftest.$ac_objext'
4132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133   (eval $ac_try) 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; }; then
4137   ac_lo=$ac_mid; break
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_hi=`expr '(' $ac_mid ')' - 1`
4143                        if test $ac_mid -le $ac_hi; then
4144                          ac_lo= ac_hi=
4145                          break
4146                        fi
4147                        ac_mid=`expr 2 '*' $ac_mid`
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150   done
4151 else
4152   echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155 ac_lo= ac_hi=
4156 fi
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160 # Binary search between lo and hi bounds.
4161 while test "x$ac_lo" != "x$ac_hi"; do
4162   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4163   cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 $ac_includes_default
4170 int
4171 main ()
4172 {
4173 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4174 test_array [0] = 0
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182   (eval $ac_compile) 2>conftest.er1
4183   ac_status=$?
4184   grep -v '^ *+' conftest.er1 >conftest.err
4185   rm -f conftest.er1
4186   cat conftest.err >&5
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } &&
4189          { ac_try='test -z "$ac_c_werror_flag"
4190                          || test ! -s conftest.err'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   ac_hi=$ac_mid
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_lo=`expr '(' $ac_mid ')' + 1`
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 done
4211 case $ac_lo in
4212 ?*) ac_cv_sizeof_short=$ac_lo;;
4213 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4214 See \`config.log' for more details." >&5
4215 echo "$as_me: error: cannot compute sizeof (short), 77
4216 See \`config.log' for more details." >&2;}
4217    { (exit 1); exit 1; }; } ;;
4218 esac
4219 else
4220   if test "$cross_compiling" = yes; then
4221   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot run test program while cross compiling
4224 See \`config.log' for more details." >&2;}
4225    { (exit 1); exit 1; }; }
4226 else
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 $ac_includes_default
4234 long longval () { return (long) (sizeof (short)); }
4235 unsigned long ulongval () { return (long) (sizeof (short)); }
4236 #include <stdio.h>
4237 #include <stdlib.h>
4238 int
4239 main ()
4240 {
4241
4242   FILE *f = fopen ("conftest.val", "w");
4243   if (! f)
4244     exit (1);
4245   if (((long) (sizeof (short))) < 0)
4246     {
4247       long i = longval ();
4248       if (i != ((long) (sizeof (short))))
4249         exit (1);
4250       fprintf (f, "%ld\n", i);
4251     }
4252   else
4253     {
4254       unsigned long i = ulongval ();
4255       if (i != ((long) (sizeof (short))))
4256         exit (1);
4257       fprintf (f, "%lu\n", i);
4258     }
4259   exit (ferror (f) || fclose (f) != 0);
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267   (eval $ac_link) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4276   ac_cv_sizeof_short=`cat conftest.val`
4277 else
4278   echo "$as_me: program exited with status $ac_status" >&5
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 ( exit $ac_status )
4283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4284 See \`config.log' for more details." >&5
4285 echo "$as_me: error: cannot compute sizeof (short), 77
4286 See \`config.log' for more details." >&2;}
4287    { (exit 1); exit 1; }; }
4288 fi
4289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 fi
4292 rm -f conftest.val
4293 else
4294   ac_cv_sizeof_short=0
4295 fi
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4298 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4299 cat >>confdefs.h <<_ACEOF
4300 #define SIZEOF_SHORT $ac_cv_sizeof_short
4301 _ACEOF
4302
4303
4304 echo "$as_me:$LINENO: checking for int" >&5
4305 echo $ECHO_N "checking for int... $ECHO_C" >&6
4306 if test "${ac_cv_type_int+set}" = set; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316 int
4317 main ()
4318 {
4319 if ((int *) 0)
4320   return 0;
4321 if (sizeof (int))
4322   return 0;
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329   (eval $ac_compile) 2>conftest.er1
4330   ac_status=$?
4331   grep -v '^ *+' conftest.er1 >conftest.err
4332   rm -f conftest.er1
4333   cat conftest.err >&5
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } &&
4336          { ac_try='test -z "$ac_c_werror_flag"
4337                          || test ! -s conftest.err'
4338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339   (eval $ac_try) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; } &&
4343          { ac_try='test -s conftest.$ac_objext'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   ac_cv_type_int=yes
4350 else
4351   echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 ac_cv_type_int=no
4355 fi
4356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4359 echo "${ECHO_T}$ac_cv_type_int" >&6
4360
4361 echo "$as_me:$LINENO: checking size of int" >&5
4362 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4363 if test "${ac_cv_sizeof_int+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   if test "$ac_cv_type_int" = yes; then
4367   # The cast to unsigned long works around a bug in the HP C Compiler
4368   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4369   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4370   # This bug is HP SR number 8606223364.
4371   if test "$cross_compiling" = yes; then
4372   # Depending upon the size, compute the lo and hi bounds.
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379 $ac_includes_default
4380 int
4381 main ()
4382 {
4383 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4384 test_array [0] = 0
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392   (eval $ac_compile) 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag"
4400                          || test ! -s conftest.err'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; } &&
4406          { ac_try='test -s conftest.$ac_objext'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; }; then
4412   ac_lo=0 ac_mid=0
4413   while :; do
4414     cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420 $ac_includes_default
4421 int
4422 main ()
4423 {
4424 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4425 test_array [0] = 0
4426
4427   ;
4428   return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433   (eval $ac_compile) 2>conftest.er1
4434   ac_status=$?
4435   grep -v '^ *+' conftest.er1 >conftest.err
4436   rm -f conftest.er1
4437   cat conftest.err >&5
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } &&
4440          { ac_try='test -z "$ac_c_werror_flag"
4441                          || test ! -s conftest.err'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; } &&
4447          { ac_try='test -s conftest.$ac_objext'
4448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449   (eval $ac_try) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; }; then
4453   ac_hi=$ac_mid; break
4454 else
4455   echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 ac_lo=`expr $ac_mid + 1`
4459                     if test $ac_lo -le $ac_mid; then
4460                       ac_lo= ac_hi=
4461                       break
4462                     fi
4463                     ac_mid=`expr 2 '*' $ac_mid + 1`
4464 fi
4465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4466   done
4467 else
4468   echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 $ac_includes_default
4478 int
4479 main ()
4480 {
4481 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4482 test_array [0] = 0
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490   (eval $ac_compile) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } &&
4497          { ac_try='test -z "$ac_c_werror_flag"
4498                          || test ! -s conftest.err'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; } &&
4504          { ac_try='test -s conftest.$ac_objext'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; }; then
4510   ac_hi=-1 ac_mid=-1
4511   while :; do
4512     cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 $ac_includes_default
4519 int
4520 main ()
4521 {
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4523 test_array [0] = 0
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531   (eval $ac_compile) 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } &&
4538          { ac_try='test -z "$ac_c_werror_flag"
4539                          || test ! -s conftest.err'
4540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541   (eval $ac_try) 2>&5
4542   ac_status=$?
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); }; } &&
4545          { ac_try='test -s conftest.$ac_objext'
4546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; }; then
4551   ac_lo=$ac_mid; break
4552 else
4553   echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_hi=`expr '(' $ac_mid ')' - 1`
4557                        if test $ac_mid -le $ac_hi; then
4558                          ac_lo= ac_hi=
4559                          break
4560                        fi
4561                        ac_mid=`expr 2 '*' $ac_mid`
4562 fi
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564   done
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 ac_lo= ac_hi=
4570 fi
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574 # Binary search between lo and hi bounds.
4575 while test "x$ac_lo" != "x$ac_hi"; do
4576   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4577   cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 $ac_includes_default
4584 int
4585 main ()
4586 {
4587 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4588 test_array [0] = 0
4589
4590   ;
4591   return 0;
4592 }
4593 _ACEOF
4594 rm -f conftest.$ac_objext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596   (eval $ac_compile) 2>conftest.er1
4597   ac_status=$?
4598   grep -v '^ *+' conftest.er1 >conftest.err
4599   rm -f conftest.er1
4600   cat conftest.err >&5
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } &&
4603          { ac_try='test -z "$ac_c_werror_flag"
4604                          || test ! -s conftest.err'
4605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606   (eval $ac_try) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; } &&
4610          { ac_try='test -s conftest.$ac_objext'
4611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612   (eval $ac_try) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; }; then
4616   ac_hi=$ac_mid
4617 else
4618   echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 ac_lo=`expr '(' $ac_mid ')' + 1`
4622 fi
4623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624 done
4625 case $ac_lo in
4626 ?*) ac_cv_sizeof_int=$ac_lo;;
4627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&2;}
4631    { (exit 1); exit 1; }; } ;;
4632 esac
4633 else
4634   if test "$cross_compiling" = yes; then
4635   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot run test program while cross compiling
4638 See \`config.log' for more details." >&2;}
4639    { (exit 1); exit 1; }; }
4640 else
4641   cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 $ac_includes_default
4648 long longval () { return (long) (sizeof (int)); }
4649 unsigned long ulongval () { return (long) (sizeof (int)); }
4650 #include <stdio.h>
4651 #include <stdlib.h>
4652 int
4653 main ()
4654 {
4655
4656   FILE *f = fopen ("conftest.val", "w");
4657   if (! f)
4658     exit (1);
4659   if (((long) (sizeof (int))) < 0)
4660     {
4661       long i = longval ();
4662       if (i != ((long) (sizeof (int))))
4663         exit (1);
4664       fprintf (f, "%ld\n", i);
4665     }
4666   else
4667     {
4668       unsigned long i = ulongval ();
4669       if (i != ((long) (sizeof (int))))
4670         exit (1);
4671       fprintf (f, "%lu\n", i);
4672     }
4673   exit (ferror (f) || fclose (f) != 0);
4674
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681   (eval $ac_link) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4690   ac_cv_sizeof_int=`cat conftest.val`
4691 else
4692   echo "$as_me: program exited with status $ac_status" >&5
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ( exit $ac_status )
4697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: cannot compute sizeof (int), 77
4700 See \`config.log' for more details." >&2;}
4701    { (exit 1); exit 1; }; }
4702 fi
4703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 fi
4706 rm -f conftest.val
4707 else
4708   ac_cv_sizeof_int=0
4709 fi
4710 fi
4711 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4712 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4713 cat >>confdefs.h <<_ACEOF
4714 #define SIZEOF_INT $ac_cv_sizeof_int
4715 _ACEOF
4716
4717
4718 echo "$as_me:$LINENO: checking for long" >&5
4719 echo $ECHO_N "checking for long... $ECHO_C" >&6
4720 if test "${ac_cv_type_long+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729 $ac_includes_default
4730 int
4731 main ()
4732 {
4733 if ((long *) 0)
4734   return 0;
4735 if (sizeof (long))
4736   return 0;
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743   (eval $ac_compile) 2>conftest.er1
4744   ac_status=$?
4745   grep -v '^ *+' conftest.er1 >conftest.err
4746   rm -f conftest.er1
4747   cat conftest.err >&5
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } &&
4750          { ac_try='test -z "$ac_c_werror_flag"
4751                          || test ! -s conftest.err'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; } &&
4757          { ac_try='test -s conftest.$ac_objext'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; }; then
4763   ac_cv_type_long=yes
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_cv_type_long=no
4769 fi
4770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4773 echo "${ECHO_T}$ac_cv_type_long" >&6
4774
4775 echo "$as_me:$LINENO: checking size of long" >&5
4776 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4777 if test "${ac_cv_sizeof_long+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if test "$ac_cv_type_long" = yes; then
4781   # The cast to unsigned long works around a bug in the HP C Compiler
4782   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4783   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4784   # This bug is HP SR number 8606223364.
4785   if test "$cross_compiling" = yes; then
4786   # Depending upon the size, compute the lo and hi bounds.
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 $ac_includes_default
4794 int
4795 main ()
4796 {
4797 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4798 test_array [0] = 0
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806   (eval $ac_compile) 2>conftest.er1
4807   ac_status=$?
4808   grep -v '^ *+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } &&
4813          { ac_try='test -z "$ac_c_werror_flag"
4814                          || test ! -s conftest.err'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; } &&
4820          { ac_try='test -s conftest.$ac_objext'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; }; then
4826   ac_lo=0 ac_mid=0
4827   while :; do
4828     cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834 $ac_includes_default
4835 int
4836 main ()
4837 {
4838 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4839 test_array [0] = 0
4840
4841   ;
4842   return 0;
4843 }
4844 _ACEOF
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847   (eval $ac_compile) 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } &&
4854          { ac_try='test -z "$ac_c_werror_flag"
4855                          || test ! -s conftest.err'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; } &&
4861          { ac_try='test -s conftest.$ac_objext'
4862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863   (eval $ac_try) 2>&5
4864   ac_status=$?
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); }; }; then
4867   ac_hi=$ac_mid; break
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_lo=`expr $ac_mid + 1`
4873                     if test $ac_lo -le $ac_mid; then
4874                       ac_lo= ac_hi=
4875                       break
4876                     fi
4877                     ac_mid=`expr 2 '*' $ac_mid + 1`
4878 fi
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880   done
4881 else
4882   echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4884
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891 $ac_includes_default
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4896 test_array [0] = 0
4897
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904   (eval $ac_compile) 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -z "$ac_c_werror_flag"
4912                          || test ! -s conftest.err'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; } &&
4918          { ac_try='test -s conftest.$ac_objext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_hi=-1 ac_mid=-1
4925   while :; do
4926     cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 $ac_includes_default
4933 int
4934 main ()
4935 {
4936 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4937 test_array [0] = 0
4938
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945   (eval $ac_compile) 2>conftest.er1
4946   ac_status=$?
4947   grep -v '^ *+' conftest.er1 >conftest.err
4948   rm -f conftest.er1
4949   cat conftest.err >&5
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); } &&
4952          { ac_try='test -z "$ac_c_werror_flag"
4953                          || test ! -s conftest.err'
4954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955   (eval $ac_try) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; } &&
4959          { ac_try='test -s conftest.$ac_objext'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; }; then
4965   ac_lo=$ac_mid; break
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_hi=`expr '(' $ac_mid ')' - 1`
4971                        if test $ac_mid -le $ac_hi; then
4972                          ac_lo= ac_hi=
4973                          break
4974                        fi
4975                        ac_mid=`expr 2 '*' $ac_mid`
4976 fi
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978   done
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 ac_lo= ac_hi=
4984 fi
4985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 # Binary search between lo and hi bounds.
4989 while test "x$ac_lo" != "x$ac_hi"; do
4990   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4991   cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h.  */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h.  */
4997 $ac_includes_default
4998 int
4999 main ()
5000 {
5001 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5002 test_array [0] = 0
5003
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010   (eval $ac_compile) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -z "$ac_c_werror_flag"
5018                          || test ! -s conftest.err'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; } &&
5024          { ac_try='test -s conftest.$ac_objext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   ac_hi=$ac_mid
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ac_lo=`expr '(' $ac_mid ')' + 1`
5036 fi
5037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 done
5039 case $ac_lo in
5040 ?*) ac_cv_sizeof_long=$ac_lo;;
5041 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5042 See \`config.log' for more details." >&5
5043 echo "$as_me: error: cannot compute sizeof (long), 77
5044 See \`config.log' for more details." >&2;}
5045    { (exit 1); exit 1; }; } ;;
5046 esac
5047 else
5048   if test "$cross_compiling" = yes; then
5049   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5050 See \`config.log' for more details." >&5
5051 echo "$as_me: error: cannot run test program while cross compiling
5052 See \`config.log' for more details." >&2;}
5053    { (exit 1); exit 1; }; }
5054 else
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 $ac_includes_default
5062 long longval () { return (long) (sizeof (long)); }
5063 unsigned long ulongval () { return (long) (sizeof (long)); }
5064 #include <stdio.h>
5065 #include <stdlib.h>
5066 int
5067 main ()
5068 {
5069
5070   FILE *f = fopen ("conftest.val", "w");
5071   if (! f)
5072     exit (1);
5073   if (((long) (sizeof (long))) < 0)
5074     {
5075       long i = longval ();
5076       if (i != ((long) (sizeof (long))))
5077         exit (1);
5078       fprintf (f, "%ld\n", i);
5079     }
5080   else
5081     {
5082       unsigned long i = ulongval ();
5083       if (i != ((long) (sizeof (long))))
5084         exit (1);
5085       fprintf (f, "%lu\n", i);
5086     }
5087   exit (ferror (f) || fclose (f) != 0);
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095   (eval $ac_link) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
5104   ac_cv_sizeof_long=`cat conftest.val`
5105 else
5106   echo "$as_me: program exited with status $ac_status" >&5
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ( exit $ac_status )
5111 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5112 See \`config.log' for more details." >&5
5113 echo "$as_me: error: cannot compute sizeof (long), 77
5114 See \`config.log' for more details." >&2;}
5115    { (exit 1); exit 1; }; }
5116 fi
5117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 fi
5119 fi
5120 rm -f conftest.val
5121 else
5122   ac_cv_sizeof_long=0
5123 fi
5124 fi
5125 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5126 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5127 cat >>confdefs.h <<_ACEOF
5128 #define SIZEOF_LONG $ac_cv_sizeof_long
5129 _ACEOF
5130
5131
5132 echo "$as_me:$LINENO: checking for long long" >&5
5133 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5134 if test "${ac_cv_type_long_long+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 $ac_includes_default
5144 int
5145 main ()
5146 {
5147 if ((long long *) 0)
5148   return 0;
5149 if (sizeof (long long))
5150   return 0;
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157   (eval $ac_compile) 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } &&
5164          { ac_try='test -z "$ac_c_werror_flag"
5165                          || test ! -s conftest.err'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_type_long_long=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ac_cv_type_long_long=no
5183 fi
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5187 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5188 if test $ac_cv_type_long_long = yes; then
5189
5190 cat >>confdefs.h <<_ACEOF
5191 #define HAVE_LONG_LONG 1
5192 _ACEOF
5193
5194 echo "$as_me:$LINENO: checking for long long" >&5
5195 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5196 if test "${ac_cv_type_long_long+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 $ac_includes_default
5206 int
5207 main ()
5208 {
5209 if ((long long *) 0)
5210   return 0;
5211 if (sizeof (long long))
5212   return 0;
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219   (eval $ac_compile) 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } &&
5226          { ac_try='test -z "$ac_c_werror_flag"
5227                          || test ! -s conftest.err'
5228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229   (eval $ac_try) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; } &&
5233          { ac_try='test -s conftest.$ac_objext'
5234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235   (eval $ac_try) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; }; then
5239   ac_cv_type_long_long=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 ac_cv_type_long_long=no
5245 fi
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5249 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5250
5251 echo "$as_me:$LINENO: checking size of long long" >&5
5252 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5253 if test "${ac_cv_sizeof_long_long+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test "$ac_cv_type_long_long" = yes; then
5257   # The cast to unsigned long works around a bug in the HP C Compiler
5258   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5259   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5260   # This bug is HP SR number 8606223364.
5261   if test "$cross_compiling" = yes; then
5262   # Depending upon the size, compute the lo and hi bounds.
5263 cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h.  */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h.  */
5269 $ac_includes_default
5270 int
5271 main ()
5272 {
5273 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5274 test_array [0] = 0
5275
5276   ;
5277   return 0;
5278 }
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282   (eval $ac_compile) 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } &&
5289          { ac_try='test -z "$ac_c_werror_flag"
5290                          || test ! -s conftest.err'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; } &&
5296          { ac_try='test -s conftest.$ac_objext'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; }; then
5302   ac_lo=0 ac_mid=0
5303   while :; do
5304     cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 $ac_includes_default
5311 int
5312 main ()
5313 {
5314 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5315 test_array [0] = 0
5316
5317   ;
5318   return 0;
5319 }
5320 _ACEOF
5321 rm -f conftest.$ac_objext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323   (eval $ac_compile) 2>conftest.er1
5324   ac_status=$?
5325   grep -v '^ *+' conftest.er1 >conftest.err
5326   rm -f conftest.er1
5327   cat conftest.err >&5
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); } &&
5330          { ac_try='test -z "$ac_c_werror_flag"
5331                          || test ! -s conftest.err'
5332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333   (eval $ac_try) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; } &&
5337          { ac_try='test -s conftest.$ac_objext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   ac_hi=$ac_mid; break
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_lo=`expr $ac_mid + 1`
5349                     if test $ac_lo -le $ac_mid; then
5350                       ac_lo= ac_hi=
5351                       break
5352                     fi
5353                     ac_mid=`expr 2 '*' $ac_mid + 1`
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356   done
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 $ac_includes_default
5368 int
5369 main ()
5370 {
5371 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5372 test_array [0] = 0
5373
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380   (eval $ac_compile) 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } &&
5387          { ac_try='test -z "$ac_c_werror_flag"
5388                          || test ! -s conftest.err'
5389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390   (eval $ac_try) 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; } &&
5394          { ac_try='test -s conftest.$ac_objext'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; }; then
5400   ac_hi=-1 ac_mid=-1
5401   while :; do
5402     cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 $ac_includes_default
5409 int
5410 main ()
5411 {
5412 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5413 test_array [0] = 0
5414
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421   (eval $ac_compile) 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_c_werror_flag"
5429                          || test ! -s conftest.err'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_lo=$ac_mid; break
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_hi=`expr '(' $ac_mid ')' - 1`
5447                        if test $ac_mid -le $ac_hi; then
5448                          ac_lo= ac_hi=
5449                          break
5450                        fi
5451                        ac_mid=`expr 2 '*' $ac_mid`
5452 fi
5453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454   done
5455 else
5456   echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_lo= ac_hi=
5460 fi
5461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 # Binary search between lo and hi bounds.
5465 while test "x$ac_lo" != "x$ac_hi"; do
5466   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5467   cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 $ac_includes_default
5474 int
5475 main ()
5476 {
5477 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5478 test_array [0] = 0
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486   (eval $ac_compile) 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } &&
5493          { ac_try='test -z "$ac_c_werror_flag"
5494                          || test ! -s conftest.err'
5495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496   (eval $ac_try) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); }; } &&
5500          { ac_try='test -s conftest.$ac_objext'
5501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502   (eval $ac_try) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); }; }; then
5506   ac_hi=$ac_mid
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511 ac_lo=`expr '(' $ac_mid ')' + 1`
5512 fi
5513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514 done
5515 case $ac_lo in
5516 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5518 See \`config.log' for more details." >&5
5519 echo "$as_me: error: cannot compute sizeof (long long), 77
5520 See \`config.log' for more details." >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523 else
5524   if test "$cross_compiling" = yes; then
5525   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5526 See \`config.log' for more details." >&5
5527 echo "$as_me: error: cannot run test program while cross compiling
5528 See \`config.log' for more details." >&2;}
5529    { (exit 1); exit 1; }; }
5530 else
5531   cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h.  */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h.  */
5537 $ac_includes_default
5538 long longval () { return (long) (sizeof (long long)); }
5539 unsigned long ulongval () { return (long) (sizeof (long long)); }
5540 #include <stdio.h>
5541 #include <stdlib.h>
5542 int
5543 main ()
5544 {
5545
5546   FILE *f = fopen ("conftest.val", "w");
5547   if (! f)
5548     exit (1);
5549   if (((long) (sizeof (long long))) < 0)
5550     {
5551       long i = longval ();
5552       if (i != ((long) (sizeof (long long))))
5553         exit (1);
5554       fprintf (f, "%ld\n", i);
5555     }
5556   else
5557     {
5558       unsigned long i = ulongval ();
5559       if (i != ((long) (sizeof (long long))))
5560         exit (1);
5561       fprintf (f, "%lu\n", i);
5562     }
5563   exit (ferror (f) || fclose (f) != 0);
5564
5565   ;
5566   return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest$ac_exeext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571   (eval $ac_link) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576   (eval $ac_try) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }; }; then
5580   ac_cv_sizeof_long_long=`cat conftest.val`
5581 else
5582   echo "$as_me: program exited with status $ac_status" >&5
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ( exit $ac_status )
5587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5588 See \`config.log' for more details." >&5
5589 echo "$as_me: error: cannot compute sizeof (long long), 77
5590 See \`config.log' for more details." >&2;}
5591    { (exit 1); exit 1; }; }
5592 fi
5593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5594 fi
5595 fi
5596 rm -f conftest.val
5597 else
5598   ac_cv_sizeof_long_long=0
5599 fi
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5602 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5603 cat >>confdefs.h <<_ACEOF
5604 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5605 _ACEOF
5606
5607
5608 fi
5609
5610 echo "$as_me:$LINENO: checking for __int64" >&5
5611 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5612 if test "${ac_cv_type___int64+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 $ac_includes_default
5622 int
5623 main ()
5624 {
5625 if ((__int64 *) 0)
5626   return 0;
5627 if (sizeof (__int64))
5628   return 0;
5629   ;
5630   return 0;
5631 }
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635   (eval $ac_compile) 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } &&
5642          { ac_try='test -z "$ac_c_werror_flag"
5643                          || test ! -s conftest.err'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; } &&
5649          { ac_try='test -s conftest.$ac_objext'
5650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651   (eval $ac_try) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   ac_cv_type___int64=yes
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_cv_type___int64=no
5661 fi
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 fi
5664 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5665 echo "${ECHO_T}$ac_cv_type___int64" >&6
5666 if test $ac_cv_type___int64 = yes; then
5667
5668 cat >>confdefs.h <<_ACEOF
5669 #define HAVE___INT64 1
5670 _ACEOF
5671
5672 echo "$as_me:$LINENO: checking for __int64" >&5
5673 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5674 if test "${ac_cv_type___int64+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h.  */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h.  */
5683 $ac_includes_default
5684 int
5685 main ()
5686 {
5687 if ((__int64 *) 0)
5688   return 0;
5689 if (sizeof (__int64))
5690   return 0;
5691   ;
5692   return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697   (eval $ac_compile) 2>conftest.er1
5698   ac_status=$?
5699   grep -v '^ *+' conftest.er1 >conftest.err
5700   rm -f conftest.er1
5701   cat conftest.err >&5
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -z "$ac_c_werror_flag"
5705                          || test ! -s conftest.err'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; } &&
5711          { ac_try='test -s conftest.$ac_objext'
5712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713   (eval $ac_try) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; }; then
5717   ac_cv_type___int64=yes
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 ac_cv_type___int64=no
5723 fi
5724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5727 echo "${ECHO_T}$ac_cv_type___int64" >&6
5728
5729 echo "$as_me:$LINENO: checking size of __int64" >&5
5730 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5731 if test "${ac_cv_sizeof___int64+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test "$ac_cv_type___int64" = yes; then
5735   # The cast to unsigned long works around a bug in the HP C Compiler
5736   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738   # This bug is HP SR number 8606223364.
5739   if test "$cross_compiling" = yes; then
5740   # Depending upon the size, compute the lo and hi bounds.
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h.  */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h.  */
5747 $ac_includes_default
5748 int
5749 main ()
5750 {
5751 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5752 test_array [0] = 0
5753
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760   (eval $ac_compile) 2>conftest.er1
5761   ac_status=$?
5762   grep -v '^ *+' conftest.er1 >conftest.err
5763   rm -f conftest.er1
5764   cat conftest.err >&5
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); } &&
5767          { ac_try='test -z "$ac_c_werror_flag"
5768                          || test ! -s conftest.err'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; } &&
5774          { ac_try='test -s conftest.$ac_objext'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; }; then
5780   ac_lo=0 ac_mid=0
5781   while :; do
5782     cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 int
5790 main ()
5791 {
5792 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5793 test_array [0] = 0
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801   (eval $ac_compile) 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } &&
5808          { ac_try='test -z "$ac_c_werror_flag"
5809                          || test ! -s conftest.err'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; } &&
5815          { ac_try='test -s conftest.$ac_objext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   ac_hi=$ac_mid; break
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 ac_lo=`expr $ac_mid + 1`
5827                     if test $ac_lo -le $ac_mid; then
5828                       ac_lo= ac_hi=
5829                       break
5830                     fi
5831                     ac_mid=`expr 2 '*' $ac_mid + 1`
5832 fi
5833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834   done
5835 else
5836   echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 $ac_includes_default
5846 int
5847 main ()
5848 {
5849 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5850 test_array [0] = 0
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858   (eval $ac_compile) 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -z "$ac_c_werror_flag"
5866                          || test ! -s conftest.err'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   ac_hi=-1 ac_mid=-1
5879   while :; do
5880     cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 $ac_includes_default
5887 int
5888 main ()
5889 {
5890 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5891 test_array [0] = 0
5892
5893   ;
5894   return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest.$ac_objext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899   (eval $ac_compile) 2>conftest.er1
5900   ac_status=$?
5901   grep -v '^ *+' conftest.er1 >conftest.err
5902   rm -f conftest.er1
5903   cat conftest.err >&5
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } &&
5906          { ac_try='test -z "$ac_c_werror_flag"
5907                          || test ! -s conftest.err'
5908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909   (eval $ac_try) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); }; } &&
5913          { ac_try='test -s conftest.$ac_objext'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; }; then
5919   ac_lo=$ac_mid; break
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 ac_hi=`expr '(' $ac_mid ')' - 1`
5925                        if test $ac_mid -le $ac_hi; then
5926                          ac_lo= ac_hi=
5927                          break
5928                        fi
5929                        ac_mid=`expr 2 '*' $ac_mid`
5930 fi
5931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932   done
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_lo= ac_hi=
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942 # Binary search between lo and hi bounds.
5943 while test "x$ac_lo" != "x$ac_hi"; do
5944   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5945   cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h.  */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h.  */
5951 $ac_includes_default
5952 int
5953 main ()
5954 {
5955 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5956 test_array [0] = 0
5957
5958   ;
5959   return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>conftest.er1
5965   ac_status=$?
5966   grep -v '^ *+' conftest.er1 >conftest.err
5967   rm -f conftest.er1
5968   cat conftest.err >&5
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); } &&
5971          { ac_try='test -z "$ac_c_werror_flag"
5972                          || test ! -s conftest.err'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; } &&
5978          { ac_try='test -s conftest.$ac_objext'
5979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980   (eval $ac_try) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; }; then
5984   ac_hi=$ac_mid
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ac_lo=`expr '(' $ac_mid ')' + 1`
5990 fi
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 done
5993 case $ac_lo in
5994 ?*) ac_cv_sizeof___int64=$ac_lo;;
5995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5996 See \`config.log' for more details." >&5
5997 echo "$as_me: error: cannot compute sizeof (__int64), 77
5998 See \`config.log' for more details." >&2;}
5999    { (exit 1); exit 1; }; } ;;
6000 esac
6001 else
6002   if test "$cross_compiling" = yes; then
6003   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6004 See \`config.log' for more details." >&5
6005 echo "$as_me: error: cannot run test program while cross compiling
6006 See \`config.log' for more details." >&2;}
6007    { (exit 1); exit 1; }; }
6008 else
6009   cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h.  */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h.  */
6015 $ac_includes_default
6016 long longval () { return (long) (sizeof (__int64)); }
6017 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6018 #include <stdio.h>
6019 #include <stdlib.h>
6020 int
6021 main ()
6022 {
6023
6024   FILE *f = fopen ("conftest.val", "w");
6025   if (! f)
6026     exit (1);
6027   if (((long) (sizeof (__int64))) < 0)
6028     {
6029       long i = longval ();
6030       if (i != ((long) (sizeof (__int64))))
6031         exit (1);
6032       fprintf (f, "%ld\n", i);
6033     }
6034   else
6035     {
6036       unsigned long i = ulongval ();
6037       if (i != ((long) (sizeof (__int64))))
6038         exit (1);
6039       fprintf (f, "%lu\n", i);
6040     }
6041   exit (ferror (f) || fclose (f) != 0);
6042
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest$ac_exeext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049   (eval $ac_link) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054   (eval $ac_try) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; }; then
6058   ac_cv_sizeof___int64=`cat conftest.val`
6059 else
6060   echo "$as_me: program exited with status $ac_status" >&5
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 ( exit $ac_status )
6065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6066 See \`config.log' for more details." >&5
6067 echo "$as_me: error: cannot compute sizeof (__int64), 77
6068 See \`config.log' for more details." >&2;}
6069    { (exit 1); exit 1; }; }
6070 fi
6071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 fi
6074 rm -f conftest.val
6075 else
6076   ac_cv_sizeof___int64=0
6077 fi
6078 fi
6079 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6080 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6081 cat >>confdefs.h <<_ACEOF
6082 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6083 _ACEOF
6084
6085
6086 fi
6087
6088
6089 # ---------------------
6090 # Warnings and checking
6091 # ---------------------
6092
6093 # Check $CC warning features (if it's GCC).
6094 # We want to use -pedantic, but we don't want warnings about
6095 # * 'long long'
6096 # * variadic macros
6097 # * overlong strings
6098 # So, we only use -pedantic if we can disable those warnings.
6099
6100 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6101 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6102 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   save_CFLAGS="$CFLAGS"
6106   CFLAGS="-Wno-long-long"
6107   cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h.  */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h.  */
6113
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117   (eval $ac_compile) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_c_werror_flag"
6125                          || test ! -s conftest.err'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; } &&
6131          { ac_try='test -s conftest.$ac_objext'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; }; then
6137   ac_cv_prog_cc_w_no_long_long=yes
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_cv_prog_cc_w_no_long_long=no
6143 fi
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145   CFLAGS="$save_CFLAGS"
6146
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6149 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6150
6151 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6152 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6153 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   save_CFLAGS="$CFLAGS"
6157   CFLAGS="-Wno-variadic-macros"
6158   cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168   (eval $ac_compile) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag"
6176                          || test ! -s conftest.err'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; } &&
6182          { ac_try='test -s conftest.$ac_objext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   ac_cv_prog_cc_w_no_variadic_macros=yes
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ac_cv_prog_cc_w_no_variadic_macros=no
6194 fi
6195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196   CFLAGS="$save_CFLAGS"
6197
6198 fi
6199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6200 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6201
6202 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6203 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6204 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   save_CFLAGS="$CFLAGS"
6208   CFLAGS="-Wno-overlength-strings"
6209   cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219   (eval $ac_compile) 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } &&
6226          { ac_try='test -z "$ac_c_werror_flag"
6227                          || test ! -s conftest.err'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; } &&
6233          { ac_try='test -s conftest.$ac_objext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   ac_cv_prog_cc_w_no_overlength_strings=yes
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 ac_cv_prog_cc_w_no_overlength_strings=no
6245 fi
6246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247   CFLAGS="$save_CFLAGS"
6248
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6251 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6252
6253 strict1_warn=
6254 if test $ac_cv_prog_cc_w_no_long_long = yes \
6255    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6256    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6257   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6258 fi
6259
6260 # Add -Wold-style-definition if it's accepted
6261 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6262 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6263 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   save_CFLAGS="$CFLAGS"
6267   CFLAGS="-Wold-style-definition"
6268   cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278   (eval $ac_compile) 2>conftest.er1
6279   ac_status=$?
6280   grep -v '^ *+' conftest.er1 >conftest.err
6281   rm -f conftest.er1
6282   cat conftest.err >&5
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } &&
6285          { ac_try='test -z "$ac_c_werror_flag"
6286                          || test ! -s conftest.err'
6287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288   (eval $ac_try) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; } &&
6292          { ac_try='test -s conftest.$ac_objext'
6293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294   (eval $ac_try) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; }; then
6298   ac_cv_prog_cc_w_old_style_definition=yes
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 ac_cv_prog_cc_w_old_style_definition=no
6304 fi
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306   CFLAGS="$save_CFLAGS"
6307
6308 fi
6309 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6310 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6311 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6312   strict1_warn="${strict1_warn} -Wold-style-definition"
6313 fi
6314
6315 # Add -Wmissing-format-attribute if it's accepted
6316 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6317 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6318 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   save_CFLAGS="$CFLAGS"
6322   CFLAGS="-Wmissing-format-attribute"
6323   cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333   (eval $ac_compile) 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
6337   cat conftest.err >&5
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } &&
6340          { ac_try='test -z "$ac_c_werror_flag"
6341                          || test ! -s conftest.err'
6342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343   (eval $ac_try) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; } &&
6347          { ac_try='test -s conftest.$ac_objext'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_cv_prog_cc_w_missing_format_attribute=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_cv_prog_cc_w_missing_format_attribute=no
6359 fi
6360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361   CFLAGS="$save_CFLAGS"
6362
6363 fi
6364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6365 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6366 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6367   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6368 fi
6369
6370 # Enable -Werror, period.
6371 # Check whether --enable-werror_always or --disable-werror_always was given.
6372 if test "${enable_werror_always+set}" = set; then
6373   enableval="$enable_werror_always"
6374
6375 else
6376   enable_werror_always=no
6377 fi;
6378 if test x${enable_werror_always} = xyes ; then
6379   strict1_warn="${strict1_warn} -Werror"
6380   WERROR=-Werror
6381 fi
6382
6383
6384
6385 # Get C++ compatibility warning flag, if supported.
6386 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6387 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6388 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   save_CFLAGS="$CFLAGS"
6392   CFLAGS="-Wc++-compat"
6393   cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403   (eval $ac_compile) 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -z "$ac_c_werror_flag"
6411                          || test ! -s conftest.err'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; } &&
6417          { ac_try='test -s conftest.$ac_objext'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; }; then
6423   ac_cv_prog_cc_w_cxx_compat=yes
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 ac_cv_prog_cc_w_cxx_compat=no
6429 fi
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431   CFLAGS="$save_CFLAGS"
6432
6433 fi
6434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6435 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6436 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6437   cxx_compat_warn="-Wc++-compat"
6438 fi
6439
6440
6441
6442 # If the native compiler is GCC, we can enable warnings even in stage1.
6443 # That's useful for people building cross-compilers, or just running a
6444 # quick `make'.
6445 warn_cflags=
6446 if test "x$GCC" = "xyes"; then
6447   warn_cflags='$(GCC_WARN_CFLAGS)'
6448 fi
6449
6450
6451 # Enable -Werror in bootstrap stage2 and later.
6452 is_release=
6453 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6454   is_release=yes
6455 fi
6456 # Check whether --enable-werror or --disable-werror was given.
6457 if test "${enable_werror+set}" = set; then
6458   enableval="$enable_werror"
6459
6460 else
6461   if test x$is_release = x ; then
6462   # Default to "yes" on development branches.
6463   enable_werror=yes
6464 else
6465   # Default to "no" on release branches.
6466   enable_werror=no
6467 fi
6468 fi;
6469 if test x$enable_werror = xyes ; then
6470   WERROR=-Werror
6471 fi
6472
6473
6474 # Enable expensive internal checks
6475 # Check whether --enable-checking or --disable-checking was given.
6476 if test "${enable_checking+set}" = set; then
6477   enableval="$enable_checking"
6478   ac_checking_flags="${enableval}"
6479 else
6480
6481 # Determine the default checks.
6482 if test x$is_release = x ; then
6483   ac_checking_flags=yes
6484 else
6485   ac_checking_flags=release
6486 fi
6487 fi;
6488 ac_assert_checking=1
6489 ac_checking=
6490 ac_fold_checking=
6491 ac_gc_checking=
6492 ac_gc_always_collect=
6493 ac_rtl_checking=
6494 ac_rtlflag_checking=
6495 ac_runtime_checking=1
6496 ac_tree_checking=
6497 ac_valgrind_checking=
6498 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6499 for check in $ac_checking_flags
6500 do
6501         case $check in
6502         # these set all the flags to specific states
6503         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6504                         ac_fold_checking= ; ac_gc_checking=1 ;
6505                         ac_gc_always_collect= ; ac_rtl_checking= ;
6506                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6507                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6508         no|none)        ac_assert_checking= ; ac_checking= ;
6509                         ac_fold_checking= ; ac_gc_checking= ;
6510                         ac_gc_always_collect= ; ac_rtl_checking= ;
6511                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6512                         ac_tree_checking= ; ac_valgrind_checking= ;;
6513         all)            ac_assert_checking=1 ; ac_checking=1 ;
6514                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6515                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6516                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6517                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6518         release)        ac_assert_checking=1 ; ac_checking= ;
6519                         ac_fold_checking= ; ac_gc_checking= ;
6520                         ac_gc_always_collect= ; ac_rtl_checking= ;
6521                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6522                         ac_tree_checking= ; ac_valgrind_checking= ;;
6523         # these enable particular checks
6524         assert)         ac_assert_checking=1 ;;
6525         fold)           ac_fold_checking=1 ;;
6526         gc)             ac_gc_checking=1 ;;
6527         gcac)           ac_gc_always_collect=1 ;;
6528         misc)           ac_checking=1 ;;
6529         rtl)            ac_rtl_checking=1 ;;
6530         rtlflag)        ac_rtlflag_checking=1 ;;
6531         runtime)        ac_runtime_checking=1 ;;
6532         tree)           ac_tree_checking=1 ;;
6533         valgrind)       ac_valgrind_checking=1 ;;
6534         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6535 echo "$as_me: error: unknown check category $check" >&2;}
6536    { (exit 1); exit 1; }; } ;;
6537         esac
6538 done
6539 IFS="$ac_save_IFS"
6540
6541 nocommon_flag=""
6542 if test x$ac_checking != x ; then
6543
6544 cat >>confdefs.h <<\_ACEOF
6545 #define ENABLE_CHECKING 1
6546 _ACEOF
6547
6548   nocommon_flag=-fno-common
6549 fi
6550
6551 if test x$ac_assert_checking != x ; then
6552
6553 cat >>confdefs.h <<\_ACEOF
6554 #define ENABLE_ASSERT_CHECKING 1
6555 _ACEOF
6556
6557 fi
6558
6559 if test x$ac_runtime_checking != x ; then
6560
6561 cat >>confdefs.h <<\_ACEOF
6562 #define ENABLE_RUNTIME_CHECKING 1
6563 _ACEOF
6564
6565 fi
6566 if test x$ac_tree_checking != x ; then
6567
6568 cat >>confdefs.h <<\_ACEOF
6569 #define ENABLE_TREE_CHECKING 1
6570 _ACEOF
6571
6572   TREEBROWSER=tree-browser.o
6573 fi
6574
6575 if test x$ac_rtl_checking != x ; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define ENABLE_RTL_CHECKING 1
6579 _ACEOF
6580
6581 fi
6582 if test x$ac_rtlflag_checking != x ; then
6583
6584 cat >>confdefs.h <<\_ACEOF
6585 #define ENABLE_RTL_FLAG_CHECKING 1
6586 _ACEOF
6587
6588 fi
6589 if test x$ac_gc_checking != x ; then
6590
6591 cat >>confdefs.h <<\_ACEOF
6592 #define ENABLE_GC_CHECKING 1
6593 _ACEOF
6594
6595 fi
6596 if test x$ac_gc_always_collect != x ; then
6597
6598 cat >>confdefs.h <<\_ACEOF
6599 #define ENABLE_GC_ALWAYS_COLLECT 1
6600 _ACEOF
6601
6602 fi
6603 if test x$ac_fold_checking != x ; then
6604
6605 cat >>confdefs.h <<\_ACEOF
6606 #define ENABLE_FOLD_CHECKING 1
6607 _ACEOF
6608
6609 fi
6610 valgrind_path_defines=
6611 valgrind_command=
6612
6613 if test "${ac_cv_header_valgrind_h+set}" = set; then
6614   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6615 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6616 if test "${ac_cv_header_valgrind_h+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 fi
6619 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6620 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6621 else
6622   # Is the header compilable?
6623 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6624 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 $ac_includes_default
6632 #include <valgrind.h>
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636   (eval $ac_compile) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } &&
6643          { ac_try='test -z "$ac_c_werror_flag"
6644                          || test ! -s conftest.err'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; } &&
6650          { ac_try='test -s conftest.$ac_objext'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; }; then
6656   ac_header_compiler=yes
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_header_compiler=no
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6666
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6669 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <valgrind.h>
6677 _ACEOF
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } >/dev/null; then
6686   if test -s conftest.err; then
6687     ac_cpp_err=$ac_c_preproc_warn_flag
6688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6689   else
6690     ac_cpp_err=
6691   fi
6692 else
6693   ac_cpp_err=yes
6694 fi
6695 if test -z "$ac_cpp_err"; then
6696   ac_header_preproc=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701   ac_header_preproc=no
6702 fi
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707 # So?  What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709   yes:no: )
6710     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6714     ac_header_preproc=yes
6715     ;;
6716   no:yes:* )
6717     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6727     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6729     (
6730       cat <<\_ASBOX
6731 ## ------------------------------------------ ##
6732 ## Report this to the AC_PACKAGE_NAME lists.  ##
6733 ## ------------------------------------------ ##
6734 _ASBOX
6735     ) |
6736       sed "s/^/$as_me: WARNING:     /" >&2
6737     ;;
6738 esac
6739 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6740 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6741 if test "${ac_cv_header_valgrind_h+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   ac_cv_header_valgrind_h=$ac_header_preproc
6745 fi
6746 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6747 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6748
6749 fi
6750 if test $ac_cv_header_valgrind_h = yes; then
6751   have_valgrind_h=yes
6752 else
6753   have_valgrind_h=no
6754 fi
6755
6756
6757
6758 if test x$ac_valgrind_checking != x ; then
6759   # It is certainly possible that there's valgrind but no valgrind.h.
6760   # GCC relies on making annotations so we must have both.
6761   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6762 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6763   cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h.  */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h.  */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6772 #endif
6773 _ACEOF
6774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776   ac_status=$?
6777   grep -v '^ *+' conftest.er1 >conftest.err
6778   rm -f conftest.er1
6779   cat conftest.err >&5
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } >/dev/null; then
6782   if test -s conftest.err; then
6783     ac_cpp_err=$ac_c_preproc_warn_flag
6784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6785   else
6786     ac_cpp_err=
6787   fi
6788 else
6789   ac_cpp_err=yes
6790 fi
6791 if test -z "$ac_cpp_err"; then
6792   gcc_cv_header_valgrind_memcheck_h=yes
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797   gcc_cv_header_valgrind_memcheck_h=no
6798 fi
6799 rm -f conftest.err conftest.$ac_ext
6800   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6801 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6802   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6803 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6804   cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h.  */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h.  */
6810 #include <memcheck.h>
6811 #ifndef VALGRIND_DISCARD
6812 #error VALGRIND_DISCARD not defined
6813 #endif
6814 _ACEOF
6815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } >/dev/null; then
6823   if test -s conftest.err; then
6824     ac_cpp_err=$ac_c_preproc_warn_flag
6825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6826   else
6827     ac_cpp_err=
6828   fi
6829 else
6830   ac_cpp_err=yes
6831 fi
6832 if test -z "$ac_cpp_err"; then
6833   gcc_cv_header_memcheck_h=yes
6834 else
6835   echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6837
6838   gcc_cv_header_memcheck_h=no
6839 fi
6840 rm -f conftest.err conftest.$ac_ext
6841   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6842 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6843
6844 # Prepare PATH_SEPARATOR.
6845 # The user is always right.
6846 if test "${PATH_SEPARATOR+set}" != set; then
6847   echo "#! /bin/sh" >conf$$.sh
6848   echo  "exit 0"   >>conf$$.sh
6849   chmod +x conf$$.sh
6850   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6851     PATH_SEPARATOR=';'
6852   else
6853     PATH_SEPARATOR=:
6854   fi
6855   rm -f conf$$.sh
6856 fi
6857
6858 # Find out how to test for executable files. Don't use a zero-byte file,
6859 # as systems may use methods other than mode bits to determine executability.
6860 cat >conf$$.file <<_ASEOF
6861 #! /bin/sh
6862 exit 0
6863 _ASEOF
6864 chmod +x conf$$.file
6865 if test -x conf$$.file >/dev/null 2>&1; then
6866   ac_executable_p="test -x"
6867 else
6868   ac_executable_p="test -f"
6869 fi
6870 rm -f conf$$.file
6871
6872 # Extract the first word of "valgrind", so it can be a program name with args.
6873 set dummy valgrind; ac_word=$2
6874 echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_path_valgrind_path+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   case "$valgrind_path" in
6880   [\\/]* | ?:[\\/]*)
6881     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6882     ;;
6883   *)
6884     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6885     for ac_dir in $PATH; do
6886       IFS="$ac_save_IFS"
6887       test -z "$ac_dir" && ac_dir=.
6888       for ac_exec_ext in '' $ac_executable_extensions; do
6889         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6890           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6891             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6892             break 2
6893           fi
6894         fi
6895       done
6896     done
6897     IFS="$ac_save_IFS"
6898     ;;
6899 esac
6900 fi
6901 valgrind_path="$ac_cv_path_valgrind_path"
6902 if test -n "$valgrind_path"; then
6903   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6904 echo "${ECHO_T}$valgrind_path" >&6
6905 else
6906   echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6
6908 fi
6909
6910   if test "x$valgrind_path" = "x" \
6911     || (test $have_valgrind_h = no \
6912         && test $gcc_cv_header_memcheck_h = no \
6913         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6914         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6915 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6916    { (exit 1); exit 1; }; }
6917   fi
6918   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6919   valgrind_command="$valgrind_path -q"
6920
6921 cat >>confdefs.h <<\_ACEOF
6922 #define ENABLE_VALGRIND_CHECKING 1
6923 _ACEOF
6924
6925   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6926
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_VALGRIND_MEMCHECK_H 1
6929 _ACEOF
6930
6931   fi
6932   if test $gcc_cv_header_memcheck_h = yes; then
6933
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_MEMCHECK_H 1
6936 _ACEOF
6937
6938   fi
6939 fi
6940
6941
6942
6943 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6944 if test "${enable_mapped_location+set}" = set; then
6945   enableval="$enable_mapped_location"
6946
6947 else
6948   enable_mapped_location=no
6949 fi;
6950
6951 if test "$enable_mapped_location" = yes ; then
6952
6953 cat >>confdefs.h <<\_ACEOF
6954 #define USE_MAPPED_LOCATION 1
6955 _ACEOF
6956
6957 fi
6958
6959 # Enable code coverage collection
6960 # Check whether --enable-coverage or --disable-coverage was given.
6961 if test "${enable_coverage+set}" = set; then
6962   enableval="$enable_coverage"
6963   case "${enableval}" in
6964   yes|noopt)
6965     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6966     ;;
6967   opt)
6968     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6969     ;;
6970   no)
6971     # a.k.a. --disable-coverage
6972     coverage_flags=""
6973     ;;
6974   *)
6975     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6976 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6977    { (exit 1); exit 1; }; }
6978     ;;
6979 esac
6980 else
6981   coverage_flags=""
6982 fi;
6983
6984
6985 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6986 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6987   enableval="$enable_gather_detailed_mem_stats"
6988
6989 else
6990   enable_gather_detailed_mem_stats=no
6991 fi;
6992 if test x$enable_gather_detailed_mem_stats = xyes ; then
6993
6994 cat >>confdefs.h <<\_ACEOF
6995 #define GATHER_STATISTICS 1
6996 _ACEOF
6997
6998 fi
6999
7000 # -------------------------------
7001 # Miscenalleous configure options
7002 # -------------------------------
7003
7004 # With stabs
7005
7006 # Check whether --with-stabs or --without-stabs was given.
7007 if test "${with_stabs+set}" = set; then
7008   withval="$with_stabs"
7009   stabs="$with_stabs"
7010 else
7011   stabs=no
7012 fi;
7013
7014 # Determine whether or not multilibs are enabled.
7015 # Check whether --enable-multilib or --disable-multilib was given.
7016 if test "${enable_multilib+set}" = set; then
7017   enableval="$enable_multilib"
7018
7019 else
7020   enable_multilib=yes
7021 fi;
7022
7023
7024 # Enable __cxa_atexit for C++.
7025 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7026 if test "${enable___cxa_atexit+set}" = set; then
7027   enableval="$enable___cxa_atexit"
7028
7029 fi;
7030
7031 # Enable C extension for decimal float if target supports it.
7032 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7033 if test "${enable_decimal_float+set}" = set; then
7034   enableval="$enable_decimal_float"
7035
7036   if test x$enablevar = xyes ; then
7037     case $target in
7038     powerpc*-*-linux* | i?86*-*-linux*)
7039       enable_decimal_float=yes
7040       ;;
7041     *)
7042       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7043 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7044       enable_decimal_float=no
7045       ;;
7046     esac
7047   fi
7048
7049 else
7050   enable_decimal_float=no
7051 fi;
7052
7053
7054
7055 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define ENABLE_DECIMAL_FLOAT $dfp
7059 _ACEOF
7060
7061
7062 # Enable threads
7063 # Pass with no value to take the default
7064 # Pass with a value to specify a thread package
7065 # Check whether --enable-threads or --disable-threads was given.
7066 if test "${enable_threads+set}" = set; then
7067   enableval="$enable_threads"
7068
7069 else
7070   enable_threads=''
7071 fi;
7072
7073 # Check whether --enable-tls or --disable-tls was given.
7074 if test "${enable_tls+set}" = set; then
7075   enableval="$enable_tls"
7076
7077   case $enable_tls in
7078     yes | no) ;;
7079     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7080 Valid choices are 'yes' and 'no'." >&5
7081 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7082 Valid choices are 'yes' and 'no'." >&2;}
7083    { (exit 1); exit 1; }; } ;;
7084   esac
7085
7086 else
7087   enable_tls=''
7088 fi;
7089
7090 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7091 if test "${enable_objc_gc+set}" = set; then
7092   enableval="$enable_objc_gc"
7093   if test x$enable_objc_gc = xno; then
7094         objc_boehm_gc=''
7095 else
7096         objc_boehm_gc=1
7097 fi
7098 else
7099   objc_boehm_gc=''
7100 fi;
7101
7102
7103 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7104 if test "${with_dwarf2+set}" = set; then
7105   withval="$with_dwarf2"
7106   dwarf2="$with_dwarf2"
7107 else
7108   dwarf2=no
7109 fi;
7110
7111 # Check whether --enable-shared or --disable-shared was given.
7112 if test "${enable_shared+set}" = set; then
7113   enableval="$enable_shared"
7114
7115   case $enable_shared in
7116   yes | no) ;;
7117   *)
7118     enable_shared=no
7119     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7120     for pkg in $enableval; do
7121       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7122         enable_shared=yes
7123       fi
7124     done
7125     IFS="$ac_save_ifs"
7126     ;;
7127   esac
7128
7129 else
7130   enable_shared=yes
7131 fi;
7132
7133
7134
7135 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7136 if test "${with_build_sysroot+set}" = set; then
7137   withval="$with_build_sysroot"
7138
7139 fi;
7140
7141
7142 # Check whether --with-sysroot or --without-sysroot was given.
7143 if test "${with_sysroot+set}" = set; then
7144   withval="$with_sysroot"
7145
7146  case ${with_sysroot} in
7147  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7148  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7149  esac
7150
7151  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7152  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7153
7154  if test "x$exec_prefix" = xNONE; then
7155   if test "x$prefix" = xNONE; then
7156    test_prefix=/usr/local
7157   else
7158    test_prefix=$prefix
7159   fi
7160  else
7161   test_prefix=$exec_prefix
7162  fi
7163  case ${TARGET_SYSTEM_ROOT} in
7164  "${test_prefix}"|"${test_prefix}/"*|\
7165  '${exec_prefix}'|'${exec_prefix}/'*)
7166    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7167    TARGET_SYSTEM_ROOT_DEFINE="$t"
7168    ;;
7169  esac
7170
7171 else
7172
7173  TARGET_SYSTEM_ROOT=
7174  TARGET_SYSTEM_ROOT_DEFINE=
7175  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7176
7177 fi;
7178
7179
7180
7181
7182 # Build with intermodule optimisations
7183 # Check whether --enable-intermodule or --disable-intermodule was given.
7184 if test "${enable_intermodule+set}" = set; then
7185   enableval="$enable_intermodule"
7186   case ${enable_intermodule} in
7187   yes) onestep="-onestep";;
7188   *) onestep="";;
7189 esac
7190 else
7191   onestep=""
7192 fi;
7193
7194
7195 # Sanity check enable_languages in case someone does not run the toplevel
7196 # configure # script.
7197 # Check whether --enable-languages or --disable-languages was given.
7198 if test "${enable_languages+set}" = set; then
7199   enableval="$enable_languages"
7200   case ,${enable_languages}, in
7201        ,,|,yes,)
7202                 # go safe -- we cannot be much sure without the toplevel
7203                 # configure's
7204                 # analysis of which target libs are present and usable
7205                 enable_languages=c
7206                 ;;
7207          *,all,*)
7208                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7209 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7210    { (exit 1); exit 1; }; }
7211                 ;;
7212         *,c,*)
7213                 ;;
7214         *)
7215                 enable_languages=c,${enable_languages}
7216                 ;;
7217 esac
7218 else
7219   enable_languages=c
7220 fi;
7221
7222 # Used by documentation targets
7223
7224
7225
7226
7227 # -------------------------
7228 # Checks for other programs
7229 # -------------------------
7230
7231 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7232 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7233 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7234 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   cat >conftest.make <<\_ACEOF
7238 all:
7239         @echo 'ac_maketemp="$(MAKE)"'
7240 _ACEOF
7241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7242 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7243 if test -n "$ac_maketemp"; then
7244   eval ac_cv_prog_make_${ac_make}_set=yes
7245 else
7246   eval ac_cv_prog_make_${ac_make}_set=no
7247 fi
7248 rm -f conftest.make
7249 fi
7250 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7251   echo "$as_me:$LINENO: result: yes" >&5
7252 echo "${ECHO_T}yes" >&6
7253   SET_MAKE=
7254 else
7255   echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7257   SET_MAKE="MAKE=${MAKE-make}"
7258 fi
7259
7260
7261 # Find some useful tools
7262 for ac_prog in gawk mawk nawk awk
7263 do
7264   # Extract the first word of "$ac_prog", so it can be a program name with args.
7265 set dummy $ac_prog; ac_word=$2
7266 echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7268 if test "${ac_cv_prog_AWK+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   if test -n "$AWK"; then
7272   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279   for ac_exec_ext in '' $ac_executable_extensions; do
7280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281     ac_cv_prog_AWK="$ac_prog"
7282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286 done
7287
7288 fi
7289 fi
7290 AWK=$ac_cv_prog_AWK
7291 if test -n "$AWK"; then
7292   echo "$as_me:$LINENO: result: $AWK" >&5
7293 echo "${ECHO_T}$AWK" >&6
7294 else
7295   echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7297 fi
7298
7299   test -n "$AWK" && break
7300 done
7301
7302 # We need awk to create options.c and options.h.
7303 # Bail out if it's missing.
7304 case ${AWK} in
7305   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7306 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7307    { (exit 1); exit 1; }; } ;;
7308 esac
7309
7310 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7312 if test "${gcc_cv_prog_LN_S+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   rm -f conftestdata_t
7316 echo >conftestdata_f
7317 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7318 then
7319   gcc_cv_prog_LN_S="ln -s"
7320 else
7321   if ln conftestdata_f conftestdata_t 2>/dev/null
7322   then
7323     gcc_cv_prog_LN_S=ln
7324   else
7325     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7326     then
7327       gcc_cv_prog_LN_S="cp -p"
7328     else
7329       gcc_cv_prog_LN_S=cp
7330     fi
7331   fi
7332 fi
7333 rm -f conftestdata_f conftestdata_t
7334
7335 fi
7336 LN_S="$gcc_cv_prog_LN_S"
7337 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7338   echo "$as_me:$LINENO: result: yes" >&5
7339 echo "${ECHO_T}yes" >&6
7340 else
7341   if test "$gcc_cv_prog_LN_S" = "ln"; then
7342     echo "$as_me:$LINENO: result: no, using ln" >&5
7343 echo "${ECHO_T}no, using ln" >&6
7344   else
7345     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7346 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7347   fi
7348 fi
7349
7350 echo "$as_me:$LINENO: checking whether ln works" >&5
7351 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7352 if test "${acx_cv_prog_LN+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   rm -f conftestdata_t
7356 echo >conftestdata_f
7357 if ln conftestdata_f conftestdata_t 2>/dev/null
7358 then
7359   acx_cv_prog_LN=ln
7360 else
7361   acx_cv_prog_LN=no
7362 fi
7363 rm -f conftestdata_f conftestdata_t
7364
7365 fi
7366 if test $acx_cv_prog_LN = no; then
7367   LN="$LN_S"
7368   echo "$as_me:$LINENO: result: no, using $LN" >&5
7369 echo "${ECHO_T}no, using $LN" >&6
7370 else
7371   LN="$acx_cv_prog_LN"
7372   echo "$as_me:$LINENO: result: yes" >&5
7373 echo "${ECHO_T}yes" >&6
7374 fi
7375
7376 if test -n "$ac_tool_prefix"; then
7377   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7379 echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381 if test "${ac_cv_prog_RANLIB+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   if test -n "$RANLIB"; then
7385   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400
7401 fi
7402 fi
7403 RANLIB=$ac_cv_prog_RANLIB
7404 if test -n "$RANLIB"; then
7405   echo "$as_me:$LINENO: result: $RANLIB" >&5
7406 echo "${ECHO_T}$RANLIB" >&6
7407 else
7408   echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410 fi
7411
7412 fi
7413 if test -z "$ac_cv_prog_RANLIB"; then
7414   ac_ct_RANLIB=$RANLIB
7415   # Extract the first word of "ranlib", so it can be a program name with args.
7416 set dummy ranlib; ac_word=$2
7417 echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   if test -n "$ac_ct_RANLIB"; then
7423   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432     ac_cv_prog_ac_ct_RANLIB="ranlib"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438
7439   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7440 fi
7441 fi
7442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7443 if test -n "$ac_ct_RANLIB"; then
7444   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7445 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7446 else
7447   echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7449 fi
7450
7451   RANLIB=$ac_ct_RANLIB
7452 else
7453   RANLIB="$ac_cv_prog_RANLIB"
7454 fi
7455
7456 case "${host}" in
7457 *-*-darwin*)
7458   # By default, the Darwin ranlib will not treat common symbols as
7459   # definitions when  building the archive table of contents.  Other
7460   # ranlibs do that; pass an option to the Darwin ranlib that makes
7461   # it behave similarly.
7462   ranlib_flags="-c"
7463   ;;
7464 *)
7465   ranlib_flags=""
7466 esac
7467
7468
7469 # Find a good install program.  We prefer a C program (faster),
7470 # so one script is as good as another.  But avoid the broken or
7471 # incompatible versions:
7472 # SysV /etc/install, /usr/sbin/install
7473 # SunOS /usr/etc/install
7474 # IRIX /sbin/install
7475 # AIX /bin/install
7476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7478 # ./install, which can be erroneously created by make from ./install.sh.
7479 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7480 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7481 if test -z "$INSTALL"; then
7482 if test "${ac_cv_path_install+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7486   for ac_dir in $PATH; do
7487     # Account for people who put trailing slashes in PATH elements.
7488     case "$ac_dir/" in
7489     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7490     *)
7491       # OSF1 and SCO ODT 3.0 have their own names for install.
7492       for ac_prog in ginstall scoinst install; do
7493         if test -f $ac_dir/$ac_prog; then
7494           if test $ac_prog = install &&
7495             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7496             # AIX install.  It has an incompatible calling convention.
7497             # OSF/1 installbsd also uses dspmsg, but is usable.
7498             :
7499           else
7500             ac_cv_path_install="$ac_dir/$ac_prog -c"
7501             break 2
7502           fi
7503         fi
7504       done
7505       ;;
7506     esac
7507   done
7508   IFS="$ac_save_IFS"
7509
7510 fi
7511   if test "${ac_cv_path_install+set}" = set; then
7512     INSTALL="$ac_cv_path_install"
7513   else
7514     # As a last resort, use the slow shell script.  We don't cache a
7515     # path for INSTALL within a source directory, because that will
7516     # break other packages using the cache if that directory is
7517     # removed, or if the path is relative.
7518     INSTALL="$ac_install_sh"
7519   fi
7520 fi
7521 echo "$as_me:$LINENO: result: $INSTALL" >&5
7522 echo "${ECHO_T}$INSTALL" >&6
7523
7524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7525 # It thinks the first close brace ends the variable substitution.
7526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7527
7528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7529
7530
7531 # See if cmp has --ignore-initial.
7532 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7533 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7534 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537    echo abfoo >t1
7538   echo cdfoo >t2
7539   gcc_cv_prog_cmp_skip=slowcompare
7540   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7541     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7542       :
7543     else
7544       gcc_cv_prog_cmp_skip=gnucompare
7545     fi
7546   fi
7547   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7548     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7549       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7550         :
7551       else
7552         gcc_cv_prog_cmp_skip=fastcompare
7553       fi
7554     fi
7555   fi
7556   rm t1 t2
7557
7558 fi
7559 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7560 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7561 make_compare_target=$gcc_cv_prog_cmp_skip
7562
7563
7564
7565 # See if we have the mktemp command.
7566 # Extract the first word of "mktemp", so it can be a program name with args.
7567 set dummy mktemp; ac_word=$2
7568 echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   if test -n "$have_mktemp_command"; then
7574   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583     ac_cv_prog_have_mktemp_command="yes"
7584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588 done
7589
7590   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7591 fi
7592 fi
7593 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7594 if test -n "$have_mktemp_command"; then
7595   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7596 echo "${ECHO_T}$have_mktemp_command" >&6
7597 else
7598   echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600 fi
7601
7602
7603 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7604
7605 # See if makeinfo has been installed and is modern enough
7606 # that we can use it.
7607
7608 ac_executable_extensions="$build_exeext"
7609
7610 # Extract the first word of "makeinfo", so it can be a program name with args.
7611 set dummy makeinfo; ac_word=$2
7612 echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7614 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   if test -n "$MAKEINFO"; then
7618   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627     ac_cv_prog_MAKEINFO="makeinfo"
7628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633
7634 fi
7635 fi
7636 MAKEINFO=$ac_cv_prog_MAKEINFO
7637 if test -n "$MAKEINFO"; then
7638   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7639 echo "${ECHO_T}$MAKEINFO" >&6
7640 else
7641   echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6
7643 fi
7644
7645 if test -n "$MAKEINFO"; then
7646   # Found it, now check the version.
7647   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7648 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7649 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652     ac_prog_version=`$MAKEINFO --version 2>&1 |
7653                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7654   echo "configure:7654: version of makeinfo is $ac_prog_version" >&5
7655   case $ac_prog_version in
7656     '')     gcc_cv_prog_makeinfo_modern=no;;
7657     4.[4-9]*)
7658             gcc_cv_prog_makeinfo_modern=yes;;
7659     *)      gcc_cv_prog_makeinfo_modern=no;;
7660   esac
7661
7662 fi
7663 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7664 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7665 else
7666   gcc_cv_prog_makeinfo_modern=no
7667 fi
7668
7669 if test $gcc_cv_prog_makeinfo_modern = no; then
7670   MAKEINFO="$MISSING makeinfo"
7671   { echo "$as_me:$LINENO: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&5
7674 echo "$as_me: WARNING:
7675 *** Makeinfo is missing or too old.
7676 *** Info documentation will not be built." >&2;}
7677   BUILD_INFO=
7678 else
7679   BUILD_INFO=info
7680 fi
7681
7682
7683 # Is pod2man recent enough to regenerate manpages?
7684 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7685 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7686 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7687   echo "$as_me:$LINENO: result: yes" >&5
7688 echo "${ECHO_T}yes" >&6
7689   GENERATED_MANPAGES=generated-manpages
7690 else
7691   echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6
7693   GENERATED_MANPAGES=
7694 fi
7695
7696
7697 # How about lex?
7698 for ac_prog in flex
7699 do
7700   # Extract the first word of "$ac_prog", so it can be a program name with args.
7701 set dummy $ac_prog; ac_word=$2
7702 echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704 if test "${ac_cv_prog_FLEX+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   if test -n "$FLEX"; then
7708   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715   for ac_exec_ext in '' $ac_executable_extensions; do
7716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717     ac_cv_prog_FLEX="$ac_prog"
7718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722 done
7723
7724 fi
7725 fi
7726 FLEX=$ac_cv_prog_FLEX
7727 if test -n "$FLEX"; then
7728   echo "$as_me:$LINENO: result: $FLEX" >&5
7729 echo "${ECHO_T}$FLEX" >&6
7730 else
7731   echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7733 fi
7734
7735   test -n "$FLEX" && break
7736 done
7737 test -n "$FLEX" || FLEX="$MISSING flex"
7738
7739
7740 # Bison?
7741 for ac_prog in bison
7742 do
7743   # Extract the first word of "$ac_prog", so it can be a program name with args.
7744 set dummy $ac_prog; ac_word=$2
7745 echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7747 if test "${ac_cv_prog_BISON+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   if test -n "$BISON"; then
7751   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760     ac_cv_prog_BISON="$ac_prog"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766
7767 fi
7768 fi
7769 BISON=$ac_cv_prog_BISON
7770 if test -n "$BISON"; then
7771   echo "$as_me:$LINENO: result: $BISON" >&5
7772 echo "${ECHO_T}$BISON" >&6
7773 else
7774   echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7776 fi
7777
7778   test -n "$BISON" && break
7779 done
7780 test -n "$BISON" || BISON="$MISSING bison"
7781
7782
7783 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7784 # check for build == host before using them.
7785
7786 # NM
7787 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7788   && test -d ../binutils ; then
7789   NM='$(objdir)/../binutils/nm-new'
7790 else
7791   # Extract the first word of "nm", so it can be a program name with args.
7792 set dummy nm; ac_word=$2
7793 echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795 if test "${ac_cv_prog_NM+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   if test -n "$NM"; then
7799   ac_cv_prog_NM="$NM" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804   IFS=$as_save_IFS
7805   test -z "$as_dir" && as_dir=.
7806   for ac_exec_ext in '' $ac_executable_extensions; do
7807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808     ac_cv_prog_NM="nm"
7809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810     break 2
7811   fi
7812 done
7813 done
7814
7815   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7816 fi
7817 fi
7818 NM=$ac_cv_prog_NM
7819 if test -n "$NM"; then
7820   echo "$as_me:$LINENO: result: $NM" >&5
7821 echo "${ECHO_T}$NM" >&6
7822 else
7823   echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6
7825 fi
7826
7827 fi
7828
7829 # AR
7830 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7831   && test -d ../binutils ; then
7832   AR='$(objdir)/../binutils/ar'
7833 else
7834   # Extract the first word of "ar", so it can be a program name with args.
7835 set dummy ar; ac_word=$2
7836 echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838 if test "${ac_cv_prog_AR+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   if test -n "$AR"; then
7842   ac_cv_prog_AR="$AR" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851     ac_cv_prog_AR="ar"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857
7858   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7859 fi
7860 fi
7861 AR=$ac_cv_prog_AR
7862 if test -n "$AR"; then
7863   echo "$as_me:$LINENO: result: $AR" >&5
7864 echo "${ECHO_T}$AR" >&6
7865 else
7866   echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6
7868 fi
7869
7870 fi
7871
7872
7873 # --------------------
7874 # Checks for C headers
7875 # --------------------
7876
7877 echo "$as_me:$LINENO: checking for GNU C library" >&5
7878 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7879 if test "${gcc_cv_glibc+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h.  */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h.  */
7888 #include <features.h>
7889 int
7890 main ()
7891 {
7892
7893 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7894 #error Not a GNU C library system
7895 #endif
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902   (eval $ac_compile) 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -z "$ac_c_werror_flag"
7910                          || test ! -s conftest.err'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest.$ac_objext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   gcc_cv_glibc=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 gcc_cv_glibc=no
7928 fi
7929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7930 fi
7931
7932 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7933 echo "${ECHO_T}$gcc_cv_glibc" >&6
7934 if test $gcc_cv_glibc = yes; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define _GNU_SOURCE 1
7938 _ACEOF
7939
7940 fi
7941
7942 # Need to reject headers which give warnings, so that the -Werror bootstrap
7943 # works later. *sigh*  This needs to come before all header checks.
7944
7945 ac_c_preproc_warn_flag=yes
7946
7947 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7948 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7949 if test "${ac_cv_header_stdc+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958 #include <stdlib.h>
7959 #include <stdarg.h>
7960 #include <string.h>
7961 #include <float.h>
7962
7963 int
7964 main ()
7965 {
7966
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973   (eval $ac_compile) 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag"
7981                          || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest.$ac_objext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_header_stdc=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_header_stdc=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001
8002 if test $ac_cv_header_stdc = yes; then
8003   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004   cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010 #include <string.h>
8011
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014   $EGREP "memchr" >/dev/null 2>&1; then
8015   :
8016 else
8017   ac_cv_header_stdc=no
8018 fi
8019 rm -f conftest*
8020
8021 fi
8022
8023 if test $ac_cv_header_stdc = yes; then
8024   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8025   cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h.  */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h.  */
8031 #include <stdlib.h>
8032
8033 _ACEOF
8034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035   $EGREP "free" >/dev/null 2>&1; then
8036   :
8037 else
8038   ac_cv_header_stdc=no
8039 fi
8040 rm -f conftest*
8041
8042 fi
8043
8044 if test $ac_cv_header_stdc = yes; then
8045   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8046   if test "$cross_compiling" = yes; then
8047   :
8048 else
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 #include <ctype.h>
8056 #if ((' ' & 0x0FF) == 0x020)
8057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8059 #else
8060 # define ISLOWER(c) \
8061                    (('a' <= (c) && (c) <= 'i') \
8062                      || ('j' <= (c) && (c) <= 'r') \
8063                      || ('s' <= (c) && (c) <= 'z'))
8064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8065 #endif
8066
8067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8068 int
8069 main ()
8070 {
8071   int i;
8072   for (i = 0; i < 256; i++)
8073     if (XOR (islower (i), ISLOWER (i))
8074         || toupper (i) != TOUPPER (i))
8075       exit(2);
8076   exit (0);
8077 }
8078 _ACEOF
8079 rm -f conftest$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081   (eval $ac_link) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086   (eval $ac_try) 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090   :
8091 else
8092   echo "$as_me: program exited with status $ac_status" >&5
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ( exit $ac_status )
8097 ac_cv_header_stdc=no
8098 fi
8099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 fi
8102 fi
8103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8105 if test $ac_cv_header_stdc = yes; then
8106
8107 cat >>confdefs.h <<\_ACEOF
8108 #define STDC_HEADERS 1
8109 _ACEOF
8110
8111 fi
8112
8113 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8114 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8115 if test "${ac_cv_header_time+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124 #include <sys/types.h>
8125 #include <sys/time.h>
8126 #include <time.h>
8127
8128 int
8129 main ()
8130 {
8131 if ((struct tm *) 0)
8132 return 0;
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139   (eval $ac_compile) 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } &&
8146          { ac_try='test -z "$ac_c_werror_flag"
8147                          || test ! -s conftest.err'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; } &&
8153          { ac_try='test -s conftest.$ac_objext'
8154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155   (eval $ac_try) 2>&5
8156   ac_status=$?
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); }; }; then
8159   ac_cv_header_time=yes
8160 else
8161   echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_cv_header_time=no
8165 fi
8166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167 fi
8168 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8169 echo "${ECHO_T}$ac_cv_header_time" >&6
8170 if test $ac_cv_header_time = yes; then
8171
8172 cat >>confdefs.h <<\_ACEOF
8173 #define TIME_WITH_SYS_TIME 1
8174 _ACEOF
8175
8176 fi
8177
8178 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8179 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8180 if test "${gcc_cv_header_string+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189 #include <string.h>
8190 #include <strings.h>
8191 int
8192 main ()
8193 {
8194
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201   (eval $ac_compile) 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag"
8209                          || test ! -s conftest.err'
8210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211   (eval $ac_try) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; } &&
8215          { ac_try='test -s conftest.$ac_objext'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   gcc_cv_header_string=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 gcc_cv_header_string=no
8227 fi
8228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229 fi
8230 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8231 echo "${ECHO_T}$gcc_cv_header_string" >&6
8232 if test $gcc_cv_header_string = yes; then
8233
8234 cat >>confdefs.h <<\_ACEOF
8235 #define STRING_WITH_STRINGS 1
8236 _ACEOF
8237
8238 fi
8239
8240 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8241 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8242 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251 #include <sys/types.h>
8252 #include <sys/wait.h>
8253 #ifndef WEXITSTATUS
8254 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8255 #endif
8256 #ifndef WIFEXITED
8257 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8258 #endif
8259
8260 int
8261 main ()
8262 {
8263   int s;
8264   wait (&s);
8265   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8272   (eval $ac_compile) 2>conftest.er1
8273   ac_status=$?
8274   grep -v '^ *+' conftest.er1 >conftest.err
8275   rm -f conftest.er1
8276   cat conftest.err >&5
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); } &&
8279          { ac_try='test -z "$ac_c_werror_flag"
8280                          || test ! -s conftest.err'
8281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282   (eval $ac_try) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; } &&
8286          { ac_try='test -s conftest.$ac_objext'
8287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288   (eval $ac_try) 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; }; then
8292   ac_cv_header_sys_wait_h=yes
8293 else
8294   echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297 ac_cv_header_sys_wait_h=no
8298 fi
8299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8303 if test $ac_cv_header_sys_wait_h = yes; then
8304
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_SYS_WAIT_H 1
8307 _ACEOF
8308
8309 fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8334                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8335                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8336                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8337 do
8338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339 echo "$as_me:$LINENO: checking for $ac_header" >&5
8340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 #include <$ac_header>
8351 _ACEOF
8352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } >/dev/null; then
8360   if test -s conftest.err; then
8361     ac_cpp_err=$ac_c_preproc_warn_flag
8362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8363   else
8364     ac_cpp_err=
8365   fi
8366 else
8367   ac_cpp_err=yes
8368 fi
8369 if test -z "$ac_cpp_err"; then
8370   eval "$as_ac_Header=yes"
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375   eval "$as_ac_Header=no"
8376 fi
8377 rm -f conftest.err conftest.$ac_ext
8378 fi
8379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8382   cat >>confdefs.h <<_ACEOF
8383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8384 _ACEOF
8385
8386 fi
8387 done
8388
8389
8390 # Check for thread headers.
8391 echo "$as_me:$LINENO: checking for thread.h" >&5
8392 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_thread_h+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402 #include <thread.h>
8403 _ACEOF
8404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } >/dev/null; then
8412   if test -s conftest.err; then
8413     ac_cpp_err=$ac_c_preproc_warn_flag
8414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8415   else
8416     ac_cpp_err=
8417   fi
8418 else
8419   ac_cpp_err=yes
8420 fi
8421 if test -z "$ac_cpp_err"; then
8422   ac_cv_header_thread_h=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427   ac_cv_header_thread_h=no
8428 fi
8429 rm -f conftest.err conftest.$ac_ext
8430 fi
8431 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8432 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8433 if test $ac_cv_header_thread_h = yes; then
8434   have_thread_h=yes
8435 else
8436   have_thread_h=
8437 fi
8438
8439 echo "$as_me:$LINENO: checking for pthread.h" >&5
8440 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8441 if test "${ac_cv_header_pthread_h+set}" = set; then
8442   echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444   cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8450 #include <pthread.h>
8451 _ACEOF
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } >/dev/null; then
8460   if test -s conftest.err; then
8461     ac_cpp_err=$ac_c_preproc_warn_flag
8462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463   else
8464     ac_cpp_err=
8465   fi
8466 else
8467   ac_cpp_err=yes
8468 fi
8469 if test -z "$ac_cpp_err"; then
8470   ac_cv_header_pthread_h=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475   ac_cv_header_pthread_h=no
8476 fi
8477 rm -f conftest.err conftest.$ac_ext
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8480 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8481 if test $ac_cv_header_pthread_h = yes; then
8482   have_pthread_h=yes
8483 else
8484   have_pthread_h=
8485 fi
8486
8487
8488 # These tests can't be done till we know if we have limits.h.
8489 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8490 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8491 if test "${gcc_cv_decl_char_bit+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500 #ifdef HAVE_LIMITS_H
8501 #include <limits.h>
8502 #endif
8503 #ifdef CHAR_BIT
8504 found
8505 #endif
8506 _ACEOF
8507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8508   $EGREP "found" >/dev/null 2>&1; then
8509   gcc_cv_decl_char_bit=yes
8510 else
8511   gcc_cv_decl_char_bit=no
8512 fi
8513 rm -f conftest*
8514
8515
8516 fi
8517 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8518 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8519 if test $gcc_cv_decl_char_bit = no; then
8520   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8521 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8522 if test "${gcc_cv_c_nbby+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   i=8
8526  gcc_cv_c_nbby=
8527  while test $i -lt 65; do
8528    cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534
8535 int
8536 main ()
8537 {
8538 switch(0) {
8539   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8540   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8541   ; }
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548   (eval $ac_compile) 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } &&
8555          { ac_try='test -z "$ac_c_werror_flag"
8556                          || test ! -s conftest.err'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; } &&
8562          { ac_try='test -s conftest.$ac_objext'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; }; then
8568   gcc_cv_c_nbby=$i; break
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 fi
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575    i=`expr $i + 1`
8576  done
8577  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8578
8579 fi
8580 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8581 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8582 if test $gcc_cv_c_nbby = failed; then
8583   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8584 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8585    { (exit 1); exit 1; }; }
8586 else
8587
8588 cat >>confdefs.h <<_ACEOF
8589 #define CHAR_BIT $gcc_cv_c_nbby
8590 _ACEOF
8591
8592 fi
8593 fi
8594 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8595 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8596 if test "${ac_cv_c_bigendian+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   # See if sys/param.h defines the BYTE_ORDER macro.
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 #include <sys/types.h>
8607 #include <sys/param.h>
8608
8609 int
8610 main ()
8611 {
8612 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8613  bogus endian macros
8614 #endif
8615
8616   ;
8617   return 0;
8618 }
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622   (eval $ac_compile) 2>conftest.er1
8623   ac_status=$?
8624   grep -v '^ *+' conftest.er1 >conftest.err
8625   rm -f conftest.er1
8626   cat conftest.err >&5
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); } &&
8629          { ac_try='test -z "$ac_c_werror_flag"
8630                          || test ! -s conftest.err'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; } &&
8636          { ac_try='test -s conftest.$ac_objext'
8637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638   (eval $ac_try) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   # It does; now see whether it defined to BIG_ENDIAN or not.
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 #include <sys/types.h>
8650 #include <sys/param.h>
8651
8652 int
8653 main ()
8654 {
8655 #if BYTE_ORDER != BIG_ENDIAN
8656  not big endian
8657 #endif
8658
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.$ac_objext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665   (eval $ac_compile) 2>conftest.er1
8666   ac_status=$?
8667   grep -v '^ *+' conftest.er1 >conftest.err
8668   rm -f conftest.er1
8669   cat conftest.err >&5
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } &&
8672          { ac_try='test -z "$ac_c_werror_flag"
8673                          || test ! -s conftest.err'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; } &&
8679          { ac_try='test -s conftest.$ac_objext'
8680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; }; then
8685   ac_cv_c_bigendian=yes
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690 ac_cv_c_bigendian=no
8691 fi
8692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693 else
8694   echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 # It does not; compile a test program.
8698 if test "$cross_compiling" = yes; then
8699   # try to guess the endianness by grepping values into an object file
8700   ac_cv_c_bigendian=unknown
8701   cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h.  */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h.  */
8707 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8708 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8709 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8710 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8711 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8712 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8713 int
8714 main ()
8715 {
8716  _ascii (); _ebcdic ();
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723   (eval $ac_compile) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -z "$ac_c_werror_flag"
8731                          || test ! -s conftest.err'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; } &&
8737          { ac_try='test -s conftest.$ac_objext'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; }; then
8743   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8744   ac_cv_c_bigendian=yes
8745 fi
8746 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8747   if test "$ac_cv_c_bigendian" = unknown; then
8748     ac_cv_c_bigendian=no
8749   else
8750     # finding both strings is unlikely to happen, but who knows?
8751     ac_cv_c_bigendian=unknown
8752   fi
8753 fi
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 fi
8759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 else
8761   cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 int
8768 main ()
8769 {
8770   /* Are we little or big endian?  From Harbison&Steele.  */
8771   union
8772   {
8773     long l;
8774     char c[sizeof (long)];
8775   } u;
8776   u.l = 1;
8777   exit (u.c[sizeof (long) - 1] == 1);
8778 }
8779 _ACEOF
8780 rm -f conftest$ac_exeext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782   (eval $ac_link) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787   (eval $ac_try) 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_c_bigendian=no
8792 else
8793   echo "$as_me: program exited with status $ac_status" >&5
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ( exit $ac_status )
8798 ac_cv_c_bigendian=yes
8799 fi
8800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8801 fi
8802 fi
8803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8804 fi
8805 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8806 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8807 case $ac_cv_c_bigendian in
8808   yes)
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define WORDS_BIGENDIAN 1
8812 _ACEOF
8813  ;;
8814   no)
8815      ;;
8816   *)
8817     { { echo "$as_me:$LINENO: error: unknown endianness
8818 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8819 echo "$as_me: error: unknown endianness
8820 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8821    { (exit 1); exit 1; }; } ;;
8822 esac
8823
8824
8825 # --------
8826 # UNSORTED
8827 # --------
8828
8829 # Stage specific cflags for build.
8830 stage1_cflags=
8831 case $build in
8832 vax-*-*)
8833   if test x$GCC = xyes
8834   then
8835     stage1_cflags="-Wa,-J"
8836   else
8837     stage1_cflags="-J"
8838   fi
8839   ;;
8840 esac
8841
8842
8843 # These libraries may be used by collect2.
8844 # We may need a special search path to get them linked.
8845 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8846 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8847 if test "${gcc_cv_collect2_libs+set}" = set; then
8848   echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
8850   save_LIBS="$LIBS"
8851 for libs in '' -lld -lmld \
8852                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8853                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8854 do
8855         LIBS="$libs"
8856         cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862
8863 /* Override any gcc2 internal prototype to avoid an error.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 /* We use char because int might match the return type of a gcc2
8868    builtin and then its argument prototype would still apply.  */
8869 char ldopen ();
8870 int
8871 main ()
8872 {
8873 ldopen ();
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880   (eval $ac_link) 2>conftest.er1
8881   ac_status=$?
8882   grep -v '^ *+' conftest.er1 >conftest.err
8883   rm -f conftest.er1
8884   cat conftest.err >&5
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); } &&
8887          { ac_try='test -z "$ac_c_werror_flag"
8888                          || test ! -s conftest.err'
8889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890   (eval $ac_try) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; }; then
8900   gcc_cv_collect2_libs="$libs"; break
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 fi
8906 rm -f conftest.err conftest.$ac_objext \
8907       conftest$ac_exeext conftest.$ac_ext
8908 done
8909 LIBS="$save_LIBS"
8910 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8911 fi
8912 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8913 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8914 case $gcc_cv_collect2_libs in
8915         "none required")        ;;
8916         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8917 esac
8918
8919
8920 # When building Ada code on Alpha, we need exc_resume which is usually in
8921 # -lexc.  So test for it.
8922 save_LIBS="$LIBS"
8923 LIBS=
8924 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8925 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8926 if test "${ac_cv_search_exc_resume+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   ac_func_search_save_LIBS=$LIBS
8930 ac_cv_search_exc_resume=no
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937
8938 /* Override any gcc2 internal prototype to avoid an error.  */
8939 #ifdef __cplusplus
8940 extern "C"
8941 #endif
8942 /* We use char because int might match the return type of a gcc2
8943    builtin and then its argument prototype would still apply.  */
8944 char exc_resume ();
8945 int
8946 main ()
8947 {
8948 exc_resume ();
8949   ;
8950   return 0;
8951 }
8952 _ACEOF
8953 rm -f conftest.$ac_objext conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955   (eval $ac_link) 2>conftest.er1
8956   ac_status=$?
8957   grep -v '^ *+' conftest.er1 >conftest.err
8958   rm -f conftest.er1
8959   cat conftest.err >&5
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -z "$ac_c_werror_flag"
8963                          || test ! -s conftest.err'
8964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965   (eval $ac_try) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); }; } &&
8969          { ac_try='test -s conftest$ac_exeext'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; }; then
8975   ac_cv_search_exc_resume="none required"
8976 else
8977   echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 fi
8981 rm -f conftest.err conftest.$ac_objext \
8982       conftest$ac_exeext conftest.$ac_ext
8983 if test "$ac_cv_search_exc_resume" = no; then
8984   for ac_lib in exc; do
8985     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8986     cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992
8993 /* Override any gcc2 internal prototype to avoid an error.  */
8994 #ifdef __cplusplus
8995 extern "C"
8996 #endif
8997 /* We use char because int might match the return type of a gcc2
8998    builtin and then its argument prototype would still apply.  */
8999 char exc_resume ();
9000 int
9001 main ()
9002 {
9003 exc_resume ();
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010   (eval $ac_link) 2>conftest.er1
9011   ac_status=$?
9012   grep -v '^ *+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } &&
9017          { ac_try='test -z "$ac_c_werror_flag"
9018                          || test ! -s conftest.err'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; } &&
9024          { ac_try='test -s conftest$ac_exeext'
9025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026   (eval $ac_try) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; }; then
9030   ac_cv_search_exc_resume="-l$ac_lib"
9031 break
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 fi
9037 rm -f conftest.err conftest.$ac_objext \
9038       conftest$ac_exeext conftest.$ac_ext
9039   done
9040 fi
9041 LIBS=$ac_func_search_save_LIBS
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9044 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9045 if test "$ac_cv_search_exc_resume" != no; then
9046   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9047
9048 fi
9049
9050 GNAT_LIBEXC="$LIBS"
9051 LIBS="$save_LIBS"
9052
9053
9054 # Some systems put ldexp and frexp in libm instead of libc; assume
9055 # they're both in the same place.  jcf-dump needs them.
9056 save_LIBS="$LIBS"
9057 LIBS=
9058 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9059 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9060 if test "${ac_cv_search_ldexp+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   ac_func_search_save_LIBS=$LIBS
9064 ac_cv_search_ldexp=no
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071
9072 /* Override any gcc2 internal prototype to avoid an error.  */
9073 #ifdef __cplusplus
9074 extern "C"
9075 #endif
9076 /* We use char because int might match the return type of a gcc2
9077    builtin and then its argument prototype would still apply.  */
9078 char ldexp ();
9079 int
9080 main ()
9081 {
9082 ldexp ();
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089   (eval $ac_link) 2>conftest.er1
9090   ac_status=$?
9091   grep -v '^ *+' conftest.er1 >conftest.err
9092   rm -f conftest.er1
9093   cat conftest.err >&5
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } &&
9096          { ac_try='test -z "$ac_c_werror_flag"
9097                          || test ! -s conftest.err'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; } &&
9103          { ac_try='test -s conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_cv_search_ldexp="none required"
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 fi
9115 rm -f conftest.err conftest.$ac_objext \
9116       conftest$ac_exeext conftest.$ac_ext
9117 if test "$ac_cv_search_ldexp" = no; then
9118   for ac_lib in m; do
9119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9120     cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126
9127 /* Override any gcc2 internal prototype to avoid an error.  */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 /* We use char because int might match the return type of a gcc2
9132    builtin and then its argument prototype would still apply.  */
9133 char ldexp ();
9134 int
9135 main ()
9136 {
9137 ldexp ();
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144   (eval $ac_link) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } &&
9151          { ac_try='test -z "$ac_c_werror_flag"
9152                          || test ! -s conftest.err'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest$ac_exeext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_cv_search_ldexp="-l$ac_lib"
9165 break
9166 else
9167   echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 fi
9171 rm -f conftest.err conftest.$ac_objext \
9172       conftest$ac_exeext conftest.$ac_ext
9173   done
9174 fi
9175 LIBS=$ac_func_search_save_LIBS
9176 fi
9177 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9178 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9179 if test "$ac_cv_search_ldexp" != no; then
9180   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9181
9182 fi
9183
9184 LDEXP_LIB="$LIBS"
9185 LIBS="$save_LIBS"
9186
9187
9188 # Use <inttypes.h> only if it exists,
9189 # doesn't clash with <sys/types.h>, and declares intmax_t.
9190 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9191 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9192 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201 #include <sys/types.h>
9202 #include <inttypes.h>
9203 int
9204 main ()
9205 {
9206 intmax_t i = -1;
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"
9221                          || test ! -s conftest.err'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   gcc_cv_header_inttypes_h=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 gcc_cv_header_inttypes_h=no
9239 fi
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 fi
9242
9243 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9244 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9245 if test $gcc_cv_header_inttypes_h = yes; then
9246
9247 cat >>confdefs.h <<\_ACEOF
9248 #define HAVE_INTTYPES_H 1
9249 _ACEOF
9250
9251 fi
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9291         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9292         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9293         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
9294 do
9295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296 echo "$as_me:$LINENO: checking for $ac_func" >&5
9297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_var+set}\" = set"; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9309 #define $ac_func innocuous_$ac_func
9310
9311 /* System header to define __stub macros and hopefully few prototypes,
9312     which can conflict with char $ac_func (); below.
9313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314     <limits.h> exists even on freestanding compilers.  */
9315
9316 #ifdef __STDC__
9317 # include <limits.h>
9318 #else
9319 # include <assert.h>
9320 #endif
9321
9322 #undef $ac_func
9323
9324 /* Override any gcc2 internal prototype to avoid an error.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 {
9328 #endif
9329 /* We use char because int might match the return type of a gcc2
9330    builtin and then its argument prototype would still apply.  */
9331 char $ac_func ();
9332 /* The GNU C library defines this for functions which it implements
9333     to always fail with ENOSYS.  Some functions are actually named
9334     something starting with __ and the normal name is an alias.  */
9335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336 choke me
9337 #else
9338 char (*f) () = $ac_func;
9339 #endif
9340 #ifdef __cplusplus
9341 }
9342 #endif
9343
9344 int
9345 main ()
9346 {
9347 return f != $ac_func;
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354   (eval $ac_link) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -z "$ac_c_werror_flag"
9362                          || test ! -s conftest.err'
9363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364   (eval $ac_try) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; } &&
9368          { ac_try='test -s conftest$ac_exeext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   eval "$as_ac_var=yes"
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 eval "$as_ac_var=no"
9380 fi
9381 rm -f conftest.err conftest.$ac_objext \
9382       conftest$ac_exeext conftest.$ac_ext
9383 fi
9384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9386 if test `eval echo '${'$as_ac_var'}'` = yes; then
9387   cat >>confdefs.h <<_ACEOF
9388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 _ACEOF
9390
9391 fi
9392 done
9393
9394
9395 if test x$ac_cv_func_mbstowcs = xyes; then
9396   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9397 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9398 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401       if test "$cross_compiling" = yes; then
9402   gcc_cv_func_mbstowcs_works=yes
9403 else
9404   cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 #include <stdlib.h>
9411 int main()
9412 {
9413   mbstowcs(0, "", 0);
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419   (eval $ac_link) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; }; then
9428   gcc_cv_func_mbstowcs_works=yes
9429 else
9430   echo "$as_me: program exited with status $ac_status" >&5
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9433
9434 ( exit $ac_status )
9435 gcc_cv_func_mbstowcs_works=no
9436 fi
9437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9438 fi
9439 fi
9440 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9441 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9442   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9443
9444 cat >>confdefs.h <<\_ACEOF
9445 #define HAVE_WORKING_MBSTOWCS 1
9446 _ACEOF
9447
9448   fi
9449 fi
9450
9451 echo "$as_me:$LINENO: checking for ssize_t" >&5
9452 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9453 if test "${ac_cv_type_ssize_t+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462 $ac_includes_default
9463 int
9464 main ()
9465 {
9466 if ((ssize_t *) 0)
9467   return 0;
9468 if (sizeof (ssize_t))
9469   return 0;
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 rm -f conftest.$ac_objext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9476   (eval $ac_compile) 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag"
9484                          || test ! -s conftest.err'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest.$ac_objext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_cv_type_ssize_t=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_cv_type_ssize_t=no
9502 fi
9503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9506 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9507 if test $ac_cv_type_ssize_t = yes; then
9508   :
9509 else
9510
9511 cat >>confdefs.h <<_ACEOF
9512 #define ssize_t int
9513 _ACEOF
9514
9515 fi
9516
9517
9518 # Try to determine the array type of the second argument of getgroups
9519 # for the target system (int or gid_t).
9520 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9521 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9522 if test "${ac_cv_type_uid_t+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531 #include <sys/types.h>
9532
9533 _ACEOF
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535   $EGREP "uid_t" >/dev/null 2>&1; then
9536   ac_cv_type_uid_t=yes
9537 else
9538   ac_cv_type_uid_t=no
9539 fi
9540 rm -f conftest*
9541
9542 fi
9543 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9544 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9545 if test $ac_cv_type_uid_t = no; then
9546
9547 cat >>confdefs.h <<\_ACEOF
9548 #define uid_t int
9549 _ACEOF
9550
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define gid_t int
9554 _ACEOF
9555
9556 fi
9557
9558 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9559 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9560 if test "${ac_cv_type_getgroups+set}" = set; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   if test "$cross_compiling" = yes; then
9564   ac_cv_type_getgroups=cross
9565 else
9566   cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h.  */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h.  */
9572 /* Thanks to Mike Rendell for this test.  */
9573 #include <sys/types.h>
9574 #define NGID 256
9575 #undef MAX
9576 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9577
9578 int
9579 main ()
9580 {
9581   gid_t gidset[NGID];
9582   int i, n;
9583   union { gid_t gval; long lval; }  val;
9584
9585   val.lval = -1;
9586   for (i = 0; i < NGID; i++)
9587     gidset[i] = val.gval;
9588   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9589                  gidset);
9590   /* Exit non-zero if getgroups seems to require an array of ints.  This
9591      happens when gid_t is short but getgroups modifies an array of ints.  */
9592   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9593 }
9594 _ACEOF
9595 rm -f conftest$ac_exeext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597   (eval $ac_link) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   ac_cv_type_getgroups=gid_t
9607 else
9608   echo "$as_me: program exited with status $ac_status" >&5
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 ( exit $ac_status )
9613 ac_cv_type_getgroups=int
9614 fi
9615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9616 fi
9617 if test $ac_cv_type_getgroups = cross; then
9618         cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h.  */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h.  */
9624 #include <unistd.h>
9625
9626 _ACEOF
9627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9628   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9629   ac_cv_type_getgroups=gid_t
9630 else
9631   ac_cv_type_getgroups=int
9632 fi
9633 rm -f conftest*
9634
9635 fi
9636 fi
9637 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9638 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9639
9640 cat >>confdefs.h <<_ACEOF
9641 #define GETGROUPS_T $ac_cv_type_getgroups
9642 _ACEOF
9643
9644
9645 if test "${target}" = "${build}"; then
9646   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9647 else
9648   case "${target}" in
9649         # This condition may need some tweaking.  It should include all
9650         # targets where the array type of the second argument of getgroups
9651         # is int and the type of gid_t is not equivalent to int.
9652         *-*-sunos* | *-*-ultrix*)
9653                 TARGET_GETGROUPS_T=int
9654                 ;;
9655         *)
9656                 TARGET_GETGROUPS_T=gid_t
9657                 ;;
9658   esac
9659 fi
9660
9661
9662
9663 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9664 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9665 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 #include <sys/mman.h>
9675 _ACEOF
9676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } >/dev/null; then
9684   if test -s conftest.err; then
9685     ac_cpp_err=$ac_c_preproc_warn_flag
9686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9687   else
9688     ac_cpp_err=
9689   fi
9690 else
9691   ac_cpp_err=yes
9692 fi
9693 if test -z "$ac_cpp_err"; then
9694   ac_cv_header_sys_mman_h=yes
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699   ac_cv_header_sys_mman_h=no
9700 fi
9701 rm -f conftest.err conftest.$ac_ext
9702 fi
9703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9704 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9705 if test $ac_cv_header_sys_mman_h = yes; then
9706   gcc_header_sys_mman_h=yes
9707 else
9708   gcc_header_sys_mman_h=no
9709 fi
9710
9711 echo "$as_me:$LINENO: checking for mmap" >&5
9712 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9713 if test "${ac_cv_func_mmap+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9724 #define mmap innocuous_mmap
9725
9726 /* System header to define __stub macros and hopefully few prototypes,
9727     which can conflict with char mmap (); below.
9728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729     <limits.h> exists even on freestanding compilers.  */
9730
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9736
9737 #undef mmap
9738
9739 /* Override any gcc2 internal prototype to avoid an error.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 {
9743 #endif
9744 /* We use char because int might match the return type of a gcc2
9745    builtin and then its argument prototype would still apply.  */
9746 char mmap ();
9747 /* The GNU C library defines this for functions which it implements
9748     to always fail with ENOSYS.  Some functions are actually named
9749     something starting with __ and the normal name is an alias.  */
9750 #if defined (__stub_mmap) || defined (__stub___mmap)
9751 choke me
9752 #else
9753 char (*f) () = mmap;
9754 #endif
9755 #ifdef __cplusplus
9756 }
9757 #endif
9758
9759 int
9760 main ()
9761 {
9762 return f != mmap;
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>conftest.er1
9770   ac_status=$?
9771   grep -v '^ *+' conftest.er1 >conftest.err
9772   rm -f conftest.er1
9773   cat conftest.err >&5
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -z "$ac_c_werror_flag"
9777                          || test ! -s conftest.err'
9778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779   (eval $ac_try) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; } &&
9783          { ac_try='test -s conftest$ac_exeext'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789   ac_cv_func_mmap=yes
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 ac_cv_func_mmap=no
9795 fi
9796 rm -f conftest.err conftest.$ac_objext \
9797       conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9800 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9801 if test $ac_cv_func_mmap = yes; then
9802   gcc_func_mmap=yes
9803 else
9804   gcc_func_mmap=no
9805 fi
9806
9807 if test "$gcc_header_sys_mman_h" != yes \
9808  || test "$gcc_func_mmap" != yes; then
9809    gcc_cv_func_mmap_file=no
9810    gcc_cv_func_mmap_dev_zero=no
9811    gcc_cv_func_mmap_anon=no
9812 else
9813    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9814 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9815 if test "${gcc_cv_func_mmap_file+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   # Add a system to this blacklist if
9819    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9820    # memory area containing the same data that you'd get if you applied
9821    # read() to the same fd.  The only system known to have a problem here
9822    # is VMS, where text files have record structure.
9823    case "$host_os" in
9824      vms* | ultrix*)
9825         gcc_cv_func_mmap_file=no ;;
9826      *)
9827         gcc_cv_func_mmap_file=yes;;
9828    esac
9829 fi
9830 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9831 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9832    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9833 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9834 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   # Add a system to this blacklist if it has mmap() but /dev/zero
9838    # does not exist, or if mmapping /dev/zero does not give anonymous
9839    # zeroed pages with both the following properties:
9840    # 1. If you map N consecutive pages in with one call, and then
9841    #    unmap any subset of those pages, the pages that were not
9842    #    explicitly unmapped remain accessible.
9843    # 2. If you map two adjacent blocks of memory and then unmap them
9844    #    both at once, they must both go away.
9845    # Systems known to be in this category are Windows (all variants),
9846    # VMS, and Darwin.
9847    case "$host_os" in
9848      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9849         gcc_cv_func_mmap_dev_zero=no ;;
9850      *)
9851         gcc_cv_func_mmap_dev_zero=yes;;
9852    esac
9853 fi
9854 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9855 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9856
9857    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9858    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9859 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9860 if test "${gcc_cv_decl_map_anon+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 #include <sys/types.h>
9870 #include <sys/mman.h>
9871 #include <unistd.h>
9872
9873 #ifndef MAP_ANONYMOUS
9874 #define MAP_ANONYMOUS MAP_ANON
9875 #endif
9876
9877 int
9878 main ()
9879 {
9880 int n = MAP_ANONYMOUS;
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887   (eval $ac_compile) 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_c_werror_flag"
9895                          || test ! -s conftest.err'
9896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897   (eval $ac_try) 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; } &&
9901          { ac_try='test -s conftest.$ac_objext'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   gcc_cv_decl_map_anon=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 gcc_cv_decl_map_anon=no
9913 fi
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9915 fi
9916 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9917 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9918
9919    if test $gcc_cv_decl_map_anon = no; then
9920      gcc_cv_func_mmap_anon=no
9921    else
9922      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9923 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9924 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9928    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9929    # doesn't give anonymous zeroed pages with the same properties listed
9930    # above for use of /dev/zero.
9931    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9932    case "$host_os" in
9933      vms* | cygwin* | pe | mingw* | sco* | udk* )
9934         gcc_cv_func_mmap_anon=no ;;
9935      *)
9936         gcc_cv_func_mmap_anon=yes;;
9937    esac
9938 fi
9939 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9940 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9941    fi
9942 fi
9943
9944 if test $gcc_cv_func_mmap_file = yes; then
9945
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_MMAP_FILE 1
9948 _ACEOF
9949
9950 fi
9951 if test $gcc_cv_func_mmap_dev_zero = yes; then
9952
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_MMAP_DEV_ZERO 1
9955 _ACEOF
9956
9957 fi
9958 if test $gcc_cv_func_mmap_anon = yes; then
9959
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_MMAP_ANON 1
9962 _ACEOF
9963
9964 fi
9965
9966
9967 case "${host}" in
9968 *-*-*vms*)
9969   # Under VMS, vfork works very differently than on Unix. The standard test
9970   # won't work, and it isn't easily adaptable. It makes more sense to
9971   # just force it.
9972   ac_cv_func_vfork_works=yes
9973   ;;
9974 esac
9975 echo "$as_me:$LINENO: checking for pid_t" >&5
9976 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9977 if test "${ac_cv_type_pid_t+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986 $ac_includes_default
9987 int
9988 main ()
9989 {
9990 if ((pid_t *) 0)
9991   return 0;
9992 if (sizeof (pid_t))
9993   return 0;
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000   (eval $ac_compile) 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -z "$ac_c_werror_flag"
10008                          || test ! -s conftest.err'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; } &&
10014          { ac_try='test -s conftest.$ac_objext'
10015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016   (eval $ac_try) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; }; then
10020   ac_cv_type_pid_t=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_cv_type_pid_t=no
10026 fi
10027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10028 fi
10029 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10030 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10031 if test $ac_cv_type_pid_t = yes; then
10032   :
10033 else
10034
10035 cat >>confdefs.h <<_ACEOF
10036 #define pid_t int
10037 _ACEOF
10038
10039 fi
10040
10041
10042
10043 for ac_header in unistd.h vfork.h
10044 do
10045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10046 echo "$as_me:$LINENO: checking for $ac_header" >&5
10047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057 #include <$ac_header>
10058 _ACEOF
10059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } >/dev/null; then
10067   if test -s conftest.err; then
10068     ac_cpp_err=$ac_c_preproc_warn_flag
10069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10070   else
10071     ac_cpp_err=
10072   fi
10073 else
10074   ac_cpp_err=yes
10075 fi
10076 if test -z "$ac_cpp_err"; then
10077   eval "$as_ac_Header=yes"
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082   eval "$as_ac_Header=no"
10083 fi
10084 rm -f conftest.err conftest.$ac_ext
10085 fi
10086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10089   cat >>confdefs.h <<_ACEOF
10090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10091 _ACEOF
10092
10093 fi
10094 done
10095
10096
10097
10098 for ac_func in fork vfork
10099 do
10100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10101 echo "$as_me:$LINENO: checking for $ac_func" >&5
10102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_var+set}\" = set"; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h.  */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h.  */
10112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10114 #define $ac_func innocuous_$ac_func
10115
10116 /* System header to define __stub macros and hopefully few prototypes,
10117     which can conflict with char $ac_func (); below.
10118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119     <limits.h> exists even on freestanding compilers.  */
10120
10121 #ifdef __STDC__
10122 # include <limits.h>
10123 #else
10124 # include <assert.h>
10125 #endif
10126
10127 #undef $ac_func
10128
10129 /* Override any gcc2 internal prototype to avoid an error.  */
10130 #ifdef __cplusplus
10131 extern "C"
10132 {
10133 #endif
10134 /* We use char because int might match the return type of a gcc2
10135    builtin and then its argument prototype would still apply.  */
10136 char $ac_func ();
10137 /* The GNU C library defines this for functions which it implements
10138     to always fail with ENOSYS.  Some functions are actually named
10139     something starting with __ and the normal name is an alias.  */
10140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10141 choke me
10142 #else
10143 char (*f) () = $ac_func;
10144 #endif
10145 #ifdef __cplusplus
10146 }
10147 #endif
10148
10149 int
10150 main ()
10151 {
10152 return f != $ac_func;
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159   (eval $ac_link) 2>conftest.er1
10160   ac_status=$?
10161   grep -v '^ *+' conftest.er1 >conftest.err
10162   rm -f conftest.er1
10163   cat conftest.err >&5
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); } &&
10166          { ac_try='test -z "$ac_c_werror_flag"
10167                          || test ! -s conftest.err'
10168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169   (eval $ac_try) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; } &&
10173          { ac_try='test -s conftest$ac_exeext'
10174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175   (eval $ac_try) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   eval "$as_ac_var=yes"
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 eval "$as_ac_var=no"
10185 fi
10186 rm -f conftest.err conftest.$ac_objext \
10187       conftest$ac_exeext conftest.$ac_ext
10188 fi
10189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10191 if test `eval echo '${'$as_ac_var'}'` = yes; then
10192   cat >>confdefs.h <<_ACEOF
10193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194 _ACEOF
10195
10196 fi
10197 done
10198
10199 if test "x$ac_cv_func_fork" = xyes; then
10200   echo "$as_me:$LINENO: checking for working fork" >&5
10201 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10202 if test "${ac_cv_func_fork_works+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   if test "$cross_compiling" = yes; then
10206   ac_cv_func_fork_works=cross
10207 else
10208   cat >conftest.$ac_ext <<_ACEOF
10209 /* By Ruediger Kuhlmann. */
10210       #include <sys/types.h>
10211       #if HAVE_UNISTD_H
10212       # include <unistd.h>
10213       #endif
10214       /* Some systems only have a dummy stub for fork() */
10215       int main ()
10216       {
10217         if (fork() < 0)
10218           exit (1);
10219         exit (0);
10220       }
10221 _ACEOF
10222 rm -f conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224   (eval $ac_link) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229   (eval $ac_try) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; }; then
10233   ac_cv_func_fork_works=yes
10234 else
10235   echo "$as_me: program exited with status $ac_status" >&5
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ( exit $ac_status )
10240 ac_cv_func_fork_works=no
10241 fi
10242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10243 fi
10244 fi
10245 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10246 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10247
10248 else
10249   ac_cv_func_fork_works=$ac_cv_func_fork
10250 fi
10251 if test "x$ac_cv_func_fork_works" = xcross; then
10252   case $host in
10253     *-*-amigaos* | *-*-msdosdjgpp*)
10254       # Override, as these systems have only a dummy fork() stub
10255       ac_cv_func_fork_works=no
10256       ;;
10257     *)
10258       ac_cv_func_fork_works=yes
10259       ;;
10260   esac
10261   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10262 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10263 fi
10264 ac_cv_func_vfork_works=$ac_cv_func_vfork
10265 if test "x$ac_cv_func_vfork" = xyes; then
10266   echo "$as_me:$LINENO: checking for working vfork" >&5
10267 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10268 if test "${ac_cv_func_vfork_works+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   if test "$cross_compiling" = yes; then
10272   ac_cv_func_vfork_works=cross
10273 else
10274   cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280 /* Thanks to Paul Eggert for this test.  */
10281 #include <stdio.h>
10282 #include <stdlib.h>
10283 #include <sys/types.h>
10284 #include <sys/stat.h>
10285 #include <sys/wait.h>
10286 #if HAVE_UNISTD_H
10287 # include <unistd.h>
10288 #endif
10289 #if HAVE_VFORK_H
10290 # include <vfork.h>
10291 #endif
10292 /* On some sparc systems, changes by the child to local and incoming
10293    argument registers are propagated back to the parent.  The compiler
10294    is told about this with #include <vfork.h>, but some compilers
10295    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10296    static variable whose address is put into a register that is
10297    clobbered by the vfork.  */
10298 static void
10299 #ifdef __cplusplus
10300 sparc_address_test (int arg)
10301 # else
10302 sparc_address_test (arg) int arg;
10303 #endif
10304 {
10305   static pid_t child;
10306   if (!child) {
10307     child = vfork ();
10308     if (child < 0) {
10309       perror ("vfork");
10310       _exit(2);
10311     }
10312     if (!child) {
10313       arg = getpid();
10314       write(-1, "", 0);
10315       _exit (arg);
10316     }
10317   }
10318 }
10319
10320 int
10321 main ()
10322 {
10323   pid_t parent = getpid ();
10324   pid_t child;
10325
10326   sparc_address_test (0);
10327
10328   child = vfork ();
10329
10330   if (child == 0) {
10331     /* Here is another test for sparc vfork register problems.  This
10332        test uses lots of local variables, at least as many local
10333        variables as main has allocated so far including compiler
10334        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10335        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10336        reuse the register of parent for one of the local variables,
10337        since it will think that parent can't possibly be used any more
10338        in this routine.  Assigning to the local variable will thus
10339        munge parent in the parent process.  */
10340     pid_t
10341       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10342       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10343     /* Convince the compiler that p..p7 are live; otherwise, it might
10344        use the same hardware register for all 8 local variables.  */
10345     if (p != p1 || p != p2 || p != p3 || p != p4
10346         || p != p5 || p != p6 || p != p7)
10347       _exit(1);
10348
10349     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10350        from child file descriptors.  If the child closes a descriptor
10351        before it execs or exits, this munges the parent's descriptor
10352        as well.  Test for this by closing stdout in the child.  */
10353     _exit(close(fileno(stdout)) != 0);
10354   } else {
10355     int status;
10356     struct stat st;
10357
10358     while (wait(&status) != child)
10359       ;
10360     exit(
10361          /* Was there some problem with vforking?  */
10362          child < 0
10363
10364          /* Did the child fail?  (This shouldn't happen.)  */
10365          || status
10366
10367          /* Did the vfork/compiler bug occur?  */
10368          || parent != getpid()
10369
10370          /* Did the file descriptor bug occur?  */
10371          || fstat(fileno(stdout), &st) != 0
10372          );
10373   }
10374 }
10375 _ACEOF
10376 rm -f conftest$ac_exeext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378   (eval $ac_link) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383   (eval $ac_try) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; }; then
10387   ac_cv_func_vfork_works=yes
10388 else
10389   echo "$as_me: program exited with status $ac_status" >&5
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393 ( exit $ac_status )
10394 ac_cv_func_vfork_works=no
10395 fi
10396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10397 fi
10398 fi
10399 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10400 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10401
10402 fi;
10403 if test "x$ac_cv_func_fork_works" = xcross; then
10404   ac_cv_func_vfork_works=$ac_cv_func_vfork
10405   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10406 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10407 fi
10408
10409 if test "x$ac_cv_func_vfork_works" = xyes; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_WORKING_VFORK 1
10413 _ACEOF
10414
10415 else
10416
10417 cat >>confdefs.h <<\_ACEOF
10418 #define vfork fork
10419 _ACEOF
10420
10421 fi
10422 if test "x$ac_cv_func_fork_works" = xyes; then
10423
10424 cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_WORKING_FORK 1
10426 _ACEOF
10427
10428 fi
10429
10430
10431
10432       if test "X$prefix" = "XNONE"; then
10433     acl_final_prefix="$ac_default_prefix"
10434   else
10435     acl_final_prefix="$prefix"
10436   fi
10437   if test "X$exec_prefix" = "XNONE"; then
10438     acl_final_exec_prefix='${prefix}'
10439   else
10440     acl_final_exec_prefix="$exec_prefix"
10441   fi
10442   acl_save_prefix="$prefix"
10443   prefix="$acl_final_prefix"
10444   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10445   prefix="$acl_save_prefix"
10446
10447
10448 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10449 if test "${with_gnu_ld+set}" = set; then
10450   withval="$with_gnu_ld"
10451   test "$withval" = no || with_gnu_ld=yes
10452 else
10453   with_gnu_ld=no
10454 fi;
10455 # Prepare PATH_SEPARATOR.
10456 # The user is always right.
10457 if test "${PATH_SEPARATOR+set}" != set; then
10458   echo "#! /bin/sh" >conf$$.sh
10459   echo  "exit 0"   >>conf$$.sh
10460   chmod +x conf$$.sh
10461   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10462     PATH_SEPARATOR=';'
10463   else
10464     PATH_SEPARATOR=:
10465   fi
10466   rm -f conf$$.sh
10467 fi
10468 ac_prog=ld
10469 if test "$GCC" = yes; then
10470   # Check if gcc -print-prog-name=ld gives a path.
10471   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10472 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10473   case $host in
10474   *-*-mingw*)
10475     # gcc leaves a trailing carriage return which upsets mingw
10476     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10477   *)
10478     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10479   esac
10480   case $ac_prog in
10481     # Accept absolute paths.
10482     [\\/]* | [A-Za-z]:[\\/]*)
10483       re_direlt='/[^/][^/]*/\.\./'
10484       # Canonicalize the path of ld
10485       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10486       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10487         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10488       done
10489       test -z "$LD" && LD="$ac_prog"
10490       ;;
10491   "")
10492     # If it fails, then pretend we aren't using GCC.
10493     ac_prog=ld
10494     ;;
10495   *)
10496     # If it is relative, then search for the first ld in PATH.
10497     with_gnu_ld=unknown
10498     ;;
10499   esac
10500 elif test "$with_gnu_ld" = yes; then
10501   echo "$as_me:$LINENO: checking for GNU ld" >&5
10502 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10503 else
10504   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10505 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10506 fi
10507 if test "${acl_cv_path_LD+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510   if test -z "$LD"; then
10511   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10512   for ac_dir in $PATH; do
10513     test -z "$ac_dir" && ac_dir=.
10514     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10515       acl_cv_path_LD="$ac_dir/$ac_prog"
10516       # Check to see if the program is GNU ld.  I'd rather use --version,
10517       # but apparently some GNU ld's only accept -v.
10518       # Break only if it was the GNU/non-GNU ld that we prefer.
10519       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10520         test "$with_gnu_ld" != no && break
10521       else
10522         test "$with_gnu_ld" != yes && break
10523       fi
10524     fi
10525   done
10526   IFS="$ac_save_ifs"
10527 else
10528   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10529 fi
10530 fi
10531
10532 LD="$acl_cv_path_LD"
10533 if test -n "$LD"; then
10534   echo "$as_me:$LINENO: result: $LD" >&5
10535 echo "${ECHO_T}$LD" >&6
10536 else
10537   echo "$as_me:$LINENO: result: no" >&5
10538 echo "${ECHO_T}no" >&6
10539 fi
10540 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10541 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10542    { (exit 1); exit 1; }; }
10543 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10544 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10545 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10549 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10550   acl_cv_prog_gnu_ld=yes
10551 else
10552   acl_cv_prog_gnu_ld=no
10553 fi
10554 fi
10555 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10556 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10557 with_gnu_ld=$acl_cv_prog_gnu_ld
10558
10559
10560
10561                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10562 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10563 if test "${acl_cv_rpath+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566
10567     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10568     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10569     . ./conftest.sh
10570     rm -f ./conftest.sh
10571     acl_cv_rpath=done
10572
10573 fi
10574 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10575 echo "${ECHO_T}$acl_cv_rpath" >&6
10576   wl="$acl_cv_wl"
10577   libext="$acl_cv_libext"
10578   shlibext="$acl_cv_shlibext"
10579   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10580   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10581   hardcode_direct="$acl_cv_hardcode_direct"
10582   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10583     # Check whether --enable-rpath or --disable-rpath was given.
10584 if test "${enable_rpath+set}" = set; then
10585   enableval="$enable_rpath"
10586   :
10587 else
10588   enable_rpath=yes
10589 fi;
10590
10591
10592
10593
10594
10595
10596
10597     use_additional=yes
10598
10599   acl_save_prefix="$prefix"
10600   prefix="$acl_final_prefix"
10601   acl_save_exec_prefix="$exec_prefix"
10602   exec_prefix="$acl_final_exec_prefix"
10603
10604     eval additional_includedir=\"$includedir\"
10605     eval additional_libdir=\"$libdir\"
10606
10607   exec_prefix="$acl_save_exec_prefix"
10608   prefix="$acl_save_prefix"
10609
10610
10611 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10612 if test "${with_libiconv_prefix+set}" = set; then
10613   withval="$with_libiconv_prefix"
10614
10615     if test "X$withval" = "Xno"; then
10616       use_additional=no
10617     else
10618       if test "X$withval" = "X"; then
10619
10620   acl_save_prefix="$prefix"
10621   prefix="$acl_final_prefix"
10622   acl_save_exec_prefix="$exec_prefix"
10623   exec_prefix="$acl_final_exec_prefix"
10624
10625           eval additional_includedir=\"$includedir\"
10626           eval additional_libdir=\"$libdir\"
10627
10628   exec_prefix="$acl_save_exec_prefix"
10629   prefix="$acl_save_prefix"
10630
10631       else
10632         additional_includedir="$withval/include"
10633         additional_libdir="$withval/lib"
10634       fi
10635     fi
10636
10637 fi;
10638       LIBICONV=
10639   LTLIBICONV=
10640   INCICONV=
10641   rpathdirs=
10642   ltrpathdirs=
10643   names_already_handled=
10644   names_next_round='iconv '
10645   while test -n "$names_next_round"; do
10646     names_this_round="$names_next_round"
10647     names_next_round=
10648     for name in $names_this_round; do
10649       already_handled=
10650       for n in $names_already_handled; do
10651         if test "$n" = "$name"; then
10652           already_handled=yes
10653           break
10654         fi
10655       done
10656       if test -z "$already_handled"; then
10657         names_already_handled="$names_already_handled $name"
10658                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10659         eval value=\"\$HAVE_LIB$uppername\"
10660         if test -n "$value"; then
10661           if test "$value" = yes; then
10662             eval value=\"\$LIB$uppername\"
10663             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10664             eval value=\"\$LTLIB$uppername\"
10665             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10666           else
10667                                     :
10668           fi
10669         else
10670                               found_dir=
10671           found_la=
10672           found_so=
10673           found_a=
10674           if test $use_additional = yes; then
10675             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10676               found_dir="$additional_libdir"
10677               found_so="$additional_libdir/lib$name.$shlibext"
10678               if test -f "$additional_libdir/lib$name.la"; then
10679                 found_la="$additional_libdir/lib$name.la"
10680               fi
10681             else
10682               if test -f "$additional_libdir/lib$name.$libext"; then
10683                 found_dir="$additional_libdir"
10684                 found_a="$additional_libdir/lib$name.$libext"
10685                 if test -f "$additional_libdir/lib$name.la"; then
10686                   found_la="$additional_libdir/lib$name.la"
10687                 fi
10688               fi
10689             fi
10690           fi
10691           if test "X$found_dir" = "X"; then
10692             for x in $LDFLAGS $LTLIBICONV; do
10693
10694   acl_save_prefix="$prefix"
10695   prefix="$acl_final_prefix"
10696   acl_save_exec_prefix="$exec_prefix"
10697   exec_prefix="$acl_final_exec_prefix"
10698   eval x=\"$x\"
10699   exec_prefix="$acl_save_exec_prefix"
10700   prefix="$acl_save_prefix"
10701
10702               case "$x" in
10703                 -L*)
10704                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10705                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10706                     found_dir="$dir"
10707                     found_so="$dir/lib$name.$shlibext"
10708                     if test -f "$dir/lib$name.la"; then
10709                       found_la="$dir/lib$name.la"
10710                     fi
10711                   else
10712                     if test -f "$dir/lib$name.$libext"; then
10713                       found_dir="$dir"
10714                       found_a="$dir/lib$name.$libext"
10715                       if test -f "$dir/lib$name.la"; then
10716                         found_la="$dir/lib$name.la"
10717                       fi
10718                     fi
10719                   fi
10720                   ;;
10721               esac
10722               if test "X$found_dir" != "X"; then
10723                 break
10724               fi
10725             done
10726           fi
10727           if test "X$found_dir" != "X"; then
10728                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10729             if test "X$found_so" != "X"; then
10730                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10731                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10732               else
10733                                                                                 haveit=
10734                 for x in $ltrpathdirs; do
10735                   if test "X$x" = "X$found_dir"; then
10736                     haveit=yes
10737                     break
10738                   fi
10739                 done
10740                 if test -z "$haveit"; then
10741                   ltrpathdirs="$ltrpathdirs $found_dir"
10742                 fi
10743                                 if test "$hardcode_direct" = yes; then
10744                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10745                 else
10746                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10747                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10748                                                             haveit=
10749                     for x in $rpathdirs; do
10750                       if test "X$x" = "X$found_dir"; then
10751                         haveit=yes
10752                         break
10753                       fi
10754                     done
10755                     if test -z "$haveit"; then
10756                       rpathdirs="$rpathdirs $found_dir"
10757                     fi
10758                   else
10759                                                                                 haveit=
10760                     for x in $LDFLAGS $LIBICONV; do
10761
10762   acl_save_prefix="$prefix"
10763   prefix="$acl_final_prefix"
10764   acl_save_exec_prefix="$exec_prefix"
10765   exec_prefix="$acl_final_exec_prefix"
10766   eval x=\"$x\"
10767   exec_prefix="$acl_save_exec_prefix"
10768   prefix="$acl_save_prefix"
10769
10770                       if test "X$x" = "X-L$found_dir"; then
10771                         haveit=yes
10772                         break
10773                       fi
10774                     done
10775                     if test -z "$haveit"; then
10776                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10777                     fi
10778                     if test "$hardcode_minus_L" != no; then
10779                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10780                     else
10781                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10782                     fi
10783                   fi
10784                 fi
10785               fi
10786             else
10787               if test "X$found_a" != "X"; then
10788                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10789               else
10790                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10791               fi
10792             fi
10793                         additional_includedir=
10794             case "$found_dir" in
10795               */lib | */lib/)
10796                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10797                 additional_includedir="$basedir/include"
10798                 ;;
10799             esac
10800             if test "X$additional_includedir" != "X"; then
10801                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10802                 haveit=
10803                 if test "X$additional_includedir" = "X/usr/local/include"; then
10804                   if test -n "$GCC"; then
10805                     case $host_os in
10806                       linux*) haveit=yes;;
10807                     esac
10808                   fi
10809                 fi
10810                 if test -z "$haveit"; then
10811                   for x in $CPPFLAGS $INCICONV; do
10812
10813   acl_save_prefix="$prefix"
10814   prefix="$acl_final_prefix"
10815   acl_save_exec_prefix="$exec_prefix"
10816   exec_prefix="$acl_final_exec_prefix"
10817   eval x=\"$x\"
10818   exec_prefix="$acl_save_exec_prefix"
10819   prefix="$acl_save_prefix"
10820
10821                     if test "X$x" = "X-I$additional_includedir"; then
10822                       haveit=yes
10823                       break
10824                     fi
10825                   done
10826                   if test -z "$haveit"; then
10827                     if test -d "$additional_includedir"; then
10828                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10829                     fi
10830                   fi
10831                 fi
10832               fi
10833             fi
10834                         if test -n "$found_la"; then
10835                                                         save_libdir="$libdir"
10836               case "$found_la" in
10837                 */* | *\\*) . "$found_la" ;;
10838                 *) . "./$found_la" ;;
10839               esac
10840               libdir="$save_libdir"
10841                             for dep in $dependency_libs; do
10842                 case "$dep" in
10843                   -L*)
10844                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10845                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10846                       haveit=
10847                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10848                         if test -n "$GCC"; then
10849                           case $host_os in
10850                             linux*) haveit=yes;;
10851                           esac
10852                         fi
10853                       fi
10854                       if test -z "$haveit"; then
10855                         haveit=
10856                         for x in $LDFLAGS $LIBICONV; do
10857
10858   acl_save_prefix="$prefix"
10859   prefix="$acl_final_prefix"
10860   acl_save_exec_prefix="$exec_prefix"
10861   exec_prefix="$acl_final_exec_prefix"
10862   eval x=\"$x\"
10863   exec_prefix="$acl_save_exec_prefix"
10864   prefix="$acl_save_prefix"
10865
10866                           if test "X$x" = "X-L$additional_libdir"; then
10867                             haveit=yes
10868                             break
10869                           fi
10870                         done
10871                         if test -z "$haveit"; then
10872                           if test -d "$additional_libdir"; then
10873                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10874                           fi
10875                         fi
10876                         haveit=
10877                         for x in $LDFLAGS $LTLIBICONV; do
10878
10879   acl_save_prefix="$prefix"
10880   prefix="$acl_final_prefix"
10881   acl_save_exec_prefix="$exec_prefix"
10882   exec_prefix="$acl_final_exec_prefix"
10883   eval x=\"$x\"
10884   exec_prefix="$acl_save_exec_prefix"
10885   prefix="$acl_save_prefix"
10886
10887                           if test "X$x" = "X-L$additional_libdir"; then
10888                             haveit=yes
10889                             break
10890                           fi
10891                         done
10892                         if test -z "$haveit"; then
10893                           if test -d "$additional_libdir"; then
10894                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10895                           fi
10896                         fi
10897                       fi
10898                     fi
10899                     ;;
10900                   -R*)
10901                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10902                     if test "$enable_rpath" != no; then
10903                                                                   haveit=
10904                       for x in $rpathdirs; do
10905                         if test "X$x" = "X$dir"; then
10906                           haveit=yes
10907                           break
10908                         fi
10909                       done
10910                       if test -z "$haveit"; then
10911                         rpathdirs="$rpathdirs $dir"
10912                       fi
10913                                                                   haveit=
10914                       for x in $ltrpathdirs; do
10915                         if test "X$x" = "X$dir"; then
10916                           haveit=yes
10917                           break
10918                         fi
10919                       done
10920                       if test -z "$haveit"; then
10921                         ltrpathdirs="$ltrpathdirs $dir"
10922                       fi
10923                     fi
10924                     ;;
10925                   -l*)
10926                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10927                     ;;
10928                   *.la)
10929                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10930                     ;;
10931                   *)
10932                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10933                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10934                     ;;
10935                 esac
10936               done
10937             fi
10938           else
10939                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10940             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10941           fi
10942         fi
10943       fi
10944     done
10945   done
10946   if test "X$rpathdirs" != "X"; then
10947     if test -n "$hardcode_libdir_separator"; then
10948                         alldirs=
10949       for found_dir in $rpathdirs; do
10950         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10951       done
10952             acl_save_libdir="$libdir"
10953       libdir="$alldirs"
10954       eval flag=\"$hardcode_libdir_flag_spec\"
10955       libdir="$acl_save_libdir"
10956       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10957     else
10958             for found_dir in $rpathdirs; do
10959         acl_save_libdir="$libdir"
10960         libdir="$found_dir"
10961         eval flag=\"$hardcode_libdir_flag_spec\"
10962         libdir="$acl_save_libdir"
10963         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10964       done
10965     fi
10966   fi
10967   if test "X$ltrpathdirs" != "X"; then
10968             for found_dir in $ltrpathdirs; do
10969       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10970     done
10971   fi
10972
10973
10974
10975
10976
10977
10978
10979           am_save_CPPFLAGS="$CPPFLAGS"
10980
10981   for element in $INCICONV; do
10982     haveit=
10983     for x in $CPPFLAGS; do
10984
10985   acl_save_prefix="$prefix"
10986   prefix="$acl_final_prefix"
10987   acl_save_exec_prefix="$exec_prefix"
10988   exec_prefix="$acl_final_exec_prefix"
10989   eval x=\"$x\"
10990   exec_prefix="$acl_save_exec_prefix"
10991   prefix="$acl_save_prefix"
10992
10993       if test "X$x" = "X$element"; then
10994         haveit=yes
10995         break
10996       fi
10997     done
10998     if test -z "$haveit"; then
10999       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000     fi
11001   done
11002
11003
11004   echo "$as_me:$LINENO: checking for iconv" >&5
11005 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11006 if test "${am_cv_func_iconv+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009
11010     am_cv_func_iconv="no, consider installing GNU libiconv"
11011     am_cv_lib_iconv=no
11012     cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018 #include <stdlib.h>
11019 #include <iconv.h>
11020 int
11021 main ()
11022 {
11023 iconv_t cd = iconv_open("","");
11024        iconv(cd,NULL,NULL,NULL,NULL);
11025        iconv_close(cd);
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032   (eval $ac_link) 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } &&
11039          { ac_try='test -z "$ac_c_werror_flag"
11040                          || test ! -s conftest.err'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; } &&
11046          { ac_try='test -s conftest$ac_exeext'
11047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048   (eval $ac_try) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; }; then
11052   am_cv_func_iconv=yes
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 fi
11058 rm -f conftest.err conftest.$ac_objext \
11059       conftest$ac_exeext conftest.$ac_ext
11060     if test "$am_cv_func_iconv" != yes; then
11061       am_save_LIBS="$LIBS"
11062       LIBS="$LIBS $LIBICONV"
11063       cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069 #include <stdlib.h>
11070 #include <iconv.h>
11071 int
11072 main ()
11073 {
11074 iconv_t cd = iconv_open("","");
11075          iconv(cd,NULL,NULL,NULL,NULL);
11076          iconv_close(cd);
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext conftest$ac_exeext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11083   (eval $ac_link) 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } &&
11090          { ac_try='test -z "$ac_c_werror_flag"
11091                          || test ! -s conftest.err'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; } &&
11097          { ac_try='test -s conftest$ac_exeext'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; }; then
11103   am_cv_lib_iconv=yes
11104         am_cv_func_iconv=yes
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 fi
11110 rm -f conftest.err conftest.$ac_objext \
11111       conftest$ac_exeext conftest.$ac_ext
11112       LIBS="$am_save_LIBS"
11113     fi
11114
11115 fi
11116 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11117 echo "${ECHO_T}$am_cv_func_iconv" >&6
11118   if test "$am_cv_func_iconv" = yes; then
11119
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_ICONV 1
11122 _ACEOF
11123
11124   fi
11125   if test "$am_cv_lib_iconv" = yes; then
11126     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11127 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11128     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11129 echo "${ECHO_T}$LIBICONV" >&6
11130   else
11131             CPPFLAGS="$am_save_CPPFLAGS"
11132     LIBICONV=
11133     LTLIBICONV=
11134   fi
11135
11136
11137
11138   if test "$am_cv_func_iconv" = yes; then
11139     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11140 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11141     if test "${am_cv_proto_iconv+set}" = set; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144
11145       cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151
11152 #include <stdlib.h>
11153 #include <iconv.h>
11154 extern
11155 #ifdef __cplusplus
11156 "C"
11157 #endif
11158 #if defined(__STDC__) || defined(__cplusplus)
11159 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11160 #else
11161 size_t iconv();
11162 #endif
11163
11164 int
11165 main ()
11166 {
11167
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174   (eval $ac_compile) 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag"
11182                          || test ! -s conftest.err'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   am_cv_proto_iconv_arg1=""
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 am_cv_proto_iconv_arg1="const"
11200 fi
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202       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);"
11203 fi
11204
11205     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11206     echo "$as_me:$LINENO: result: ${ac_t:-
11207          }$am_cv_proto_iconv" >&5
11208 echo "${ECHO_T}${ac_t:-
11209          }$am_cv_proto_iconv" >&6
11210
11211 cat >>confdefs.h <<_ACEOF
11212 #define ICONV_CONST $am_cv_proto_iconv_arg1
11213 _ACEOF
11214
11215   fi
11216
11217 # Until we have in-tree GNU iconv:
11218 LIBICONV_DEP=
11219
11220
11221
11222   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11223 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11224 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11225   echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227   cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233 #include <locale.h>
11234 int
11235 main ()
11236 {
11237 return LC_MESSAGES
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } &&
11251          { ac_try='test -z "$ac_c_werror_flag"
11252                          || test ! -s conftest.err'
11253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254   (eval $ac_try) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); }; } &&
11258          { ac_try='test -s conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   am_cv_val_LC_MESSAGES=yes
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 am_cv_val_LC_MESSAGES=no
11270 fi
11271 rm -f conftest.err conftest.$ac_objext \
11272       conftest$ac_exeext conftest.$ac_ext
11273 fi
11274 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11275 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11276   if test $am_cv_val_LC_MESSAGES = yes; then
11277
11278 cat >>confdefs.h <<\_ACEOF
11279 #define HAVE_LC_MESSAGES 1
11280 _ACEOF
11281
11282   fi
11283
11284
11285
11286   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11287 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11288 if test "${am_cv_langinfo_codeset+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 #include <langinfo.h>
11298 int
11299 main ()
11300 {
11301 char* cs = nl_langinfo(CODESET);
11302   ;
11303   return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308   (eval $ac_link) 2>conftest.er1
11309   ac_status=$?
11310   grep -v '^ *+' conftest.er1 >conftest.err
11311   rm -f conftest.er1
11312   cat conftest.err >&5
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } &&
11315          { ac_try='test -z "$ac_c_werror_flag"
11316                          || test ! -s conftest.err'
11317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318   (eval $ac_try) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; } &&
11322          { ac_try='test -s conftest$ac_exeext'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; }; then
11328   am_cv_langinfo_codeset=yes
11329 else
11330   echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 am_cv_langinfo_codeset=no
11334 fi
11335 rm -f conftest.err conftest.$ac_objext \
11336       conftest$ac_exeext conftest.$ac_ext
11337
11338 fi
11339 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11340 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11341   if test $am_cv_langinfo_codeset = yes; then
11342
11343 cat >>confdefs.h <<\_ACEOF
11344 #define HAVE_LANGINFO_CODESET 1
11345 _ACEOF
11346
11347   fi
11348
11349
11350 # We will need to find libiberty.h and ansidecl.h
11351 saved_CFLAGS="$CFLAGS"
11352 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11393         strsignal strstr strverscmp \
11394         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11395         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
11396 do
11397   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11398 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11399 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11400 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409 #undef $ac_tr_decl
11410 #define $ac_tr_decl 1
11411
11412 #include "ansidecl.h"
11413 #include "system.h"
11414
11415 int
11416 main ()
11417 {
11418 #ifndef $ac_func
11419 char *(*pfn) = (char *(*)) $ac_func ;
11420 #endif
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11427   (eval $ac_compile) 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -z "$ac_c_werror_flag"
11435                          || test ! -s conftest.err'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; } &&
11441          { ac_try='test -s conftest.$ac_objext'
11442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; }; then
11447   eval "gcc_cv_have_decl_$ac_func=yes"
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 eval "gcc_cv_have_decl_$ac_func=no"
11453 fi
11454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11455 fi
11456
11457 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11458   echo "$as_me:$LINENO: result: yes" >&5
11459 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11460 #define $ac_tr_decl 1
11461 _ACEOF
11462
11463 else
11464   echo "$as_me:$LINENO: result: no" >&5
11465 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11466 #define $ac_tr_decl 0
11467 _ACEOF
11468
11469 fi
11470
11471 done
11472
11473
11474
11475
11476
11477 for ac_func in getrlimit setrlimit getrusage
11478 do
11479   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11480 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11481 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11482 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h.  */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h.  */
11491 #undef $ac_tr_decl
11492 #define $ac_tr_decl 1
11493
11494 #include "ansidecl.h"
11495 #include "system.h"
11496 #ifdef HAVE_SYS_RESOURCE_H
11497 #include <sys/resource.h>
11498 #endif
11499
11500
11501 int
11502 main ()
11503 {
11504 #ifndef $ac_func
11505 char *(*pfn) = (char *(*)) $ac_func ;
11506 #endif
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513   (eval $ac_compile) 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_c_werror_flag"
11521                          || test ! -s conftest.err'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest.$ac_objext'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; }; then
11533   eval "gcc_cv_have_decl_$ac_func=yes"
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 eval "gcc_cv_have_decl_$ac_func=no"
11539 fi
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 fi
11542
11543 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11544   echo "$as_me:$LINENO: result: yes" >&5
11545 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11546 #define $ac_tr_decl 1
11547 _ACEOF
11548
11549 else
11550   echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11552 #define $ac_tr_decl 0
11553 _ACEOF
11554
11555 fi
11556
11557 done
11558
11559
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566
11567 #include "ansidecl.h"
11568 #include "system.h"
11569 #ifdef HAVE_SYS_RESOURCE_H
11570 #include <sys/resource.h>
11571 #endif
11572
11573 int
11574 main ()
11575 {
11576 rlim_t l = 0;
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 rm -f conftest.$ac_objext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583   (eval $ac_compile) 2>conftest.er1
11584   ac_status=$?
11585   grep -v '^ *+' conftest.er1 >conftest.err
11586   rm -f conftest.er1
11587   cat conftest.err >&5
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } &&
11590          { ac_try='test -z "$ac_c_werror_flag"
11591                          || test ! -s conftest.err'
11592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593   (eval $ac_try) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); }; } &&
11597          { ac_try='test -s conftest.$ac_objext'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; }; then
11603   :
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608
11609 cat >>confdefs.h <<\_ACEOF
11610 #define rlim_t long
11611 _ACEOF
11612
11613 fi
11614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615
11616 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11617 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11618 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11619 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11620
11621 for ac_func in ldgetname
11622 do
11623   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11624 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11625 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11626 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h.  */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h.  */
11635 #undef $ac_tr_decl
11636 #define $ac_tr_decl 1
11637
11638 #include "ansidecl.h"
11639 #include "system.h"
11640 #ifdef HAVE_LDFCN_H
11641 #undef FREAD
11642 #undef FWRITE
11643 #include <ldfcn.h>
11644 #endif
11645
11646
11647 int
11648 main ()
11649 {
11650 #ifndef $ac_func
11651 char *(*pfn) = (char *(*)) $ac_func ;
11652 #endif
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659   (eval $ac_compile) 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -z "$ac_c_werror_flag"
11667                          || test ! -s conftest.err'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; } &&
11673          { ac_try='test -s conftest.$ac_objext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   eval "gcc_cv_have_decl_$ac_func=yes"
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 eval "gcc_cv_have_decl_$ac_func=no"
11685 fi
11686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 fi
11688
11689 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11690   echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11692 #define $ac_tr_decl 1
11693 _ACEOF
11694
11695 else
11696   echo "$as_me:$LINENO: result: no" >&5
11697 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11698 #define $ac_tr_decl 0
11699 _ACEOF
11700
11701 fi
11702
11703 done
11704
11705
11706
11707 for ac_func in times
11708 do
11709   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11710 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11711 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11712 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 #undef $ac_tr_decl
11722 #define $ac_tr_decl 1
11723
11724 #include "ansidecl.h"
11725 #include "system.h"
11726 #ifdef HAVE_SYS_TIMES_H
11727 #include <sys/times.h>
11728 #endif
11729
11730
11731 int
11732 main ()
11733 {
11734 #ifndef $ac_func
11735 char *(*pfn) = (char *(*)) $ac_func ;
11736 #endif
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743   (eval $ac_compile) 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } &&
11750          { ac_try='test -z "$ac_c_werror_flag"
11751                          || test ! -s conftest.err'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; } &&
11757          { ac_try='test -s conftest.$ac_objext'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; }; then
11763   eval "gcc_cv_have_decl_$ac_func=yes"
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 eval "gcc_cv_have_decl_$ac_func=no"
11769 fi
11770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771 fi
11772
11773 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11774   echo "$as_me:$LINENO: result: yes" >&5
11775 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11776 #define $ac_tr_decl 1
11777 _ACEOF
11778
11779 else
11780   echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11782 #define $ac_tr_decl 0
11783 _ACEOF
11784
11785 fi
11786
11787 done
11788
11789
11790
11791 for ac_func in sigaltstack
11792 do
11793   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11794 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11795 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11796 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799   cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h.  */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h.  */
11805 #undef $ac_tr_decl
11806 #define $ac_tr_decl 1
11807
11808 #include "ansidecl.h"
11809 #include "system.h"
11810 #include <signal.h>
11811
11812
11813 int
11814 main ()
11815 {
11816 #ifndef $ac_func
11817 char *(*pfn) = (char *(*)) $ac_func ;
11818 #endif
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825   (eval $ac_compile) 2>conftest.er1
11826   ac_status=$?
11827   grep -v '^ *+' conftest.er1 >conftest.err
11828   rm -f conftest.er1
11829   cat conftest.err >&5
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } &&
11832          { ac_try='test -z "$ac_c_werror_flag"
11833                          || test ! -s conftest.err'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; } &&
11839          { ac_try='test -s conftest.$ac_objext'
11840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841   (eval $ac_try) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; }; then
11845   eval "gcc_cv_have_decl_$ac_func=yes"
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 eval "gcc_cv_have_decl_$ac_func=no"
11851 fi
11852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854
11855 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11856   echo "$as_me:$LINENO: result: yes" >&5
11857 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11858 #define $ac_tr_decl 1
11859 _ACEOF
11860
11861 else
11862   echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11864 #define $ac_tr_decl 0
11865 _ACEOF
11866
11867 fi
11868
11869 done
11870
11871
11872 # More time-related stuff.
11873 echo "$as_me:$LINENO: checking for struct tms" >&5
11874 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11875 if test "${ac_cv_struct_tms+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885
11886 #include "ansidecl.h"
11887 #include "system.h"
11888 #ifdef HAVE_SYS_TIMES_H
11889 #include <sys/times.h>
11890 #endif
11891
11892 int
11893 main ()
11894 {
11895 struct tms tms;
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902   (eval $ac_compile) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag"
11910                          || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest.$ac_objext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   ac_cv_struct_tms=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_cv_struct_tms=no
11928 fi
11929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930 fi
11931 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11932 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11933 if test $ac_cv_struct_tms = yes; then
11934
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_STRUCT_TMS 1
11937 _ACEOF
11938
11939 fi
11940
11941 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11942 # revisit after autoconf 2.50.
11943 echo "$as_me:$LINENO: checking for clock_t" >&5
11944 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11945 if test "${gcc_cv_type_clock_t+set}" = set; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h.  */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h.  */
11955
11956 #include "ansidecl.h"
11957 #include "system.h"
11958
11959 int
11960 main ()
11961 {
11962 clock_t x;
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969   (eval $ac_compile) 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag"
11977                          || test ! -s conftest.err'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest.$ac_objext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   gcc_cv_type_clock_t=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 gcc_cv_type_clock_t=no
11995 fi
11996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997 fi
11998 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11999 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12000 if test $gcc_cv_type_clock_t = yes; then
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_CLOCK_T 1
12004 _ACEOF
12005
12006 fi
12007
12008 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12009 CFLAGS="$saved_CFLAGS"
12010
12011 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12012 if test "${enable_initfini_array+set}" = set; then
12013   enableval="$enable_initfini_array"
12014
12015 else
12016
12017 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12018 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12019 if test "${gcc_cv_initfini_array+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022     if test "$cross_compiling" = yes; then
12023   gcc_cv_initfini_array=no
12024 else
12025   cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h.  */
12031
12032 static int x = -1;
12033 int main (void) { return x; }
12034 int foo (void) { x = 0; }
12035 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12036 _ACEOF
12037 rm -f conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039   (eval $ac_link) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   gcc_cv_initfini_array=yes
12049 else
12050   echo "$as_me: program exited with status $ac_status" >&5
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 ( exit $ac_status )
12055 gcc_cv_initfini_array=no
12056 fi
12057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 fi
12060 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12061 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12062   enable_initfini_array=$gcc_cv_initfini_array
12063
12064 fi;
12065 if test $enable_initfini_array = yes; then
12066
12067 cat >>confdefs.h <<\_ACEOF
12068 #define HAVE_INITFINI_ARRAY 1
12069 _ACEOF
12070
12071 fi
12072
12073 # mkdir takes a single argument on some systems.
12074 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12075 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12076 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12077   echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079   cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085
12086 #include <sys/types.h>
12087 #ifdef HAVE_SYS_STAT_H
12088 # include <sys/stat.h>
12089 #endif
12090 #ifdef HAVE_UNISTD_H
12091 # include <unistd.h>
12092 #endif
12093 #ifdef HAVE_DIRECT_H
12094 # include <direct.h>
12095 #endif
12096 int
12097 main ()
12098 {
12099 mkdir ("foo", 0);
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106   (eval $ac_compile) 2>conftest.er1
12107   ac_status=$?
12108   grep -v '^ *+' conftest.er1 >conftest.err
12109   rm -f conftest.er1
12110   cat conftest.err >&5
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } &&
12113          { ac_try='test -z "$ac_c_werror_flag"
12114                          || test ! -s conftest.err'
12115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116   (eval $ac_try) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; } &&
12120          { ac_try='test -s conftest.$ac_objext'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   gcc_cv_mkdir_takes_one_arg=no
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 gcc_cv_mkdir_takes_one_arg=yes
12132 fi
12133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12134 fi
12135 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12136 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12137 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12138
12139 cat >>confdefs.h <<\_ACEOF
12140 #define MKDIR_TAKES_ONE_ARG 1
12141 _ACEOF
12142
12143 fi
12144
12145
12146 # File extensions
12147 manext='.1'
12148 objext='.o'
12149
12150
12151
12152 # With Setjmp/Longjmp based exception handling.
12153 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12154 if test "${enable_sjlj_exceptions+set}" = set; then
12155   enableval="$enable_sjlj_exceptions"
12156   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12157
12158 cat >>confdefs.h <<_ACEOF
12159 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12160 _ACEOF
12161
12162 fi;
12163
12164 # For platforms with the unwind ABI which includes an unwind library,
12165 # libunwind, we can choose to use the system libunwind.
12166
12167 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12168 if test "${with_system_libunwind+set}" = set; then
12169   withval="$with_system_libunwind"
12170
12171 fi;
12172
12173 # config.gcc also contains tests of with_system_libunwind.
12174 if test x$with_system_libunwind = xyes; then
12175
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_GETIPINFO 1
12178 _ACEOF
12179
12180 fi
12181
12182 # --------------------------------------------------------
12183 # Build, host, and target specific configuration fragments
12184 # --------------------------------------------------------
12185
12186 # Collect build-machine-specific information.
12187 . ${srcdir}/config.build
12188
12189 # Collect host-machine-specific information.
12190 . ${srcdir}/config.host
12191
12192 target_gtfiles=
12193
12194 # Collect target-machine-specific information.
12195 . ${srcdir}/config.gcc
12196
12197 extra_objs="${host_extra_objs} ${extra_objs}"
12198 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12199
12200 # Default the target-machine variables that were not explicitly set.
12201 if test x"$tm_file" = x
12202 then tm_file=$cpu_type/$cpu_type.h; fi
12203
12204 if test x"$extra_headers" = x
12205 then extra_headers=; fi
12206
12207 if test x$md_file = x
12208 then md_file=$cpu_type/$cpu_type.md; fi
12209
12210 if test x$out_file = x
12211 then out_file=$cpu_type/$cpu_type.c; fi
12212
12213 if test x"$tmake_file" = x
12214 then tmake_file=$cpu_type/t-$cpu_type
12215 fi
12216
12217 if test x"$dwarf2" = xyes
12218 then tm_file="$tm_file tm-dwarf2.h"
12219 fi
12220
12221 # Say what files are being used for the output code and MD file.
12222 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12223 echo "Using \`$srcdir/config/$md_file' as machine description file."
12224
12225 # If any of the xm_file variables contain nonexistent files, warn
12226 # about them and drop them.
12227
12228 bx=
12229 for x in $build_xm_file; do
12230   if    test -f $srcdir/config/$x
12231   then      bx="$bx $x"
12232   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12233 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12234   fi
12235 done
12236 build_xm_file="$bx"
12237
12238 hx=
12239 for x in $host_xm_file; do
12240   if    test -f $srcdir/config/$x
12241   then      hx="$hx $x"
12242   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12243 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12244   fi
12245 done
12246 host_xm_file="$hx"
12247
12248 tx=
12249 for x in $xm_file; do
12250   if    test -f $srcdir/config/$x
12251   then      tx="$tx $x"
12252   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12253 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12254   fi
12255 done
12256 xm_file="$tx"
12257
12258 count=a
12259 for f in $tm_file; do
12260         count=${count}x
12261 done
12262 if test $count = ax; then
12263         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12264 else
12265         echo "Using the following target machine macro files:"
12266         for f in $tm_file; do
12267                 echo "  $srcdir/config/$f"
12268         done
12269 fi
12270
12271 if test x$need_64bit_hwint = xyes; then
12272
12273 cat >>confdefs.h <<\_ACEOF
12274 #define NEED_64BIT_HOST_WIDE_INT 1
12275 _ACEOF
12276
12277 fi
12278
12279 if test x$use_long_long_for_widest_fast_int = xyes; then
12280
12281 cat >>confdefs.h <<\_ACEOF
12282 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12283 _ACEOF
12284
12285 fi
12286
12287 count=a
12288 for f in $host_xm_file; do
12289         count=${count}x
12290 done
12291 if test $count = a; then
12292         :
12293 elif test $count = ax; then
12294         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12295 else
12296         echo "Using the following host machine macro files:"
12297         for f in $host_xm_file; do
12298                 echo "  $srcdir/config/$f"
12299         done
12300 fi
12301 echo "Using ${out_host_hook_obj} for host machine hooks."
12302
12303 if test "$host_xm_file" != "$build_xm_file"; then
12304         count=a
12305         for f in $build_xm_file; do
12306                 count=${count}x
12307         done
12308         if test $count = a; then
12309                 :
12310         elif test $count = ax; then
12311                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12312         else
12313                 echo "Using the following build machine macro files:"
12314                 for f in $build_xm_file; do
12315                         echo "  $srcdir/config/$f"
12316                 done
12317         fi
12318 fi
12319
12320 case ${host} in
12321   powerpc*-*-darwin*)
12322     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12323 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12324 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   cat >conftest.$ac_ext <<_ACEOF
12328
12329 #include <sys/signal.h>
12330 #include <ucontext.h>
12331 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12332
12333 _ACEOF
12334 rm -f conftest.$ac_objext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336   (eval $ac_compile) 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } &&
12343          { ac_try='test -z "$ac_c_werror_flag"
12344                          || test ! -s conftest.err'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; } &&
12350          { ac_try='test -s conftest.$ac_objext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   gcc_cv_mcontext_underscores=no
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 gcc_cv_mcontext_underscores=yes
12362 fi
12363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12366 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12367       if test $gcc_cv_mcontext_underscores = yes; then
12368
12369 cat >>confdefs.h <<\_ACEOF
12370 #define HAS_MCONTEXT_T_UNDERSCORES
12371 _ACEOF
12372
12373       fi
12374     ;;
12375 esac
12376
12377 # ---------
12378 # Threading
12379 # ---------
12380
12381 # Check if a valid thread package
12382 case ${enable_threads} in
12383   "" | no)
12384     # No threads
12385     target_thread_file='single'
12386     ;;
12387   yes)
12388     # default
12389     target_thread_file='single'
12390     ;;
12391   aix | dce | gnat | irix | posix | posix95 | rtems | \
12392   single | solaris | vxworks | win32 )
12393     target_thread_file=${enable_threads}
12394     ;;
12395   *)
12396     echo "${enable_threads} is an unknown thread package" 1>&2
12397     exit 1
12398     ;;
12399 esac
12400
12401 if test x${thread_file} = x; then
12402   # No thread file set by target-specific clauses in config.gcc,
12403   # so use file chosen by default logic above
12404   thread_file=${target_thread_file}
12405 fi
12406
12407 # Make gthr-default.h if we have a thread file.
12408 gthread_flags=
12409 if test $thread_file != single; then
12410   rm -f gthr-default.h
12411   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12412   gthread_flags=-DHAVE_GTHR_DEFAULT
12413 fi
12414
12415
12416 # --------
12417 # UNSORTED
12418 # --------
12419
12420 use_cxa_atexit=no
12421 if test x$enable___cxa_atexit = xyes || \
12422    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12423   if test x$host = x$target; then
12424     case $host in
12425       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12426       # keyed to flag_use_cxa_atexit
12427       *-*-mingw32*)
12428         use_cxa_atexit=yes
12429         ;;
12430       *)
12431         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12432 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12433 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12444 #define __cxa_atexit innocuous___cxa_atexit
12445
12446 /* System header to define __stub macros and hopefully few prototypes,
12447     which can conflict with char __cxa_atexit (); below.
12448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449     <limits.h> exists even on freestanding compilers.  */
12450
12451 #ifdef __STDC__
12452 # include <limits.h>
12453 #else
12454 # include <assert.h>
12455 #endif
12456
12457 #undef __cxa_atexit
12458
12459 /* Override any gcc2 internal prototype to avoid an error.  */
12460 #ifdef __cplusplus
12461 extern "C"
12462 {
12463 #endif
12464 /* We use char because int might match the return type of a gcc2
12465    builtin and then its argument prototype would still apply.  */
12466 char __cxa_atexit ();
12467 /* The GNU C library defines this for functions which it implements
12468     to always fail with ENOSYS.  Some functions are actually named
12469     something starting with __ and the normal name is an alias.  */
12470 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12471 choke me
12472 #else
12473 char (*f) () = __cxa_atexit;
12474 #endif
12475 #ifdef __cplusplus
12476 }
12477 #endif
12478
12479 int
12480 main ()
12481 {
12482 return f != __cxa_atexit;
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489   (eval $ac_link) 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } &&
12496          { ac_try='test -z "$ac_c_werror_flag"
12497                          || test ! -s conftest.err'
12498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499   (eval $ac_try) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; } &&
12503          { ac_try='test -s conftest$ac_exeext'
12504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505   (eval $ac_try) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; }; then
12509   ac_cv_func___cxa_atexit=yes
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ac_cv_func___cxa_atexit=no
12515 fi
12516 rm -f conftest.err conftest.$ac_objext \
12517       conftest$ac_exeext conftest.$ac_ext
12518 fi
12519 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12520 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12521 if test $ac_cv_func___cxa_atexit = yes; then
12522   use_cxa_atexit=yes
12523 else
12524   echo "__cxa_atexit can't be enabled on this target"
12525 fi
12526
12527         ;;
12528     esac
12529   else
12530     # We can't check for __cxa_atexit when building a cross, so assume
12531     # it is available
12532     use_cxa_atexit=yes
12533   fi
12534   if test x$use_cxa_atexit = xyes; then
12535
12536 cat >>confdefs.h <<\_ACEOF
12537 #define DEFAULT_USE_CXA_ATEXIT 2
12538 _ACEOF
12539
12540   fi
12541 fi
12542
12543 use_getipinfo=yes
12544 if test x$with_system_libunwind = xyes; then
12545    if test x$host = x$target; then
12546      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12547 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12548 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   ac_func_search_save_LIBS=$LIBS
12552 ac_cv_search__Unwind_GetIPInfo=no
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559
12560 /* Override any gcc2 internal prototype to avoid an error.  */
12561 #ifdef __cplusplus
12562 extern "C"
12563 #endif
12564 /* We use char because int might match the return type of a gcc2
12565    builtin and then its argument prototype would still apply.  */
12566 char _Unwind_GetIPInfo ();
12567 int
12568 main ()
12569 {
12570 _Unwind_GetIPInfo ();
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577   (eval $ac_link) 2>conftest.er1
12578   ac_status=$?
12579   grep -v '^ *+' conftest.er1 >conftest.err
12580   rm -f conftest.er1
12581   cat conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -z "$ac_c_werror_flag"
12585                          || test ! -s conftest.err'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; } &&
12591          { ac_try='test -s conftest$ac_exeext'
12592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593   (eval $ac_try) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; }; then
12597   ac_cv_search__Unwind_GetIPInfo="none required"
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602 fi
12603 rm -f conftest.err conftest.$ac_objext \
12604       conftest$ac_exeext conftest.$ac_ext
12605 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12606   for ac_lib in unwind; do
12607     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12608     cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h.  */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h.  */
12614
12615 /* Override any gcc2 internal prototype to avoid an error.  */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 /* We use char because int might match the return type of a gcc2
12620    builtin and then its argument prototype would still apply.  */
12621 char _Unwind_GetIPInfo ();
12622 int
12623 main ()
12624 {
12625 _Unwind_GetIPInfo ();
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632   (eval $ac_link) 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag"
12640                          || test ! -s conftest.err'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; } &&
12646          { ac_try='test -s conftest$ac_exeext'
12647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648   (eval $ac_try) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; }; then
12652   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12653 break
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 fi
12659 rm -f conftest.err conftest.$ac_objext \
12660       conftest$ac_exeext conftest.$ac_ext
12661   done
12662 fi
12663 LIBS=$ac_func_search_save_LIBS
12664 fi
12665 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12666 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12667 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12668   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12669
12670 else
12671   use_getipinfo=no
12672 fi
12673
12674    fi
12675 fi
12676
12677 if test x$use_getipinfo = xyes; then
12678
12679 cat >>confdefs.h <<\_ACEOF
12680 #define HAVE_GETIPINFO 1
12681 _ACEOF
12682
12683 else
12684    echo "The system unwind library does not support _Unwind_GetIPInfo."
12685 fi
12686
12687 # Look for a file containing extra machine modes.
12688 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12689   extra_modes_file='$(srcdir)'/config/${extra_modes}
12690
12691
12692 cat >>confdefs.h <<_ACEOF
12693 #define EXTRA_MODES_FILE "config/$extra_modes"
12694 _ACEOF
12695
12696 fi
12697
12698 # Convert extra_options into a form suitable for Makefile use.
12699 extra_opt_files=
12700 for f in $extra_options; do
12701   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12702 done
12703
12704
12705 # auto-host.h is the file containing items generated by autoconf and is
12706 # the first file included by config.h.
12707 # If host=build, it is correct to have bconfig include auto-host.h
12708 # as well.  If host!=build, we are in error and need to do more
12709 # work to find out the build config parameters.
12710 if test x$host = x$build
12711 then
12712         build_auto=auto-host.h
12713 else
12714         # We create a subdir, then run autoconf in the subdir.
12715         # To prevent recursion we set host and build for the new
12716         # invocation of configure to the build for this invocation
12717         # of configure.
12718         tempdir=build.$$
12719         rm -rf $tempdir
12720         mkdir $tempdir
12721         cd $tempdir
12722         case ${srcdir} in
12723         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12724         *) realsrcdir=../${srcdir};;
12725         esac
12726         saved_CFLAGS="${CFLAGS}"
12727         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12728         ${realsrcdir}/configure \
12729                 --enable-languages=${enable_languages-all} \
12730                 --target=$target_alias --host=$build_alias --build=$build_alias
12731         CFLAGS="${saved_CFLAGS}"
12732
12733         # We just finished tests for the build machine, so rename
12734         # the file auto-build.h in the gcc directory.
12735         mv auto-host.h ../auto-build.h
12736         cd ..
12737         rm -rf $tempdir
12738         build_auto=auto-build.h
12739 fi
12740
12741
12742 tm_file="${tm_file} defaults.h"
12743 tm_p_file="${tm_p_file} tm-preds.h"
12744 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12745 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12746 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12747 # put this back in temporarily.
12748 xm_file="auto-host.h ansidecl.h ${xm_file}"
12749
12750 # --------
12751 # UNSORTED
12752 # --------
12753
12754 # Compile in configure arguments.
12755 if test -f configargs.h ; then
12756         # Being re-configured.
12757         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12758         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12759 else
12760         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12761 fi
12762
12763 # Double all backslashes and backslash all quotes to turn
12764 # gcc_config_arguments into a C string.
12765 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12766 $gcc_config_arguments
12767 EOF
12768 gcc_config_arguments_str=`cat conftest.out`
12769 rm -f conftest.out
12770
12771 cat > configargs.h <<EOF
12772 /* Generated automatically. */
12773 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12774 static const char thread_model[] = "$thread_file";
12775
12776 static const struct {
12777   const char *name, *value;
12778 } configure_default_options[] = $configure_default_options;
12779 EOF
12780
12781 # Internationalization
12782 # If we haven't got the data from the intl directory,
12783 # assume NLS is disabled.
12784 USE_NLS=no
12785 LIBINTL=
12786 LIBINTL_DEP=
12787 INCINTL=
12788 XGETTEXT=
12789 GMSGFMT=
12790 POSUB=
12791
12792 if test -f  ../intl/config.intl; then
12793   .  ../intl/config.intl
12794 fi
12795 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12796 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12797 if test x"$USE_NLS" != xyes; then
12798   echo "$as_me:$LINENO: result: no" >&5
12799 echo "${ECHO_T}no" >&6
12800 else
12801   echo "$as_me:$LINENO: result: yes" >&5
12802 echo "${ECHO_T}yes" >&6
12803
12804 cat >>confdefs.h <<\_ACEOF
12805 #define ENABLE_NLS 1
12806 _ACEOF
12807
12808
12809   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12810 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12811   # Look for .po and .gmo files in the source directory.
12812   CATALOGS=
12813   XLINGUAS=
12814   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12815     # If there aren't any .gmo files the shell will give us the
12816     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12817     # weeded out.
12818     case "$cat" in *\**)
12819       continue;;
12820     esac
12821     # The quadruple backslash is collapsed to a double backslash
12822     # by the backticks, then collapsed again by the double quotes,
12823     # leaving us with one backslash in the sed expression (right
12824     # before the dot that mustn't act as a wildcard).
12825     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12826     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12827     # The user is allowed to set LINGUAS to a list of languages to
12828     # install catalogs for.  If it's empty that means "all of them."
12829     if test "x$LINGUAS" = x; then
12830       CATALOGS="$CATALOGS $cat"
12831       XLINGUAS="$XLINGUAS $lang"
12832     else
12833       case "$LINGUAS" in *$lang*)
12834         CATALOGS="$CATALOGS $cat"
12835         XLINGUAS="$XLINGUAS $lang"
12836         ;;
12837       esac
12838     fi
12839   done
12840   LINGUAS="$XLINGUAS"
12841   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12842 echo "${ECHO_T}$LINGUAS" >&6
12843
12844
12845     DATADIRNAME=share
12846
12847   INSTOBJEXT=.mo
12848
12849   GENCAT=gencat
12850
12851   CATOBJEXT=.gmo
12852
12853 fi
12854
12855 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12856 # -liconv on the link line twice.
12857 case "$LIBINTL" in *$LIBICONV*)
12858         LIBICONV= ;;
12859 esac
12860
12861 # Check whether --enable-secureplt or --disable-secureplt was given.
12862 if test "${enable_secureplt+set}" = set; then
12863   enableval="$enable_secureplt"
12864
12865 fi;
12866
12867 # Windows32 Registry support for specifying GCC installation paths.
12868 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12869 if test "${enable_win32_registry+set}" = set; then
12870   enableval="$enable_win32_registry"
12871
12872 fi;
12873
12874 case $host_os in
12875   win32 | pe | cygwin* | mingw32* | uwin*)
12876     if test "x$enable_win32_registry" != xno; then
12877       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12878 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12879 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12880   echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882   ac_func_search_save_LIBS=$LIBS
12883 ac_cv_search_RegOpenKeyExA=no
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890
12891 /* Override any gcc2 internal prototype to avoid an error.  */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 /* We use char because int might match the return type of a gcc2
12896    builtin and then its argument prototype would still apply.  */
12897 char RegOpenKeyExA ();
12898 int
12899 main ()
12900 {
12901 RegOpenKeyExA ();
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908   (eval $ac_link) 2>conftest.er1
12909   ac_status=$?
12910   grep -v '^ *+' conftest.er1 >conftest.err
12911   rm -f conftest.er1
12912   cat conftest.err >&5
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -z "$ac_c_werror_flag"
12916                          || test ! -s conftest.err'
12917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918   (eval $ac_try) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; } &&
12922          { ac_try='test -s conftest$ac_exeext'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   ac_cv_search_RegOpenKeyExA="none required"
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 fi
12934 rm -f conftest.err conftest.$ac_objext \
12935       conftest$ac_exeext conftest.$ac_ext
12936 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12937   for ac_lib in advapi32; do
12938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12939     cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945
12946 /* Override any gcc2 internal prototype to avoid an error.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 /* We use char because int might match the return type of a gcc2
12951    builtin and then its argument prototype would still apply.  */
12952 char RegOpenKeyExA ();
12953 int
12954 main ()
12955 {
12956 RegOpenKeyExA ();
12957   ;
12958   return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext conftest$ac_exeext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12963   (eval $ac_link) 2>conftest.er1
12964   ac_status=$?
12965   grep -v '^ *+' conftest.er1 >conftest.err
12966   rm -f conftest.er1
12967   cat conftest.err >&5
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); } &&
12970          { ac_try='test -z "$ac_c_werror_flag"
12971                          || test ! -s conftest.err'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; } &&
12977          { ac_try='test -s conftest$ac_exeext'
12978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979   (eval $ac_try) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12984 break
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 fi
12990 rm -f conftest.err conftest.$ac_objext \
12991       conftest$ac_exeext conftest.$ac_ext
12992   done
12993 fi
12994 LIBS=$ac_func_search_save_LIBS
12995 fi
12996 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12997 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12998 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12999   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13000
13001 else
13002   enable_win32_registry=no
13003 fi
13004
13005     fi
13006
13007     if test "x$enable_win32_registry" != xno; then
13008
13009 cat >>confdefs.h <<\_ACEOF
13010 #define ENABLE_WIN32_REGISTRY 1
13011 _ACEOF
13012
13013
13014       if test "x$enable_win32_registry" != xyes \
13015          && test "x$enable_win32_registry" != x; then
13016
13017 cat >>confdefs.h <<_ACEOF
13018 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13019 _ACEOF
13020
13021       fi
13022     fi
13023   ;;
13024 esac
13025
13026 # Get an absolute path to the GCC top-level source directory
13027 holddir=`${PWDCMD-pwd}`
13028 cd $srcdir
13029 topdir=`${PWDCMD-pwd}`
13030 cd $holddir
13031
13032 # Conditionalize the makefile for this host machine.
13033 xmake_file=
13034 for f in ${host_xmake_file}
13035 do
13036         if test -f ${srcdir}/config/$f
13037         then
13038                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13039         fi
13040 done
13041
13042 # Conditionalize the makefile for this target machine.
13043 tmake_file_=
13044 for f in ${tmake_file}
13045 do
13046         if test -f ${srcdir}/config/$f
13047         then
13048                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13049         fi
13050 done
13051 tmake_file="${tmake_file_}"
13052
13053 # If the host doesn't support symlinks, modify CC in
13054 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13055 # Otherwise, we can use "CC=$(CC)".
13056 rm -f symtest.tem
13057 case "$LN_S" in
13058         *-s*)
13059                 cc_set_by_configure="\$(CC)"
13060                 quoted_cc_set_by_configure="\$(CC)"
13061                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13062                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13063                 ;;
13064         *)
13065                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13066                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13067                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13068                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13069                 ;;
13070 esac
13071
13072 # This is a terrible hack which will go away some day.
13073 host_cc_for_libada=${CC}
13074
13075
13076 out_object_file=`basename $out_file .c`.o
13077
13078 tm_file_list="options.h"
13079 tm_include_list="options.h"
13080 for f in $tm_file; do
13081   case $f in
13082     defaults.h )
13083        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13084        tm_include_list="${tm_include_list} $f"
13085        ;;
13086     * )
13087        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13088        tm_include_list="${tm_include_list} config/$f"
13089        ;;
13090   esac
13091 done
13092
13093 tm_p_file_list=
13094 tm_p_include_list=
13095 for f in $tm_p_file; do
13096   case $f in
13097     tm-preds.h )
13098        tm_p_file_list="${tm_p_file_list} $f"
13099        tm_p_include_list="${tm_p_include_list} $f"
13100        ;;
13101     * )
13102        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13103        tm_p_include_list="${tm_p_include_list} config/$f"
13104   esac
13105 done
13106
13107 xm_file_list=
13108 xm_include_list=
13109 for f in $xm_file; do
13110   case $f in
13111     ansidecl.h )
13112        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13113        xm_include_list="${xm_include_list} $f"
13114        ;;
13115     auto-host.h )
13116        xm_file_list="${xm_file_list} $f"
13117        xm_include_list="${xm_include_list} $f"
13118        ;;
13119     * )
13120        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13121        xm_include_list="${xm_include_list} config/$f"
13122        ;;
13123   esac
13124 done
13125
13126 host_xm_file_list=
13127 host_xm_include_list=
13128 for f in $host_xm_file; do
13129   case $f in
13130     ansidecl.h )
13131        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13132        host_xm_include_list="${host_xm_include_list} $f"
13133        ;;
13134     auto-host.h )
13135        host_xm_file_list="${host_xm_file_list} $f"
13136        host_xm_include_list="${host_xm_include_list} $f"
13137        ;;
13138     * )
13139        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13140        host_xm_include_list="${host_xm_include_list} config/$f"
13141        ;;
13142   esac
13143 done
13144
13145 build_xm_file_list=
13146 for f in $build_xm_file; do
13147   case $f in
13148     ansidecl.h )
13149        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13150        build_xm_include_list="${build_xm_include_list} $f"
13151        ;;
13152     auto-build.h | auto-host.h )
13153        build_xm_file_list="${build_xm_file_list} $f"
13154        build_xm_include_list="${build_xm_include_list} $f"
13155        ;;
13156     * )
13157        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13158        build_xm_include_list="${build_xm_include_list} config/$f"
13159        ;;
13160   esac
13161 done
13162
13163 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13164 # cross-compiler which does not use the native headers and libraries.
13165 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13166 CROSS=
13167 ALL=all.internal
13168 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13169
13170 if test "x$with_build_sysroot" != x; then
13171   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13172 else
13173   # This value is used, even on a native system, because
13174   # CROSS_SYSTEM_HEADER_DIR is just
13175   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13176   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13177 fi
13178
13179 if test x$host != x$target
13180 then
13181         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13182         ALL=all.cross
13183         SYSTEM_HEADER_DIR=$build_system_header_dir
13184         case "$host","$target" in
13185         # Darwin crosses can use the host system's libraries and headers,
13186         # because of the fat library support.  Of course, it must be the
13187         # same version of Darwin on both sides.  Allow the user to
13188         # just say --target=foo-darwin without a version number to mean
13189         # "the version on this system".
13190             *-*-darwin*,*-*-darwin*)
13191                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13192                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13193                 if test $hostos = $targetos -o $targetos = darwin ; then
13194                     CROSS=
13195                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13196                     with_headers=yes
13197                 fi
13198                 ;;
13199
13200             i?86-*-*,x86_64-*-* \
13201             | powerpc*-*-*,powerpc64*-*-*)
13202                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13203         esac
13204 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13205         SYSTEM_HEADER_DIR=$build_system_header_dir
13206 fi
13207
13208 # If this is a cross-compiler that does not
13209 # have its own set of headers then define
13210 # inhibit_libc
13211
13212 # If this is using newlib, without having the headers available now,
13213 # then define inhibit_libc in LIBGCC2_CFLAGS.
13214 # This prevents libgcc2 from containing any code which requires libc
13215 # support.
13216 inhibit_libc=false
13217 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13218        test x$with_newlib = xyes ; } &&
13219      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13220        inhibit_libc=true
13221 fi
13222
13223
13224 # When building gcc with a cross-compiler, we need to adjust things so
13225 # that the generator programs are still built with the native compiler.
13226 # Also, we cannot run fixincludes or fix-header.
13227
13228 # These are the normal (build=host) settings:
13229 CC_FOR_BUILD='$(CC)'
13230 BUILD_CFLAGS='$(ALL_CFLAGS)'
13231 STMP_FIXINC=stmp-fixinc
13232
13233 # Possibly disable fixproto, on a per-target basis.
13234 case ${use_fixproto} in
13235   no)
13236     STMP_FIXPROTO=
13237     ;;
13238   yes)
13239     STMP_FIXPROTO=stmp-fixproto
13240     ;;
13241 esac
13242
13243
13244 # And these apply if build != host, or we are generating coverage data
13245 if test x$build != x$host || test "x$coverage_flags" != x
13246 then
13247     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13248
13249     if test "x$TARGET_SYSTEM_ROOT" = x; then
13250         if test "x$STMP_FIXPROTO" != x; then
13251           STMP_FIXPROTO=stmp-install-fixproto
13252         fi
13253     fi
13254 fi
13255
13256 # Expand extra_headers to include complete path.
13257 # This substitutes for lots of t-* files.
13258 extra_headers_list=
13259 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13260 for file in ${extra_headers} ; do
13261   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13262 done
13263
13264 # Define collect2 in Makefile.
13265 case $host_can_use_collect2 in
13266   no) collect2= ;;
13267   *) collect2='collect2$(exeext)' ;;
13268 esac
13269
13270
13271 # Add a definition of USE_COLLECT2 if system wants one.
13272 case $use_collect2 in
13273   no) use_collect2= ;;
13274   "") ;;
13275   *)
13276     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13277     xm_defines="${xm_defines} USE_COLLECT2"
13278     case $host_can_use_collect2 in
13279       no)
13280         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13281 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13282    { (exit 1); exit 1; }; }
13283         ;;
13284     esac
13285     ;;
13286 esac
13287
13288 # ---------------------------
13289 # Assembler & linker features
13290 # ---------------------------
13291
13292 # Identify the assembler which will work hand-in-glove with the newly
13293 # built GCC, so that we can examine its features.  This is the assembler
13294 # which will be driven by the driver program.
13295 #
13296 # If build != host, and we aren't building gas in-tree, we identify a
13297 # build->target assembler and hope that it will have the same features
13298 # as the host->target assembler we'll be using.
13299 gcc_cv_gas_major_version=
13300 gcc_cv_gas_minor_version=
13301 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13302
13303 if test "${gcc_cv_as+set}" = set; then
13304   :
13305 else
13306
13307 if test -x "$DEFAULT_ASSEMBLER"; then
13308         gcc_cv_as="$DEFAULT_ASSEMBLER"
13309 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13310      && test -f ../gas/Makefile \
13311      && test x$build = x$host; then
13312         gcc_cv_as=../gas/as-new$build_exeext
13313 elif test -x as$build_exeext; then
13314         # Build using assembler in the current directory.
13315         gcc_cv_as=./as$build_exeext
13316 elif test -x $AS_FOR_TARGET; then
13317         gcc_cv_as="$AS_FOR_TARGET"
13318 else
13319         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13320 set dummy $AS_FOR_TARGET; ac_word=$2
13321 echo "$as_me:$LINENO: checking for $ac_word" >&5
13322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13323 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13324   echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13326   case $gcc_cv_as in
13327   [\\/]* | ?:[\\/]*)
13328   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13329   ;;
13330   *)
13331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13333 do
13334   IFS=$as_save_IFS
13335   test -z "$as_dir" && as_dir=.
13336   for ac_exec_ext in '' $ac_executable_extensions; do
13337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13340     break 2
13341   fi
13342 done
13343 done
13344
13345   ;;
13346 esac
13347 fi
13348 gcc_cv_as=$ac_cv_path_gcc_cv_as
13349
13350 if test -n "$gcc_cv_as"; then
13351   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13352 echo "${ECHO_T}$gcc_cv_as" >&6
13353 else
13354   echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6
13356 fi
13357
13358 fi
13359 fi
13360
13361
13362 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13363
13364
13365 echo "$as_me:$LINENO: checking what assembler to use" >&5
13366 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13367 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13368   # Single tree build which includes gas.  We want to prefer it
13369   # over whatever linker top-level may have detected, since
13370   # we'll use what we're building after installation anyway.
13371   echo "$as_me:$LINENO: result: newly built gas" >&5
13372 echo "${ECHO_T}newly built gas" >&6
13373   in_tree_gas=yes
13374   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13375 for f in $gcc_cv_as_bfd_srcdir/configure \
13376          $gcc_cv_as_gas_srcdir/configure \
13377          $gcc_cv_as_gas_srcdir/configure.in \
13378          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13379   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13380   if test x$gcc_cv_gas_version != x; then
13381     break
13382   fi
13383 done
13384 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13385 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13386 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13387 case $gcc_cv_gas_patch_version in
13388   "") gcc_cv_gas_patch_version="0" ;;
13389 esac
13390 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13391                             + $gcc_cv_gas_minor_version \) \* 1000 \
13392                             + $gcc_cv_gas_patch_version`
13393
13394   in_tree_gas_is_elf=no
13395   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13396      || (grep 'obj_format = multi' ../gas/Makefile \
13397          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13398   then
13399     in_tree_gas_is_elf=yes
13400   fi
13401 else
13402   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13403 echo "${ECHO_T}$gcc_cv_as" >&6
13404   in_tree_gas=no
13405 fi
13406
13407 # Identify the linker which will work hand-in-glove with the newly
13408 # built GCC, so that we can examine its features.  This is the linker
13409 # which will be driven by the driver program.
13410 #
13411 # If build != host, and we aren't building gas in-tree, we identify a
13412 # build->target linker and hope that it will have the same features
13413 # as the host->target linker we'll be using.
13414 gcc_cv_gld_major_version=
13415 gcc_cv_gld_minor_version=
13416 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13417 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13418
13419 if test "${gcc_cv_ld+set}" = set; then
13420   :
13421 else
13422
13423 if test -x "$DEFAULT_LINKER"; then
13424         gcc_cv_ld="$DEFAULT_LINKER"
13425 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13426      && test -f ../ld/Makefile \
13427      && test x$build = x$host; then
13428         gcc_cv_ld=../ld/ld-new$build_exeext
13429 elif test -x collect-ld$build_exeext; then
13430         # Build using linker in the current directory.
13431         gcc_cv_ld=./collect-ld$build_exeext
13432 elif test -x $LD_FOR_TARGET; then
13433         gcc_cv_ld="$LD_FOR_TARGET"
13434 else
13435         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13436 set dummy $LD_FOR_TARGET; ac_word=$2
13437 echo "$as_me:$LINENO: checking for $ac_word" >&5
13438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13439 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13440   echo $ECHO_N "(cached) $ECHO_C" >&6
13441 else
13442   case $gcc_cv_ld in
13443   [\\/]* | ?:[\\/]*)
13444   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13445   ;;
13446   *)
13447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13449 do
13450   IFS=$as_save_IFS
13451   test -z "$as_dir" && as_dir=.
13452   for ac_exec_ext in '' $ac_executable_extensions; do
13453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13456     break 2
13457   fi
13458 done
13459 done
13460
13461   ;;
13462 esac
13463 fi
13464 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13465
13466 if test -n "$gcc_cv_ld"; then
13467   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13468 echo "${ECHO_T}$gcc_cv_ld" >&6
13469 else
13470   echo "$as_me:$LINENO: result: no" >&5
13471 echo "${ECHO_T}no" >&6
13472 fi
13473
13474 fi
13475 fi
13476
13477
13478 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13479
13480
13481 echo "$as_me:$LINENO: checking what linker to use" >&5
13482 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13483 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13484         # Single tree build which includes ld.  We want to prefer it
13485         # over whatever linker top-level may have detected, since
13486         # we'll use what we're building after installation anyway.
13487         echo "$as_me:$LINENO: result: newly built ld" >&5
13488 echo "${ECHO_T}newly built ld" >&6
13489         in_tree_ld=yes
13490         in_tree_ld_is_elf=no
13491         if (grep 'EMUL = .*elf' ../ld/Makefile \
13492             || grep 'EMUL = .*linux' ../ld/Makefile \
13493             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13494           in_tree_ld_is_elf=yes
13495         fi
13496         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
13497         do
13498                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13499                 if test x$gcc_cv_gld_version != x; then
13500                         break
13501                 fi
13502         done
13503         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13504         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13505 else
13506         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13507 echo "${ECHO_T}$gcc_cv_ld" >&6
13508         in_tree_ld=no
13509 fi
13510
13511 # Figure out what nm we will be using.
13512 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13513 if test "${gcc_cv_nm+set}" = set; then
13514   :
13515 else
13516
13517 if test -f $gcc_cv_binutils_srcdir/configure.in \
13518      && test -f ../binutils/Makefile \
13519      && test x$build = x$host; then
13520         gcc_cv_nm=../binutils/nm-new$build_exeext
13521 elif test -x nm$build_exeext; then
13522         gcc_cv_nm=./nm$build_exeext
13523 elif test -x $NM_FOR_TARGET; then
13524         gcc_cv_nm="$NM_FOR_TARGET"
13525 else
13526         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13527 set dummy $NM_FOR_TARGET; ac_word=$2
13528 echo "$as_me:$LINENO: checking for $ac_word" >&5
13529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13530 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13531   echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533   case $gcc_cv_nm in
13534   [\\/]* | ?:[\\/]*)
13535   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13536   ;;
13537   *)
13538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13540 do
13541   IFS=$as_save_IFS
13542   test -z "$as_dir" && as_dir=.
13543   for ac_exec_ext in '' $ac_executable_extensions; do
13544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13545     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13547     break 2
13548   fi
13549 done
13550 done
13551
13552   ;;
13553 esac
13554 fi
13555 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13556
13557 if test -n "$gcc_cv_nm"; then
13558   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13559 echo "${ECHO_T}$gcc_cv_nm" >&6
13560 else
13561   echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6
13563 fi
13564
13565 fi
13566 fi
13567
13568
13569 echo "$as_me:$LINENO: checking what nm to use" >&5
13570 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13571 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13572         # Single tree build which includes binutils.
13573         echo "$as_me:$LINENO: result: newly built nm" >&5
13574 echo "${ECHO_T}newly built nm" >&6
13575         in_tree_nm=yes
13576 else
13577         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13578 echo "${ECHO_T}$gcc_cv_nm" >&6
13579         in_tree_nm=no
13580 fi
13581
13582 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13583
13584
13585 # Figure out what objdump we will be using.
13586 if test "${gcc_cv_objdump+set}" = set; then
13587   :
13588 else
13589
13590 if test -f $gcc_cv_binutils_srcdir/configure.in \
13591      && test -f ../binutils/Makefile \
13592      && test x$build = x$host; then
13593         # Single tree build which includes binutils.
13594         gcc_cv_objdump=../binutils/objdump$build_exeext
13595 elif test -x objdump$build_exeext; then
13596         gcc_cv_objdump=./objdump$build_exeext
13597 elif test -x $OBJDUMP_FOR_TARGET; then
13598         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13599 else
13600         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13601 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13602 echo "$as_me:$LINENO: checking for $ac_word" >&5
13603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13604 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13605   echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607   case $gcc_cv_objdump in
13608   [\\/]* | ?:[\\/]*)
13609   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13610   ;;
13611   *)
13612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13614 do
13615   IFS=$as_save_IFS
13616   test -z "$as_dir" && as_dir=.
13617   for ac_exec_ext in '' $ac_executable_extensions; do
13618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13621     break 2
13622   fi
13623 done
13624 done
13625
13626   ;;
13627 esac
13628 fi
13629 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13630
13631 if test -n "$gcc_cv_objdump"; then
13632   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13633 echo "${ECHO_T}$gcc_cv_objdump" >&6
13634 else
13635   echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6
13637 fi
13638
13639 fi
13640 fi
13641
13642
13643 echo "$as_me:$LINENO: checking what objdump to use" >&5
13644 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13645 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13646         # Single tree build which includes binutils.
13647         echo "$as_me:$LINENO: result: newly built objdump" >&5
13648 echo "${ECHO_T}newly built objdump" >&6
13649 elif test x$gcc_cv_objdump = x; then
13650         echo "$as_me:$LINENO: result: not found" >&5
13651 echo "${ECHO_T}not found" >&6
13652 else
13653         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13654 echo "${ECHO_T}$gcc_cv_objdump" >&6
13655 fi
13656
13657 # Figure out what assembler alignment features are present.
13658 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13659 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13660 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   gcc_cv_as_balign_and_p2align=no
13664     if test $in_tree_gas = yes; then
13665     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13666   then gcc_cv_as_balign_and_p2align=yes
13667 fi
13668   elif test x$gcc_cv_as != x; then
13669     echo '.balign 4
13670 .p2align 2' > conftest.s
13671     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }
13677     then
13678         gcc_cv_as_balign_and_p2align=yes
13679     else
13680       echo "configure: failed program was" >&5
13681       cat conftest.s >&5
13682     fi
13683     rm -f conftest.o conftest.s
13684   fi
13685 fi
13686 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13687 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13688 if test $gcc_cv_as_balign_and_p2align = yes; then
13689
13690 cat >>confdefs.h <<\_ACEOF
13691 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13692 _ACEOF
13693
13694 fi
13695
13696 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13697 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13698 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13699   echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701   gcc_cv_as_max_skip_p2align=no
13702     if test $in_tree_gas = yes; then
13703     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13704   then gcc_cv_as_max_skip_p2align=yes
13705 fi
13706   elif test x$gcc_cv_as != x; then
13707     echo '.p2align 4,,7' > conftest.s
13708     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }
13714     then
13715         gcc_cv_as_max_skip_p2align=yes
13716     else
13717       echo "configure: failed program was" >&5
13718       cat conftest.s >&5
13719     fi
13720     rm -f conftest.o conftest.s
13721   fi
13722 fi
13723 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13724 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13725 if test $gcc_cv_as_max_skip_p2align = yes; then
13726
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13729 _ACEOF
13730
13731 fi
13732
13733 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13734 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13735 if test "${gcc_cv_as_literal16+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   gcc_cv_as_literal16=no
13739     if test $in_tree_gas = yes; then
13740     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13741   then gcc_cv_as_literal16=yes
13742 fi
13743   elif test x$gcc_cv_as != x; then
13744     echo '.literal16' > conftest.s
13745     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; }
13751     then
13752         gcc_cv_as_literal16=yes
13753     else
13754       echo "configure: failed program was" >&5
13755       cat conftest.s >&5
13756     fi
13757     rm -f conftest.o conftest.s
13758   fi
13759 fi
13760 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13761 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13762 if test $gcc_cv_as_literal16 = yes; then
13763
13764 cat >>confdefs.h <<\_ACEOF
13765 #define HAVE_GAS_LITERAL16 1
13766 _ACEOF
13767
13768 fi
13769
13770 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13771 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13772 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775   gcc_cv_as_subsection_m1=no
13776     if test $in_tree_gas = yes; then
13777     if test $in_tree_gas_is_elf = yes \
13778   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13779   then gcc_cv_as_subsection_m1=yes
13780 fi
13781   elif test x$gcc_cv_as != x; then
13782     echo 'conftest_label1: .word 0
13783 .subsection -1
13784 conftest_label2: .word 0
13785 .previous' > conftest.s
13786     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }
13792     then
13793         if test x$gcc_cv_nm != x; then
13794     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13795     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13796     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13797     then :
13798     else gcc_cv_as_subsection_m1=yes
13799     fi
13800     rm -f conftest.nm1 conftest.nm2
13801   fi
13802     else
13803       echo "configure: failed program was" >&5
13804       cat conftest.s >&5
13805     fi
13806     rm -f conftest.o conftest.s
13807   fi
13808 fi
13809 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13810 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13811 if test $gcc_cv_as_subsection_m1 = yes; then
13812
13813 cat >>confdefs.h <<\_ACEOF
13814 #define HAVE_GAS_SUBSECTION_ORDERING 1
13815 _ACEOF
13816
13817 fi
13818
13819 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13820 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13821 if test "${gcc_cv_as_weak+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   gcc_cv_as_weak=no
13825     if test $in_tree_gas = yes; then
13826     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13827   then gcc_cv_as_weak=yes
13828 fi
13829   elif test x$gcc_cv_as != x; then
13830     echo '      .weak foobar' > conftest.s
13831     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; }
13837     then
13838         gcc_cv_as_weak=yes
13839     else
13840       echo "configure: failed program was" >&5
13841       cat conftest.s >&5
13842     fi
13843     rm -f conftest.o conftest.s
13844   fi
13845 fi
13846 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13847 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13848 if test $gcc_cv_as_weak = yes; then
13849
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_GAS_WEAK 1
13852 _ACEOF
13853
13854 fi
13855
13856 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13857 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13858 if test "${gcc_cv_as_weakref+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   gcc_cv_as_weakref=no
13862     if test $in_tree_gas = yes; then
13863     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13864   then gcc_cv_as_weakref=yes
13865 fi
13866   elif test x$gcc_cv_as != x; then
13867     echo '      .weakref foobar, barfnot' > conftest.s
13868     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }
13874     then
13875         gcc_cv_as_weakref=yes
13876     else
13877       echo "configure: failed program was" >&5
13878       cat conftest.s >&5
13879     fi
13880     rm -f conftest.o conftest.s
13881   fi
13882 fi
13883 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13884 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13885 if test $gcc_cv_as_weakref = yes; then
13886
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_GAS_WEAKREF 1
13889 _ACEOF
13890
13891 fi
13892
13893 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13894 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13895 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898   gcc_cv_as_nsubspa_comdat=no
13899     if test $in_tree_gas = yes; then
13900     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13901   then gcc_cv_as_nsubspa_comdat=yes
13902 fi
13903   elif test x$gcc_cv_as != x; then
13904     echo '      .SPACE $TEXT$
13905         .NSUBSPA $CODE$,COMDAT' > conftest.s
13906     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908   (eval $ac_try) 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }
13912     then
13913         gcc_cv_as_nsubspa_comdat=yes
13914     else
13915       echo "configure: failed program was" >&5
13916       cat conftest.s >&5
13917     fi
13918     rm -f conftest.o conftest.s
13919   fi
13920 fi
13921 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13922 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13923 if test $gcc_cv_as_nsubspa_comdat = yes; then
13924
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_GAS_NSUBSPA_COMDAT 1
13927 _ACEOF
13928
13929 fi
13930
13931 # .hidden needs to be supported in both the assembler and the linker,
13932 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13933 # This is irritatingly difficult to feature test for; we have to check the
13934 # date string after the version number.  If we've got an in-tree
13935 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13936 # to be safe.
13937 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13938 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13939 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13940 if test "${gcc_cv_as_hidden+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   gcc_cv_as_hidden=no
13944     if test $in_tree_gas = yes; then
13945     if test $in_tree_gas_is_elf = yes \
13946   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13947   then gcc_cv_as_hidden=yes
13948 fi
13949   elif test x$gcc_cv_as != x; then
13950     echo '      .hidden foobar
13951 foobar:' > conftest.s
13952     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954   (eval $ac_try) 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }; }
13958     then
13959         gcc_cv_as_hidden=yes
13960     else
13961       echo "configure: failed program was" >&5
13962       cat conftest.s >&5
13963     fi
13964     rm -f conftest.o conftest.s
13965   fi
13966 fi
13967 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13968 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13969
13970
13971 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13972 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13973 if test "${gcc_cv_ld_hidden+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   if test $in_tree_ld = yes ; then
13977   gcc_cv_ld_hidden=no
13978   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 \
13979      && test $in_tree_ld_is_elf = yes; then
13980      gcc_cv_ld_hidden=yes
13981   fi
13982 else
13983   gcc_cv_ld_hidden=yes
13984   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13985   if echo "$ld_ver" | grep GNU > /dev/null; then
13986     ld_vers=`echo $ld_ver | sed -n \
13987         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13988         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13989         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13990         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13991         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13992         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13993         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
13994     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'`
13995     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13996     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13997     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13998     if test 0"$ld_date" -lt 20020404; then
13999       if test -n "$ld_date"; then
14000         # If there was date string, but was earlier than 2002-04-04, fail
14001         gcc_cv_ld_hidden=no
14002       elif test -z "$ld_vers"; then
14003         # If there was no date string nor ld version number, something is wrong
14004         gcc_cv_ld_hidden=no
14005       else
14006         test -z "$ld_vers_patch" && ld_vers_patch=0
14007         if test "$ld_vers_major" -lt 2; then
14008           gcc_cv_ld_hidden=no
14009         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14010           gcc_cv_ld_hidden="no"
14011         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14012           gcc_cv_ld_hidden=no
14013         fi
14014       fi
14015     fi
14016   else
14017     case "${target}" in
14018       hppa64*-*-hpux* | ia64*-*-hpux*)
14019         gcc_cv_ld_hidden=yes
14020         ;;
14021       *)
14022         gcc_cv_ld_hidden=no
14023         ;;
14024     esac
14025   fi
14026 fi
14027 fi
14028 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14029 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14030 libgcc_visibility=no
14031
14032
14033 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14034   libgcc_visibility=yes
14035
14036 cat >>confdefs.h <<\_ACEOF
14037 #define HAVE_GAS_HIDDEN 1
14038 _ACEOF
14039
14040 fi
14041
14042 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14043 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14044 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14045 if test "${gcc_cv_as_leb128+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   gcc_cv_as_leb128=no
14049     if test $in_tree_gas = yes; then
14050     if test $in_tree_gas_is_elf = yes \
14051   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14052   then gcc_cv_as_leb128=yes
14053 fi
14054   elif test x$gcc_cv_as != x; then
14055     echo '      .data
14056         .uleb128 L2 - L1
14057 L1:
14058         .uleb128 1280
14059         .sleb128 -1010
14060 L2:' > conftest.s
14061     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063   (eval $ac_try) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; }
14067     then
14068         # GAS versions before 2.11 do not support uleb128,
14069   # despite appearing to.
14070   # ??? There exists an elf-specific test that will crash
14071   # the assembler.  Perhaps it's better to figure out whether
14072   # arbitrary sections are supported and try the test.
14073   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14074   if echo "$as_ver" | grep GNU > /dev/null; then
14075     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14076     as_major=`echo $as_ver | sed 's/\..*//'`
14077     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14078     if test $as_major -eq 2 && test $as_minor -lt 11
14079     then :
14080     else gcc_cv_as_leb128=yes
14081     fi
14082   fi
14083     else
14084       echo "configure: failed program was" >&5
14085       cat conftest.s >&5
14086     fi
14087     rm -f conftest.o conftest.s
14088   fi
14089 fi
14090 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14091 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14092 if test $gcc_cv_as_leb128 = yes; then
14093
14094 cat >>confdefs.h <<\_ACEOF
14095 #define HAVE_AS_LEB128 1
14096 _ACEOF
14097
14098 fi
14099
14100 # GAS versions up to and including 2.11.0 may mis-optimize
14101 # .eh_frame data.
14102 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14103 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14104 if test "${gcc_cv_as_eh_frame+set}" = set; then
14105   echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107   gcc_cv_as_eh_frame=no
14108     if test $in_tree_gas = yes; then
14109     if test $in_tree_gas_is_elf = yes \
14110   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14111   then gcc_cv_as_eh_frame=yes
14112 fi
14113   elif test x$gcc_cv_as != x; then
14114     echo '      .text
14115 .LFB1:
14116         .4byte  0
14117 .L1:
14118         .4byte  0
14119 .LFE1:
14120         .section        .eh_frame,"aw",@progbits
14121 __FRAME_BEGIN__:
14122         .4byte  .LECIE1-.LSCIE1
14123 .LSCIE1:
14124         .4byte  0x0
14125         .byte   0x1
14126         .ascii "z\0"
14127         .byte   0x1
14128         .byte   0x78
14129         .byte   0x1a
14130         .byte   0x0
14131         .byte   0x4
14132         .4byte  1
14133         .p2align 1
14134 .LECIE1:
14135 .LSFDE1:
14136         .4byte  .LEFDE1-.LASFDE1
14137 .LASFDE1:
14138         .4byte  .LASFDE1-__FRAME_BEGIN__
14139         .4byte  .LFB1
14140         .4byte  .LFE1-.LFB1
14141         .byte   0x4
14142         .4byte  .LFE1-.LFB1
14143         .byte   0x4
14144         .4byte  .L1-.LFB1
14145 .LEFDE1:' > conftest.s
14146     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }
14152     then
14153           cat > conftest.lit <<EOF
14154  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14155  0010 01000000 12000000 18000000 00000000  ................
14156  0020 08000000 04080000 0044               .........D      
14157 EOF
14158 cat > conftest.big <<EOF
14159  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14160  0010 00000001 00000012 00000018 00000000  ................
14161  0020 00000008 04000000 0844               .........D      
14162 EOF
14163   # If the assembler didn't choke, and we can objdump,
14164   # and we got the correct data, then succeed.
14165   # The text in the here-document typically retains its unix-style line
14166   # endings, while the output of objdump will use host line endings.
14167   # Therefore, use diff -b for the comparisons.
14168   if test x$gcc_cv_objdump != x \
14169   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14170      | tail -3 > conftest.got \
14171   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14172     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14173   then
14174     gcc_cv_as_eh_frame=yes
14175   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181     gcc_cv_as_eh_frame=buggy
14182   else
14183     # Uh oh, what do we do now?
14184     gcc_cv_as_eh_frame=no
14185   fi
14186     else
14187       echo "configure: failed program was" >&5
14188       cat conftest.s >&5
14189     fi
14190     rm -f conftest.o conftest.s
14191   fi
14192 fi
14193 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14194 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14195
14196
14197 if test $gcc_cv_as_eh_frame = buggy; then
14198
14199 cat >>confdefs.h <<\_ACEOF
14200 #define USE_AS_TRADITIONAL_FORMAT 1
14201 _ACEOF
14202
14203 fi
14204
14205 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14206 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14207 if test "${gcc_cv_as_shf_merge+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   gcc_cv_as_shf_merge=no
14211     if test $in_tree_gas = yes; then
14212     if test $in_tree_gas_is_elf = yes \
14213   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14214   then gcc_cv_as_shf_merge=yes
14215 fi
14216   elif test x$gcc_cv_as != x; then
14217     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14218     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220   (eval $ac_try) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; }
14224     then
14225         gcc_cv_as_shf_merge=yes
14226     else
14227       echo "configure: failed program was" >&5
14228       cat conftest.s >&5
14229     fi
14230     rm -f conftest.o conftest.s
14231   fi
14232 fi
14233 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14234 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14235
14236 if test $gcc_cv_as_shf_merge = no; then
14237   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14238 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14239 if test "${gcc_cv_as_shf_merge+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   gcc_cv_as_shf_merge=no
14243     if test $in_tree_gas = yes; then
14244     if test $in_tree_gas_is_elf = yes \
14245   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14246   then gcc_cv_as_shf_merge=yes
14247 fi
14248   elif test x$gcc_cv_as != x; then
14249     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14250     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252   (eval $ac_try) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }
14256     then
14257         gcc_cv_as_shf_merge=yes
14258     else
14259       echo "configure: failed program was" >&5
14260       cat conftest.s >&5
14261     fi
14262     rm -f conftest.o conftest.s
14263   fi
14264 fi
14265 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14266 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14267
14268 fi
14269
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14272 _ACEOF
14273
14274
14275 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14276 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14277 if test "${gcc_cv_as_comdat_group+set}" = set; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280   gcc_cv_as_comdat_group=no
14281     if test $in_tree_gas = yes; then
14282     if test $in_tree_gas_is_elf = yes \
14283   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14284   then gcc_cv_as_comdat_group=yes
14285 fi
14286   elif test x$gcc_cv_as != x; then
14287     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14288     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; }
14294     then
14295         gcc_cv_as_comdat_group=yes
14296     else
14297       echo "configure: failed program was" >&5
14298       cat conftest.s >&5
14299     fi
14300     rm -f conftest.o conftest.s
14301   fi
14302 fi
14303 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14304 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14305
14306 if test $gcc_cv_as_comdat_group = yes; then
14307   gcc_cv_as_comdat_group_percent=no
14308 else
14309  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14310 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14311 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   gcc_cv_as_comdat_group_percent=no
14315     if test $in_tree_gas = yes; then
14316     if test $in_tree_gas_is_elf = yes \
14317   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14318   then gcc_cv_as_comdat_group_percent=yes
14319 fi
14320   elif test x$gcc_cv_as != x; then
14321     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14322     if { ac_try='$gcc_cv_as --fatal-warnings -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_comdat_group_percent=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_comdat_group_percent" >&5
14338 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14339
14340 fi
14341 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14342   comdat_group=yes
14343   if test 0"$ld_date" -lt 20050308; then
14344     if test -n "$ld_date"; then
14345       # If there was date string, but was earlier than 2005-03-08, fail
14346       comdat_group=no
14347     elif test "$ld_vers_major" -lt 2; then
14348       comdat_group=no
14349     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14350       comdat_group=no
14351     fi
14352   fi
14353 else
14354   # assume linkers other than GNU ld don't support COMDAT group
14355   comdat_group=no
14356 fi
14357 if test $comdat_group = no; then
14358   gcc_cv_as_comdat_group=no
14359   gcc_cv_as_comdat_group_percent=no
14360 fi
14361
14362 cat >>confdefs.h <<_ACEOF
14363 #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`
14364 _ACEOF
14365
14366
14367 # Thread-local storage - the check is heavily parametrized.
14368 conftest_s=
14369 tls_first_major=
14370 tls_first_minor=
14371 tls_as_opt=
14372 case "$target" in
14373   alpha*-*-*)
14374     conftest_s='
14375         .section ".tdata","awT",@progbits
14376 foo:    .long   25
14377         .text
14378         ldq     $27,__tls_get_addr($29)         !literal!1
14379         lda     $16,foo($29)                    !tlsgd!1
14380         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14381         ldq     $27,__tls_get_addr($29)         !literal!2
14382         lda     $16,foo($29)                    !tlsldm!2
14383         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14384         ldq     $1,foo($29)                     !gotdtprel
14385         ldah    $2,foo($29)                     !dtprelhi
14386         lda     $3,foo($2)                      !dtprello
14387         lda     $4,foo($29)                     !dtprel
14388         ldq     $1,foo($29)                     !gottprel
14389         ldah    $2,foo($29)                     !tprelhi
14390         lda     $3,foo($2)                      !tprello
14391         lda     $4,foo($29)                     !tprel'
14392         tls_first_major=2
14393         tls_first_minor=13
14394         tls_as_opt=--fatal-warnings
14395         ;;
14396   frv*-*-*)
14397     conftest_s='
14398         .section ".tdata","awT",@progbits
14399 x:      .long   25
14400         .text
14401         call    #gettlsoff(x)'
14402         tls_first_major=2
14403         tls_first_minor=14
14404         ;;
14405   hppa*-*-linux*)
14406     conftest_s='
14407 t1:     .reg    %r20
14408 t2:     .reg    %r21
14409 gp:     .reg    %r19
14410         .section ".tdata","awT",@progbits
14411 foo:    .long   25
14412         .text
14413         .align  4
14414         addil LT%foo-$tls_gdidx$,gp
14415         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14416         b __tls_get_addr
14417         nop
14418         addil LT%foo-$tls_ldidx$,gp
14419         b __tls_get_addr
14420         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14421         addil LR%foo-$tls_dtpoff$,%ret0
14422         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14423         mfctl %cr27,%t1
14424         addil LT%foo-$tls_ieoff$,gp
14425         ldw RT%foo-$tls_ieoff$(%r1),%t2
14426         add %t1,%t2,%t3
14427         mfctl %cr27,%t1
14428         addil LR%foo-$tls_leoff$,%t1
14429         ldo RR%foo-$tls_leoff$(%r1),%t2'
14430         tls_first_major=2
14431         tls_first_minor=15
14432         tls_as_opt=--fatal-warnings
14433         ;;
14434   arm*-*-*)
14435     conftest_s='
14436         .section ".tdata","awT",%progbits
14437 foo:    .long   25
14438         .text
14439 .word foo(gottpoff)
14440 .word foo(tpoff)
14441 .word foo(tlsgd)
14442 .word foo(tlsldm)
14443 .word foo(tlsldo)'
14444         tls_first_major=2
14445         tls_first_minor=17
14446         ;;
14447   i[34567]86-*-*)
14448     conftest_s='
14449         .section ".tdata","awT",@progbits
14450 foo:    .long   25
14451         .text
14452         movl    %gs:0, %eax
14453         leal    foo@TLSGD(,%ebx,1), %eax
14454         leal    foo@TLSLDM(%ebx), %eax
14455         leal    foo@DTPOFF(%eax), %edx
14456         movl    foo@GOTTPOFF(%ebx), %eax
14457         subl    foo@GOTTPOFF(%ebx), %eax
14458         addl    foo@GOTNTPOFF(%ebx), %eax
14459         movl    foo@INDNTPOFF, %eax
14460         movl    $foo@TPOFF, %eax
14461         subl    $foo@TPOFF, %eax
14462         leal    foo@NTPOFF(%ecx), %eax'
14463         tls_first_major=2
14464         tls_first_minor=14
14465         tls_as_opt=--fatal-warnings
14466         ;;
14467   x86_64-*-*)
14468     conftest_s='
14469         .section ".tdata","awT",@progbits
14470 foo:    .long   25
14471         .text
14472         movq    %fs:0, %rax
14473         leaq    foo@TLSGD(%rip), %rdi
14474         leaq    foo@TLSLD(%rip), %rdi
14475         leaq    foo@DTPOFF(%rax), %rdx
14476         movq    foo@GOTTPOFF(%rip), %rax
14477         movq    $foo@TPOFF, %rax'
14478         tls_first_major=2
14479         tls_first_minor=14
14480         tls_as_opt=--fatal-warnings
14481         ;;
14482   ia64-*-*)
14483     conftest_s='
14484         .section ".tdata","awT",@progbits
14485 foo:    data8   25
14486         .text
14487         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14488         addl    r17 = @ltoff(@dtprel(foo#)), gp
14489         addl    r18 = @ltoff(@tprel(foo#)), gp
14490         addl    r19 = @dtprel(foo#), gp
14491         adds    r21 = @dtprel(foo#), r13
14492         movl    r23 = @dtprel(foo#)
14493         addl    r20 = @tprel(foo#), gp
14494         adds    r22 = @tprel(foo#), r13
14495         movl    r24 = @tprel(foo#)'
14496         tls_first_major=2
14497         tls_first_minor=13
14498         tls_as_opt=--fatal-warnings
14499         ;;
14500   mips*-*-*)
14501     conftest_s='
14502         .section .tdata,"awT",@progbits
14503 x:
14504         .word 2
14505         .text
14506         addiu $4, $28, %tlsgd(x)
14507         addiu $4, $28, %tlsldm(x)
14508         lui $4, %dtprel_hi(x)
14509         addiu $4, $4, %dtprel_lo(x)
14510         lw $4, %gottprel(x)($28)
14511         lui $4, %tprel_hi(x)
14512         addiu $4, $4, %tprel_lo(x)'
14513         tls_first_major=2
14514         tls_first_minor=16
14515         tls_as_opt='-32 --fatal-warnings'
14516         ;;
14517   powerpc-*-*)
14518     conftest_s='
14519         .section ".tdata","awT",@progbits
14520         .align 2
14521 ld0:    .space 4
14522 ld1:    .space 4
14523 x1:     .space 4
14524 x2:     .space 4
14525 x3:     .space 4
14526         .text
14527         addi 3,31,ld0@got@tlsgd
14528         bl __tls_get_addr
14529         addi 3,31,x1@got@tlsld
14530         bl __tls_get_addr
14531         addi 9,3,x1@dtprel
14532         addis 9,3,x2@dtprel@ha
14533         addi 9,9,x2@dtprel@l
14534         lwz 9,x3@got@tprel(31)
14535         add 9,9,x@tls
14536         addi 9,2,x1@tprel
14537         addis 9,2,x2@tprel@ha
14538         addi 9,9,x2@tprel@l'
14539         tls_first_major=2
14540         tls_first_minor=14
14541         tls_as_opt="-a32 --fatal-warnings"
14542         ;;
14543   powerpc64-*-*)
14544     conftest_s='
14545         .section ".tdata","awT",@progbits
14546         .align 3
14547 ld0:    .space 8
14548 ld1:    .space 8
14549 x1:     .space 8
14550 x2:     .space 8
14551 x3:     .space 8
14552         .text
14553         addi 3,2,ld0@got@tlsgd
14554         bl .__tls_get_addr
14555         nop
14556         addi 3,2,ld1@toc
14557         bl .__tls_get_addr
14558         nop
14559         addi 3,2,x1@got@tlsld
14560         bl .__tls_get_addr
14561         nop
14562         addi 9,3,x1@dtprel
14563         bl .__tls_get_addr
14564         nop
14565         addis 9,3,x2@dtprel@ha
14566         addi 9,9,x2@dtprel@l
14567         bl .__tls_get_addr
14568         nop
14569         ld 9,x3@got@dtprel(2)
14570         add 9,9,3
14571         bl .__tls_get_addr
14572         nop'
14573         tls_first_major=2
14574         tls_first_minor=14
14575         tls_as_opt="-a64 --fatal-warnings"
14576         ;;
14577   s390-*-*)
14578     conftest_s='
14579         .section ".tdata","awT",@progbits
14580 foo:    .long   25
14581         .text
14582         .long   foo@TLSGD
14583         .long   foo@TLSLDM
14584         .long   foo@DTPOFF
14585         .long   foo@NTPOFF
14586         .long   foo@GOTNTPOFF
14587         .long   foo@INDNTPOFF
14588         l       %r1,foo@GOTNTPOFF(%r12)
14589         l       %r1,0(%r1):tls_load:foo
14590         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14591         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14592         tls_first_major=2
14593         tls_first_minor=14
14594         tls_as_opt="-m31 --fatal-warnings"
14595         ;;
14596   s390x-*-*)
14597     conftest_s='
14598         .section ".tdata","awT",@progbits
14599 foo:    .long   25
14600         .text
14601         .quad   foo@TLSGD
14602         .quad   foo@TLSLDM
14603         .quad   foo@DTPOFF
14604         .quad   foo@NTPOFF
14605         .quad   foo@GOTNTPOFF
14606         lg      %r1,foo@GOTNTPOFF(%r12)
14607         larl    %r1,foo@INDNTPOFF
14608         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14609         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14610         tls_first_major=2
14611         tls_first_minor=14
14612         tls_as_opt="-m64 -Aesame --fatal-warnings"
14613         ;;
14614   sh-*-* | sh[34]-*-*)
14615     conftest_s='
14616         .section ".tdata","awT",@progbits
14617 foo:    .long   25
14618         .text
14619         .long   foo@TLSGD
14620         .long   foo@TLSLDM
14621         .long   foo@DTPOFF
14622         .long   foo@GOTTPOFF
14623         .long   foo@TPOFF'
14624         tls_first_major=2
14625         tls_first_minor=13
14626         tls_as_opt=--fatal-warnings
14627         ;;
14628   sparc*-*-*)
14629     case "$target" in
14630       sparc*-sun-solaris2.[56789]*)
14631         # TLS was introduced in the Solaris 9 4/04 release but
14632         # we do not enable it by default on Solaris 9 either.
14633         if test "x$enable_tls" = xyes ; then
14634           on_solaris=yes
14635         else
14636           enable_tls=no;
14637         fi
14638         ;;
14639       sparc*-sun-solaris2.*)
14640         on_solaris=yes
14641         ;;
14642       *)
14643         on_solaris=no
14644         ;;
14645     esac
14646     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14647       conftest_s='
14648         .section ".tdata",#alloc,#write,#tls
14649 foo:    .long   25
14650         .text
14651         sethi   %tgd_hi22(foo), %o0
14652         add     %o0, %tgd_lo10(foo), %o1
14653         add     %l7, %o1, %o0, %tgd_add(foo)
14654         call    __tls_get_addr, %tgd_call(foo)
14655         sethi   %tldm_hi22(foo), %l1
14656         add     %l1, %tldm_lo10(foo), %l2
14657         add     %l7, %l2, %o0, %tldm_add(foo)
14658         call    __tls_get_addr, %tldm_call(foo)
14659         sethi   %tldo_hix22(foo), %l3
14660         xor     %l3, %tldo_lox10(foo), %l4
14661         add     %o0, %l4, %l5, %tldo_add(foo)
14662         sethi   %tie_hi22(foo), %o3
14663         add     %o3, %tie_lo10(foo), %o3
14664         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14665         add     %g7, %o2, %o4, %tie_add(foo)
14666         sethi   %tle_hix22(foo), %l1
14667         xor     %l1, %tle_lox10(foo), %o5
14668         ld      [%g7 + %o5], %o1'
14669         tls_first_major=0
14670         tls_first_minor=0
14671     else
14672       conftest_s='
14673         .section ".tdata","awT",@progbits
14674 foo:    .long   25
14675         .text
14676         sethi   %tgd_hi22(foo), %o0
14677         add     %o0, %tgd_lo10(foo), %o1
14678         add     %l7, %o1, %o0, %tgd_add(foo)
14679         call    __tls_get_addr, %tgd_call(foo)
14680         sethi   %tldm_hi22(foo), %l1
14681         add     %l1, %tldm_lo10(foo), %l2
14682         add     %l7, %l2, %o0, %tldm_add(foo)
14683         call    __tls_get_addr, %tldm_call(foo)
14684         sethi   %tldo_hix22(foo), %l3
14685         xor     %l3, %tldo_lox10(foo), %l4
14686         add     %o0, %l4, %l5, %tldo_add(foo)
14687         sethi   %tie_hi22(foo), %o3
14688         add     %o3, %tie_lo10(foo), %o3
14689         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14690         add     %g7, %o2, %o4, %tie_add(foo)
14691         sethi   %tle_hix22(foo), %l1
14692         xor     %l1, %tle_lox10(foo), %o5
14693         ld      [%g7 + %o5], %o1'
14694         tls_first_major=2
14695         tls_first_minor=14
14696         tls_as_opt="-32 --fatal-warnings"
14697       fi
14698         ;;
14699 esac
14700 set_have_as_tls=no
14701 if test "x$enable_tls" = xno ; then
14702   : # TLS explicitly disabled.
14703 elif test "x$enable_tls" = xyes ; then
14704   set_have_as_tls=yes # TLS explicitly enabled.
14705 elif test -z "$tls_first_major"; then
14706   : # If we don't have a check, assume no support.
14707 else
14708   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14709 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14710 if test "${gcc_cv_as_tls+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   gcc_cv_as_tls=no
14714     if test $in_tree_gas = yes; then
14715     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14716   then gcc_cv_as_tls=yes
14717 fi
14718   elif test x$gcc_cv_as != x; then
14719     echo "$conftest_s" > conftest.s
14720     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }
14726     then
14727         gcc_cv_as_tls=yes
14728     else
14729       echo "configure: failed program was" >&5
14730       cat conftest.s >&5
14731     fi
14732     rm -f conftest.o conftest.s
14733   fi
14734 fi
14735 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14736 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14737 if test $gcc_cv_as_tls = yes; then
14738   set_have_as_tls=yes
14739 fi
14740 fi
14741 if test $set_have_as_tls = yes ; then
14742
14743 cat >>confdefs.h <<\_ACEOF
14744 #define HAVE_AS_TLS 1
14745 _ACEOF
14746
14747 fi
14748
14749 # Target-specific assembler checks.
14750
14751 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14752 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14753 gcc_cv_ld_static_dynamic=no
14754 if test $in_tree_ld = yes ; then
14755   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14756     gcc_cv_ld_static_dynamic=yes
14757   fi
14758 elif test x$gcc_cv_ld != x; then
14759         # Check if linker supports -Bstatic/-Bdynamic option
14760         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14761           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14762                 gcc_cv_ld_static_dynamic=yes
14763         fi
14764 fi
14765 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_LD_STATIC_DYNAMIC 1
14769 _ACEOF
14770
14771 fi
14772 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14773 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14774
14775 if test x"$demangler_in_ld" = xyes; then
14776   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14777 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14778   gcc_cv_ld_demangle=no
14779   if test $in_tree_ld = yes; then
14780     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 \
14781       gcc_cv_ld_demangle=yes
14782     fi
14783   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14784     # Check if the GNU linker supports --demangle option
14785     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14786       gcc_cv_ld_demangle=yes
14787     fi
14788   fi
14789   if test x"$gcc_cv_ld_demangle" = xyes; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_LD_DEMANGLE 1
14793 _ACEOF
14794
14795   fi
14796   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14797 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14798 fi
14799
14800 case "$target" in
14801   # All TARGET_ABI_OSF targets.
14802   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14803     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14804 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14805 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14806   echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808   gcc_cv_as_alpha_explicit_relocs=no
14809     if test $in_tree_gas = yes; then
14810     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14811   then gcc_cv_as_alpha_explicit_relocs=yes
14812 fi
14813   elif test x$gcc_cv_as != x; then
14814     echo '      .set nomacro
14815         .text
14816         extbl   $3, $2, $3      !lituse_bytoff!1
14817         ldq     $2, a($29)      !literal!1
14818         ldq     $4, b($29)      !literal!2
14819         ldq_u   $3, 0($2)       !lituse_base!1
14820         ldq     $27, f($29)     !literal!5
14821         jsr     $26, ($27), f   !lituse_jsr!5
14822         ldah    $29, 0($26)     !gpdisp!3
14823         lda     $0, c($29)      !gprel
14824         ldah    $1, d($29)      !gprelhigh
14825         lda     $1, d($1)       !gprellow
14826         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14827     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829   (eval $ac_try) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; }
14833     then
14834         gcc_cv_as_alpha_explicit_relocs=yes
14835     else
14836       echo "configure: failed program was" >&5
14837       cat conftest.s >&5
14838     fi
14839     rm -f conftest.o conftest.s
14840   fi
14841 fi
14842 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14843 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14844 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14845
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_AS_EXPLICIT_RELOCS 1
14848 _ACEOF
14849
14850 fi
14851     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14852 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14853 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14854   echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856   gcc_cv_as_alpha_jsrdirect_relocs=no
14857     if test $in_tree_gas = yes; then
14858     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14859   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14860 fi
14861   elif test x$gcc_cv_as != x; then
14862     echo '      .set nomacro
14863         .text
14864         ldq     $27, a($29)     !literal!1
14865         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14866     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }
14872     then
14873         gcc_cv_as_alpha_jsrdirect_relocs=yes
14874     else
14875       echo "configure: failed program was" >&5
14876       cat conftest.s >&5
14877     fi
14878     rm -f conftest.o conftest.s
14879   fi
14880 fi
14881 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14882 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14883 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14884
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_AS_JSRDIRECT_RELOCS 1
14887 _ACEOF
14888
14889 fi
14890     ;;
14891
14892   cris-*-*)
14893     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14894 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14895 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   gcc_cv_as_cris_no_mul_bug=no
14899     if test $in_tree_gas = yes; then
14900     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14901   then gcc_cv_as_cris_no_mul_bug=yes
14902 fi
14903   elif test x$gcc_cv_as != x; then
14904     echo '.text' > conftest.s
14905     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907   (eval $ac_try) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; }
14911     then
14912         gcc_cv_as_cris_no_mul_bug=yes
14913     else
14914       echo "configure: failed program was" >&5
14915       cat conftest.s >&5
14916     fi
14917     rm -f conftest.o conftest.s
14918   fi
14919 fi
14920 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14921 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14922 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14923
14924 cat >>confdefs.h <<\_ACEOF
14925 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14926 _ACEOF
14927
14928 fi
14929     ;;
14930
14931   sparc*-*-*)
14932     echo "$as_me:$LINENO: checking assembler for .register" >&5
14933 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14934 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937   gcc_cv_as_sparc_register_op=no
14938   if test x$gcc_cv_as != x; then
14939     echo '.register %g2, #scratch' > conftest.s
14940     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942   (eval $ac_try) 2>&5
14943   ac_status=$?
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); }; }
14946     then
14947         gcc_cv_as_sparc_register_op=yes
14948     else
14949       echo "configure: failed program was" >&5
14950       cat conftest.s >&5
14951     fi
14952     rm -f conftest.o conftest.s
14953   fi
14954 fi
14955 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14956 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14957 if test $gcc_cv_as_sparc_register_op = yes; then
14958
14959 cat >>confdefs.h <<\_ACEOF
14960 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14961 _ACEOF
14962
14963 fi
14964
14965     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14966 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14967 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   gcc_cv_as_sparc_relax=no
14971   if test x$gcc_cv_as != x; then
14972     echo '.text' > conftest.s
14973     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; }
14979     then
14980         gcc_cv_as_sparc_relax=yes
14981     else
14982       echo "configure: failed program was" >&5
14983       cat conftest.s >&5
14984     fi
14985     rm -f conftest.o conftest.s
14986   fi
14987 fi
14988 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14989 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14990 if test $gcc_cv_as_sparc_relax = yes; then
14991
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_AS_RELAX_OPTION 1
14994 _ACEOF
14995
14996 fi
14997
14998     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14999 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15000 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   gcc_cv_as_sparc_ua_pcrel=no
15004   if test x$gcc_cv_as != x; then
15005     echo '.text
15006 foo:
15007         nop
15008 .data
15009 .align 4
15010 .byte 0
15011 .uaword %r_disp32(foo)' > conftest.s
15012     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014   (eval $ac_try) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; }
15018     then
15019         if test x$gcc_cv_ld != x \
15020        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15021          gcc_cv_as_sparc_ua_pcrel=yes
15022        fi
15023        rm -f conftest
15024     else
15025       echo "configure: failed program was" >&5
15026       cat conftest.s >&5
15027     fi
15028     rm -f conftest.o conftest.s
15029   fi
15030 fi
15031 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15032 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15033 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15034
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_AS_SPARC_UA_PCREL 1
15037 _ACEOF
15038
15039
15040       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15041 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15042 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   gcc_cv_as_sparc_ua_pcrel_hidden=no
15046   if test x$gcc_cv_as != x; then
15047     echo '.data
15048 .align 4
15049 .byte 0x31
15050 .uaword %r_disp32(foo)
15051 .byte 0x32, 0x33, 0x34
15052 .global foo
15053 .hidden foo
15054 foo:
15055 .skip 4' > conftest.s
15056     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058   (eval $ac_try) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); }; }
15062     then
15063         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15064          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15065          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15066             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15067             if $gcc_cv_objdump -R conftest 2> /dev/null \
15068                | grep 'DISP32' > /dev/null 2>&1; then
15069                 :
15070             else
15071                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15072             fi
15073          fi
15074          rm -f conftest
15075     else
15076       echo "configure: failed program was" >&5
15077       cat conftest.s >&5
15078     fi
15079     rm -f conftest.o conftest.s
15080   fi
15081 fi
15082 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15083 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15084 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15085
15086 cat >>confdefs.h <<\_ACEOF
15087 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15088 _ACEOF
15089
15090 fi
15091
15092 fi # unaligned pcrel relocs
15093
15094     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15095 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15096 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15097   echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099   gcc_cv_as_sparc_offsetable_lo10=no
15100   if test x$gcc_cv_as != x; then
15101     echo '.text
15102         or %g1, %lo(ab) + 12, %g1
15103         or %g1, %lo(ab + 12), %g1' > conftest.s
15104     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106   (eval $ac_try) 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }
15110     then
15111         if test x$gcc_cv_objdump != x \
15112        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15113           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15114          gcc_cv_as_sparc_offsetable_lo10=yes
15115        fi
15116     else
15117       echo "configure: failed program was" >&5
15118       cat conftest.s >&5
15119     fi
15120     rm -f conftest.o conftest.s
15121   fi
15122 fi
15123 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15124 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15125 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15126
15127 cat >>confdefs.h <<\_ACEOF
15128 #define HAVE_AS_OFFSETABLE_LO10 1
15129 _ACEOF
15130
15131 fi
15132     ;;
15133
15134   i[34567]86-*-* | x86_64-*-*)
15135     case $target_os in
15136       cygwin* | pe | mingw32*)
15137         # Used for DWARF 2 in PE
15138         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15139 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15140 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143   gcc_cv_as_ix86_pe_secrel32=no
15144     if test $in_tree_gas = yes; then
15145     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15146   then gcc_cv_as_ix86_pe_secrel32=yes
15147 fi
15148   elif test x$gcc_cv_as != x; then
15149     echo '.text
15150 foo:    nop
15151 .data
15152         .secrel32 foo' > conftest.s
15153     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155   (eval $ac_try) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; }
15159     then
15160         if test x$gcc_cv_ld != x \
15161            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15162              gcc_cv_as_ix86_pe_secrel32=yes
15163            fi
15164            rm -f conftest
15165     else
15166       echo "configure: failed program was" >&5
15167       cat conftest.s >&5
15168     fi
15169     rm -f conftest.o conftest.s
15170   fi
15171 fi
15172 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15173 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15174 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15175
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_GAS_PE_SECREL32_RELOC 1
15178 _ACEOF
15179
15180 fi
15181         ;;
15182     esac
15183
15184     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15185 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15186 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   gcc_cv_as_ix86_filds_fists=no
15190     if test $in_tree_gas = yes; then
15191     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15192   then gcc_cv_as_ix86_filds_fists=yes
15193 fi
15194   elif test x$gcc_cv_as != x; then
15195     echo 'filds mem; fists mem' > conftest.s
15196     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; }
15202     then
15203         gcc_cv_as_ix86_filds_fists=yes
15204     else
15205       echo "configure: failed program was" >&5
15206       cat conftest.s >&5
15207     fi
15208     rm -f conftest.o conftest.s
15209   fi
15210 fi
15211 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15212 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15213 if test $gcc_cv_as_ix86_filds_fists = yes; then
15214
15215 cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_GAS_FILDS_FISTS 1
15217 _ACEOF
15218
15219 fi
15220
15221     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15222 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15223 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226   gcc_cv_as_ix86_cmov_sun_syntax=no
15227   if test x$gcc_cv_as != x; then
15228     echo 'cmovl.l %edx, %eax' > conftest.s
15229     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231   (eval $ac_try) 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); }; }
15235     then
15236         gcc_cv_as_ix86_cmov_sun_syntax=yes
15237     else
15238       echo "configure: failed program was" >&5
15239       cat conftest.s >&5
15240     fi
15241     rm -f conftest.o conftest.s
15242   fi
15243 fi
15244 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15245 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15246 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15247
15248 cat >>confdefs.h <<\_ACEOF
15249 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15250 _ACEOF
15251
15252 fi
15253
15254     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15255 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15256 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   gcc_cv_as_ix86_ffreep=no
15260   if test x$gcc_cv_as != x; then
15261     echo 'ffreep %st(1)' > conftest.s
15262     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; }
15268     then
15269         gcc_cv_as_ix86_ffreep=yes
15270     else
15271       echo "configure: failed program was" >&5
15272       cat conftest.s >&5
15273     fi
15274     rm -f conftest.o conftest.s
15275   fi
15276 fi
15277 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15278 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15279 if test $gcc_cv_as_ix86_ffreep = yes; then
15280
15281 cat >>confdefs.h <<\_ACEOF
15282 #define HAVE_AS_IX86_FFREEP 1
15283 _ACEOF
15284
15285 fi
15286
15287     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15288 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15289 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   gcc_cv_as_ix86_diff_sect_delta=no
15293   if test x$gcc_cv_as != x; then
15294     echo '.section .rodata
15295 .L1:
15296         .long .L2-.L1
15297         .long .L3-.L1
15298         .text
15299 .L3:    nop
15300 .L2:    nop' > conftest.s
15301     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }
15307     then
15308         gcc_cv_as_ix86_diff_sect_delta=yes
15309     else
15310       echo "configure: failed program was" >&5
15311       cat conftest.s >&5
15312     fi
15313     rm -f conftest.o conftest.s
15314   fi
15315 fi
15316 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15317 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15318 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15319
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15322 _ACEOF
15323
15324 fi
15325
15326     # This one is used unconditionally by i386.[ch]; it is to be defined
15327     # to 1 if the feature is present, 0 otherwise.
15328     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15329 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15330 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   gcc_cv_as_ix86_gotoff_in_data=no
15334     if test $in_tree_gas = yes; then
15335     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15336   then gcc_cv_as_ix86_gotoff_in_data=yes
15337 fi
15338   elif test x$gcc_cv_as != x; then
15339     echo '      .text
15340 .L0:
15341         nop
15342         .data
15343         .long .L0@GOTOFF' > conftest.s
15344     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346   (eval $ac_try) 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; }
15350     then
15351         gcc_cv_as_ix86_gotoff_in_data=yes
15352     else
15353       echo "configure: failed program was" >&5
15354       cat conftest.s >&5
15355     fi
15356     rm -f conftest.o conftest.s
15357   fi
15358 fi
15359 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15360 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15361
15362
15363 cat >>confdefs.h <<_ACEOF
15364 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15365 _ACEOF
15366
15367     ;;
15368
15369   ia64*-*-*)
15370     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15371 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15372 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15376     if test $in_tree_gas = yes; then
15377     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15378   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15379 fi
15380   elif test x$gcc_cv_as != x; then
15381     echo '      .text
15382         addl r15 = @ltoffx(x#), gp
15383         ;;
15384         ld8.mov r16 = [r15], x#' > conftest.s
15385     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387   (eval $ac_try) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }
15391     then
15392         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15393     else
15394       echo "configure: failed program was" >&5
15395       cat conftest.s >&5
15396     fi
15397     rm -f conftest.o conftest.s
15398   fi
15399 fi
15400 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15401 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15402 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15403
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15406 _ACEOF
15407
15408 fi
15409
15410     ;;
15411
15412   powerpc*-*-*)
15413     case $target in
15414       *-*-aix*) conftest_s='    .machine "pwr5"
15415         .csect .text[PR]
15416         mfcr 3,128';;
15417       *-*-darwin*)
15418         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15419 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15420 if test "${gcc_cv_as_machine_directive+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   gcc_cv_as_machine_directive=no
15424   if test x$gcc_cv_as != x; then
15425     echo '      .machine ppc7400' > 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_machine_directive=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_machine_directive" >&5
15442 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15443
15444         if test x$gcc_cv_as_machine_directive != xyes; then
15445           echo "*** This target requires an assembler supporting \".machine\"" >&2
15446           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15447           test x$build = x$target && exit 1
15448         fi
15449         conftest_s='    .text
15450         mfcr r3,128';;
15451       *) conftest_s='   .machine power4
15452         .text
15453         mfcr 3,128';;
15454     esac
15455
15456     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15457 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15458 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15459   echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461   gcc_cv_as_powerpc_mfcrf=no
15462     if test $in_tree_gas = yes; then
15463     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15464   then gcc_cv_as_powerpc_mfcrf=yes
15465 fi
15466   elif test x$gcc_cv_as != x; then
15467     echo "$conftest_s" > conftest.s
15468     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470   (eval $ac_try) 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; }
15474     then
15475         gcc_cv_as_powerpc_mfcrf=yes
15476     else
15477       echo "configure: failed program was" >&5
15478       cat conftest.s >&5
15479     fi
15480     rm -f conftest.o conftest.s
15481   fi
15482 fi
15483 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15484 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15485 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15486
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_AS_MFCRF 1
15489 _ACEOF
15490
15491 fi
15492
15493     case $target in
15494       *-*-aix*) conftest_s='    .machine "pwr5"
15495         .csect .text[PR]
15496         popcntb 3,3';;
15497       *) conftest_s='   .machine power5
15498         .text
15499         popcntb 3,3';;
15500     esac
15501
15502     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15503 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15504 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507   gcc_cv_as_powerpc_popcntb=no
15508     if test $in_tree_gas = yes; then
15509     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15510   then gcc_cv_as_powerpc_popcntb=yes
15511 fi
15512   elif test x$gcc_cv_as != x; then
15513     echo "$conftest_s" > conftest.s
15514     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }
15520     then
15521         gcc_cv_as_powerpc_popcntb=yes
15522     else
15523       echo "configure: failed program was" >&5
15524       cat conftest.s >&5
15525     fi
15526     rm -f conftest.o conftest.s
15527   fi
15528 fi
15529 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15530 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15531 if test $gcc_cv_as_powerpc_popcntb = yes; then
15532
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_AS_POPCNTB 1
15535 _ACEOF
15536
15537 fi
15538
15539     case $target in
15540       *-*-aix*) conftest_s='    .machine "pwr5x"
15541         .csect .text[PR]
15542         frin 1,1';;
15543       *) conftest_s='   .machine power5
15544         .text
15545         frin 1,1';;
15546     esac
15547
15548     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15549 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15550 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   gcc_cv_as_powerpc_fprnd=no
15554     if test $in_tree_gas = yes; then
15555     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15556   then gcc_cv_as_powerpc_fprnd=yes
15557 fi
15558   elif test x$gcc_cv_as != x; then
15559     echo "$conftest_s" > conftest.s
15560     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562   (eval $ac_try) 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; }
15566     then
15567         gcc_cv_as_powerpc_fprnd=yes
15568     else
15569       echo "configure: failed program was" >&5
15570       cat conftest.s >&5
15571     fi
15572     rm -f conftest.o conftest.s
15573   fi
15574 fi
15575 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15576 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15577 if test $gcc_cv_as_powerpc_fprnd = yes; then
15578
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_AS_FPRND 1
15581 _ACEOF
15582
15583 fi
15584
15585     case $target in
15586       *-*-aix*) conftest_s='    .machine "pwr6"
15587         .csect .text[PR]
15588         mffgpr 1,3';;
15589       *) conftest_s='   .machine power6
15590         .text
15591         mffgpr 1,3';;
15592     esac
15593
15594     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15595 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15596 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   gcc_cv_as_powerpc_mfpgpr=no
15600     if test $in_tree_gas = yes; then
15601     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15602   then gcc_cv_as_powerpc_mfpgpr=yes
15603 fi
15604   elif test x$gcc_cv_as != x; then
15605     echo "$conftest_s" > conftest.s
15606     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }
15612     then
15613         gcc_cv_as_powerpc_mfpgpr=yes
15614     else
15615       echo "configure: failed program was" >&5
15616       cat conftest.s >&5
15617     fi
15618     rm -f conftest.o conftest.s
15619   fi
15620 fi
15621 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15622 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15623 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE_AS_MFPGPR 1
15627 _ACEOF
15628
15629 fi
15630
15631     case $target in
15632       *-*-aix*) conftest_s='    .csect .text[PR]
15633 LCF..0:
15634         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15635       *-*-darwin*)
15636         conftest_s='    .text
15637 LCF0:
15638         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15639       *) conftest_s='   .text
15640 .LCF0:
15641         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15642     esac
15643
15644     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15645 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15646 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   gcc_cv_as_powerpc_rel16=no
15650     if test $in_tree_gas = yes; then
15651     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15652   then gcc_cv_as_powerpc_rel16=yes
15653 fi
15654   elif test x$gcc_cv_as != x; then
15655     echo "$conftest_s" > conftest.s
15656     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }
15662     then
15663         gcc_cv_as_powerpc_rel16=yes
15664     else
15665       echo "configure: failed program was" >&5
15666       cat conftest.s >&5
15667     fi
15668     rm -f conftest.o conftest.s
15669   fi
15670 fi
15671 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15672 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15673 if test $gcc_cv_as_powerpc_rel16 = yes; then
15674
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE_AS_REL16 1
15677 _ACEOF
15678
15679 fi
15680     ;;
15681
15682   mips*-*-*)
15683     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15684 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15685 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   gcc_cv_as_mips_explicit_relocs=no
15689     if test $in_tree_gas = yes; then
15690     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15691   then gcc_cv_as_mips_explicit_relocs=yes
15692 fi
15693   elif test x$gcc_cv_as != x; then
15694     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15695     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }
15701     then
15702         gcc_cv_as_mips_explicit_relocs=yes
15703     else
15704       echo "configure: failed program was" >&5
15705       cat conftest.s >&5
15706     fi
15707     rm -f conftest.o conftest.s
15708   fi
15709 fi
15710 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15711 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15712 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15713   if test x$target_cpu_default = x
15714        then target_cpu_default=MASK_EXPLICIT_RELOCS
15715        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15716        fi
15717 fi
15718     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15719 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15720 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15721   echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723   gcc_cv_as_mips_no_shared=no
15724     if test $in_tree_gas = yes; then
15725     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15726   then gcc_cv_as_mips_no_shared=yes
15727 fi
15728   elif test x$gcc_cv_as != x; then
15729     echo 'nop' > conftest.s
15730     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }
15736     then
15737         gcc_cv_as_mips_no_shared=yes
15738     else
15739       echo "configure: failed program was" >&5
15740       cat conftest.s >&5
15741     fi
15742     rm -f conftest.o conftest.s
15743   fi
15744 fi
15745 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15746 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15747 if test $gcc_cv_as_mips_no_shared = yes; then
15748
15749 cat >>confdefs.h <<\_ACEOF
15750 #define HAVE_AS_NO_SHARED 1
15751 _ACEOF
15752
15753 fi
15754     ;;
15755 esac
15756
15757 # Mips and HP-UX need the GNU assembler.
15758 # Linux on IA64 might be able to use the Intel assembler.
15759
15760 case "$target" in
15761   mips*-*-* | *-*-hpux* )
15762     if test x$gas_flag = xyes \
15763        || test x"$host" != x"$build" \
15764        || test ! -x "$gcc_cv_as" \
15765        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15766       :
15767     else
15768       echo "*** This configuration requires the GNU assembler" >&2
15769       exit 1
15770     fi
15771     ;;
15772 esac
15773
15774 # ??? Not all targets support dwarf2 debug_line, even within a version
15775 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15776 # info to the output file.  So, as supported targets are added to gas 2.11,
15777 # add some instruction here to (also) show we expect this might work.
15778 # ??? Once 2.11 is released, probably need to add first known working
15779 # version to the per-target configury.
15780 case "$target" in
15781   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15782   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15783   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-*)
15784     insn="nop"
15785     ;;
15786   ia64*-*-* | s390*-*-*)
15787     insn="nop 0"
15788     ;;
15789   mmix-*-*)
15790     insn="swym 0"
15791     ;;
15792 esac
15793 if test x"$insn" != x; then
15794  conftest_s="\
15795         .file 1 \"conftest.s\"
15796         .loc 1 3 0
15797         $insn"
15798  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15799 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15800 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803   gcc_cv_as_dwarf2_debug_line=no
15804     if test $in_tree_gas = yes; then
15805     if test $in_tree_gas_is_elf = yes \
15806   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15807   then gcc_cv_as_dwarf2_debug_line=yes
15808 fi
15809   elif test x$gcc_cv_as != x; then
15810     echo "$conftest_s" > conftest.s
15811     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; }
15817     then
15818         if test x$gcc_cv_objdump != x \
15819    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15820       | grep debug_line > /dev/null 2>&1; then
15821      gcc_cv_as_dwarf2_debug_line=yes
15822    fi
15823     else
15824       echo "configure: failed program was" >&5
15825       cat conftest.s >&5
15826     fi
15827     rm -f conftest.o conftest.s
15828   fi
15829 fi
15830 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15831 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15832
15833
15834 # The .debug_line file table must be in the exact order that
15835 # we specified the files, since these indices are also used
15836 # by DW_AT_decl_file.  Approximate this test by testing if
15837 # the assembler bitches if the same index is assigned twice.
15838  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15839 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15840 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15841   echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843   gcc_cv_as_dwarf2_file_buggy=no
15844   if test x$gcc_cv_as != x; then
15845     echo '      .file 1 "foo.s"
15846         .file 1 "bar.s"' > conftest.s
15847     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849   (eval $ac_try) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }; }
15853     then
15854         gcc_cv_as_dwarf2_file_buggy=yes
15855     else
15856       echo "configure: failed program was" >&5
15857       cat conftest.s >&5
15858     fi
15859     rm -f conftest.o conftest.s
15860   fi
15861 fi
15862 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15863 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15864
15865
15866  if test $gcc_cv_as_dwarf2_debug_line = yes \
15867  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15868
15869 cat >>confdefs.h <<\_ACEOF
15870 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15871 _ACEOF
15872
15873  fi
15874
15875  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15876 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15877 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15878   echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880   gcc_cv_as_gdwarf2_flag=no
15881     if test $in_tree_gas = yes; then
15882     if test $in_tree_gas_is_elf = yes \
15883   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15884   then gcc_cv_as_gdwarf2_flag=yes
15885 fi
15886   elif test x$gcc_cv_as != x; then
15887     echo "$insn" > conftest.s
15888     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890   (eval $ac_try) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; }
15894     then
15895         gcc_cv_as_gdwarf2_flag=yes
15896     else
15897       echo "configure: failed program was" >&5
15898       cat conftest.s >&5
15899     fi
15900     rm -f conftest.o conftest.s
15901   fi
15902 fi
15903 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15904 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15905 if test $gcc_cv_as_gdwarf2_flag = yes; then
15906
15907 cat >>confdefs.h <<\_ACEOF
15908 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15909 _ACEOF
15910
15911 fi
15912
15913  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15914 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15915 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15916   echo $ECHO_N "(cached) $ECHO_C" >&6
15917 else
15918   gcc_cv_as_gstabs_flag=no
15919     if test $in_tree_gas = yes; then
15920     if test $in_tree_gas_is_elf = yes \
15921   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15922   then gcc_cv_as_gstabs_flag=yes
15923 fi
15924   elif test x$gcc_cv_as != x; then
15925     echo "$insn" > conftest.s
15926     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }
15932     then
15933         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15934    # and warns about it, but still exits successfully.  So check for
15935    # this.
15936    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938   (eval $ac_try) 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); }; }
15942    then :
15943    else gcc_cv_as_gstabs_flag=yes
15944    fi
15945     else
15946       echo "configure: failed program was" >&5
15947       cat conftest.s >&5
15948     fi
15949     rm -f conftest.o conftest.s
15950   fi
15951 fi
15952 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15953 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15954 if test $gcc_cv_as_gstabs_flag = yes; then
15955
15956 cat >>confdefs.h <<\_ACEOF
15957 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15958 _ACEOF
15959
15960 fi
15961 fi
15962
15963 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15964 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15965 gcc_cv_ld_ro_rw_mix=unknown
15966 if test $in_tree_ld = yes ; then
15967   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 \
15968      && test $in_tree_ld_is_elf = yes; then
15969     gcc_cv_ld_ro_rw_mix=read-write
15970   fi
15971 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15972   echo '.section myfoosect, "a"' > conftest1.s
15973   echo '.section myfoosect, "aw"' > conftest2.s
15974   echo '.byte 1' >> conftest2.s
15975   echo '.section myfoosect, "a"' > conftest3.s
15976   echo '.byte 0' >> conftest3.s
15977   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15978      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15979      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15980      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15981         conftest2.o conftest3.o > /dev/null 2>&1; then
15982     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15983                          | sed -e '/myfoosect/!d' -e N`
15984     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15985       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15986         gcc_cv_ld_ro_rw_mix=read-only
15987       else
15988         gcc_cv_ld_ro_rw_mix=read-write
15989       fi
15990     fi
15991   fi
15992   rm -f conftest.* conftest[123].*
15993 fi
15994 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15995
15996 cat >>confdefs.h <<\_ACEOF
15997 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15998 _ACEOF
15999
16000 fi
16001 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16002 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16003
16004 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16005 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16006 gcc_cv_ld_eh_frame_hdr=no
16007 if test $in_tree_ld = yes ; then
16008   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 \
16009      && test $in_tree_ld_is_elf = yes; then
16010     gcc_cv_ld_eh_frame_hdr=yes
16011   fi
16012 elif test x$gcc_cv_ld != x; then
16013         # Check if linker supports --eh-frame-hdr option
16014         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16015                 gcc_cv_ld_eh_frame_hdr=yes
16016         fi
16017 fi
16018
16019 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16020
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_LD_EH_FRAME_HDR 1
16023 _ACEOF
16024
16025 fi
16026 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16027 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16028
16029 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16030 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16031 gcc_cv_ld_pie=no
16032 if test $in_tree_ld = yes ; then
16033   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 \
16034      && test $in_tree_ld_is_elf = yes; then
16035     gcc_cv_ld_pie=yes
16036   fi
16037 elif test x$gcc_cv_ld != x; then
16038         # Check if linker supports -pie option
16039         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16040                 gcc_cv_ld_pie=yes
16041         fi
16042 fi
16043 if test x"$gcc_cv_ld_pie" = xyes; then
16044
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE_LD_PIE 1
16047 _ACEOF
16048
16049 fi
16050 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16051 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16052
16053 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16054 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16055 gcc_cv_ld_eh_gc_sections=no
16056 if test $in_tree_ld = yes ; then
16057   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 \
16058      && test $in_tree_ld_is_elf = yes; then
16059     gcc_cv_ld_eh_gc_sections=yes
16060   fi
16061 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16062   cat > conftest.s <<EOF
16063         .section        .text
16064 .globl _start
16065         .type _start, @function
16066 _start:
16067         .long foo
16068         .size _start, .-_start
16069         .section        .text.foo,"ax",@progbits
16070         .type foo, @function
16071 foo:
16072         .long 0
16073         .size foo, .-foo
16074         .section        .gcc_except_table.foo,"a",@progbits
16075 .L0:
16076         .long 0
16077         .section        .eh_frame,"a",@progbits
16078         .long .L0
16079 EOF
16080   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16081     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16082          | grep "gc-sections option ignored" > /dev/null; then
16083       gcc_cv_ld_eh_gc_sections=no
16084     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16085       gcc_cv_ld_eh_gc_sections=yes
16086       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16087       if test x$gcc_cv_as_comdat_group != xyes; then
16088         gcc_cv_ld_eh_gc_sections=no
16089         cat > conftest.s <<EOF
16090         .section        .text
16091 .globl _start
16092         .type _start, @function
16093 _start:
16094         .long foo
16095         .size _start, .-_start
16096         .section        .gnu.linkonce.t.foo,"ax",@progbits
16097         .type foo, @function
16098 foo:
16099         .long 0
16100         .size foo, .-foo
16101         .section        .gcc_except_table.foo,"a",@progbits
16102 .L0:
16103         .long 0
16104         .section        .eh_frame,"a",@progbits
16105         .long .L0
16106 EOF
16107         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16108           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16109                | grep "gc-sections option ignored" > /dev/null; then
16110             gcc_cv_ld_eh_gc_sections=no
16111           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16112             gcc_cv_ld_eh_gc_sections=yes
16113           fi
16114         fi
16115       fi
16116     fi
16117   fi
16118   rm -f conftest.s conftest.o conftest
16119 fi
16120 case "$target" in
16121   hppa*-*-linux*)
16122     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16123     gcc_cv_ld_eh_gc_sections=no
16124     ;;
16125 esac
16126 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16127
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_LD_EH_GC_SECTIONS 1
16130 _ACEOF
16131
16132 fi
16133 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16134 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16135
16136 # --------
16137 # UNSORTED
16138 # --------
16139
16140 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16141 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16142 if test "${gcc_cv_ld_as_needed+set}" = set; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145   gcc_cv_ld_as_needed=no
16146 if test $in_tree_ld = yes ; then
16147   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 \
16148      && test $in_tree_ld_is_elf = yes; then
16149     gcc_cv_ld_as_needed=yes
16150   fi
16151 elif test x$gcc_cv_ld != x; then
16152         # Check if linker supports --as-needed and --no-as-needed options
16153         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16154                 gcc_cv_ld_as_needed=yes
16155         fi
16156 fi
16157
16158 fi
16159 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16160 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16161 if test x"$gcc_cv_ld_as_needed" = xyes; then
16162
16163 cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_LD_AS_NEEDED 1
16165 _ACEOF
16166
16167 fi
16168
16169 case "$target:$tm_file" in
16170   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16171     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16172 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16173 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16174   echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176   gcc_cv_ld_no_dot_syms=no
16177     if test $in_tree_ld = yes ; then
16178       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
16179         gcc_cv_ld_no_dot_syms=yes
16180       fi
16181     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16182       cat > conftest1.s <<EOF
16183         .text
16184         bl .foo
16185 EOF
16186       cat > conftest2.s <<EOF
16187         .section ".opd","aw"
16188         .align 3
16189         .globl foo
16190         .type foo,@function
16191 foo:
16192         .quad .LEfoo,.TOC.@tocbase,0
16193         .text
16194 .LEfoo:
16195         blr
16196         .size foo,.-.LEfoo
16197 EOF
16198       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16199          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16200          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16201         gcc_cv_ld_no_dot_syms=yes
16202       fi
16203       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16204     fi
16205
16206 fi
16207 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16208 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16209     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16210
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_LD_NO_DOT_SYMS 1
16213 _ACEOF
16214
16215     fi
16216     ;;
16217 esac
16218
16219 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16220 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16221 if test "${gcc_cv_ld_sysroot+set}" = set; then
16222   echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224   gcc_cv_ld_sysroot=no
16225   if test $in_tree_ld = yes ; then
16226       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
16227         gcc_cv_ld_sysroot=yes
16228       fi
16229   elif test x$gcc_cv_ld != x; then
16230     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16231       gcc_cv_ld_sysroot=yes
16232     fi
16233   fi
16234 fi
16235 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16236 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16237 if test x"$gcc_cv_ld_sysroot" = xyes; then
16238
16239 cat >>confdefs.h <<\_ACEOF
16240 #define HAVE_LD_SYSROOT 1
16241 _ACEOF
16242
16243 fi
16244
16245 if test x$with_sysroot = x && test x$host = x$target \
16246    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16247    && test "$prefix" != "NONE"; then
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define PREFIX_INCLUDE_DIR "$prefix/include"
16251 _ACEOF
16252
16253 fi
16254
16255 # Test for stack protector support in target C library.
16256 case "$target" in
16257   *-*-linux*)
16258     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16259 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16260 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263   gcc_cv_libc_provides_ssp=no
16264       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16265         if test "x$with_sysroot" = x; then
16266           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16267         elif test "x$with_sysroot" = xyes; then
16268           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16269         else
16270           glibc_header_dir="${with_sysroot}/usr/include"
16271         fi
16272       else
16273         glibc_header_dir=/usr/include
16274       fi
16275       # glibc 2.4 and later provides __stack_chk_fail and
16276       # either __stack_chk_guard, or TLS access to stack guard canary.
16277       if test -f $glibc_header_dir/features.h \
16278          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16279             $glibc_header_dir/features.h > /dev/null; then
16280         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16281            $glibc_header_dir/features.h > /dev/null; then
16282           gcc_cv_libc_provides_ssp=yes
16283         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16284              $glibc_header_dir/features.h > /dev/null \
16285              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16286              $glibc_header_dir/features.h > /dev/null; then
16287           gcc_cv_libc_provides_ssp=yes
16288         fi
16289       fi
16290 fi
16291 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16292 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16293   *) gcc_cv_libc_provides_ssp=no ;;
16294 esac
16295 if test x$gcc_cv_libc_provides_ssp = xyes; then
16296
16297 cat >>confdefs.h <<\_ACEOF
16298 #define TARGET_LIBC_PROVIDES_SSP 1
16299 _ACEOF
16300
16301 fi
16302
16303 # Check if TFmode long double should be used by default or not.
16304 # Some glibc targets used DFmode long double, but with glibc 2.4
16305 # and later they can use TFmode.
16306 case "$target" in
16307   powerpc*-*-*gnu* | \
16308   sparc*-*-linux* | \
16309   s390*-*-linux* | \
16310   alpha*-*-linux*)
16311
16312 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16313 if test "${with_long_double_128+set}" = set; then
16314   withval="$with_long_double_128"
16315   gcc_cv_target_ldbl128="$with_long_double_128"
16316 else
16317   gcc_cv_target_ldbl128=no
16318       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16319         if test "x$with_sysroot" = x; then
16320           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16321         elif test "x$with_sysroot" = xyes; then
16322           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16323         else
16324           glibc_header_dir="${with_sysroot}/usr/include"
16325         fi
16326       else
16327         glibc_header_dir=/usr/include
16328       fi
16329       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16330         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16331       && gcc_cv_target_ldbl128=yes
16332
16333 fi;
16334     ;;
16335 esac
16336 if test x$gcc_cv_target_ldbl128 = xyes; then
16337
16338 cat >>confdefs.h <<\_ACEOF
16339 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16340 _ACEOF
16341
16342 fi
16343
16344 # Find out what GC implementation we want, or may, use.
16345
16346 # Check whether --with-gc or --without-gc was given.
16347 if test "${with_gc+set}" = set; then
16348   withval="$with_gc"
16349   case "$withval" in
16350   page)
16351     GGC=ggc-$withval
16352     ;;
16353   zone)
16354     GGC=ggc-$withval
16355
16356 cat >>confdefs.h <<\_ACEOF
16357 #define GGC_ZONE 1
16358 _ACEOF
16359
16360     ;;
16361   *)
16362     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16363 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16364    { (exit 1); exit 1; }; }
16365     ;;
16366 esac
16367 else
16368   GGC=ggc-page
16369 fi;
16370
16371 echo "Using $GGC for garbage collection."
16372
16373 # Use the system's zlib library.
16374 zlibdir=-L../zlib
16375 zlibinc="-I\$(srcdir)/../zlib"
16376
16377 # Check whether --with-system-zlib or --without-system-zlib was given.
16378 if test "${with_system_zlib+set}" = set; then
16379   withval="$with_system_zlib"
16380   zlibdir=
16381 zlibinc=
16382
16383 fi;
16384
16385
16386
16387
16388 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16389 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16390     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16391 if test "${enable_maintainer_mode+set}" = set; then
16392   enableval="$enable_maintainer_mode"
16393   maintainer_mode=$enableval
16394 else
16395   maintainer_mode=no
16396 fi;
16397
16398 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16399 echo "${ECHO_T}$maintainer_mode" >&6
16400
16401 if test "$maintainer_mode" = "yes"; then
16402   MAINT=''
16403 else
16404   MAINT='#'
16405 fi
16406
16407 # --------------
16408 # Language hooks
16409 # --------------
16410
16411 # Make empty files to contain the specs and options for each language.
16412 # Then add #include lines to for a compiler that has specs and/or options.
16413
16414 subdirs=
16415 lang_opt_files=
16416 lang_specs_files=
16417 lang_tree_files=
16418 # These (without "all_") are set in each config-lang.in.
16419 # `language' must be a single word so is spelled singularly.
16420 all_languages=
16421 all_boot_languages=
16422 all_compilers=
16423 all_stagestuff=
16424 all_outputs='Makefile gccbug libada-mk'
16425 # List of language makefile fragments.
16426 all_lang_makefrags=
16427 # List of language subdirectory makefiles.  Deprecated.
16428 all_lang_makefiles=
16429 # Files for gengtype
16430 all_gtfiles="$target_gtfiles"
16431 # Files for gengtype with language
16432 all_gtfiles_files_langs=
16433 all_gtfiles_files_files=
16434
16435 # These are the languages that are set in --enable-languages,
16436 # and are available in the GCC tree.
16437 all_selected_languages=
16438
16439 # Add the language fragments.
16440 # Languages are added via two mechanisms.  Some information must be
16441 # recorded in makefile variables, these are defined in config-lang.in.
16442 # We accumulate them and plug them into the main Makefile.
16443 # The other mechanism is a set of hooks for each of the main targets
16444 # like `clean', `install', etc.
16445
16446 language_hooks="Make-hooks"
16447
16448 for lang in ${srcdir}/*/config-lang.in
16449 do
16450         test "$lang" = "${srcdir}/*/config-lang.in" && continue
16451
16452         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
16453         if test "x$lang_alias" = x
16454         then
16455               echo "$lang doesn't set \$language." 1>&2
16456               exit 1
16457         fi
16458         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16459         subdirs="$subdirs $subdir"
16460         case ",$enable_languages," in
16461         *,$lang_alias,*)
16462             all_selected_languages="$all_selected_languages $lang_alias"
16463             if test -f $srcdir/$subdir/lang-specs.h; then
16464                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16465             fi
16466             ;;
16467         esac
16468
16469         language=
16470         boot_language=
16471         compilers=
16472         stagestuff=
16473         outputs=
16474         gtfiles=
16475         subdir_requires=
16476         . ${srcdir}/$subdir/config-lang.in
16477         if test "x$language" = x
16478         then
16479                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16480                 exit 1
16481         fi
16482
16483         ok=:
16484         case ",$enable_languages," in
16485                 *,$lang_alias,*) ;;
16486                 *)
16487                         for i in $subdir_requires; do
16488                                 test -f "${srcdir}/$i/config-lang.in" && continue
16489                                 ok=false
16490                                 break
16491                         done
16492                 ;;
16493         esac
16494         $ok || continue
16495
16496         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16497         if test -f $srcdir/$subdir/lang.opt; then
16498             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16499         fi
16500         if test -f $srcdir/$subdir/$subdir-tree.def; then
16501             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16502         fi
16503         if test -f ${srcdir}/$subdir/Makefile.in
16504                 then all_lang_makefiles="$subdir/Makefile"
16505         fi
16506         all_languages="$all_languages $language"
16507         if test "x$boot_language" = xyes
16508         then
16509                 all_boot_languages="$all_boot_languages $language"
16510         fi
16511         all_compilers="$all_compilers $compilers"
16512         all_stagestuff="$all_stagestuff $stagestuff"
16513         all_outputs="$all_outputs $outputs"
16514         all_gtfiles="$all_gtfiles $gtfiles"
16515         for f in $gtfiles
16516         do
16517                 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16518                 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16519         done
16520 done
16521
16522 # Pick up gtfiles for c
16523 gtfiles=
16524 subdir="c"
16525 . ${srcdir}/c-config-lang.in
16526 all_gtfiles="$all_gtfiles $gtfiles"
16527 for f in $gtfiles
16528 do
16529         all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16530         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16531 done
16532
16533 check_languages=
16534 for language in $all_selected_languages
16535 do
16536         check_languages="$check_languages check-$language"
16537 done
16538
16539 # We link each language in with a set of hooks, reached indirectly via
16540 # lang.${target}.  Only do so for selected languages.
16541
16542 rm -f Make-hooks
16543 touch Make-hooks
16544 target_list="all.cross start.encap rest.encap tags \
16545         install-common install-man install-info dvi pdf html \
16546         uninstall info man srcextra srcman srcinfo \
16547         mostlyclean clean distclean maintainer-clean \
16548         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16549
16550 for t in $target_list
16551 do
16552         x=
16553         for lang in $all_selected_languages
16554         do
16555                 x="$x $lang.$t"
16556         done
16557         echo "lang.$t: $x" >> Make-hooks
16558 done
16559
16560 # --------
16561 # UNSORTED
16562 # --------
16563
16564 # Create .gdbinit.
16565
16566 echo "dir ." > .gdbinit
16567 echo "dir ${srcdir}" >> .gdbinit
16568 if test x$gdb_needs_out_file_path = xyes
16569 then
16570         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16571 fi
16572 if test "x$subdirs" != x; then
16573         for s in $subdirs
16574         do
16575                 echo "dir ${srcdir}/$s" >> .gdbinit
16576         done
16577 fi
16578 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16579
16580 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16581 # absolute path for gcc_tooldir based on inserting the number of up-directory
16582 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16583 # $(libsubdir)/@(unlibsubdir) based path.
16584 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16585 # make and thus we'd get different behavior depending on where we built the
16586 # sources.
16587 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16588     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16589 else
16590 # An explanation of the sed strings:
16591 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16592 #  -e 's|/$||'            match a trailing forward slash and eliminates it
16593 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16594 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
16595 #
16596 # (*) Note this pattern overwrites the first character of the string
16597 # with a forward slash if one is not already present.  This is not a
16598 # problem because the exact names of the sub-directories concerned is
16599 # unimportant, just the number of them matters.
16600 #
16601 # The practical upshot of these patterns is like this:
16602 #
16603 #  prefix     exec_prefix        result
16604 #  ------     -----------        ------
16605 #   /foo        /foo/bar          ../
16606 #   /foo/       /foo/bar          ../
16607 #   /foo        /foo/bar/         ../
16608 #   /foo/       /foo/bar/         ../
16609 #   /foo        /foo/bar/ugg      ../../
16610 #
16611     dollar='$$'
16612     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16613 fi
16614
16615
16616
16617 # Find a directory in which to install a shared libgcc.
16618
16619 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16620 if test "${enable_version_specific_runtime_libs+set}" = set; then
16621   enableval="$enable_version_specific_runtime_libs"
16622
16623 fi;
16624
16625
16626 # Check whether --with-slibdir or --without-slibdir was given.
16627 if test "${with_slibdir+set}" = set; then
16628   withval="$with_slibdir"
16629   slibdir="$with_slibdir"
16630 else
16631   if test "${enable_version_specific_runtime_libs+set}" = set; then
16632   slibdir='$(libsubdir)'
16633 elif test "$host" != "$target"; then
16634   slibdir='$(build_tooldir)/lib'
16635 else
16636   slibdir='$(libdir)'
16637 fi
16638 fi;
16639
16640
16641 objdir=`${PWDCMD-pwd}`
16642
16643
16644
16645 # Check whether --with-datarootdir or --without-datarootdir was given.
16646 if test "${with_datarootdir+set}" = set; then
16647   withval="$with_datarootdir"
16648   datarootdir="\${prefix}/$with_datarootdir"
16649 else
16650   datarootdir='$(prefix)/share'
16651 fi;
16652
16653
16654
16655 # Check whether --with-docdir or --without-docdir was given.
16656 if test "${with_docdir+set}" = set; then
16657   withval="$with_docdir"
16658   docdir="\${prefix}/$with_docdir"
16659 else
16660   docdir='$(datarootdir)'
16661 fi;
16662
16663
16664
16665 # Check whether --with-htmldir or --without-htmldir was given.
16666 if test "${with_htmldir+set}" = set; then
16667   withval="$with_htmldir"
16668   htmldir="\${prefix}/$with_htmldir"
16669 else
16670   htmldir='$(docdir)'
16671 fi;
16672
16673
16674 # Substitute configuration variables
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738 # Echo link setup.
16739 if test x${build} = x${host} ; then
16740   if test x${host} = x${target} ; then
16741     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16742   else
16743     echo "Links are now set up to build a cross-compiler" 1>&2
16744     echo " from ${host} to ${target}." 1>&2
16745   fi
16746 else
16747   if test x${host} = x${target} ; then
16748     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16749     echo " for ${target}." 1>&2
16750   else
16751     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16752     echo " from ${host} to ${target}." 1>&2
16753   fi
16754 fi
16755
16756
16757
16758
16759 # Configure the subdirectories
16760 # AC_CONFIG_SUBDIRS($subdirs)
16761
16762 # Create the Makefile
16763 # and configure language subdirectories
16764           ac_config_files="$ac_config_files $all_outputs"
16765
16766
16767           ac_config_commands="$ac_config_commands default"
16768
16769 cat >confcache <<\_ACEOF
16770 # This file is a shell script that caches the results of configure
16771 # tests run on this system so they can be shared between configure
16772 # scripts and configure runs, see configure's option --config-cache.
16773 # It is not useful on other systems.  If it contains results you don't
16774 # want to keep, you may remove or edit it.
16775 #
16776 # config.status only pays attention to the cache file if you give it
16777 # the --recheck option to rerun configure.
16778 #
16779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16781 # following values.
16782
16783 _ACEOF
16784
16785 # The following way of writing the cache mishandles newlines in values,
16786 # but we know of no workaround that is simple, portable, and efficient.
16787 # So, don't put newlines in cache variables' values.
16788 # Ultrix sh set writes to stderr and can't be redirected directly,
16789 # and sets the high bit in the cache file unless we assign to the vars.
16790 {
16791   (set) 2>&1 |
16792     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16793     *ac_space=\ *)
16794       # `set' does not quote correctly, so add quotes (double-quote
16795       # substitution turns \\\\ into \\, and sed turns \\ into \).
16796       sed -n \
16797         "s/'/'\\\\''/g;
16798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16799       ;;
16800     *)
16801       # `set' quotes correctly as required by POSIX, so do not add quotes.
16802       sed -n \
16803         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16804       ;;
16805     esac;
16806 } |
16807   sed '
16808      t clear
16809      : clear
16810      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16811      t end
16812      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16813      : end' >>confcache
16814 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16815   if test -w $cache_file; then
16816     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16817     cat confcache >$cache_file
16818   else
16819     echo "not updating unwritable cache $cache_file"
16820   fi
16821 fi
16822 rm -f confcache
16823
16824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825 # Let make expand exec_prefix.
16826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16827
16828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16830 # trailing colons and then remove the whole line if VPATH becomes empty
16831 # (actually we leave an empty line to preserve line numbers).
16832 if test "x$srcdir" = x.; then
16833   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16834 s/:*\$(srcdir):*/:/;
16835 s/:*\${srcdir}:*/:/;
16836 s/:*@srcdir@:*/:/;
16837 s/^\([^=]*=[     ]*\):*/\1/;
16838 s/:*$//;
16839 s/^[^=]*=[       ]*$//;
16840 }'
16841 fi
16842
16843 DEFS=-DHAVE_CONFIG_H
16844
16845 ac_libobjs=
16846 ac_ltlibobjs=
16847 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16848   # 1. Remove the extension, and $U if already installed.
16849   ac_i=`echo "$ac_i" |
16850          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16851   # 2. Add them.
16852   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16853   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16854 done
16855 LIBOBJS=$ac_libobjs
16856
16857 LTLIBOBJS=$ac_ltlibobjs
16858
16859
16860
16861 : ${CONFIG_STATUS=./config.status}
16862 ac_clean_files_save=$ac_clean_files
16863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16864 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16865 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16866 cat >$CONFIG_STATUS <<_ACEOF
16867 #! $SHELL
16868 # Generated by $as_me.
16869 # Run this file to recreate the current configuration.
16870 # Compiler output produced by configure, useful for debugging
16871 # configure, is in config.log if it exists.
16872
16873 debug=false
16874 ac_cs_recheck=false
16875 ac_cs_silent=false
16876 SHELL=\${CONFIG_SHELL-$SHELL}
16877 _ACEOF
16878
16879 cat >>$CONFIG_STATUS <<\_ACEOF
16880 ## --------------------- ##
16881 ## M4sh Initialization.  ##
16882 ## --------------------- ##
16883
16884 # Be Bourne compatible
16885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16886   emulate sh
16887   NULLCMD=:
16888   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16889   # is contrary to our usage.  Disable this feature.
16890   alias -g '${1+"$@"}'='"$@"'
16891 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16892   set -o posix
16893 fi
16894 DUALCASE=1; export DUALCASE # for MKS sh
16895
16896 # Support unset when possible.
16897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16898   as_unset=unset
16899 else
16900   as_unset=false
16901 fi
16902
16903
16904 # Work around bugs in pre-3.0 UWIN ksh.
16905 $as_unset ENV MAIL MAILPATH
16906 PS1='$ '
16907 PS2='> '
16908 PS4='+ '
16909
16910 # NLS nuisances.
16911 for as_var in \
16912   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16913   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16914   LC_TELEPHONE LC_TIME
16915 do
16916   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16917     eval $as_var=C; export $as_var
16918   else
16919     $as_unset $as_var
16920   fi
16921 done
16922
16923 # Required to use basename.
16924 if expr a : '\(a\)' >/dev/null 2>&1; then
16925   as_expr=expr
16926 else
16927   as_expr=false
16928 fi
16929
16930 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16931   as_basename=basename
16932 else
16933   as_basename=false
16934 fi
16935
16936
16937 # Name of the executable.
16938 as_me=`$as_basename "$0" ||
16939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16940          X"$0" : 'X\(//\)$' \| \
16941          X"$0" : 'X\(/\)$' \| \
16942          .     : '\(.\)' 2>/dev/null ||
16943 echo X/"$0" |
16944     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16945           /^X\/\(\/\/\)$/{ s//\1/; q; }
16946           /^X\/\(\/\).*/{ s//\1/; q; }
16947           s/.*/./; q'`
16948
16949
16950 # PATH needs CR, and LINENO needs CR and PATH.
16951 # Avoid depending upon Character Ranges.
16952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16955 as_cr_digits='0123456789'
16956 as_cr_alnum=$as_cr_Letters$as_cr_digits
16957
16958 # The user is always right.
16959 if test "${PATH_SEPARATOR+set}" != set; then
16960   echo "#! /bin/sh" >conf$$.sh
16961   echo  "exit 0"   >>conf$$.sh
16962   chmod +x conf$$.sh
16963   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16964     PATH_SEPARATOR=';'
16965   else
16966     PATH_SEPARATOR=:
16967   fi
16968   rm -f conf$$.sh
16969 fi
16970
16971
16972   as_lineno_1=$LINENO
16973   as_lineno_2=$LINENO
16974   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16975   test "x$as_lineno_1" != "x$as_lineno_2" &&
16976   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16977   # Find who we are.  Look in the path if we contain no path at all
16978   # relative or not.
16979   case $0 in
16980     *[\\/]* ) as_myself=$0 ;;
16981     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16982 for as_dir in $PATH
16983 do
16984   IFS=$as_save_IFS
16985   test -z "$as_dir" && as_dir=.
16986   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16987 done
16988
16989        ;;
16990   esac
16991   # We did not find ourselves, most probably we were run as `sh COMMAND'
16992   # in which case we are not to be found in the path.
16993   if test "x$as_myself" = x; then
16994     as_myself=$0
16995   fi
16996   if test ! -f "$as_myself"; then
16997     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16998 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16999    { (exit 1); exit 1; }; }
17000   fi
17001   case $CONFIG_SHELL in
17002   '')
17003     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17005 do
17006   IFS=$as_save_IFS
17007   test -z "$as_dir" && as_dir=.
17008   for as_base in sh bash ksh sh5; do
17009          case $as_dir in
17010          /*)
17011            if ("$as_dir/$as_base" -c '
17012   as_lineno_1=$LINENO
17013   as_lineno_2=$LINENO
17014   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17015   test "x$as_lineno_1" != "x$as_lineno_2" &&
17016   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17017              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17018              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17019              CONFIG_SHELL=$as_dir/$as_base
17020              export CONFIG_SHELL
17021              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17022            fi;;
17023          esac
17024        done
17025 done
17026 ;;
17027   esac
17028
17029   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17030   # uniformly replaced by the line number.  The first 'sed' inserts a
17031   # line-number line before each line; the second 'sed' does the real
17032   # work.  The second script uses 'N' to pair each line-number line
17033   # with the numbered line, and appends trailing '-' during
17034   # substitution so that $LINENO is not a special case at line end.
17035   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17036   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17037   sed '=' <$as_myself |
17038     sed '
17039       N
17040       s,$,-,
17041       : loop
17042       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17043       t loop
17044       s,-$,,
17045       s,^['$as_cr_digits']*\n,,
17046     ' >$as_me.lineno &&
17047   chmod +x $as_me.lineno ||
17048     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17049 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17050    { (exit 1); exit 1; }; }
17051
17052   # Don't try to exec as it changes $[0], causing all sort of problems
17053   # (the dirname of $[0] is not the place where we might find the
17054   # original and so on.  Autoconf is especially sensible to this).
17055   . ./$as_me.lineno
17056   # Exit status is that of the last command.
17057   exit
17058 }
17059
17060
17061 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17062   *c*,-n*) ECHO_N= ECHO_C='
17063 ' ECHO_T='      ' ;;
17064   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17065   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17066 esac
17067
17068 if expr a : '\(a\)' >/dev/null 2>&1; then
17069   as_expr=expr
17070 else
17071   as_expr=false
17072 fi
17073
17074 rm -f conf$$ conf$$.exe conf$$.file
17075 echo >conf$$.file
17076 if ln -s conf$$.file conf$$ 2>/dev/null; then
17077   # We could just check for DJGPP; but this test a) works b) is more generic
17078   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17079   if test -f conf$$.exe; then
17080     # Don't use ln at all; we don't have any links
17081     as_ln_s='cp -p'
17082   else
17083     as_ln_s='ln -s'
17084   fi
17085 elif ln conf$$.file conf$$ 2>/dev/null; then
17086   as_ln_s=ln
17087 else
17088   as_ln_s='cp -p'
17089 fi
17090 rm -f conf$$ conf$$.exe conf$$.file
17091
17092 if mkdir -p . 2>/dev/null; then
17093   as_mkdir_p=:
17094 else
17095   test -d ./-p && rmdir ./-p
17096   as_mkdir_p=false
17097 fi
17098
17099 as_executable_p="test -f"
17100
17101 # Sed expression to map a string onto a valid CPP name.
17102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17103
17104 # Sed expression to map a string onto a valid variable name.
17105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17106
17107
17108 # IFS
17109 # We need space, tab and new line, in precisely that order.
17110 as_nl='
17111 '
17112 IFS="   $as_nl"
17113
17114 # CDPATH.
17115 $as_unset CDPATH
17116
17117 exec 6>&1
17118
17119 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17120 # report actual input values of CONFIG_FILES etc. instead of their
17121 # values after options handling.  Logging --version etc. is OK.
17122 exec 5>>config.log
17123 {
17124   echo
17125   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17126 ## Running $as_me. ##
17127 _ASBOX
17128 } >&5
17129 cat >&5 <<_CSEOF
17130
17131 This file was extended by $as_me, which was
17132 generated by GNU Autoconf 2.59.  Invocation command line was
17133
17134   CONFIG_FILES    = $CONFIG_FILES
17135   CONFIG_HEADERS  = $CONFIG_HEADERS
17136   CONFIG_LINKS    = $CONFIG_LINKS
17137   CONFIG_COMMANDS = $CONFIG_COMMANDS
17138   $ $0 $@
17139
17140 _CSEOF
17141 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17142 echo >&5
17143 _ACEOF
17144
17145 # Files that config.status was made for.
17146 if test -n "$ac_config_files"; then
17147   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17148 fi
17149
17150 if test -n "$ac_config_headers"; then
17151   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17152 fi
17153
17154 if test -n "$ac_config_links"; then
17155   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17156 fi
17157
17158 if test -n "$ac_config_commands"; then
17159   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17160 fi
17161
17162 cat >>$CONFIG_STATUS <<\_ACEOF
17163
17164 ac_cs_usage="\
17165 \`$as_me' instantiates files from templates according to the
17166 current configuration.
17167
17168 Usage: $0 [OPTIONS] [FILE]...
17169
17170   -h, --help       print this help, then exit
17171   -V, --version    print version number, then exit
17172   -q, --quiet      do not print progress messages
17173   -d, --debug      don't remove temporary files
17174       --recheck    update $as_me by reconfiguring in the same conditions
17175   --file=FILE[:TEMPLATE]
17176                    instantiate the configuration file FILE
17177   --header=FILE[:TEMPLATE]
17178                    instantiate the configuration header FILE
17179
17180 Configuration files:
17181 $config_files
17182
17183 Configuration headers:
17184 $config_headers
17185
17186 Configuration commands:
17187 $config_commands
17188
17189 Report bugs to <bug-autoconf@gnu.org>."
17190 _ACEOF
17191
17192 cat >>$CONFIG_STATUS <<_ACEOF
17193 ac_cs_version="\\
17194 config.status
17195 configured by $0, generated by GNU Autoconf 2.59,
17196   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17197
17198 Copyright (C) 2003 Free Software Foundation, Inc.
17199 This config.status script is free software; the Free Software Foundation
17200 gives unlimited permission to copy, distribute and modify it."
17201 srcdir=$srcdir
17202 _ACEOF
17203
17204 cat >>$CONFIG_STATUS <<\_ACEOF
17205 # If no file are specified by the user, then we need to provide default
17206 # value.  By we need to know if files were specified by the user.
17207 ac_need_defaults=:
17208 while test $# != 0
17209 do
17210   case $1 in
17211   --*=*)
17212     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17213     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17214     ac_shift=:
17215     ;;
17216   -*)
17217     ac_option=$1
17218     ac_optarg=$2
17219     ac_shift=shift
17220     ;;
17221   *) # This is not an option, so the user has probably given explicit
17222      # arguments.
17223      ac_option=$1
17224      ac_need_defaults=false;;
17225   esac
17226
17227   case $ac_option in
17228   # Handling of the options.
17229 _ACEOF
17230 cat >>$CONFIG_STATUS <<\_ACEOF
17231   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17232     ac_cs_recheck=: ;;
17233   --version | --vers* | -V )
17234     echo "$ac_cs_version"; exit 0 ;;
17235   --he | --h)
17236     # Conflict between --help and --header
17237     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17238 Try \`$0 --help' for more information." >&5
17239 echo "$as_me: error: ambiguous option: $1
17240 Try \`$0 --help' for more information." >&2;}
17241    { (exit 1); exit 1; }; };;
17242   --help | --hel | -h )
17243     echo "$ac_cs_usage"; exit 0 ;;
17244   --debug | --d* | -d )
17245     debug=: ;;
17246   --file | --fil | --fi | --f )
17247     $ac_shift
17248     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17249     ac_need_defaults=false;;
17250   --header | --heade | --head | --hea )
17251     $ac_shift
17252     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17253     ac_need_defaults=false;;
17254   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17255   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17256     ac_cs_silent=: ;;
17257
17258   # This is an error.
17259   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17260 Try \`$0 --help' for more information." >&5
17261 echo "$as_me: error: unrecognized option: $1
17262 Try \`$0 --help' for more information." >&2;}
17263    { (exit 1); exit 1; }; } ;;
17264
17265   *) ac_config_targets="$ac_config_targets $1" ;;
17266
17267   esac
17268   shift
17269 done
17270
17271 ac_configure_extra_args=
17272
17273 if $ac_cs_silent; then
17274   exec 6>/dev/null
17275   ac_configure_extra_args="$ac_configure_extra_args --silent"
17276 fi
17277
17278 _ACEOF
17279 cat >>$CONFIG_STATUS <<_ACEOF
17280 if \$ac_cs_recheck; then
17281   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17282   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17283 fi
17284
17285 _ACEOF
17286
17287 cat >>$CONFIG_STATUS <<_ACEOF
17288 #
17289 # INIT-COMMANDS section.
17290 #
17291
17292 subdirs='$subdirs'
17293
17294 _ACEOF
17295
17296
17297
17298 cat >>$CONFIG_STATUS <<\_ACEOF
17299 for ac_config_target in $ac_config_targets
17300 do
17301   case "$ac_config_target" in
17302   # Handling of arguments.
17303   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17304   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17305   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17306   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17307 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17308    { (exit 1); exit 1; }; };;
17309   esac
17310 done
17311
17312 # If the user did not use the arguments to specify the items to instantiate,
17313 # then the envvar interface is used.  Set only those that are not.
17314 # We use the long form for the default assignment because of an extremely
17315 # bizarre bug on SunOS 4.1.3.
17316 if $ac_need_defaults; then
17317   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17318   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17319   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17320 fi
17321
17322 # Have a temporary directory for convenience.  Make it in the build tree
17323 # simply because there is no reason to put it here, and in addition,
17324 # creating and moving files from /tmp can sometimes cause problems.
17325 # Create a temporary directory, and hook for its removal unless debugging.
17326 $debug ||
17327 {
17328   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17329   trap '{ (exit 1); exit 1; }' 1 2 13 15
17330 }
17331
17332 # Create a (secure) tmp directory for tmp files.
17333
17334 {
17335   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17336   test -n "$tmp" && test -d "$tmp"
17337 }  ||
17338 {
17339   tmp=./confstat$$-$RANDOM
17340   (umask 077 && mkdir $tmp)
17341 } ||
17342 {
17343    echo "$me: cannot create a temporary directory in ." >&2
17344    { (exit 1); exit 1; }
17345 }
17346
17347 _ACEOF
17348
17349 cat >>$CONFIG_STATUS <<_ACEOF
17350
17351 #
17352 # CONFIG_FILES section.
17353 #
17354
17355 # No need to generate the scripts if there are no CONFIG_FILES.
17356 # This happens for instance when ./config.status config.h
17357 if test -n "\$CONFIG_FILES"; then
17358   # Protect against being on the right side of a sed subst in config.status.
17359   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17360    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17361 s,@SHELL@,$SHELL,;t t
17362 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17363 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17364 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17365 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17366 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17367 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17368 s,@exec_prefix@,$exec_prefix,;t t
17369 s,@prefix@,$prefix,;t t
17370 s,@program_transform_name@,$program_transform_name,;t t
17371 s,@bindir@,$bindir,;t t
17372 s,@sbindir@,$sbindir,;t t
17373 s,@libexecdir@,$libexecdir,;t t
17374 s,@datadir@,$datadir,;t t
17375 s,@sysconfdir@,$sysconfdir,;t t
17376 s,@sharedstatedir@,$sharedstatedir,;t t
17377 s,@localstatedir@,$localstatedir,;t t
17378 s,@libdir@,$libdir,;t t
17379 s,@includedir@,$includedir,;t t
17380 s,@oldincludedir@,$oldincludedir,;t t
17381 s,@infodir@,$infodir,;t t
17382 s,@mandir@,$mandir,;t t
17383 s,@build_alias@,$build_alias,;t t
17384 s,@host_alias@,$host_alias,;t t
17385 s,@target_alias@,$target_alias,;t t
17386 s,@DEFS@,$DEFS,;t t
17387 s,@ECHO_C@,$ECHO_C,;t t
17388 s,@ECHO_N@,$ECHO_N,;t t
17389 s,@ECHO_T@,$ECHO_T,;t t
17390 s,@LIBS@,$LIBS,;t t
17391 s,@build@,$build,;t t
17392 s,@build_cpu@,$build_cpu,;t t
17393 s,@build_vendor@,$build_vendor,;t t
17394 s,@build_os@,$build_os,;t t
17395 s,@host@,$host,;t t
17396 s,@host_cpu@,$host_cpu,;t t
17397 s,@host_vendor@,$host_vendor,;t t
17398 s,@host_os@,$host_os,;t t
17399 s,@target@,$target,;t t
17400 s,@target_cpu@,$target_cpu,;t t
17401 s,@target_vendor@,$target_vendor,;t t
17402 s,@target_os@,$target_os,;t t
17403 s,@target_noncanonical@,$target_noncanonical,;t t
17404 s,@build_libsubdir@,$build_libsubdir,;t t
17405 s,@build_subdir@,$build_subdir,;t t
17406 s,@host_subdir@,$host_subdir,;t t
17407 s,@target_subdir@,$target_subdir,;t t
17408 s,@GENINSRC@,$GENINSRC,;t t
17409 s,@CC@,$CC,;t t
17410 s,@CFLAGS@,$CFLAGS,;t t
17411 s,@LDFLAGS@,$LDFLAGS,;t t
17412 s,@CPPFLAGS@,$CPPFLAGS,;t t
17413 s,@ac_ct_CC@,$ac_ct_CC,;t t
17414 s,@EXEEXT@,$EXEEXT,;t t
17415 s,@OBJEXT@,$OBJEXT,;t t
17416 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17417 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17418 s,@CPP@,$CPP,;t t
17419 s,@EGREP@,$EGREP,;t t
17420 s,@strict1_warn@,$strict1_warn,;t t
17421 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17422 s,@warn_cflags@,$warn_cflags,;t t
17423 s,@WERROR@,$WERROR,;t t
17424 s,@nocommon_flag@,$nocommon_flag,;t t
17425 s,@TREEBROWSER@,$TREEBROWSER,;t t
17426 s,@valgrind_path@,$valgrind_path,;t t
17427 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17428 s,@valgrind_command@,$valgrind_command,;t t
17429 s,@coverage_flags@,$coverage_flags,;t t
17430 s,@enable_multilib@,$enable_multilib,;t t
17431 s,@enable_decimal_float@,$enable_decimal_float,;t t
17432 s,@enable_shared@,$enable_shared,;t t
17433 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17434 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17435 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17436 s,@onestep@,$onestep,;t t
17437 s,@datarootdir@,$datarootdir,;t t
17438 s,@docdir@,$docdir,;t t
17439 s,@htmldir@,$htmldir,;t t
17440 s,@SET_MAKE@,$SET_MAKE,;t t
17441 s,@AWK@,$AWK,;t t
17442 s,@LN_S@,$LN_S,;t t
17443 s,@LN@,$LN,;t t
17444 s,@RANLIB@,$RANLIB,;t t
17445 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17446 s,@ranlib_flags@,$ranlib_flags,;t t
17447 s,@INSTALL@,$INSTALL,;t t
17448 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17449 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17450 s,@make_compare_target@,$make_compare_target,;t t
17451 s,@have_mktemp_command@,$have_mktemp_command,;t t
17452 s,@MAKEINFO@,$MAKEINFO,;t t
17453 s,@BUILD_INFO@,$BUILD_INFO,;t t
17454 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17455 s,@FLEX@,$FLEX,;t t
17456 s,@BISON@,$BISON,;t t
17457 s,@NM@,$NM,;t t
17458 s,@AR@,$AR,;t t
17459 s,@stage1_cflags@,$stage1_cflags,;t t
17460 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17461 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17462 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17463 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17464 s,@LIBICONV@,$LIBICONV,;t t
17465 s,@LTLIBICONV@,$LTLIBICONV,;t t
17466 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17467 s,@manext@,$manext,;t t
17468 s,@objext@,$objext,;t t
17469 s,@gthread_flags@,$gthread_flags,;t t
17470 s,@extra_modes_file@,$extra_modes_file,;t t
17471 s,@extra_opt_files@,$extra_opt_files,;t t
17472 s,@USE_NLS@,$USE_NLS,;t t
17473 s,@LIBINTL@,$LIBINTL,;t t
17474 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17475 s,@INCINTL@,$INCINTL,;t t
17476 s,@XGETTEXT@,$XGETTEXT,;t t
17477 s,@GMSGFMT@,$GMSGFMT,;t t
17478 s,@POSUB@,$POSUB,;t t
17479 s,@CATALOGS@,$CATALOGS,;t t
17480 s,@DATADIRNAME@,$DATADIRNAME,;t t
17481 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17482 s,@GENCAT@,$GENCAT,;t t
17483 s,@CATOBJEXT@,$CATOBJEXT,;t t
17484 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17485 s,@CROSS@,$CROSS,;t t
17486 s,@ALL@,$ALL,;t t
17487 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17488 s,@inhibit_libc@,$inhibit_libc,;t t
17489 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17490 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17491 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17492 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17493 s,@collect2@,$collect2,;t t
17494 s,@gcc_cv_as@,$gcc_cv_as,;t t
17495 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17496 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17497 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17498 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17499 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17500 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17501 s,@libgcc_visibility@,$libgcc_visibility,;t t
17502 s,@GGC@,$GGC,;t t
17503 s,@zlibdir@,$zlibdir,;t t
17504 s,@zlibinc@,$zlibinc,;t t
17505 s,@MAINT@,$MAINT,;t t
17506 s,@gcc_tooldir@,$gcc_tooldir,;t t
17507 s,@dollar@,$dollar,;t t
17508 s,@slibdir@,$slibdir,;t t
17509 s,@objdir@,$objdir,;t t
17510 s,@subdirs@,$subdirs,;t t
17511 s,@srcdir@,$srcdir,;t t
17512 s,@all_boot_languages@,$all_boot_languages,;t t
17513 s,@all_compilers@,$all_compilers,;t t
17514 s,@all_gtfiles@,$all_gtfiles,;t t
17515 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17516 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17517 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17518 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17519 s,@all_languages@,$all_languages,;t t
17520 s,@all_selected_languages@,$all_selected_languages,;t t
17521 s,@all_stagestuff@,$all_stagestuff,;t t
17522 s,@build_exeext@,$build_exeext,;t t
17523 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17524 s,@build_xm_file_list@,$build_xm_file_list,;t t
17525 s,@build_xm_include_list@,$build_xm_include_list,;t t
17526 s,@build_xm_defines@,$build_xm_defines,;t t
17527 s,@check_languages@,$check_languages,;t t
17528 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17529 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17530 s,@cpp_install_dir@,$cpp_install_dir,;t t
17531 s,@xmake_file@,$xmake_file,;t t
17532 s,@tmake_file@,$tmake_file,;t t
17533 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17534 s,@extra_headers_list@,$extra_headers_list,;t t
17535 s,@extra_objs@,$extra_objs,;t t
17536 s,@extra_parts@,$extra_parts,;t t
17537 s,@extra_passes@,$extra_passes,;t t
17538 s,@extra_programs@,$extra_programs,;t t
17539 s,@float_h_file@,$float_h_file,;t t
17540 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17541 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17542 s,@host_exeext@,$host_exeext,;t t
17543 s,@host_xm_file_list@,$host_xm_file_list,;t t
17544 s,@host_xm_include_list@,$host_xm_include_list,;t t
17545 s,@host_xm_defines@,$host_xm_defines,;t t
17546 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17547 s,@install@,$install,;t t
17548 s,@lang_opt_files@,$lang_opt_files,;t t
17549 s,@lang_specs_files@,$lang_specs_files,;t t
17550 s,@lang_tree_files@,$lang_tree_files,;t t
17551 s,@local_prefix@,$local_prefix,;t t
17552 s,@md_file@,$md_file,;t t
17553 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17554 s,@out_file@,$out_file,;t t
17555 s,@out_object_file@,$out_object_file,;t t
17556 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17557 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17558 s,@thread_file@,$thread_file,;t t
17559 s,@tm_file_list@,$tm_file_list,;t t
17560 s,@tm_include_list@,$tm_include_list,;t t
17561 s,@tm_defines@,$tm_defines,;t t
17562 s,@tm_p_file_list@,$tm_p_file_list,;t t
17563 s,@tm_p_include_list@,$tm_p_include_list,;t t
17564 s,@xm_file_list@,$xm_file_list,;t t
17565 s,@xm_include_list@,$xm_include_list,;t t
17566 s,@xm_defines@,$xm_defines,;t t
17567 s,@c_target_objs@,$c_target_objs,;t t
17568 s,@cxx_target_objs@,$cxx_target_objs,;t t
17569 s,@target_cpu_default@,$target_cpu_default,;t t
17570 s,@GMPLIBS@,$GMPLIBS,;t t
17571 s,@GMPINC@,$GMPINC,;t t
17572 s,@LIBOBJS@,$LIBOBJS,;t t
17573 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17574 /@language_hooks@/r $language_hooks
17575 s,@language_hooks@,,;t t
17576 CEOF
17577
17578 _ACEOF
17579
17580   cat >>$CONFIG_STATUS <<\_ACEOF
17581   # Split the substitutions into bite-sized pieces for seds with
17582   # small command number limits, like on Digital OSF/1 and HP-UX.
17583   ac_max_sed_lines=48
17584   ac_sed_frag=1 # Number of current file.
17585   ac_beg=1 # First line for current file.
17586   ac_end=$ac_max_sed_lines # Line after last line for current file.
17587   ac_more_lines=:
17588   ac_sed_cmds=
17589   while $ac_more_lines; do
17590     if test $ac_beg -gt 1; then
17591       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17592     else
17593       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17594     fi
17595     if test ! -s $tmp/subs.frag; then
17596       ac_more_lines=false
17597     else
17598       # The purpose of the label and of the branching condition is to
17599       # speed up the sed processing (if there are no `@' at all, there
17600       # is no need to browse any of the substitutions).
17601       # These are the two extra sed commands mentioned above.
17602       (echo ':t
17603   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17604       if test -z "$ac_sed_cmds"; then
17605         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17606       else
17607         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17608       fi
17609       ac_sed_frag=`expr $ac_sed_frag + 1`
17610       ac_beg=$ac_end
17611       ac_end=`expr $ac_end + $ac_max_sed_lines`
17612     fi
17613   done
17614   if test -z "$ac_sed_cmds"; then
17615     ac_sed_cmds=cat
17616   fi
17617 fi # test -n "$CONFIG_FILES"
17618
17619 _ACEOF
17620 cat >>$CONFIG_STATUS <<\_ACEOF
17621 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17622   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17623   case $ac_file in
17624   - | *:- | *:-:* ) # input from stdin
17625         cat >$tmp/stdin
17626         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17627         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17628   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17629         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17630   * )   ac_file_in=$ac_file.in ;;
17631   esac
17632
17633   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17634   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17636          X"$ac_file" : 'X\(//\)[^/]' \| \
17637          X"$ac_file" : 'X\(//\)$' \| \
17638          X"$ac_file" : 'X\(/\)' \| \
17639          .     : '\(.\)' 2>/dev/null ||
17640 echo X"$ac_file" |
17641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17643           /^X\(\/\/\)$/{ s//\1/; q; }
17644           /^X\(\/\).*/{ s//\1/; q; }
17645           s/.*/./; q'`
17646   { if $as_mkdir_p; then
17647     mkdir -p "$ac_dir"
17648   else
17649     as_dir="$ac_dir"
17650     as_dirs=
17651     while test ! -d "$as_dir"; do
17652       as_dirs="$as_dir $as_dirs"
17653       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17655          X"$as_dir" : 'X\(//\)[^/]' \| \
17656          X"$as_dir" : 'X\(//\)$' \| \
17657          X"$as_dir" : 'X\(/\)' \| \
17658          .     : '\(.\)' 2>/dev/null ||
17659 echo X"$as_dir" |
17660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17661           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17662           /^X\(\/\/\)$/{ s//\1/; q; }
17663           /^X\(\/\).*/{ s//\1/; q; }
17664           s/.*/./; q'`
17665     done
17666     test ! -n "$as_dirs" || mkdir $as_dirs
17667   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17669    { (exit 1); exit 1; }; }; }
17670
17671   ac_builddir=.
17672
17673 if test "$ac_dir" != .; then
17674   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17675   # A "../" for each directory in $ac_dir_suffix.
17676   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17677 else
17678   ac_dir_suffix= ac_top_builddir=
17679 fi
17680
17681 case $srcdir in
17682   .)  # No --srcdir option.  We are building in place.
17683     ac_srcdir=.
17684     if test -z "$ac_top_builddir"; then
17685        ac_top_srcdir=.
17686     else
17687        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17688     fi ;;
17689   [\\/]* | ?:[\\/]* )  # Absolute path.
17690     ac_srcdir=$srcdir$ac_dir_suffix;
17691     ac_top_srcdir=$srcdir ;;
17692   *) # Relative path.
17693     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17694     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17695 esac
17696
17697 # Do not use `cd foo && pwd` to compute absolute paths, because
17698 # the directories may not exist.
17699 case `pwd` in
17700 .) ac_abs_builddir="$ac_dir";;
17701 *)
17702   case "$ac_dir" in
17703   .) ac_abs_builddir=`pwd`;;
17704   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17705   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17706   esac;;
17707 esac
17708 case $ac_abs_builddir in
17709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17710 *)
17711   case ${ac_top_builddir}. in
17712   .) ac_abs_top_builddir=$ac_abs_builddir;;
17713   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17714   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17715   esac;;
17716 esac
17717 case $ac_abs_builddir in
17718 .) ac_abs_srcdir=$ac_srcdir;;
17719 *)
17720   case $ac_srcdir in
17721   .) ac_abs_srcdir=$ac_abs_builddir;;
17722   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17723   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17724   esac;;
17725 esac
17726 case $ac_abs_builddir in
17727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17728 *)
17729   case $ac_top_srcdir in
17730   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17731   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17732   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17733   esac;;
17734 esac
17735
17736
17737
17738   if test x"$ac_file" != x-; then
17739     { echo "$as_me:$LINENO: creating $ac_file" >&5
17740 echo "$as_me: creating $ac_file" >&6;}
17741     rm -f "$ac_file"
17742   fi
17743   # Let's still pretend it is `configure' which instantiates (i.e., don't
17744   # use $as_me), people would be surprised to read:
17745   #    /* config.h.  Generated by config.status.  */
17746   if test x"$ac_file" = x-; then
17747     configure_input=
17748   else
17749     configure_input="$ac_file.  "
17750   fi
17751   configure_input=$configure_input"Generated from `echo $ac_file_in |
17752                                      sed 's,.*/,,'` by configure."
17753
17754   # First look for the input files in the build tree, otherwise in the
17755   # src tree.
17756   ac_file_inputs=`IFS=:
17757     for f in $ac_file_in; do
17758       case $f in
17759       -) echo $tmp/stdin ;;
17760       [\\/$]*)
17761          # Absolute (can't be DOS-style, as IFS=:)
17762          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17763 echo "$as_me: error: cannot find input file: $f" >&2;}
17764    { (exit 1); exit 1; }; }
17765          echo "$f";;
17766       *) # Relative
17767          if test -f "$f"; then
17768            # Build tree
17769            echo "$f"
17770          elif test -f "$srcdir/$f"; then
17771            # Source tree
17772            echo "$srcdir/$f"
17773          else
17774            # /dev/null tree
17775            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17776 echo "$as_me: error: cannot find input file: $f" >&2;}
17777    { (exit 1); exit 1; }; }
17778          fi;;
17779       esac
17780     done` || { (exit 1); exit 1; }
17781 _ACEOF
17782 cat >>$CONFIG_STATUS <<_ACEOF
17783   sed "$ac_vpsub
17784 $extrasub
17785 _ACEOF
17786 cat >>$CONFIG_STATUS <<\_ACEOF
17787 :t
17788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17789 s,@configure_input@,$configure_input,;t t
17790 s,@srcdir@,$ac_srcdir,;t t
17791 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17792 s,@top_srcdir@,$ac_top_srcdir,;t t
17793 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17794 s,@builddir@,$ac_builddir,;t t
17795 s,@abs_builddir@,$ac_abs_builddir,;t t
17796 s,@top_builddir@,$ac_top_builddir,;t t
17797 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17798 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17799   rm -f $tmp/stdin
17800   if test x"$ac_file" != x-; then
17801     mv $tmp/out $ac_file
17802   else
17803     cat $tmp/out
17804     rm -f $tmp/out
17805   fi
17806
17807 done
17808 _ACEOF
17809 cat >>$CONFIG_STATUS <<\_ACEOF
17810
17811 #
17812 # CONFIG_HEADER section.
17813 #
17814
17815 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17816 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17817 #
17818 # ac_d sets the value in "#define NAME VALUE" lines.
17819 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17820 ac_dB='[         ].*$,\1#\2'
17821 ac_dC=' '
17822 ac_dD=',;t'
17823 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17824 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17825 ac_uB='$,\1#\2define\3'
17826 ac_uC=' '
17827 ac_uD=',;t'
17828
17829 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17830   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17831   case $ac_file in
17832   - | *:- | *:-:* ) # input from stdin
17833         cat >$tmp/stdin
17834         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17835         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17836   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17837         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17838   * )   ac_file_in=$ac_file.in ;;
17839   esac
17840
17841   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17842 echo "$as_me: creating $ac_file" >&6;}
17843
17844   # First look for the input files in the build tree, otherwise in the
17845   # src tree.
17846   ac_file_inputs=`IFS=:
17847     for f in $ac_file_in; do
17848       case $f in
17849       -) echo $tmp/stdin ;;
17850       [\\/$]*)
17851          # Absolute (can't be DOS-style, as IFS=:)
17852          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17853 echo "$as_me: error: cannot find input file: $f" >&2;}
17854    { (exit 1); exit 1; }; }
17855          # Do quote $f, to prevent DOS paths from being IFS'd.
17856          echo "$f";;
17857       *) # Relative
17858          if test -f "$f"; then
17859            # Build tree
17860            echo "$f"
17861          elif test -f "$srcdir/$f"; then
17862            # Source tree
17863            echo "$srcdir/$f"
17864          else
17865            # /dev/null tree
17866            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17867 echo "$as_me: error: cannot find input file: $f" >&2;}
17868    { (exit 1); exit 1; }; }
17869          fi;;
17870       esac
17871     done` || { (exit 1); exit 1; }
17872   # Remove the trailing spaces.
17873   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17874
17875 _ACEOF
17876
17877 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17878 # `conftest.undefs', that substitutes the proper values into
17879 # config.h.in to produce config.h.  The first handles `#define'
17880 # templates, and the second `#undef' templates.
17881 # And first: Protect against being on the right side of a sed subst in
17882 # config.status.  Protect against being in an unquoted here document
17883 # in config.status.
17884 rm -f conftest.defines conftest.undefs
17885 # Using a here document instead of a string reduces the quoting nightmare.
17886 # Putting comments in sed scripts is not portable.
17887 #
17888 # `end' is used to avoid that the second main sed command (meant for
17889 # 0-ary CPP macros) applies to n-ary macro definitions.
17890 # See the Autoconf documentation for `clear'.
17891 cat >confdef2sed.sed <<\_ACEOF
17892 s/[\\&,]/\\&/g
17893 s,[\\$`],\\&,g
17894 t clear
17895 : clear
17896 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17897 t end
17898 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17899 : end
17900 _ACEOF
17901 # If some macros were called several times there might be several times
17902 # the same #defines, which is useless.  Nevertheless, we may not want to
17903 # sort them, since we want the *last* AC-DEFINE to be honored.
17904 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17905 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17906 rm -f confdef2sed.sed
17907
17908 # This sed command replaces #undef with comments.  This is necessary, for
17909 # example, in the case of _POSIX_SOURCE, which is predefined and required
17910 # on some systems where configure will not decide to define it.
17911 cat >>conftest.undefs <<\_ACEOF
17912 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17913 _ACEOF
17914
17915 # Break up conftest.defines because some shells have a limit on the size
17916 # of here documents, and old seds have small limits too (100 cmds).
17917 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17918 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17919 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17920 echo '  :' >>$CONFIG_STATUS
17921 rm -f conftest.tail
17922 while grep . conftest.defines >/dev/null
17923 do
17924   # Write a limited-size here document to $tmp/defines.sed.
17925   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17926   # Speed up: don't consider the non `#define' lines.
17927   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17928   # Work around the forget-to-reset-the-flag bug.
17929   echo 't clr' >>$CONFIG_STATUS
17930   echo ': clr' >>$CONFIG_STATUS
17931   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17932   echo 'CEOF
17933   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17934   rm -f $tmp/in
17935   mv $tmp/out $tmp/in
17936 ' >>$CONFIG_STATUS
17937   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17938   rm -f conftest.defines
17939   mv conftest.tail conftest.defines
17940 done
17941 rm -f conftest.defines
17942 echo '  fi # grep' >>$CONFIG_STATUS
17943 echo >>$CONFIG_STATUS
17944
17945 # Break up conftest.undefs because some shells have a limit on the size
17946 # of here documents, and old seds have small limits too (100 cmds).
17947 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17948 rm -f conftest.tail
17949 while grep . conftest.undefs >/dev/null
17950 do
17951   # Write a limited-size here document to $tmp/undefs.sed.
17952   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17953   # Speed up: don't consider the non `#undef'
17954   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17955   # Work around the forget-to-reset-the-flag bug.
17956   echo 't clr' >>$CONFIG_STATUS
17957   echo ': clr' >>$CONFIG_STATUS
17958   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17959   echo 'CEOF
17960   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17961   rm -f $tmp/in
17962   mv $tmp/out $tmp/in
17963 ' >>$CONFIG_STATUS
17964   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17965   rm -f conftest.undefs
17966   mv conftest.tail conftest.undefs
17967 done
17968 rm -f conftest.undefs
17969
17970 cat >>$CONFIG_STATUS <<\_ACEOF
17971   # Let's still pretend it is `configure' which instantiates (i.e., don't
17972   # use $as_me), people would be surprised to read:
17973   #    /* config.h.  Generated by config.status.  */
17974   if test x"$ac_file" = x-; then
17975     echo "/* Generated by configure.  */" >$tmp/config.h
17976   else
17977     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17978   fi
17979   cat $tmp/in >>$tmp/config.h
17980   rm -f $tmp/in
17981   if test x"$ac_file" != x-; then
17982     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17983       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17984 echo "$as_me: $ac_file is unchanged" >&6;}
17985     else
17986       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17988          X"$ac_file" : 'X\(//\)[^/]' \| \
17989          X"$ac_file" : 'X\(//\)$' \| \
17990          X"$ac_file" : 'X\(/\)' \| \
17991          .     : '\(.\)' 2>/dev/null ||
17992 echo X"$ac_file" |
17993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17995           /^X\(\/\/\)$/{ s//\1/; q; }
17996           /^X\(\/\).*/{ s//\1/; q; }
17997           s/.*/./; q'`
17998       { if $as_mkdir_p; then
17999     mkdir -p "$ac_dir"
18000   else
18001     as_dir="$ac_dir"
18002     as_dirs=
18003     while test ! -d "$as_dir"; do
18004       as_dirs="$as_dir $as_dirs"
18005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18007          X"$as_dir" : 'X\(//\)[^/]' \| \
18008          X"$as_dir" : 'X\(//\)$' \| \
18009          X"$as_dir" : 'X\(/\)' \| \
18010          .     : '\(.\)' 2>/dev/null ||
18011 echo X"$as_dir" |
18012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18014           /^X\(\/\/\)$/{ s//\1/; q; }
18015           /^X\(\/\).*/{ s//\1/; q; }
18016           s/.*/./; q'`
18017     done
18018     test ! -n "$as_dirs" || mkdir $as_dirs
18019   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18021    { (exit 1); exit 1; }; }; }
18022
18023       rm -f $ac_file
18024       mv $tmp/config.h $ac_file
18025     fi
18026   else
18027     cat $tmp/config.h
18028     rm -f $tmp/config.h
18029   fi
18030 done
18031 _ACEOF
18032 cat >>$CONFIG_STATUS <<\_ACEOF
18033
18034 #
18035 # CONFIG_COMMANDS section.
18036 #
18037 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18038   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18039   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18040   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18041 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18042          X"$ac_dest" : 'X\(//\)[^/]' \| \
18043          X"$ac_dest" : 'X\(//\)$' \| \
18044          X"$ac_dest" : 'X\(/\)' \| \
18045          .     : '\(.\)' 2>/dev/null ||
18046 echo X"$ac_dest" |
18047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18048           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18049           /^X\(\/\/\)$/{ s//\1/; q; }
18050           /^X\(\/\).*/{ s//\1/; q; }
18051           s/.*/./; q'`
18052   { if $as_mkdir_p; then
18053     mkdir -p "$ac_dir"
18054   else
18055     as_dir="$ac_dir"
18056     as_dirs=
18057     while test ! -d "$as_dir"; do
18058       as_dirs="$as_dir $as_dirs"
18059       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18061          X"$as_dir" : 'X\(//\)[^/]' \| \
18062          X"$as_dir" : 'X\(//\)$' \| \
18063          X"$as_dir" : 'X\(/\)' \| \
18064          .     : '\(.\)' 2>/dev/null ||
18065 echo X"$as_dir" |
18066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18068           /^X\(\/\/\)$/{ s//\1/; q; }
18069           /^X\(\/\).*/{ s//\1/; q; }
18070           s/.*/./; q'`
18071     done
18072     test ! -n "$as_dirs" || mkdir $as_dirs
18073   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18075    { (exit 1); exit 1; }; }; }
18076
18077   ac_builddir=.
18078
18079 if test "$ac_dir" != .; then
18080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18081   # A "../" for each directory in $ac_dir_suffix.
18082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18083 else
18084   ac_dir_suffix= ac_top_builddir=
18085 fi
18086
18087 case $srcdir in
18088   .)  # No --srcdir option.  We are building in place.
18089     ac_srcdir=.
18090     if test -z "$ac_top_builddir"; then
18091        ac_top_srcdir=.
18092     else
18093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18094     fi ;;
18095   [\\/]* | ?:[\\/]* )  # Absolute path.
18096     ac_srcdir=$srcdir$ac_dir_suffix;
18097     ac_top_srcdir=$srcdir ;;
18098   *) # Relative path.
18099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18101 esac
18102
18103 # Do not use `cd foo && pwd` to compute absolute paths, because
18104 # the directories may not exist.
18105 case `pwd` in
18106 .) ac_abs_builddir="$ac_dir";;
18107 *)
18108   case "$ac_dir" in
18109   .) ac_abs_builddir=`pwd`;;
18110   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18111   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18112   esac;;
18113 esac
18114 case $ac_abs_builddir in
18115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18116 *)
18117   case ${ac_top_builddir}. in
18118   .) ac_abs_top_builddir=$ac_abs_builddir;;
18119   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18120   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18121   esac;;
18122 esac
18123 case $ac_abs_builddir in
18124 .) ac_abs_srcdir=$ac_srcdir;;
18125 *)
18126   case $ac_srcdir in
18127   .) ac_abs_srcdir=$ac_abs_builddir;;
18128   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18129   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18130   esac;;
18131 esac
18132 case $ac_abs_builddir in
18133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18134 *)
18135   case $ac_top_srcdir in
18136   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18137   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18138   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18139   esac;;
18140 esac
18141
18142
18143   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18144 echo "$as_me: executing $ac_dest commands" >&6;}
18145   case $ac_dest in
18146     default )
18147 case ${CONFIG_HEADERS} in
18148   *auto-host.h:config.in*)
18149   echo > cstamp-h ;;
18150 esac
18151 # Make sure all the subdirs exist.
18152 for d in $subdirs doc build
18153 do
18154     test -d $d || mkdir $d
18155 done
18156 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
18157 # bootstrapping and the installation procedure can still use
18158 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
18159 # FLAGS_TO_PASS has been modified to solve the problem there.
18160 # This is virtually a duplicate of what happens in configure.lang; we do
18161 # an extra check to make sure this only happens if ln -s can be used.
18162 case "$LN_S" in
18163   *-s*)
18164     for d in ${subdirs} ; do
18165         STARTDIR=`${PWDCMD-pwd}`
18166         cd $d
18167         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
18168         do
18169                 rm -f $t
18170                 $LN_S ../$t $t 2>/dev/null
18171         done
18172         cd $STARTDIR
18173     done
18174   ;;
18175 esac
18176  ;;
18177   esac
18178 done
18179 _ACEOF
18180
18181 cat >>$CONFIG_STATUS <<\_ACEOF
18182
18183 { (exit 0); exit 0; }
18184 _ACEOF
18185 chmod +x $CONFIG_STATUS
18186 ac_clean_files=$ac_clean_files_save
18187
18188
18189 # configure is writing to config.log, and then calls config.status.
18190 # config.status does its own redirection, appending to config.log.
18191 # Unfortunately, on DOS this fails, as config.log is still kept open
18192 # by configure, so config.status won't be able to write to it; its
18193 # output is simply discarded.  So we exec the FD to /dev/null,
18194 # effectively closing config.log, so it can be properly (re)opened and
18195 # appended to by config.status.  When coming back to configure, we
18196 # need to make the FD available again.
18197 if test "$no_create" != yes; then
18198   ac_cs_success=:
18199   ac_config_status_args=
18200   test "$silent" = yes &&
18201     ac_config_status_args="$ac_config_status_args --quiet"
18202   exec 5>/dev/null
18203   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18204   exec 5>>config.log
18205   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18206   # would make configure fail if this is the last instruction.
18207   $ac_cs_success || { (exit 1); exit 1; }
18208 fi
18209