OSDN Git Service

2005-01-01 Daniel Berlin <dberlin@dberlin.org>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump ORIGINAL_OBJDUMP_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: yes,no,all,none,release.
871                           Flags are: assert,fold,gc,gcac,misc,
872                           rtlflag,rtl,runtime,tree,valgrind.
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-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-objc-gc        enable the use of Boehm's garbage collector with
887                           the GNU Objective-C runtime
888   --disable-shared        don't provide a shared libgcc
889   --enable-intermodule    build the compiler in one step
890   --enable-languages=LIST specify which front-ends to build
891   --disable-rpath         do not hardcode runtime library paths
892   --enable-initfini-array       use .init_array/.fini_array sections
893   --enable-sjlj-exceptions
894                           arrange to use setjmp/longjmp exception handling
895   --enable-secureplt      enable -msecure-plt by default for PowerPC
896   --disable-win32-registry
897                           disable lookup of installation paths in the
898                           Registry on Windows hosts
899   --enable-win32-registry enable registry lookup (default)
900   --enable-win32-registry=KEY
901                           use KEY instead of GCC version as the last portion
902                           of the registry key
903   --enable-maintainer-mode
904                           enable make rules and dependencies not useful
905                           (and sometimes confusing) to the casual installer
906   --enable-version-specific-runtime-libs
907                           specify that runtime libraries should be
908                           installed in a compiler-specific directory
909
910 Optional Packages:
911   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
912   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
913   --with-local-prefix=DIR specifies directory to put local include
914   --with-gxx-include-dir=DIR
915                           specifies directory to put g++ header files
916   --with-cpp-install-dir=DIR
917                           install the user visible C preprocessor in DIR
918                           (relative to PREFIX) as well as PREFIX/bin
919   --with-gnu-ld           arrange to work with GNU ld.
920   --with-ld               arrange to use the specified ld (full pathname)
921   --with-demangler-in-ld  try to use demangler in GNU ld.
922   --with-gnu-as           arrange to work with GNU as
923   --with-as               arrange to use the specified as (full pathname)
924   --with-stabs            arrange to use stabs instead of host debug format
925   --with-dwarf2           force the default debug format to be DWARF 2
926   --with-build-sysroot=sysroot
927                           use sysroot as the system root during the build
928   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
929   --with-gnu-ld           assume the C compiler uses GNU ld default=no
930   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
931   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
932   --with-system-libunwind use installed libunwind
933   --with-gc={page,zone}   choose the garbage collection mechanism to use
934                           with the compiler
935   --with-system-zlib      use installed libz
936   --with-slibdir=DIR      shared libraries in DIR LIBDIR
937
938 Some influential environment variables:
939   CC          C compiler command
940   CFLAGS      C compiler flags
941   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
942               nonstandard directory <lib dir>
943   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
944               headers in a nonstandard directory <include dir>
945   CPP         C preprocessor
946   GMPLIBS     How to link GMP
947   GMPINC      How to find GMP include files
948
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
951
952 _ACEOF
953 fi
954
955 if test "$ac_init_help" = "recursive"; then
956   # If there are subdirs, report their specific --help.
957   ac_popdir=`pwd`
958   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959     test -d $ac_dir || continue
960     ac_builddir=.
961
962 if test "$ac_dir" != .; then
963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964   # A "../" for each directory in $ac_dir_suffix.
965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966 else
967   ac_dir_suffix= ac_top_builddir=
968 fi
969
970 case $srcdir in
971   .)  # No --srcdir option.  We are building in place.
972     ac_srcdir=.
973     if test -z "$ac_top_builddir"; then
974        ac_top_srcdir=.
975     else
976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977     fi ;;
978   [\\/]* | ?:[\\/]* )  # Absolute path.
979     ac_srcdir=$srcdir$ac_dir_suffix;
980     ac_top_srcdir=$srcdir ;;
981   *) # Relative path.
982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 esac
985
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
988 case `pwd` in
989 .) ac_abs_builddir="$ac_dir";;
990 *)
991   case "$ac_dir" in
992   .) ac_abs_builddir=`pwd`;;
993   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994   *) ac_abs_builddir=`pwd`/"$ac_dir";;
995   esac;;
996 esac
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *)
1000   case ${ac_top_builddir}. in
1001   .) ac_abs_top_builddir=$ac_abs_builddir;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1008 *)
1009   case $ac_srcdir in
1010   .) ac_abs_srcdir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *)
1018   case $ac_top_srcdir in
1019   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022   esac;;
1023 esac
1024
1025     cd $ac_dir
1026     # Check for guested configure; otherwise get Cygnus style configure.
1027     if test -f $ac_srcdir/configure.gnu; then
1028       echo
1029       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1030     elif test -f $ac_srcdir/configure; then
1031       echo
1032       $SHELL $ac_srcdir/configure  --help=recursive
1033     elif test -f $ac_srcdir/configure.ac ||
1034            test -f $ac_srcdir/configure.in; then
1035       echo
1036       $ac_configure --help
1037     else
1038       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039     fi
1040     cd "$ac_popdir"
1041   done
1042 fi
1043
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1046   cat <<\_ACEOF
1047
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1051 _ACEOF
1052   exit 0
1053 fi
1054 exec 5>config.log
1055 cat >&5 <<_ACEOF
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1058
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59.  Invocation command line was
1061
1062   $ $0 $@
1063
1064 _ACEOF
1065 {
1066 cat <<_ASUNAME
1067 ## --------- ##
1068 ## Platform. ##
1069 ## --------- ##
1070
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1076
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1079
1080 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1081 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1084 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1085 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1086 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1087
1088 _ASUNAME
1089
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 for as_dir in $PATH
1092 do
1093   IFS=$as_save_IFS
1094   test -z "$as_dir" && as_dir=.
1095   echo "PATH: $as_dir"
1096 done
1097
1098 } >&5
1099
1100 cat >&5 <<_ACEOF
1101
1102
1103 ## ----------- ##
1104 ## Core tests. ##
1105 ## ----------- ##
1106
1107 _ACEOF
1108
1109
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_configure_args=
1116 ac_configure_args0=
1117 ac_configure_args1=
1118 ac_sep=
1119 ac_must_keep_next=false
1120 for ac_pass in 1 2
1121 do
1122   for ac_arg
1123   do
1124     case $ac_arg in
1125     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127     | -silent | --silent | --silen | --sile | --sil)
1128       continue ;;
1129     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1131     esac
1132     case $ac_pass in
1133     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1134     2)
1135       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136       if test $ac_must_keep_next = true; then
1137         ac_must_keep_next=false # Got value, back to normal.
1138       else
1139         case $ac_arg in
1140           *=* | --config-cache | -C | -disable-* | --disable-* \
1141           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143           | -with-* | --with-* | -without-* | --without-* | --x)
1144             case "$ac_configure_args0 " in
1145               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1146             esac
1147             ;;
1148           -* ) ac_must_keep_next=true ;;
1149         esac
1150       fi
1151       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152       # Get rid of the leading space.
1153       ac_sep=" "
1154       ;;
1155     esac
1156   done
1157 done
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1160
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log.  We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167   # Save into config.log some information that might help in debugging.
1168   {
1169     echo
1170
1171     cat <<\_ASBOX
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1175 _ASBOX
1176     echo
1177     # The following way of writing the cache mishandles newlines in values,
1178 {
1179   (set) 2>&1 |
1180     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1181     *ac_space=\ *)
1182       sed -n \
1183         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185       ;;
1186     *)
1187       sed -n \
1188         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1189       ;;
1190     esac;
1191 }
1192     echo
1193
1194     cat <<\_ASBOX
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1198 _ASBOX
1199     echo
1200     for ac_var in $ac_subst_vars
1201     do
1202       eval ac_val=$`echo $ac_var`
1203       echo "$ac_var='"'"'$ac_val'"'"'"
1204     done | sort
1205     echo
1206
1207     if test -n "$ac_subst_files"; then
1208       cat <<\_ASBOX
1209 ## ------------- ##
1210 ## Output files. ##
1211 ## ------------- ##
1212 _ASBOX
1213       echo
1214       for ac_var in $ac_subst_files
1215       do
1216         eval ac_val=$`echo $ac_var`
1217         echo "$ac_var='"'"'$ac_val'"'"'"
1218       done | sort
1219       echo
1220     fi
1221
1222     if test -s confdefs.h; then
1223       cat <<\_ASBOX
1224 ## ----------- ##
1225 ## confdefs.h. ##
1226 ## ----------- ##
1227 _ASBOX
1228       echo
1229       sed "/^$/d" confdefs.h | sort
1230       echo
1231     fi
1232     test "$ac_signal" != 0 &&
1233       echo "$as_me: caught signal $ac_signal"
1234     echo "$as_me: exit $exit_status"
1235   } >&5
1236   rm -f core *.core &&
1237   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1238     exit $exit_status
1239      ' 0
1240 for ac_signal in 1 2 13 15; do
1241   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 done
1243 ac_signal=0
1244
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1248 echo >confdefs.h
1249
1250 # Predefined preprocessor variables.
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 _ACEOF
1275
1276
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280   if test "x$prefix" != xNONE; then
1281     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1282   else
1283     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284   fi
1285 fi
1286 for ac_site_file in $CONFIG_SITE; do
1287   if test -r "$ac_site_file"; then
1288     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290     sed 's/^/| /' "$ac_site_file" >&5
1291     . "$ac_site_file"
1292   fi
1293 done
1294
1295 if test -r "$cache_file"; then
1296   # Some versions of bash will fail to source /dev/null (special
1297   # files actually), so we avoid doing that.
1298   if test -f "$cache_file"; then
1299     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1301     case $cache_file in
1302       [\\/]* | ?:[\\/]* ) . $cache_file;;
1303       *)                      . ./$cache_file;;
1304     esac
1305   fi
1306 else
1307   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1309   >$cache_file
1310 fi
1311
1312 # Check that the precious variables saved in the cache have kept the same
1313 # value.
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318   eval ac_new_set=\$ac_env_${ac_var}_set
1319   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320   eval ac_new_val="\$ac_env_${ac_var}_value"
1321   case $ac_old_set,$ac_new_set in
1322     set,)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,set)
1327       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329       ac_cache_corrupted=: ;;
1330     ,);;
1331     *)
1332       if test "x$ac_old_val" != "x$ac_new_val"; then
1333         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1336 echo "$as_me:   former value:  $ac_old_val" >&2;}
1337         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1338 echo "$as_me:   current value: $ac_new_val" >&2;}
1339         ac_cache_corrupted=:
1340       fi;;
1341   esac
1342   # Pass precious variables to config.status.
1343   if test "$ac_new_set" = set; then
1344     case $ac_new_val in
1345     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347     *) ac_arg=$ac_var=$ac_new_val ;;
1348     esac
1349     case " $ac_configure_args " in
1350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1351       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352     esac
1353   fi
1354 done
1355 if $ac_cache_corrupted; then
1356   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362
1363 ac_ext=c
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1389
1390
1391 gcc_version=`cat $srcdir/BASE-VER`
1392
1393 # Determine the host, build, and target systems
1394 ac_aux_dir=
1395 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1396   if test -f $ac_dir/install-sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install-sh -c"
1399     break
1400   elif test -f $ac_dir/install.sh; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/install.sh -c"
1403     break
1404   elif test -f $ac_dir/shtool; then
1405     ac_aux_dir=$ac_dir
1406     ac_install_sh="$ac_aux_dir/shtool install -c"
1407     break
1408   fi
1409 done
1410 if test -z "$ac_aux_dir"; then
1411   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1412 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1413    { (exit 1); exit 1; }; }
1414 fi
1415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1417 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1418
1419 # Make sure we can run config.sub.
1420 $ac_config_sub sun4 >/dev/null 2>&1 ||
1421   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1422 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1423    { (exit 1); exit 1; }; }
1424
1425 echo "$as_me:$LINENO: checking build system type" >&5
1426 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1427 if test "${ac_cv_build+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   ac_cv_build_alias=$build_alias
1431 test -z "$ac_cv_build_alias" &&
1432   ac_cv_build_alias=`$ac_config_guess`
1433 test -z "$ac_cv_build_alias" &&
1434   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1435 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1436    { (exit 1); exit 1; }; }
1437 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1438   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1440    { (exit 1); exit 1; }; }
1441
1442 fi
1443 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1444 echo "${ECHO_T}$ac_cv_build" >&6
1445 build=$ac_cv_build
1446 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449
1450
1451 echo "$as_me:$LINENO: checking host system type" >&5
1452 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1453 if test "${ac_cv_host+set}" = set; then
1454   echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456   ac_cv_host_alias=$host_alias
1457 test -z "$ac_cv_host_alias" &&
1458   ac_cv_host_alias=$ac_cv_build_alias
1459 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1460   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1462    { (exit 1); exit 1; }; }
1463
1464 fi
1465 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1466 echo "${ECHO_T}$ac_cv_host" >&6
1467 host=$ac_cv_host
1468 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1469 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1470 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1471
1472
1473 echo "$as_me:$LINENO: checking target system type" >&5
1474 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1475 if test "${ac_cv_target+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   ac_cv_target_alias=$target_alias
1479 test "x$ac_cv_target_alias" = "x" &&
1480   ac_cv_target_alias=$ac_cv_host_alias
1481 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1482   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1483 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1484    { (exit 1); exit 1; }; }
1485
1486 fi
1487 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1488 echo "${ECHO_T}$ac_cv_target" >&6
1489 target=$ac_cv_target
1490 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1491 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1492 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1493
1494
1495 # The aliases save the names the user supplied, while $host etc.
1496 # will get canonicalized.
1497 test -n "$target_alias" &&
1498   test "$program_prefix$program_suffix$program_transform_name" = \
1499     NONENONEs,x,x, &&
1500   program_prefix=${target_alias}-
1501
1502 # Determine the noncanonical target name, for directory use.
1503  case ${build_alias} in
1504   "") build_noncanonical=${build} ;;
1505   *) build_noncanonical=${build_alias} ;;
1506 esac
1507
1508  case ${host_alias} in
1509   "") host_noncanonical=${build_noncanonical} ;;
1510   *) host_noncanonical=${host_alias} ;;
1511 esac
1512
1513  case ${target_alias} in
1514   "") target_noncanonical=${host_noncanonical} ;;
1515   *) target_noncanonical=${target_alias} ;;
1516 esac
1517
1518
1519
1520
1521 # Determine the target- and build-specific subdirectories
1522   # Prefix 'build-' so this never conflicts with target_subdir.
1523 build_subdir="build-${build_noncanonical}"
1524 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1525 if ( test $srcdir = . && test -d gcc ) \
1526    || test -d $srcdir/../host-${host_noncanonical}; then
1527   host_subdir="host-${host_noncanonical}"
1528 else
1529   host_subdir=.
1530 fi
1531 # No prefix.
1532 target_subdir=${target_noncanonical}
1533
1534
1535 # Set program_transform_name
1536 test "$program_prefix" != NONE &&
1537   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1538 # Use a double $ so make ignores it.
1539 test "$program_suffix" != NONE &&
1540   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1541 # Double any \ or $.  echo might interpret backslashes.
1542 # By default was `s,x,x', remove it if useless.
1543 cat <<\_ACEOF >conftest.sed
1544 s/[\\$]/&&/g;s/;s,x,x,$//
1545 _ACEOF
1546 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1547 rm conftest.sed
1548
1549
1550 # Check for bogus environment variables.
1551 # Test if LIBRARY_PATH contains the notation for the current directory
1552 # since this would lead to problems installing/building glibc.
1553 # LIBRARY_PATH contains the current directory if one of the following
1554 # is true:
1555 # - one of the terminals (":" and ";") is the first or last sign
1556 # - two terminals occur directly after each other
1557 # - the path contains an element with a dot in it
1558 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1559 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1560 case ${LIBRARY_PATH} in
1561   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1562     library_path_setting="contains current directory"
1563     ;;
1564   *)
1565     library_path_setting="ok"
1566     ;;
1567 esac
1568 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1569 echo "${ECHO_T}$library_path_setting" >&6
1570 if test "$library_path_setting" != "ok"; then
1571 { { echo "$as_me:$LINENO: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&5
1575 echo "$as_me: error:
1576 *** LIBRARY_PATH shouldn't contain the current directory when
1577 *** building gcc. Please change the environment variable
1578 *** and run configure again." >&2;}
1579    { (exit 1); exit 1; }; }
1580 fi
1581
1582 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1583 # since this would lead to problems installing/building glibc.
1584 # GCC_EXEC_PREFIX contains the current directory if one of the following
1585 # is true:
1586 # - one of the terminals (":" and ";") is the first or last sign
1587 # - two terminals occur directly after each other
1588 # - the path contains an element with a dot in it
1589 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1590 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1591 case ${GCC_EXEC_PREFIX} in
1592   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1593     gcc_exec_prefix_setting="contains current directory"
1594     ;;
1595   *)
1596     gcc_exec_prefix_setting="ok"
1597     ;;
1598 esac
1599 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1600 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1601 if test "$gcc_exec_prefix_setting" != "ok"; then
1602 { { echo "$as_me:$LINENO: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&5
1606 echo "$as_me: error:
1607 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1608 *** building gcc. Please change the environment variable
1609 *** and run configure again." >&2;}
1610    { (exit 1); exit 1; }; }
1611 fi
1612
1613 # -----------
1614 # Directories
1615 # -----------
1616
1617 # Specify the local prefix
1618 local_prefix=
1619
1620 # Check whether --with-local-prefix or --without-local-prefix was given.
1621 if test "${with_local_prefix+set}" = set; then
1622   withval="$with_local_prefix"
1623   case "${withval}" in
1624 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1625 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1626    { (exit 1); exit 1; }; } ;;
1627 no)     ;;
1628 *)      local_prefix=$with_local_prefix ;;
1629 esac
1630 fi;
1631
1632 # Default local prefix if it is empty
1633 if test x$local_prefix = x; then
1634         local_prefix=/usr/local
1635 fi
1636
1637 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1638 # passed in by the toplevel make and thus we'd get different behavior
1639 # depending on where we built the sources.
1640 gcc_gxx_include_dir=
1641 # Specify the g++ header file directory
1642
1643 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1644 if test "${with_gxx_include_dir+set}" = set; then
1645   withval="$with_gxx_include_dir"
1646   case "${withval}" in
1647 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1648 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1649    { (exit 1); exit 1; }; } ;;
1650 no)     ;;
1651 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1652 esac
1653 fi;
1654
1655 if test x${gcc_gxx_include_dir} = x; then
1656   if test x${enable_version_specific_runtime_libs} = xyes; then
1657     gcc_gxx_include_dir='${libsubdir}/include/c++'
1658   else
1659     libstdcxx_incdir='c++/$(version)'
1660     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1661   fi
1662 fi
1663
1664
1665 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1666 if test "${with_cpp_install_dir+set}" = set; then
1667   withval="$with_cpp_install_dir"
1668   if test x$withval = xyes; then
1669   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1670 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1671    { (exit 1); exit 1; }; }
1672 elif test x$withval != xno; then
1673   cpp_install_dir=$withval
1674 fi
1675 fi;
1676
1677 # We would like to our source tree to be readonly.  However when releases or
1678 # pre-releases are generated, the flex/bison generated files as well as the
1679 # various formats of manuals need to be included along with the rest of the
1680 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1681 # just that.
1682
1683 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1684 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1685     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1686 if test "${enable_generated_files_in_srcdir+set}" = set; then
1687   enableval="$enable_generated_files_in_srcdir"
1688   generated_files_in_srcdir=$enableval
1689 else
1690   generated_files_in_srcdir=no
1691 fi;
1692
1693 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1694 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1695
1696 if test "$generated_files_in_srcdir" = "yes"; then
1697   GENINSRC=''
1698 else
1699   GENINSRC='#'
1700 fi
1701
1702
1703 # -------------------
1704 # Find default linker
1705 # -------------------
1706
1707 # With GNU ld
1708
1709 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1710 if test "${with_gnu_ld+set}" = set; then
1711   withval="$with_gnu_ld"
1712   gnu_ld_flag="$with_gnu_ld"
1713 else
1714   gnu_ld_flag=no
1715 fi;
1716
1717 # With pre-defined ld
1718
1719 # Check whether --with-ld or --without-ld was given.
1720 if test "${with_ld+set}" = set; then
1721   withval="$with_ld"
1722   DEFAULT_LINKER="$with_ld"
1723 fi;
1724 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1725   if test ! -x "$DEFAULT_LINKER"; then
1726     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1727 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1728    { (exit 1); exit 1; }; }
1729   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1730     gnu_ld_flag=yes
1731   fi
1732
1733 cat >>confdefs.h <<_ACEOF
1734 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1735 _ACEOF
1736
1737 fi
1738
1739 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1740 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1741 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1742   if test x"$gnu_ld_flag" = x"no"; then
1743     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1744 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1745   else
1746     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1747 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1748   fi
1749 else
1750   echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754 # With demangler in GNU ld
1755
1756 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1757 if test "${with_demangler_in_ld+set}" = set; then
1758   withval="$with_demangler_in_ld"
1759   demangler_in_ld="$with_demangler_in_ld"
1760 else
1761   demangler_in_ld=no
1762 fi;
1763
1764 # ----------------------
1765 # Find default assembler
1766 # ----------------------
1767
1768 # With GNU as
1769
1770 # Check whether --with-gnu-as or --without-gnu-as was given.
1771 if test "${with_gnu_as+set}" = set; then
1772   withval="$with_gnu_as"
1773   gas_flag="$with_gnu_as"
1774 else
1775   gas_flag=no
1776 fi;
1777
1778
1779 # Check whether --with-as or --without-as was given.
1780 if test "${with_as+set}" = set; then
1781   withval="$with_as"
1782   DEFAULT_ASSEMBLER="$with_as"
1783 fi;
1784 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1785   if test ! -x "$DEFAULT_ASSEMBLER"; then
1786     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1787 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1788    { (exit 1); exit 1; }; }
1789   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1790     gas_flag=yes
1791   fi
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1795 _ACEOF
1796
1797 fi
1798
1799 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1800 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1801 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1802   if test x"$gas_flag" = x"no"; then
1803     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1804 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1805   else
1806     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1807 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1808   fi
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 fi
1813
1814 # ---------------
1815 # Find C compiler
1816 # ---------------
1817
1818 # If a non-executable a.out is present (e.g. created by GNU as above even if
1819 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1820 # file, even when creating an executable, so an execution test fails.
1821 # Remove possible default executable files to avoid this.
1822 #
1823 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1824 # Autoconf includes it.
1825 rm -f a.out a.exe b.out
1826
1827 # Find the native compiler
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 if test -n "$ac_tool_prefix"; then
1834   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839   echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841   if test -n "$CC"; then
1842   ac_cv_prog_CC="$CC" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849   for ac_exec_ext in '' $ac_executable_extensions; do
1850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853     break 2
1854   fi
1855 done
1856 done
1857
1858 fi
1859 fi
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862   echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1864 else
1865   echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 fi
1868
1869 fi
1870 if test -z "$ac_cv_prog_CC"; then
1871   ac_ct_CC=$CC
1872   # Extract the first word of "gcc", so it can be a program name with args.
1873 set dummy gcc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$ac_ct_CC"; then
1880   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_ac_ct_CC="gcc"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1899 if test -n "$ac_ct_CC"; then
1900   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1901 echo "${ECHO_T}$ac_ct_CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907   CC=$ac_ct_CC
1908 else
1909   CC="$ac_cv_prog_CC"
1910 fi
1911
1912 if test -z "$CC"; then
1913   if test -n "$ac_tool_prefix"; then
1914   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}cc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$CC"; then
1922   ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_CC="${ac_tool_prefix}cc"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942   echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 fi
1950 if test -z "$ac_cv_prog_CC"; then
1951   ac_ct_CC=$CC
1952   # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$ac_ct_CC"; then
1960   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     ac_cv_prog_ac_ct_CC="cc"
1970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971     break 2
1972   fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6
1982 else
1983   echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987   CC=$ac_ct_CC
1988 else
1989   CC="$ac_cv_prog_CC"
1990 fi
1991
1992 fi
1993 if test -z "$CC"; then
1994   # Extract the first word of "cc", so it can be a program name with args.
1995 set dummy cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$CC"; then
2002   ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004   ac_prog_rejected=no
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2013        ac_prog_rejected=yes
2014        continue
2015      fi
2016     ac_cv_prog_CC="cc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 if test $ac_prog_rejected = yes; then
2024   # We found a bogon in the path, so make sure we never use it.
2025   set dummy $ac_cv_prog_CC
2026   shift
2027   if test $# != 0; then
2028     # We chose a different compiler from the bogus one.
2029     # However, it has the same basename, so the bogon will be chosen
2030     # first if we set CC to just the basename; use the full file name.
2031     shift
2032     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2033   fi
2034 fi
2035 fi
2036 fi
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039   echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6
2041 else
2042   echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2044 fi
2045
2046 fi
2047 if test -z "$CC"; then
2048   if test -n "$ac_tool_prefix"; then
2049   for ac_prog in cl
2050   do
2051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086     test -n "$CC" && break
2087   done
2088 fi
2089 if test -z "$CC"; then
2090   ac_ct_CC=$CC
2091   for ac_prog in cl
2092 do
2093   # Extract the first word of "$ac_prog", so it can be a program name with args.
2094 set dummy $ac_prog; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   if test -n "$ac_ct_CC"; then
2101   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110     ac_cv_prog_ac_ct_CC="$ac_prog"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116
2117 fi
2118 fi
2119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120 if test -n "$ac_ct_CC"; then
2121   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122 echo "${ECHO_T}$ac_ct_CC" >&6
2123 else
2124   echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2126 fi
2127
2128   test -n "$ac_ct_CC" && break
2129 done
2130
2131   CC=$ac_ct_CC
2132 fi
2133
2134 fi
2135
2136
2137 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&2;}
2141    { (exit 1); exit 1; }; }
2142
2143 # Provide some information about the compiler.
2144 echo "$as_me:$LINENO:" \
2145      "checking for C compiler version" >&5
2146 ac_compiler=`set X $ac_compile; echo $2`
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2148   (eval $ac_compiler --version </dev/null >&5) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2153   (eval $ac_compiler -v </dev/null >&5) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }
2157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2158   (eval $ac_compiler -V </dev/null >&5) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }
2162
2163 cat >conftest.$ac_ext <<_ACEOF
2164 /* confdefs.h.  */
2165 _ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h.  */
2169
2170 int
2171 main ()
2172 {
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 ac_clean_files_save=$ac_clean_files
2179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2180 # Try to create an executable without -o first, disregard a.out.
2181 # It will help us diagnose broken compilers, and finding out an intuition
2182 # of exeext.
2183 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2186 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2187   (eval $ac_link_default) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; then
2191   # Find the output, starting from the most likely.  This scheme is
2192 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2193 # resort.
2194
2195 # Be careful to initialize this variable, since it used to be cached.
2196 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2197 ac_cv_exeext=
2198 # b.out is created by i960 compilers.
2199 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2200 do
2201   test -f "$ac_file" || continue
2202   case $ac_file in
2203     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2204         ;;
2205     conftest.$ac_ext )
2206         # This is the source file.
2207         ;;
2208     [ab].out )
2209         # We found the default executable, but exeext='' is most
2210         # certainly right.
2211         break;;
2212     *.* )
2213         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         # FIXME: I believe we export ac_cv_exeext for Libtool,
2215         # but it would be cool to find out if it's true.  Does anybody
2216         # maintain Libtool? --akim.
2217         export ac_cv_exeext
2218         break;;
2219     * )
2220         break;;
2221   esac
2222 done
2223 else
2224   echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&2;}
2231    { (exit 77); exit 77; }; }
2232 fi
2233
2234 ac_exeext=$ac_cv_exeext
2235 echo "$as_me:$LINENO: result: $ac_file" >&5
2236 echo "${ECHO_T}$ac_file" >&6
2237
2238 # Check the compiler produces executables we can run.  If not, either
2239 # the compiler is broken, or we cross compile.
2240 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2243 # If not cross compiling, check that we can run a simple program.
2244 if test "$cross_compiling" != yes; then
2245   if { ac_try='./$ac_file'
2246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }; }; then
2251     cross_compiling=no
2252   else
2253     if test "$cross_compiling" = maybe; then
2254         cross_compiling=yes
2255     else
2256         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot run C compiled programs.
2260 If you meant to cross compile, use \`--host'.
2261 See \`config.log' for more details." >&2;}
2262    { (exit 1); exit 1; }; }
2263     fi
2264   fi
2265 fi
2266 echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6
2268
2269 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2270 ac_clean_files=$ac_clean_files_save
2271 # Check the compiler produces executables we can run.  If not, either
2272 # the compiler is broken, or we cross compile.
2273 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2274 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2275 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2276 echo "${ECHO_T}$cross_compiling" >&6
2277
2278 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2279 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2281   (eval $ac_link) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; then
2285   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2286 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2287 # work properly (i.e., refer to `conftest.exe'), while it won't with
2288 # `rm'.
2289 for ac_file in conftest.exe conftest conftest.*; do
2290   test -f "$ac_file" || continue
2291   case $ac_file in
2292     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2293     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294           export ac_cv_exeext
2295           break;;
2296     * ) break;;
2297   esac
2298 done
2299 else
2300   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&2;}
2304    { (exit 1); exit 1; }; }
2305 fi
2306
2307 rm -f conftest$ac_cv_exeext
2308 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309 echo "${ECHO_T}$ac_cv_exeext" >&6
2310
2311 rm -f conftest.$ac_ext
2312 EXEEXT=$ac_cv_exeext
2313 ac_exeext=$EXEEXT
2314 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2316 if test "${ac_cv_objext+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   cat >conftest.$ac_ext <<_ACEOF
2320 /* confdefs.h.  */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h.  */
2325
2326 int
2327 main ()
2328 {
2329
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 rm -f conftest.o conftest.obj
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336   (eval $ac_compile) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2341   case $ac_file in
2342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2343     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344        break;;
2345   esac
2346 done
2347 else
2348   echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&2;}
2355    { (exit 1); exit 1; }; }
2356 fi
2357
2358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 fi
2360 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2361 echo "${ECHO_T}$ac_cv_objext" >&6
2362 OBJEXT=$ac_cv_objext
2363 ac_objext=$OBJEXT
2364 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375
2376 int
2377 main ()
2378 {
2379 #ifndef __GNUC__
2380        choke me
2381 #endif
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389   (eval $ac_compile) 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_compiler_gnu=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_compiler_gnu=no
2414 fi
2415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417
2418 fi
2419 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2421 GCC=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS=${CFLAGS+set}
2423 ac_save_CFLAGS=$CFLAGS
2424 CFLAGS="-g"
2425 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h.  */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h.  */
2436
2437 int
2438 main ()
2439 {
2440
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; } &&
2460          { ac_try='test -s conftest.$ac_objext'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466   ac_cv_prog_cc_g=yes
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 ac_cv_prog_cc_g=no
2472 fi
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 fi
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2476 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2477 if test "$ac_test_CFLAGS" = set; then
2478   CFLAGS=$ac_save_CFLAGS
2479 elif test $ac_cv_prog_cc_g = yes; then
2480   if test "$GCC" = yes; then
2481     CFLAGS="-g -O2"
2482   else
2483     CFLAGS="-g"
2484   fi
2485 else
2486   if test "$GCC" = yes; then
2487     CFLAGS="-O2"
2488   else
2489     CFLAGS=
2490   fi
2491 fi
2492 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2493 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2494 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   ac_cv_prog_cc_stdc=no
2498 ac_save_CC=$CC
2499 cat >conftest.$ac_ext <<_ACEOF
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505 #include <stdarg.h>
2506 #include <stdio.h>
2507 #include <sys/types.h>
2508 #include <sys/stat.h>
2509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2510 struct buf { int x; };
2511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2513      char **p;
2514      int i;
2515 {
2516   return p[i];
2517 }
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2519 {
2520   char *s;
2521   va_list v;
2522   va_start (v,p);
2523   s = g (p, va_arg (v,int));
2524   va_end (v);
2525   return s;
2526 }
2527
2528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2529    function prototypes and stuff, but not '\xHH' hex character constants.
2530    These don't provoke an error unfortunately, instead are silently treated
2531    as 'x'.  The following induces an error, until -std1 is added to get
2532    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2533    array size at least.  It's necessary to write '\x00'==0 to get something
2534    that's true only with -std1.  */
2535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2536
2537 int test (int i, double x);
2538 struct s1 {int (*f) (int a);};
2539 struct s2 {int (*f) (double a);};
2540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2541 int argc;
2542 char **argv;
2543 int
2544 main ()
2545 {
2546 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 # Don't try gcc -ansi; that turns off useful extensions and
2552 # breaks some systems' header files.
2553 # AIX                   -qlanglvl=ansi
2554 # Ultrix and OSF/1      -std1
2555 # HP-UX 10.20 and later -Ae
2556 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2557 # SVR4                  -Xc -D__EXTENSIONS__
2558 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2559 do
2560   CC="$ac_save_CC $ac_arg"
2561   rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563   (eval $ac_compile) 2>conftest.er1
2564   ac_status=$?
2565   grep -v '^ *+' conftest.er1 >conftest.err
2566   rm -f conftest.er1
2567   cat conftest.err >&5
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } &&
2570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   ac_cv_prog_cc_stdc=$ac_arg
2583 break
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 fi
2589 rm -f conftest.err conftest.$ac_objext
2590 done
2591 rm -f conftest.$ac_ext conftest.$ac_objext
2592 CC=$ac_save_CC
2593
2594 fi
2595
2596 case "x$ac_cv_prog_cc_stdc" in
2597   x|xno)
2598     echo "$as_me:$LINENO: result: none needed" >&5
2599 echo "${ECHO_T}none needed" >&6 ;;
2600   *)
2601     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2603     CC="$CC $ac_cv_prog_cc_stdc" ;;
2604 esac
2605
2606 # Some people use a C++ compiler to compile C.  Since we use `exit',
2607 # in C++ we need to declare it.  In case someone uses the same compiler
2608 # for both compiling C and C++ we need to have the C++ compiler decide
2609 # the declaration of exit, since it's the most demanding environment.
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #ifndef __cplusplus
2612   choke me
2613 #endif
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617   (eval $ac_compile) 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   for ac_declaration in \
2637    '' \
2638    'extern "C" void std::exit (int) throw (); using std::exit;' \
2639    'extern "C" void std::exit (int); using std::exit;' \
2640    'extern "C" void exit (int) throw ();' \
2641    'extern "C" void exit (int);' \
2642    'void exit (int);'
2643 do
2644   cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650 $ac_declaration
2651 #include <stdlib.h>
2652 int
2653 main ()
2654 {
2655 exit (42);
2656   ;
2657   return 0;
2658 }
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662   (eval $ac_compile) 2>conftest.er1
2663   ac_status=$?
2664   grep -v '^ *+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } &&
2669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   :
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 continue
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695 $ac_declaration
2696 int
2697 main ()
2698 {
2699 exit (42);
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706   (eval $ac_compile) 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; } &&
2719          { ac_try='test -s conftest.$ac_objext'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; }; then
2725   break
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 done
2733 rm -f conftest*
2734 if test -n "$ac_declaration"; then
2735   echo '#ifdef __cplusplus' >>confdefs.h
2736   echo $ac_declaration      >>confdefs.h
2737   echo '#endif'             >>confdefs.h
2738 fi
2739
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
2752 if test "x$CC" != xcc; then
2753   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2754 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2755 else
2756   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2757 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2758 fi
2759 set dummy $CC; ac_cc=`echo $2 |
2760                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2761 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 # Make sure it works both with $CC and with simple cc.
2780 # We do the test twice because some compilers refuse to overwrite an
2781 # existing .o file with -o, though they will create one.
2782 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); };
2793 then
2794   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2795   if test "x$CC" != xcc; then
2796     # Test first that cc exists at all.
2797     if { ac_try='cc -c conftest.$ac_ext >&5'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2804       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); };
2814       then
2815         # cc works too.
2816         :
2817       else
2818         # cc exists but doesn't like -o.
2819         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820       fi
2821     fi
2822   fi
2823 else
2824   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2825 fi
2826 rm -f conftest*
2827
2828 fi
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2830   echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832 else
2833   echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835
2836 cat >>confdefs.h <<\_ACEOF
2837 #define NO_MINUS_C_MINUS_O 1
2838 _ACEOF
2839
2840 fi
2841
2842 # expand $ac_aux_dir to an absolute path
2843 am_aux_dir=`cd $ac_aux_dir && pwd`
2844
2845 # FIXME: we rely on the cache variable name because
2846 # there is no other way.
2847 set dummy $CC
2848 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2850    # Losing compiler, so override with the script.
2851    # FIXME: It is wrong to rewrite CC.
2852    # But if we don't then we get into trouble of one sort or another.
2853    # A longer-term fix would be to have automake use am__CC in this case,
2854    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2855    CC="$am_aux_dir/compile $CC"
2856 fi
2857
2858 # autoconf is lame and doesn't give us any substitution variable for this.
2859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2860   NO_MINUS_C_MINUS_O=yes
2861 else
2862   OUTPUT_OPTION='-o $@'
2863 fi
2864
2865
2866
2867 # -------------------------
2868 # Check C compiler features
2869 # -------------------------
2870
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2880   CPP=
2881 fi
2882 if test -z "$CPP"; then
2883   if test "${ac_cv_prog_CPP+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886       # Double quotes because CPP needs to be expanded
2887     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2888     do
2889       ac_preproc_ok=false
2890 for ac_c_preproc_warn_flag in '' yes
2891 do
2892   # Use a header file that comes with gcc, so configuring glibc
2893   # with a fresh cross-compiler works.
2894   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895   # <limits.h> exists even on freestanding compilers.
2896   # On the NeXT, cc -E runs the code through the compiler's parser,
2897   # not just through cpp. "Syntax error" is here to catch this case.
2898   cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904 #ifdef __STDC__
2905 # include <limits.h>
2906 #else
2907 # include <assert.h>
2908 #endif
2909                      Syntax error
2910 _ACEOF
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913   ac_status=$?
2914   grep -v '^ *+' conftest.er1 >conftest.err
2915   rm -f conftest.er1
2916   cat conftest.err >&5
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); } >/dev/null; then
2919   if test -s conftest.err; then
2920     ac_cpp_err=$ac_c_preproc_warn_flag
2921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2922   else
2923     ac_cpp_err=
2924   fi
2925 else
2926   ac_cpp_err=yes
2927 fi
2928 if test -z "$ac_cpp_err"; then
2929   :
2930 else
2931   echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2933
2934   # Broken: fails on valid input.
2935 continue
2936 fi
2937 rm -f conftest.err conftest.$ac_ext
2938
2939   # OK, works on sane cases.  Now check whether non-existent headers
2940   # can be detected and how.
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 #include <ac_nonexistent.h>
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   # Broken: success on invalid input.
2968 continue
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973   # Passes both tests.
2974 ac_preproc_ok=:
2975 break
2976 fi
2977 rm -f conftest.err conftest.$ac_ext
2978
2979 done
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.$ac_ext
2982 if $ac_preproc_ok; then
2983   break
2984 fi
2985
2986     done
2987     ac_cv_prog_CPP=$CPP
2988
2989 fi
2990   CPP=$ac_cv_prog_CPP
2991 else
2992   ac_cv_prog_CPP=$CPP
2993 fi
2994 echo "$as_me:$LINENO: result: $CPP" >&5
2995 echo "${ECHO_T}$CPP" >&6
2996 ac_preproc_ok=false
2997 for ac_c_preproc_warn_flag in '' yes
2998 do
2999   # Use a header file that comes with gcc, so configuring glibc
3000   # with a fresh cross-compiler works.
3001   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002   # <limits.h> exists even on freestanding compilers.
3003   # On the NeXT, cc -E runs the code through the compiler's parser,
3004   # not just through cpp. "Syntax error" is here to catch this case.
3005   cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #ifdef __STDC__
3012 # include <limits.h>
3013 #else
3014 # include <assert.h>
3015 #endif
3016                      Syntax error
3017 _ACEOF
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020   ac_status=$?
3021   grep -v '^ *+' conftest.er1 >conftest.err
3022   rm -f conftest.er1
3023   cat conftest.err >&5
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } >/dev/null; then
3026   if test -s conftest.err; then
3027     ac_cpp_err=$ac_c_preproc_warn_flag
3028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3029   else
3030     ac_cpp_err=
3031   fi
3032 else
3033   ac_cpp_err=yes
3034 fi
3035 if test -z "$ac_cpp_err"; then
3036   :
3037 else
3038   echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041   # Broken: fails on valid input.
3042 continue
3043 fi
3044 rm -f conftest.err conftest.$ac_ext
3045
3046   # OK, works on sane cases.  Now check whether non-existent headers
3047   # can be detected and how.
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 #include <ac_nonexistent.h>
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   # Broken: success on invalid input.
3075 continue
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080   # Passes both tests.
3081 ac_preproc_ok=:
3082 break
3083 fi
3084 rm -f conftest.err conftest.$ac_ext
3085
3086 done
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.$ac_ext
3089 if $ac_preproc_ok; then
3090   :
3091 else
3092   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096    { (exit 1); exit 1; }; }
3097 fi
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104
3105
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   ac_cv_c_inline=no
3112 for ac_kw in inline __inline__ __inline; do
3113   cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119 #ifndef __cplusplus
3120 typedef int foo_t;
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3123 #endif
3124
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128   (eval $ac_compile) 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137   (eval $ac_try) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_c_inline=$ac_kw; break
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 fi
3153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154 done
3155
3156 fi
3157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3158 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159
3160
3161 case $ac_cv_c_inline in
3162   inline | yes) ;;
3163   *)
3164     case $ac_cv_c_inline in
3165       no) ac_val=;;
3166       *) ac_val=$ac_cv_c_inline;;
3167     esac
3168     cat >>confdefs.h <<_ACEOF
3169 #ifndef __cplusplus
3170 #define inline $ac_val
3171 #endif
3172 _ACEOF
3173     ;;
3174 esac
3175
3176
3177 # sizeof(char) is 1 by definition.
3178
3179 echo "$as_me:$LINENO: checking for egrep" >&5
3180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3181 if test "${ac_cv_prog_egrep+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3185     then ac_cv_prog_egrep='grep -E'
3186     else ac_cv_prog_egrep='egrep'
3187     fi
3188 fi
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3191  EGREP=$ac_cv_prog_egrep
3192
3193
3194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3196 if test "${ac_cv_header_stdc+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205 #include <stdlib.h>
3206 #include <stdarg.h>
3207 #include <string.h>
3208 #include <float.h>
3209
3210 int
3211 main ()
3212 {
3213
3214   ;
3215   return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220   (eval $ac_compile) 2>conftest.er1
3221   ac_status=$?
3222   grep -v '^ *+' conftest.er1 >conftest.err
3223   rm -f conftest.er1
3224   cat conftest.err >&5
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } &&
3227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229   (eval $ac_try) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; } &&
3233          { ac_try='test -s conftest.$ac_objext'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239   ac_cv_header_stdc=yes
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 ac_cv_header_stdc=no
3245 fi
3246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247
3248 if test $ac_cv_header_stdc = yes; then
3249   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #include <string.h>
3257
3258 _ACEOF
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260   $EGREP "memchr" >/dev/null 2>&1; then
3261   :
3262 else
3263   ac_cv_header_stdc=no
3264 fi
3265 rm -f conftest*
3266
3267 fi
3268
3269 if test $ac_cv_header_stdc = yes; then
3270   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <stdlib.h>
3278
3279 _ACEOF
3280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3281   $EGREP "free" >/dev/null 2>&1; then
3282   :
3283 else
3284   ac_cv_header_stdc=no
3285 fi
3286 rm -f conftest*
3287
3288 fi
3289
3290 if test $ac_cv_header_stdc = yes; then
3291   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3292   if test "$cross_compiling" = yes; then
3293   :
3294 else
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 <ctype.h>
3302 #if ((' ' & 0x0FF) == 0x020)
3303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3305 #else
3306 # define ISLOWER(c) \
3307                    (('a' <= (c) && (c) <= 'i') \
3308                      || ('j' <= (c) && (c) <= 'r') \
3309                      || ('s' <= (c) && (c) <= 'z'))
3310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3311 #endif
3312
3313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3314 int
3315 main ()
3316 {
3317   int i;
3318   for (i = 0; i < 256; i++)
3319     if (XOR (islower (i), ISLOWER (i))
3320         || toupper (i) != TOUPPER (i))
3321       exit(2);
3322   exit (0);
3323 }
3324 _ACEOF
3325 rm -f conftest$ac_exeext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3327   (eval $ac_link) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; }; then
3336   :
3337 else
3338   echo "$as_me: program exited with status $ac_status" >&5
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 ( exit $ac_status )
3343 ac_cv_header_stdc=no
3344 fi
3345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3346 fi
3347 fi
3348 fi
3349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3351 if test $ac_cv_header_stdc = yes; then
3352
3353 cat >>confdefs.h <<\_ACEOF
3354 #define STDC_HEADERS 1
3355 _ACEOF
3356
3357 fi
3358
3359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3370                   inttypes.h stdint.h unistd.h
3371 do
3372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 echo "$as_me:$LINENO: checking for $ac_header" >&5
3374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 $ac_includes_default
3385
3386 #include <$ac_header>
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390   (eval $ac_compile) 2>conftest.er1
3391   ac_status=$?
3392   grep -v '^ *+' conftest.er1 >conftest.err
3393   rm -f conftest.er1
3394   cat conftest.err >&5
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); } &&
3397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399   (eval $ac_try) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }; } &&
3403          { ac_try='test -s conftest.$ac_objext'
3404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; }; then
3409   eval "$as_ac_Header=yes"
3410 else
3411   echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 eval "$as_ac_Header=no"
3415 fi
3416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3417 fi
3418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3421   cat >>confdefs.h <<_ACEOF
3422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3423 _ACEOF
3424
3425 fi
3426
3427 done
3428
3429
3430 echo "$as_me:$LINENO: checking for void *" >&5
3431 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3432 if test "${ac_cv_type_void_p+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441 $ac_includes_default
3442 int
3443 main ()
3444 {
3445 if ((void * *) 0)
3446   return 0;
3447 if (sizeof (void *))
3448   return 0;
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455   (eval $ac_compile) 2>conftest.er1
3456   ac_status=$?
3457   grep -v '^ *+' conftest.er1 >conftest.err
3458   rm -f conftest.er1
3459   cat conftest.err >&5
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } &&
3462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464   (eval $ac_try) 2>&5
3465   ac_status=$?
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); }; } &&
3468          { ac_try='test -s conftest.$ac_objext'
3469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470   (eval $ac_try) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; }; then
3474   ac_cv_type_void_p=yes
3475 else
3476   echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 ac_cv_type_void_p=no
3480 fi
3481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482 fi
3483 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3484 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3485
3486 echo "$as_me:$LINENO: checking size of void *" >&5
3487 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3488 if test "${ac_cv_sizeof_void_p+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   if test "$ac_cv_type_void_p" = yes; then
3492   # The cast to unsigned long works around a bug in the HP C Compiler
3493   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3494   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3495   # This bug is HP SR number 8606223364.
3496   if test "$cross_compiling" = yes; then
3497   # Depending upon the size, compute the lo and hi bounds.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 $ac_includes_default
3505 int
3506 main ()
3507 {
3508 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3509 test_array [0] = 0
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517   (eval $ac_compile) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; } &&
3530          { ac_try='test -s conftest.$ac_objext'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; }; then
3536   ac_lo=0 ac_mid=0
3537   while :; do
3538     cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 $ac_includes_default
3545 int
3546 main ()
3547 {
3548 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3549 test_array [0] = 0
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557   (eval $ac_compile) 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566   (eval $ac_try) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; } &&
3570          { ac_try='test -s conftest.$ac_objext'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; }; then
3576   ac_hi=$ac_mid; break
3577 else
3578   echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 ac_lo=`expr $ac_mid + 1`
3582                     if test $ac_lo -le $ac_mid; then
3583                       ac_lo= ac_hi=
3584                       break
3585                     fi
3586                     ac_mid=`expr 2 '*' $ac_mid + 1`
3587 fi
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589   done
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 $ac_includes_default
3601 int
3602 main ()
3603 {
3604 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3605 test_array [0] = 0
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613   (eval $ac_compile) 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } &&
3620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; } &&
3626          { ac_try='test -s conftest.$ac_objext'
3627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628   (eval $ac_try) 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; }; then
3632   ac_hi=-1 ac_mid=-1
3633   while :; do
3634     cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640 $ac_includes_default
3641 int
3642 main ()
3643 {
3644 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3645 test_array [0] = 0
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653   (eval $ac_compile) 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } &&
3660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662   (eval $ac_try) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; } &&
3666          { ac_try='test -s conftest.$ac_objext'
3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668   (eval $ac_try) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; }; then
3672   ac_lo=$ac_mid; break
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 ac_hi=`expr '(' $ac_mid ')' - 1`
3678                        if test $ac_mid -le $ac_hi; then
3679                          ac_lo= ac_hi=
3680                          break
3681                        fi
3682                        ac_mid=`expr 2 '*' $ac_mid`
3683 fi
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685   done
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_lo= ac_hi=
3691 fi
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 # Binary search between lo and hi bounds.
3696 while test "x$ac_lo" != "x$ac_hi"; do
3697   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704 $ac_includes_default
3705 int
3706 main ()
3707 {
3708 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3709 test_array [0] = 0
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717   (eval $ac_compile) 2>conftest.er1
3718   ac_status=$?
3719   grep -v '^ *+' conftest.er1 >conftest.err
3720   rm -f conftest.er1
3721   cat conftest.err >&5
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } &&
3724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726   (eval $ac_try) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; } &&
3730          { ac_try='test -s conftest.$ac_objext'
3731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732   (eval $ac_try) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; }; then
3736   ac_hi=$ac_mid
3737 else
3738   echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ac_lo=`expr '(' $ac_mid ')' + 1`
3742 fi
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 done
3745 case $ac_lo in
3746 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: cannot compute sizeof (void *), 77
3750 See \`config.log' for more details." >&2;}
3751    { (exit 1); exit 1; }; } ;;
3752 esac
3753 else
3754   if test "$cross_compiling" = yes; then
3755   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3756 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3757    { (exit 1); exit 1; }; }
3758 else
3759   cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h.  */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h.  */
3765 $ac_includes_default
3766 long longval () { return (long) (sizeof (void *)); }
3767 unsigned long ulongval () { return (long) (sizeof (void *)); }
3768 #include <stdio.h>
3769 #include <stdlib.h>
3770 int
3771 main ()
3772 {
3773
3774   FILE *f = fopen ("conftest.val", "w");
3775   if (! f)
3776     exit (1);
3777   if (((long) (sizeof (void *))) < 0)
3778     {
3779       long i = longval ();
3780       if (i != ((long) (sizeof (void *))))
3781         exit (1);
3782       fprintf (f, "%ld\n", i);
3783     }
3784   else
3785     {
3786       unsigned long i = ulongval ();
3787       if (i != ((long) (sizeof (void *))))
3788         exit (1);
3789       fprintf (f, "%lu\n", i);
3790     }
3791   exit (ferror (f) || fclose (f) != 0);
3792
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799   (eval $ac_link) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; }; then
3808   ac_cv_sizeof_void_p=`cat conftest.val`
3809 else
3810   echo "$as_me: program exited with status $ac_status" >&5
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 ( exit $ac_status )
3815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&2;}
3819    { (exit 1); exit 1; }; }
3820 fi
3821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 fi
3824 rm -f conftest.val
3825 else
3826   ac_cv_sizeof_void_p=0
3827 fi
3828 fi
3829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3830 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3831 cat >>confdefs.h <<_ACEOF
3832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3833 _ACEOF
3834
3835
3836 echo "$as_me:$LINENO: checking for short" >&5
3837 echo $ECHO_N "checking for short... $ECHO_C" >&6
3838 if test "${ac_cv_type_short+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h.  */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h.  */
3847 $ac_includes_default
3848 int
3849 main ()
3850 {
3851 if ((short *) 0)
3852   return 0;
3853 if (sizeof (short))
3854   return 0;
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>conftest.er1
3862   ac_status=$?
3863   grep -v '^ *+' conftest.er1 >conftest.err
3864   rm -f conftest.er1
3865   cat conftest.err >&5
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); } &&
3868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ac_cv_type_short=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ac_cv_type_short=no
3886 fi
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888 fi
3889 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3890 echo "${ECHO_T}$ac_cv_type_short" >&6
3891
3892 echo "$as_me:$LINENO: checking size of short" >&5
3893 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3894 if test "${ac_cv_sizeof_short+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   if test "$ac_cv_type_short" = yes; then
3898   # The cast to unsigned long works around a bug in the HP C Compiler
3899   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3900   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3901   # This bug is HP SR number 8606223364.
3902   if test "$cross_compiling" = yes; then
3903   # Depending upon the size, compute the lo and hi bounds.
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 $ac_includes_default
3911 int
3912 main ()
3913 {
3914 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3915 test_array [0] = 0
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923   (eval $ac_compile) 2>conftest.er1
3924   ac_status=$?
3925   grep -v '^ *+' conftest.er1 >conftest.err
3926   rm -f conftest.er1
3927   cat conftest.err >&5
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } &&
3930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; } &&
3936          { ac_try='test -s conftest.$ac_objext'
3937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938   (eval $ac_try) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }; }; then
3942   ac_lo=0 ac_mid=0
3943   while :; do
3944     cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950 $ac_includes_default
3951 int
3952 main ()
3953 {
3954 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3955 test_array [0] = 0
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963   (eval $ac_compile) 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } &&
3970          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; } &&
3976          { ac_try='test -s conftest.$ac_objext'
3977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978   (eval $ac_try) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; }; then
3982   ac_hi=$ac_mid; break
3983 else
3984   echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 ac_lo=`expr $ac_mid + 1`
3988                     if test $ac_lo -le $ac_mid; then
3989                       ac_lo= ac_hi=
3990                       break
3991                     fi
3992                     ac_mid=`expr 2 '*' $ac_mid + 1`
3993 fi
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995   done
3996 else
3997   echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
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))) < 0)];
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"                   || test ! -s conftest.err'
4027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028   (eval $ac_try) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; } &&
4032          { ac_try='test -s conftest.$ac_objext'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; }; then
4038   ac_hi=-1 ac_mid=-1
4039   while :; do
4040     cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h.  */
4046 $ac_includes_default
4047 int
4048 main ()
4049 {
4050 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4051 test_array [0] = 0
4052
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059   (eval $ac_compile) 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest.$ac_objext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   ac_lo=$ac_mid; break
4079 else
4080   echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 ac_hi=`expr '(' $ac_mid ')' - 1`
4084                        if test $ac_mid -le $ac_hi; then
4085                          ac_lo= ac_hi=
4086                          break
4087                        fi
4088                        ac_mid=`expr 2 '*' $ac_mid`
4089 fi
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091   done
4092 else
4093   echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 ac_lo= ac_hi=
4097 fi
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 # Binary search between lo and hi bounds.
4102 while test "x$ac_lo" != "x$ac_hi"; do
4103   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4104   cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h.  */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h.  */
4110 $ac_includes_default
4111 int
4112 main ()
4113 {
4114 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4115 test_array [0] = 0
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123   (eval $ac_compile) 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } &&
4130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest.$ac_objext'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; }; then
4142   ac_hi=$ac_mid
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 ac_lo=`expr '(' $ac_mid ')' + 1`
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 done
4151 case $ac_lo in
4152 ?*) ac_cv_sizeof_short=$ac_lo;;
4153 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4154 See \`config.log' for more details." >&5
4155 echo "$as_me: error: cannot compute sizeof (short), 77
4156 See \`config.log' for more details." >&2;}
4157    { (exit 1); exit 1; }; } ;;
4158 esac
4159 else
4160   if test "$cross_compiling" = yes; then
4161   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4162 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4163    { (exit 1); exit 1; }; }
4164 else
4165   cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 $ac_includes_default
4172 long longval () { return (long) (sizeof (short)); }
4173 unsigned long ulongval () { return (long) (sizeof (short)); }
4174 #include <stdio.h>
4175 #include <stdlib.h>
4176 int
4177 main ()
4178 {
4179
4180   FILE *f = fopen ("conftest.val", "w");
4181   if (! f)
4182     exit (1);
4183   if (((long) (sizeof (short))) < 0)
4184     {
4185       long i = longval ();
4186       if (i != ((long) (sizeof (short))))
4187         exit (1);
4188       fprintf (f, "%ld\n", i);
4189     }
4190   else
4191     {
4192       unsigned long i = ulongval ();
4193       if (i != ((long) (sizeof (short))))
4194         exit (1);
4195       fprintf (f, "%lu\n", i);
4196     }
4197   exit (ferror (f) || fclose (f) != 0);
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205   (eval $ac_link) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210   (eval $ac_try) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; }; then
4214   ac_cv_sizeof_short=`cat conftest.val`
4215 else
4216   echo "$as_me: program exited with status $ac_status" >&5
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 ( exit $ac_status )
4221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot compute sizeof (short), 77
4224 See \`config.log' for more details." >&2;}
4225    { (exit 1); exit 1; }; }
4226 fi
4227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4228 fi
4229 fi
4230 rm -f conftest.val
4231 else
4232   ac_cv_sizeof_short=0
4233 fi
4234 fi
4235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4236 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4237 cat >>confdefs.h <<_ACEOF
4238 #define SIZEOF_SHORT $ac_cv_sizeof_short
4239 _ACEOF
4240
4241
4242 echo "$as_me:$LINENO: checking for int" >&5
4243 echo $ECHO_N "checking for int... $ECHO_C" >&6
4244 if test "${ac_cv_type_int+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 $ac_includes_default
4254 int
4255 main ()
4256 {
4257 if ((int *) 0)
4258   return 0;
4259 if (sizeof (int))
4260   return 0;
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267   (eval $ac_compile) 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } &&
4274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276   (eval $ac_try) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282   (eval $ac_try) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   ac_cv_type_int=yes
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_cv_type_int=no
4292 fi
4293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4296 echo "${ECHO_T}$ac_cv_type_int" >&6
4297
4298 echo "$as_me:$LINENO: checking size of int" >&5
4299 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4300 if test "${ac_cv_sizeof_int+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   if test "$ac_cv_type_int" = yes; then
4304   # The cast to unsigned long works around a bug in the HP C Compiler
4305   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4306   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4307   # This bug is HP SR number 8606223364.
4308   if test "$cross_compiling" = yes; then
4309   # Depending upon the size, compute the lo and hi bounds.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 $ac_includes_default
4317 int
4318 main ()
4319 {
4320 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4321 test_array [0] = 0
4322
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"                   || test ! -s conftest.err'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; } &&
4342          { ac_try='test -s conftest.$ac_objext'
4343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344   (eval $ac_try) 2>&5
4345   ac_status=$?
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); }; }; then
4348   ac_lo=0 ac_mid=0
4349   while :; do
4350     cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 $ac_includes_default
4357 int
4358 main ()
4359 {
4360 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4361 test_array [0] = 0
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369   (eval $ac_compile) 2>conftest.er1
4370   ac_status=$?
4371   grep -v '^ *+' conftest.er1 >conftest.err
4372   rm -f conftest.er1
4373   cat conftest.err >&5
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } &&
4376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest.$ac_objext'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   ac_hi=$ac_mid; break
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_lo=`expr $ac_mid + 1`
4394                     if test $ac_lo -le $ac_mid; then
4395                       ac_lo= ac_hi=
4396                       break
4397                     fi
4398                     ac_mid=`expr 2 '*' $ac_mid + 1`
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401   done
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 $ac_includes_default
4413 int
4414 main ()
4415 {
4416 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4417 test_array [0] = 0
4418
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425   (eval $ac_compile) 2>conftest.er1
4426   ac_status=$?
4427   grep -v '^ *+' conftest.er1 >conftest.err
4428   rm -f conftest.er1
4429   cat conftest.err >&5
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); } &&
4432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434   (eval $ac_try) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; } &&
4438          { ac_try='test -s conftest.$ac_objext'
4439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440   (eval $ac_try) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); }; }; then
4444   ac_hi=-1 ac_mid=-1
4445   while :; do
4446     cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h.  */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h.  */
4452 $ac_includes_default
4453 int
4454 main ()
4455 {
4456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4457 test_array [0] = 0
4458
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   ac_lo=$ac_mid; break
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_hi=`expr '(' $ac_mid ')' - 1`
4490                        if test $ac_mid -le $ac_hi; then
4491                          ac_lo= ac_hi=
4492                          break
4493                        fi
4494                        ac_mid=`expr 2 '*' $ac_mid`
4495 fi
4496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497   done
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ac_lo= ac_hi=
4503 fi
4504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4505 fi
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 # Binary search between lo and hi bounds.
4508 while test "x$ac_lo" != "x$ac_hi"; do
4509   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4510   cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 $ac_includes_default
4517 int
4518 main ()
4519 {
4520 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4521 test_array [0] = 0
4522
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529   (eval $ac_compile) 2>conftest.er1
4530   ac_status=$?
4531   grep -v '^ *+' conftest.er1 >conftest.err
4532   rm -f conftest.er1
4533   cat conftest.err >&5
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } &&
4536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538   (eval $ac_try) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; } &&
4542          { ac_try='test -s conftest.$ac_objext'
4543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544   (eval $ac_try) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; }; then
4548   ac_hi=$ac_mid
4549 else
4550   echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 ac_lo=`expr '(' $ac_mid ')' + 1`
4554 fi
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556 done
4557 case $ac_lo in
4558 ?*) ac_cv_sizeof_int=$ac_lo;;
4559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: cannot compute sizeof (int), 77
4562 See \`config.log' for more details." >&2;}
4563    { (exit 1); exit 1; }; } ;;
4564 esac
4565 else
4566   if test "$cross_compiling" = yes; then
4567   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4568 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4569    { (exit 1); exit 1; }; }
4570 else
4571   cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 $ac_includes_default
4578 long longval () { return (long) (sizeof (int)); }
4579 unsigned long ulongval () { return (long) (sizeof (int)); }
4580 #include <stdio.h>
4581 #include <stdlib.h>
4582 int
4583 main ()
4584 {
4585
4586   FILE *f = fopen ("conftest.val", "w");
4587   if (! f)
4588     exit (1);
4589   if (((long) (sizeof (int))) < 0)
4590     {
4591       long i = longval ();
4592       if (i != ((long) (sizeof (int))))
4593         exit (1);
4594       fprintf (f, "%ld\n", i);
4595     }
4596   else
4597     {
4598       unsigned long i = ulongval ();
4599       if (i != ((long) (sizeof (int))))
4600         exit (1);
4601       fprintf (f, "%lu\n", i);
4602     }
4603   exit (ferror (f) || fclose (f) != 0);
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611   (eval $ac_link) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616   (eval $ac_try) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   ac_cv_sizeof_int=`cat conftest.val`
4621 else
4622   echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ( exit $ac_status )
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 fi
4633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 fi
4636 rm -f conftest.val
4637 else
4638   ac_cv_sizeof_int=0
4639 fi
4640 fi
4641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4642 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4643 cat >>confdefs.h <<_ACEOF
4644 #define SIZEOF_INT $ac_cv_sizeof_int
4645 _ACEOF
4646
4647
4648 echo "$as_me:$LINENO: checking for long" >&5
4649 echo $ECHO_N "checking for long... $ECHO_C" >&6
4650 if test "${ac_cv_type_long+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659 $ac_includes_default
4660 int
4661 main ()
4662 {
4663 if ((long *) 0)
4664   return 0;
4665 if (sizeof (long))
4666   return 0;
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673   (eval $ac_compile) 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; } &&
4686          { ac_try='test -s conftest.$ac_objext'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   ac_cv_type_long=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_cv_type_long=no
4698 fi
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 fi
4701 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4702 echo "${ECHO_T}$ac_cv_type_long" >&6
4703
4704 echo "$as_me:$LINENO: checking size of long" >&5
4705 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4706 if test "${ac_cv_sizeof_long+set}" = set; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   if test "$ac_cv_type_long" = yes; then
4710   # The cast to unsigned long works around a bug in the HP C Compiler
4711   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4712   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4713   # This bug is HP SR number 8606223364.
4714   if test "$cross_compiling" = yes; then
4715   # Depending upon the size, compute the lo and hi bounds.
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 $ac_includes_default
4723 int
4724 main ()
4725 {
4726 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4727 test_array [0] = 0
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_lo=0 ac_mid=0
4755   while :; do
4756     cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h.  */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h.  */
4762 $ac_includes_default
4763 int
4764 main ()
4765 {
4766 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4767 test_array [0] = 0
4768
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } &&
4782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_hi=$ac_mid; break
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_lo=`expr $ac_mid + 1`
4800                     if test $ac_lo -le $ac_mid; then
4801                       ac_lo= ac_hi=
4802                       break
4803                     fi
4804                     ac_mid=`expr 2 '*' $ac_mid + 1`
4805 fi
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807   done
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818 $ac_includes_default
4819 int
4820 main ()
4821 {
4822 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4823 test_array [0] = 0
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>conftest.er1
4832   ac_status=$?
4833   grep -v '^ *+' conftest.er1 >conftest.err
4834   rm -f conftest.er1
4835   cat conftest.err >&5
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); } &&
4838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; } &&
4844          { ac_try='test -s conftest.$ac_objext'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; }; then
4850   ac_hi=-1 ac_mid=-1
4851   while :; do
4852     cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 $ac_includes_default
4859 int
4860 main ()
4861 {
4862 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4863 test_array [0] = 0
4864
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
4875   cat conftest.err >&5
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } &&
4878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   ac_lo=$ac_mid; break
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_hi=`expr '(' $ac_mid ')' - 1`
4896                        if test $ac_mid -le $ac_hi; then
4897                          ac_lo= ac_hi=
4898                          break
4899                        fi
4900                        ac_mid=`expr 2 '*' $ac_mid`
4901 fi
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903   done
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ac_lo= ac_hi=
4909 fi
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 # Binary search between lo and hi bounds.
4914 while test "x$ac_lo" != "x$ac_hi"; do
4915   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4916   cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h.  */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h.  */
4922 $ac_includes_default
4923 int
4924 main ()
4925 {
4926 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4927 test_array [0] = 0
4928
4929   ;
4930   return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935   (eval $ac_compile) 2>conftest.er1
4936   ac_status=$?
4937   grep -v '^ *+' conftest.er1 >conftest.err
4938   rm -f conftest.er1
4939   cat conftest.err >&5
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   ac_hi=$ac_mid
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 ac_lo=`expr '(' $ac_mid ')' + 1`
4960 fi
4961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 done
4963 case $ac_lo in
4964 ?*) ac_cv_sizeof_long=$ac_lo;;
4965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4966 See \`config.log' for more details." >&5
4967 echo "$as_me: error: cannot compute sizeof (long), 77
4968 See \`config.log' for more details." >&2;}
4969    { (exit 1); exit 1; }; } ;;
4970 esac
4971 else
4972   if test "$cross_compiling" = yes; then
4973   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4974 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4975    { (exit 1); exit 1; }; }
4976 else
4977   cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4983 $ac_includes_default
4984 long longval () { return (long) (sizeof (long)); }
4985 unsigned long ulongval () { return (long) (sizeof (long)); }
4986 #include <stdio.h>
4987 #include <stdlib.h>
4988 int
4989 main ()
4990 {
4991
4992   FILE *f = fopen ("conftest.val", "w");
4993   if (! f)
4994     exit (1);
4995   if (((long) (sizeof (long))) < 0)
4996     {
4997       long i = longval ();
4998       if (i != ((long) (sizeof (long))))
4999         exit (1);
5000       fprintf (f, "%ld\n", i);
5001     }
5002   else
5003     {
5004       unsigned long i = ulongval ();
5005       if (i != ((long) (sizeof (long))))
5006         exit (1);
5007       fprintf (f, "%lu\n", i);
5008     }
5009   exit (ferror (f) || fclose (f) != 0);
5010
5011   ;
5012   return 0;
5013 }
5014 _ACEOF
5015 rm -f conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017   (eval $ac_link) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022   (eval $ac_try) 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); }; }; then
5026   ac_cv_sizeof_long=`cat conftest.val`
5027 else
5028   echo "$as_me: program exited with status $ac_status" >&5
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 ( exit $ac_status )
5033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5034 See \`config.log' for more details." >&5
5035 echo "$as_me: error: cannot compute sizeof (long), 77
5036 See \`config.log' for more details." >&2;}
5037    { (exit 1); exit 1; }; }
5038 fi
5039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 fi
5041 fi
5042 rm -f conftest.val
5043 else
5044   ac_cv_sizeof_long=0
5045 fi
5046 fi
5047 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5048 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5049 cat >>confdefs.h <<_ACEOF
5050 #define SIZEOF_LONG $ac_cv_sizeof_long
5051 _ACEOF
5052
5053
5054 echo "$as_me:$LINENO: checking for long long" >&5
5055 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5056 if test "${ac_cv_type_long_long+set}" = set; then
5057   echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 $ac_includes_default
5066 int
5067 main ()
5068 {
5069 if ((long long *) 0)
5070   return 0;
5071 if (sizeof (long long))
5072   return 0;
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>conftest.er1
5080   ac_status=$?
5081   grep -v '^ *+' conftest.er1 >conftest.err
5082   rm -f conftest.er1
5083   cat conftest.err >&5
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; } &&
5092          { ac_try='test -s conftest.$ac_objext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   ac_cv_type_long_long=yes
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 ac_cv_type_long_long=no
5104 fi
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5108 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5109 if test $ac_cv_type_long_long = yes; then
5110
5111 cat >>confdefs.h <<_ACEOF
5112 #define HAVE_LONG_LONG 1
5113 _ACEOF
5114
5115 echo "$as_me:$LINENO: checking for long long" >&5
5116 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5117 if test "${ac_cv_type_long_long+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 $ac_includes_default
5127 int
5128 main ()
5129 {
5130 if ((long long *) 0)
5131   return 0;
5132 if (sizeof (long long))
5133   return 0;
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140   (eval $ac_compile) 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } &&
5147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; } &&
5153          { ac_try='test -s conftest.$ac_objext'
5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155   (eval $ac_try) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }; }; then
5159   ac_cv_type_long_long=yes
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 ac_cv_type_long_long=no
5165 fi
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5169 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5170
5171 echo "$as_me:$LINENO: checking size of long long" >&5
5172 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5173 if test "${ac_cv_sizeof_long_long+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test "$ac_cv_type_long_long" = yes; then
5177   # The cast to unsigned long works around a bug in the HP C Compiler
5178   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5179   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5180   # This bug is HP SR number 8606223364.
5181   if test "$cross_compiling" = yes; then
5182   # Depending upon the size, compute the lo and hi bounds.
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189 $ac_includes_default
5190 int
5191 main ()
5192 {
5193 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5194 test_array [0] = 0
5195
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202   (eval $ac_compile) 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; } &&
5215          { ac_try='test -s conftest.$ac_objext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   ac_lo=0 ac_mid=0
5222   while :; do
5223     cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229 $ac_includes_default
5230 int
5231 main ()
5232 {
5233 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5234 test_array [0] = 0
5235
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242   (eval $ac_compile) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; } &&
5255          { ac_try='test -s conftest.$ac_objext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_hi=$ac_mid; break
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 ac_lo=`expr $ac_mid + 1`
5267                     if test $ac_lo -le $ac_mid; then
5268                       ac_lo= ac_hi=
5269                       break
5270                     fi
5271                     ac_mid=`expr 2 '*' $ac_mid + 1`
5272 fi
5273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5274   done
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h.  */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h.  */
5285 $ac_includes_default
5286 int
5287 main ()
5288 {
5289 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5290 test_array [0] = 0
5291
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298   (eval $ac_compile) 2>conftest.er1
5299   ac_status=$?
5300   grep -v '^ *+' conftest.er1 >conftest.err
5301   rm -f conftest.er1
5302   cat conftest.err >&5
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } &&
5305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; } &&
5311          { ac_try='test -s conftest.$ac_objext'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   ac_hi=-1 ac_mid=-1
5318   while :; do
5319     cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 $ac_includes_default
5326 int
5327 main ()
5328 {
5329 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5330 test_array [0] = 0
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338   (eval $ac_compile) 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } &&
5345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347   (eval $ac_try) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); }; } &&
5351          { ac_try='test -s conftest.$ac_objext'
5352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; }; then
5357   ac_lo=$ac_mid; break
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 ac_hi=`expr '(' $ac_mid ')' - 1`
5363                        if test $ac_mid -le $ac_hi; then
5364                          ac_lo= ac_hi=
5365                          break
5366                        fi
5367                        ac_mid=`expr 2 '*' $ac_mid`
5368 fi
5369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5370   done
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_lo= ac_hi=
5376 fi
5377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 fi
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380 # Binary search between lo and hi bounds.
5381 while test "x$ac_lo" != "x$ac_hi"; do
5382   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5383   cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h.  */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h.  */
5389 $ac_includes_default
5390 int
5391 main ()
5392 {
5393 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5394 test_array [0] = 0
5395
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402   (eval $ac_compile) 2>conftest.er1
5403   ac_status=$?
5404   grep -v '^ *+' conftest.er1 >conftest.err
5405   rm -f conftest.er1
5406   cat conftest.err >&5
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } &&
5409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; } &&
5415          { ac_try='test -s conftest.$ac_objext'
5416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417   (eval $ac_try) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   ac_hi=$ac_mid
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_lo=`expr '(' $ac_mid ')' + 1`
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 done
5430 case $ac_lo in
5431 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5432 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5433 See \`config.log' for more details." >&5
5434 echo "$as_me: error: cannot compute sizeof (long long), 77
5435 See \`config.log' for more details." >&2;}
5436    { (exit 1); exit 1; }; } ;;
5437 esac
5438 else
5439   if test "$cross_compiling" = yes; then
5440   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5441 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5442    { (exit 1); exit 1; }; }
5443 else
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 $ac_includes_default
5451 long longval () { return (long) (sizeof (long long)); }
5452 unsigned long ulongval () { return (long) (sizeof (long long)); }
5453 #include <stdio.h>
5454 #include <stdlib.h>
5455 int
5456 main ()
5457 {
5458
5459   FILE *f = fopen ("conftest.val", "w");
5460   if (! f)
5461     exit (1);
5462   if (((long) (sizeof (long long))) < 0)
5463     {
5464       long i = longval ();
5465       if (i != ((long) (sizeof (long long))))
5466         exit (1);
5467       fprintf (f, "%ld\n", i);
5468     }
5469   else
5470     {
5471       unsigned long i = ulongval ();
5472       if (i != ((long) (sizeof (long long))))
5473         exit (1);
5474       fprintf (f, "%lu\n", i);
5475     }
5476   exit (ferror (f) || fclose (f) != 0);
5477
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484   (eval $ac_link) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_cv_sizeof_long_long=`cat conftest.val`
5494 else
5495   echo "$as_me: program exited with status $ac_status" >&5
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 ( exit $ac_status )
5500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5501 See \`config.log' for more details." >&5
5502 echo "$as_me: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&2;}
5504    { (exit 1); exit 1; }; }
5505 fi
5506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5507 fi
5508 fi
5509 rm -f conftest.val
5510 else
5511   ac_cv_sizeof_long_long=0
5512 fi
5513 fi
5514 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5515 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5516 cat >>confdefs.h <<_ACEOF
5517 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5518 _ACEOF
5519
5520
5521 fi
5522
5523 echo "$as_me:$LINENO: checking for __int64" >&5
5524 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5525 if test "${ac_cv_type___int64+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 $ac_includes_default
5535 int
5536 main ()
5537 {
5538 if ((__int64 *) 0)
5539   return 0;
5540 if (sizeof (__int64))
5541   return 0;
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548   (eval $ac_compile) 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } &&
5555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557   (eval $ac_try) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; } &&
5561          { ac_try='test -s conftest.$ac_objext'
5562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563   (eval $ac_try) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); }; }; then
5567   ac_cv_type___int64=yes
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 ac_cv_type___int64=no
5573 fi
5574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5575 fi
5576 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5577 echo "${ECHO_T}$ac_cv_type___int64" >&6
5578 if test $ac_cv_type___int64 = yes; then
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define HAVE___INT64 1
5582 _ACEOF
5583
5584 echo "$as_me:$LINENO: checking for __int64" >&5
5585 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5586 if test "${ac_cv_type___int64+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h.  */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h.  */
5595 $ac_includes_default
5596 int
5597 main ()
5598 {
5599 if ((__int64 *) 0)
5600   return 0;
5601 if (sizeof (__int64))
5602   return 0;
5603   ;
5604   return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609   (eval $ac_compile) 2>conftest.er1
5610   ac_status=$?
5611   grep -v '^ *+' conftest.er1 >conftest.err
5612   rm -f conftest.er1
5613   cat conftest.err >&5
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618   (eval $ac_try) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; } &&
5622          { ac_try='test -s conftest.$ac_objext'
5623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624   (eval $ac_try) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }; }; then
5628   ac_cv_type___int64=yes
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 ac_cv_type___int64=no
5634 fi
5635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5638 echo "${ECHO_T}$ac_cv_type___int64" >&6
5639
5640 echo "$as_me:$LINENO: checking size of __int64" >&5
5641 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5642 if test "${ac_cv_sizeof___int64+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   if test "$ac_cv_type___int64" = yes; then
5646   # The cast to unsigned long works around a bug in the HP C Compiler
5647   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5648   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5649   # This bug is HP SR number 8606223364.
5650   if test "$cross_compiling" = yes; then
5651   # Depending upon the size, compute the lo and hi bounds.
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 $ac_includes_default
5659 int
5660 main ()
5661 {
5662 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5663 test_array [0] = 0
5664
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671   (eval $ac_compile) 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } &&
5678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; } &&
5684          { ac_try='test -s conftest.$ac_objext'
5685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686   (eval $ac_try) 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; }; then
5690   ac_lo=0 ac_mid=0
5691   while :; do
5692     cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 $ac_includes_default
5699 int
5700 main ()
5701 {
5702 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5703 test_array [0] = 0
5704
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711   (eval $ac_compile) 2>conftest.er1
5712   ac_status=$?
5713   grep -v '^ *+' conftest.er1 >conftest.err
5714   rm -f conftest.er1
5715   cat conftest.err >&5
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } &&
5718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720   (eval $ac_try) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; } &&
5724          { ac_try='test -s conftest.$ac_objext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   ac_hi=$ac_mid; break
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 ac_lo=`expr $ac_mid + 1`
5736                     if test $ac_lo -le $ac_mid; then
5737                       ac_lo= ac_hi=
5738                       break
5739                     fi
5740                     ac_mid=`expr 2 '*' $ac_mid + 1`
5741 fi
5742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743   done
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h.  */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h.  */
5754 $ac_includes_default
5755 int
5756 main ()
5757 {
5758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5759 test_array [0] = 0
5760
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767   (eval $ac_compile) 2>conftest.er1
5768   ac_status=$?
5769   grep -v '^ *+' conftest.er1 >conftest.err
5770   rm -f conftest.er1
5771   cat conftest.err >&5
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); } &&
5774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
5780          { ac_try='test -s conftest.$ac_objext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_hi=-1 ac_mid=-1
5787   while :; do
5788     cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794 $ac_includes_default
5795 int
5796 main ()
5797 {
5798 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5799 test_array [0] = 0
5800
5801   ;
5802   return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807   (eval $ac_compile) 2>conftest.er1
5808   ac_status=$?
5809   grep -v '^ *+' conftest.er1 >conftest.err
5810   rm -f conftest.er1
5811   cat conftest.err >&5
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); } &&
5814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest.$ac_objext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_lo=$ac_mid; break
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 ac_hi=`expr '(' $ac_mid ')' - 1`
5832                        if test $ac_mid -le $ac_hi; then
5833                          ac_lo= ac_hi=
5834                          break
5835                        fi
5836                        ac_mid=`expr 2 '*' $ac_mid`
5837 fi
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839   done
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_lo= ac_hi=
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5849 # Binary search between lo and hi bounds.
5850 while test "x$ac_lo" != "x$ac_hi"; do
5851   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5852   cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 $ac_includes_default
5859 int
5860 main ()
5861 {
5862 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5863 test_array [0] = 0
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; } &&
5884          { ac_try='test -s conftest.$ac_objext'
5885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); }; }; then
5890   ac_hi=$ac_mid
5891 else
5892   echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_lo=`expr '(' $ac_mid ')' + 1`
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 done
5899 case $ac_lo in
5900 ?*) ac_cv_sizeof___int64=$ac_lo;;
5901 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5902 See \`config.log' for more details." >&5
5903 echo "$as_me: error: cannot compute sizeof (__int64), 77
5904 See \`config.log' for more details." >&2;}
5905    { (exit 1); exit 1; }; } ;;
5906 esac
5907 else
5908   if test "$cross_compiling" = yes; then
5909   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5910 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5911    { (exit 1); exit 1; }; }
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919 $ac_includes_default
5920 long longval () { return (long) (sizeof (__int64)); }
5921 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5922 #include <stdio.h>
5923 #include <stdlib.h>
5924 int
5925 main ()
5926 {
5927
5928   FILE *f = fopen ("conftest.val", "w");
5929   if (! f)
5930     exit (1);
5931   if (((long) (sizeof (__int64))) < 0)
5932     {
5933       long i = longval ();
5934       if (i != ((long) (sizeof (__int64))))
5935         exit (1);
5936       fprintf (f, "%ld\n", i);
5937     }
5938   else
5939     {
5940       unsigned long i = ulongval ();
5941       if (i != ((long) (sizeof (__int64))))
5942         exit (1);
5943       fprintf (f, "%lu\n", i);
5944     }
5945   exit (ferror (f) || fclose (f) != 0);
5946
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953   (eval $ac_link) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; }; then
5962   ac_cv_sizeof___int64=`cat conftest.val`
5963 else
5964   echo "$as_me: program exited with status $ac_status" >&5
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968 ( exit $ac_status )
5969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot compute sizeof (__int64), 77
5972 See \`config.log' for more details." >&2;}
5973    { (exit 1); exit 1; }; }
5974 fi
5975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 fi
5978 rm -f conftest.val
5979 else
5980   ac_cv_sizeof___int64=0
5981 fi
5982 fi
5983 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5984 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5987 _ACEOF
5988
5989
5990 fi
5991
5992
5993 # ---------------------
5994 # Warnings and checking
5995 # ---------------------
5996
5997 # Check $CC warning features (if it's GCC).
5998 # We want to use -pedantic, but we don't want warnings about
5999 # * 'long long'
6000 # * variadic macros
6001 # So, we only use -pedantic if we can disable those warnings.
6002
6003 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6004 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6005 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   save_CFLAGS="$CFLAGS"
6009   CFLAGS="-Wno-long-long"
6010   cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020   (eval $ac_compile) 2>conftest.er1
6021   ac_status=$?
6022   grep -v '^ *+' conftest.er1 >conftest.err
6023   rm -f conftest.er1
6024   cat conftest.err >&5
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); } &&
6027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest.$ac_objext'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; }; then
6039   ac_cv_prog_cc_w_no_long_long=yes
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 ac_cv_prog_cc_w_no_long_long=no
6045 fi
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047   CFLAGS="$save_CFLAGS"
6048
6049 fi
6050 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6051 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6052
6053 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6054 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6055 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   save_CFLAGS="$CFLAGS"
6059   CFLAGS="-Wno-variadic-macros"
6060   cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070   (eval $ac_compile) 2>conftest.er1
6071   ac_status=$?
6072   grep -v '^ *+' conftest.er1 >conftest.err
6073   rm -f conftest.er1
6074   cat conftest.err >&5
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); } &&
6077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079   (eval $ac_try) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; } &&
6083          { ac_try='test -s conftest.$ac_objext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_cv_prog_cc_w_no_variadic_macros=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ac_cv_prog_cc_w_no_variadic_macros=no
6095 fi
6096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6097   CFLAGS="$save_CFLAGS"
6098
6099 fi
6100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6101 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6102
6103 strict1_warn=
6104 if test $ac_cv_prog_cc_w_no_long_long = yes \
6105    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6106   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6107 fi
6108
6109 # Add -Wold-style-definition if it's accepted
6110 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6111 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6112 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   save_CFLAGS="$CFLAGS"
6116   CFLAGS="-Wold-style-definition"
6117   cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127   (eval $ac_compile) 2>conftest.er1
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
6131   cat conftest.err >&5
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } &&
6134          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136   (eval $ac_try) 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); }; } &&
6140          { ac_try='test -s conftest.$ac_objext'
6141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142   (eval $ac_try) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); }; }; then
6146   ac_cv_prog_cc_w_old_style_definition=yes
6147 else
6148   echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_cv_prog_cc_w_old_style_definition=no
6152 fi
6153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6154   CFLAGS="$save_CFLAGS"
6155
6156 fi
6157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6158 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6159 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6160   strict1_warn="${strict1_warn} -Wold-style-definition"
6161 fi
6162
6163 # Add -Wmissing-format-attribute if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   save_CFLAGS="$CFLAGS"
6170   CFLAGS="-Wmissing-format-attribute"
6171   cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181   (eval $ac_compile) 2>conftest.er1
6182   ac_status=$?
6183   grep -v '^ *+' conftest.er1 >conftest.err
6184   rm -f conftest.er1
6185   cat conftest.err >&5
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } &&
6188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; } &&
6194          { ac_try='test -s conftest.$ac_objext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_prog_cc_w_missing_format_attribute=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_cv_prog_cc_w_missing_format_attribute=no
6206 fi
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208   CFLAGS="$save_CFLAGS"
6209
6210 fi
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6213 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6214   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6215 fi
6216
6217 # Enable -Werror, period.
6218 # Check whether --enable-werror_always or --disable-werror_always was given.
6219 if test "${enable_werror_always+set}" = set; then
6220   enableval="$enable_werror_always"
6221
6222 else
6223   enable_werror_always=no
6224 fi;
6225 if test x${enable_werror_always} = xyes ; then
6226   strict1_warn="${strict1_warn} -Werror"
6227   WERROR=-Werror
6228 fi
6229
6230
6231
6232 # If the native compiler is GCC, we can enable warnings even in stage1.
6233 # That's useful for people building cross-compilers, or just running a
6234 # quick `make'.
6235 warn_cflags=
6236 if test "x$GCC" = "xyes"; then
6237   warn_cflags='$(GCC_WARN_CFLAGS)'
6238 fi
6239
6240
6241 # Enable -Werror in bootstrap stage2 and later.
6242 is_release=
6243 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6244   is_release=yes
6245 fi
6246 # Check whether --enable-werror or --disable-werror was given.
6247 if test "${enable_werror+set}" = set; then
6248   enableval="$enable_werror"
6249
6250 else
6251   if test x$is_release = x ; then
6252   # Default to "yes" on development branches.
6253   enable_werror=yes
6254 else
6255   # Default to "no" on release branches.
6256   enable_werror=no
6257 fi
6258 fi;
6259 if test x$enable_werror = xyes ; then
6260   WERROR=-Werror
6261 fi
6262
6263
6264 # Enable expensive internal checks
6265 # Check whether --enable-checking or --disable-checking was given.
6266 if test "${enable_checking+set}" = set; then
6267   enableval="$enable_checking"
6268   ac_checking_flags="${enableval}"
6269 else
6270
6271 # Determine the default checks.
6272 if test x$is_release = x ; then
6273   ac_checking_flags=yes
6274 else
6275   ac_checking_flags=release
6276 fi
6277 fi;
6278 ac_assert_checking=1
6279 ac_checking=
6280 ac_fold_checking=
6281 ac_gc_checking=
6282 ac_gc_always_collect=
6283 ac_rtl_checking=
6284 ac_rtlflag_checking=
6285 ac_runtime_checking=1
6286 ac_tree_checking=
6287 ac_valgrind_checking=
6288 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6289 for check in $ac_checking_flags
6290 do
6291         case $check in
6292         # these set all the flags to specific states
6293         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6294                         ac_fold_checking= ; ac_gc_checking=1 ;
6295                         ac_gc_always_collect= ; ac_rtl_checking= ;
6296                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6297                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6298         no|none)        ac_assert_checking= ; ac_checking= ;
6299                         ac_fold_checking= ; ac_gc_checking= ;
6300                         ac_gc_always_collect= ; ac_rtl_checking= ;
6301                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6302                         ac_tree_checking= ; ac_valgrind_checking= ;;
6303         all)            ac_assert_checking=1 ; ac_checking=1 ;
6304                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6305                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6306                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6307                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6308         release)        ac_assert_checking=1 ; ac_checking= ;
6309                         ac_fold_checking= ; ac_gc_checking= ;
6310                         ac_gc_always_collect= ; ac_rtl_checking= ;
6311                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6312                         ac_tree_checking= ; ac_valgrind_checking= ;;
6313         # these enable particular checks
6314         assert)         ac_assert_checking=1 ;;
6315         fold)           ac_fold_checking=1 ;;
6316         gc)             ac_gc_checking=1 ;;
6317         gcac)           ac_gc_always_collect=1 ;;
6318         misc)           ac_checking=1 ;;
6319         rtl)            ac_rtl_checking=1 ;;
6320         rtlflag)        ac_rtlflag_checking=1 ;;
6321         runtime)        ac_runtime_checking=1 ;;
6322         tree)           ac_tree_checking=1 ;;
6323         valgrind)       ac_valgrind_checking=1 ;;
6324         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6325 echo "$as_me: error: unknown check category $check" >&2;}
6326    { (exit 1); exit 1; }; } ;;
6327         esac
6328 done
6329 IFS="$ac_save_IFS"
6330
6331 nocommon_flag=""
6332 if test x$ac_checking != x ; then
6333
6334 cat >>confdefs.h <<\_ACEOF
6335 #define ENABLE_CHECKING 1
6336 _ACEOF
6337
6338   nocommon_flag=-fno-common
6339 fi
6340
6341 if test x$ac_assert_checking != x ; then
6342
6343 cat >>confdefs.h <<\_ACEOF
6344 #define ENABLE_ASSERT_CHECKING 1
6345 _ACEOF
6346
6347 fi
6348
6349 if test x$ac_runtime_checking != x ; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define ENABLE_RUNTIME_CHECKING 1
6353 _ACEOF
6354
6355 fi
6356 if test x$ac_tree_checking != x ; then
6357
6358 cat >>confdefs.h <<\_ACEOF
6359 #define ENABLE_TREE_CHECKING 1
6360 _ACEOF
6361
6362   TREEBROWSER=tree-browser.o
6363 fi
6364
6365 if test x$ac_rtl_checking != x ; then
6366
6367 cat >>confdefs.h <<\_ACEOF
6368 #define ENABLE_RTL_CHECKING 1
6369 _ACEOF
6370
6371 fi
6372 if test x$ac_rtlflag_checking != x ; then
6373
6374 cat >>confdefs.h <<\_ACEOF
6375 #define ENABLE_RTL_FLAG_CHECKING 1
6376 _ACEOF
6377
6378 fi
6379 if test x$ac_gc_checking != x ; then
6380
6381 cat >>confdefs.h <<\_ACEOF
6382 #define ENABLE_GC_CHECKING 1
6383 _ACEOF
6384
6385 fi
6386 if test x$ac_gc_always_collect != x ; then
6387
6388 cat >>confdefs.h <<\_ACEOF
6389 #define ENABLE_GC_ALWAYS_COLLECT 1
6390 _ACEOF
6391
6392 fi
6393 if test x$ac_fold_checking != x ; then
6394
6395 cat >>confdefs.h <<\_ACEOF
6396 #define ENABLE_FOLD_CHECKING 1
6397 _ACEOF
6398
6399 fi
6400 valgrind_path_defines=
6401 valgrind_command=
6402
6403 if test "${ac_cv_header_valgrind_h+set}" = set; then
6404   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6405 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6406 if test "${ac_cv_header_valgrind_h+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 fi
6409 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6410 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6411 else
6412   # Is the header compilable?
6413 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6414 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h.  */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h.  */
6421 $ac_includes_default
6422 #include <valgrind.h>
6423 _ACEOF
6424 rm -f conftest.$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426   (eval $ac_compile) 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest.$ac_objext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_header_compiler=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_header_compiler=no
6451 fi
6452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6454 echo "${ECHO_T}$ac_header_compiler" >&6
6455
6456 # Is the header present?
6457 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6458 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 #include <valgrind.h>
6466 _ACEOF
6467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } >/dev/null; then
6475   if test -s conftest.err; then
6476     ac_cpp_err=$ac_c_preproc_warn_flag
6477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6478   else
6479     ac_cpp_err=
6480   fi
6481 else
6482   ac_cpp_err=yes
6483 fi
6484 if test -z "$ac_cpp_err"; then
6485   ac_header_preproc=yes
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490   ac_header_preproc=no
6491 fi
6492 rm -f conftest.err conftest.$ac_ext
6493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6494 echo "${ECHO_T}$ac_header_preproc" >&6
6495
6496 # So?  What about this header?
6497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498   yes:no: )
6499     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6500 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6502 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6503     ac_header_preproc=yes
6504     ;;
6505   no:yes:* )
6506     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6507 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6508     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6509 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6510     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6511 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6512     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6513 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6514     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6515 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6517 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6518     (
6519       cat <<\_ASBOX
6520 ## ------------------------------------------ ##
6521 ## Report this to the AC_PACKAGE_NAME lists.  ##
6522 ## ------------------------------------------ ##
6523 _ASBOX
6524     ) |
6525       sed "s/^/$as_me: WARNING:     /" >&2
6526     ;;
6527 esac
6528 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6529 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6530 if test "${ac_cv_header_valgrind_h+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   ac_cv_header_valgrind_h=$ac_header_preproc
6534 fi
6535 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6536 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6537
6538 fi
6539 if test $ac_cv_header_valgrind_h = yes; then
6540   have_valgrind_h=yes
6541 else
6542   have_valgrind_h=no
6543 fi
6544
6545
6546
6547 if test x$ac_valgrind_checking != x ; then
6548   # It is certainly possible that there's valgrind but no valgrind.h.
6549   # GCC relies on making annotations so we must have both.
6550   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6551 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6552   cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 #include <valgrind/memcheck.h>
6559 #ifndef VALGRIND_DISCARD
6560 #error VALGRIND_DISCARD not defined
6561 #endif
6562 _ACEOF
6563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6565   ac_status=$?
6566   grep -v '^ *+' conftest.er1 >conftest.err
6567   rm -f conftest.er1
6568   cat conftest.err >&5
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } >/dev/null; then
6571   if test -s conftest.err; then
6572     ac_cpp_err=$ac_c_preproc_warn_flag
6573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6574   else
6575     ac_cpp_err=
6576   fi
6577 else
6578   ac_cpp_err=yes
6579 fi
6580 if test -z "$ac_cpp_err"; then
6581   gcc_cv_header_valgrind_memcheck_h=yes
6582 else
6583   echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586   gcc_cv_header_valgrind_memcheck_h=no
6587 fi
6588 rm -f conftest.err conftest.$ac_ext
6589   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6590 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6591   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6592 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6593   cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 #include <memcheck.h>
6600 #ifndef VALGRIND_DISCARD
6601 #error VALGRIND_DISCARD not defined
6602 #endif
6603 _ACEOF
6604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6606   ac_status=$?
6607   grep -v '^ *+' conftest.er1 >conftest.err
6608   rm -f conftest.er1
6609   cat conftest.err >&5
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } >/dev/null; then
6612   if test -s conftest.err; then
6613     ac_cpp_err=$ac_c_preproc_warn_flag
6614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6615   else
6616     ac_cpp_err=
6617   fi
6618 else
6619   ac_cpp_err=yes
6620 fi
6621 if test -z "$ac_cpp_err"; then
6622   gcc_cv_header_memcheck_h=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627   gcc_cv_header_memcheck_h=no
6628 fi
6629 rm -f conftest.err conftest.$ac_ext
6630   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6631 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6632
6633 # Prepare PATH_SEPARATOR.
6634 # The user is always right.
6635 if test "${PATH_SEPARATOR+set}" != set; then
6636   echo "#! /bin/sh" >conf$$.sh
6637   echo  "exit 0"   >>conf$$.sh
6638   chmod +x conf$$.sh
6639   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6640     PATH_SEPARATOR=';'
6641   else
6642     PATH_SEPARATOR=:
6643   fi
6644   rm -f conf$$.sh
6645 fi
6646
6647 # Find out how to test for executable files. Don't use a zero-byte file,
6648 # as systems may use methods other than mode bits to determine executability.
6649 cat >conf$$.file <<_ASEOF
6650 #! /bin/sh
6651 exit 0
6652 _ASEOF
6653 chmod +x conf$$.file
6654 if test -x conf$$.file >/dev/null 2>&1; then
6655   ac_executable_p="test -x"
6656 else
6657   ac_executable_p="test -f"
6658 fi
6659 rm -f conf$$.file
6660
6661 # Extract the first word of "valgrind", so it can be a program name with args.
6662 set dummy valgrind; ac_word=$2
6663 echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6665 if test "${ac_cv_path_valgrind_path+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   case "$valgrind_path" in
6669   [\\/]* | ?:[\\/]*)
6670     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6671     ;;
6672   *)
6673     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6674     for ac_dir in $PATH; do
6675       IFS="$ac_save_IFS"
6676       test -z "$ac_dir" && ac_dir=.
6677       for ac_exec_ext in '' $ac_executable_extensions; do
6678         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6679           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6680             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6681             break 2
6682           fi
6683         fi
6684       done
6685     done
6686     IFS="$ac_save_IFS"
6687     ;;
6688 esac
6689 fi
6690 valgrind_path="$ac_cv_path_valgrind_path"
6691 if test -n "$valgrind_path"; then
6692   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6693 echo "${ECHO_T}$valgrind_path" >&6
6694 else
6695   echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6
6697 fi
6698
6699   if test "x$valgrind_path" = "x" \
6700     || (test $have_valgrind_h = no \
6701         && test $gcc_cv_header_memcheck_h = no \
6702         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6703         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6704 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6705    { (exit 1); exit 1; }; }
6706   fi
6707   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6708   valgrind_command="$valgrind_path -q"
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define ENABLE_VALGRIND_CHECKING 1
6712 _ACEOF
6713
6714   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6715
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_VALGRIND_MEMCHECK_H 1
6718 _ACEOF
6719
6720   fi
6721   if test $gcc_cv_header_memcheck_h = yes; then
6722
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_MEMCHECK_H 1
6725 _ACEOF
6726
6727   fi
6728 fi
6729
6730
6731
6732 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6733 if test "${enable_mapped_location+set}" = set; then
6734   enableval="$enable_mapped_location"
6735
6736 else
6737   enable_mapped_location=no
6738 fi;
6739
6740 if test "$enable_mapped_location" = yes ; then
6741
6742 cat >>confdefs.h <<\_ACEOF
6743 #define USE_MAPPED_LOCATION 1
6744 _ACEOF
6745
6746 fi
6747
6748 # Enable code coverage collection
6749 # Check whether --enable-coverage or --disable-coverage was given.
6750 if test "${enable_coverage+set}" = set; then
6751   enableval="$enable_coverage"
6752   case "${enableval}" in
6753   yes|noopt)
6754     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6755     ;;
6756   opt)
6757     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6758     ;;
6759   no)
6760     # a.k.a. --disable-coverage
6761     coverage_flags=""
6762     ;;
6763   *)
6764     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6765 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6766    { (exit 1); exit 1; }; }
6767     ;;
6768 esac
6769 else
6770   coverage_flags=""
6771 fi;
6772
6773
6774 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6775 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6776   enableval="$enable_gather_detailed_mem_stats"
6777
6778 else
6779   enable_gather_detailed_mem_stats=no
6780 fi;
6781 if test x$enable_gather_detailed_mem_stats = xyes ; then
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define GATHER_STATISTICS 1
6785 _ACEOF
6786
6787 fi
6788
6789 # -------------------------------
6790 # Miscenalleous configure options
6791 # -------------------------------
6792
6793 # With stabs
6794
6795 # Check whether --with-stabs or --without-stabs was given.
6796 if test "${with_stabs+set}" = set; then
6797   withval="$with_stabs"
6798   stabs="$with_stabs"
6799 else
6800   stabs=no
6801 fi;
6802
6803 # Determine whether or not multilibs are enabled.
6804 # Check whether --enable-multilib or --disable-multilib was given.
6805 if test "${enable_multilib+set}" = set; then
6806   enableval="$enable_multilib"
6807
6808 else
6809   enable_multilib=yes
6810 fi;
6811
6812
6813 # Enable __cxa_atexit for C++.
6814 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6815 if test "${enable___cxa_atexit+set}" = set; then
6816   enableval="$enable___cxa_atexit"
6817
6818 fi;
6819
6820 # Enable C extension for decimal float if target supports it.
6821 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6822 if test "${enable_decimal_float+set}" = set; then
6823   enableval="$enable_decimal_float"
6824
6825   if test x$enablevar = xyes ; then
6826     case $target in
6827     powerpc*-*-linux* | i?86*-*-linux*)
6828       ;;
6829     *)
6830       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6831 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6832       enable_decimal_float=no
6833       ;;
6834     esac
6835   fi
6836
6837 else
6838
6839   case $target in
6840   powerpc*-*-linux*)
6841     enable_decimal_float=yes
6842     ;;
6843   *)
6844     enable_decimal_float=no
6845     ;;
6846   esac
6847
6848 fi;
6849
6850
6851
6852 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define ENABLE_DECIMAL_FLOAT $dfp
6856 _ACEOF
6857
6858
6859 # Enable threads
6860 # Pass with no value to take the default
6861 # Pass with a value to specify a thread package
6862 # Check whether --enable-threads or --disable-threads was given.
6863 if test "${enable_threads+set}" = set; then
6864   enableval="$enable_threads"
6865
6866 else
6867   enable_threads=''
6868 fi;
6869
6870 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6871 if test "${enable_objc_gc+set}" = set; then
6872   enableval="$enable_objc_gc"
6873   if test x$enable_objc_gc = xno; then
6874         objc_boehm_gc=''
6875 else
6876         objc_boehm_gc=1
6877 fi
6878 else
6879   objc_boehm_gc=''
6880 fi;
6881
6882
6883 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6884 if test "${with_dwarf2+set}" = set; then
6885   withval="$with_dwarf2"
6886   dwarf2="$with_dwarf2"
6887 else
6888   dwarf2=no
6889 fi;
6890
6891 # Check whether --enable-shared or --disable-shared was given.
6892 if test "${enable_shared+set}" = set; then
6893   enableval="$enable_shared"
6894
6895   case $enable_shared in
6896   yes | no) ;;
6897   *)
6898     enable_shared=no
6899     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6900     for pkg in $enableval; do
6901       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6902         enable_shared=yes
6903       fi
6904     done
6905     IFS="$ac_save_ifs"
6906     ;;
6907   esac
6908
6909 else
6910   enable_shared=yes
6911 fi;
6912
6913
6914
6915 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6916 if test "${with_build_sysroot+set}" = set; then
6917   withval="$with_build_sysroot"
6918
6919 fi;
6920
6921
6922 # Check whether --with-sysroot or --without-sysroot was given.
6923 if test "${with_sysroot+set}" = set; then
6924   withval="$with_sysroot"
6925
6926  case ${with_sysroot} in
6927  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6928  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6929  esac
6930
6931  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6932  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6933
6934  if test "x$exec_prefix" = xNONE; then
6935   if test "x$prefix" = xNONE; then
6936    test_prefix=/usr/local
6937   else
6938    test_prefix=$prefix
6939   fi
6940  else
6941   test_prefix=$exec_prefix
6942  fi
6943  case ${TARGET_SYSTEM_ROOT} in
6944  "${test_prefix}"|"${test_prefix}/"*|\
6945  '${exec_prefix}'|'${exec_prefix}/'*)
6946    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6947    TARGET_SYSTEM_ROOT_DEFINE="$t"
6948    ;;
6949  esac
6950
6951 else
6952
6953  TARGET_SYSTEM_ROOT=
6954  TARGET_SYSTEM_ROOT_DEFINE=
6955  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6956
6957 fi;
6958
6959
6960
6961
6962 # Build with intermodule optimisations
6963 # Check whether --enable-intermodule or --disable-intermodule was given.
6964 if test "${enable_intermodule+set}" = set; then
6965   enableval="$enable_intermodule"
6966   case ${enable_intermodule} in
6967   yes) onestep="-onestep";;
6968   *) onestep="";;
6969 esac
6970 else
6971   onestep=""
6972 fi;
6973
6974
6975 # Sanity check enable_languages in case someone does not run the toplevel
6976 # configure # script.
6977 # Check whether --enable-languages or --disable-languages was given.
6978 if test "${enable_languages+set}" = set; then
6979   enableval="$enable_languages"
6980   case ,${enable_languages}, in
6981        ,,|,yes,)
6982                 # go safe -- we cannot be much sure without the toplevel
6983                 # configure's
6984                 # analysis of which target libs are present and usable
6985                 enable_languages=c
6986                 ;;
6987          *,all,*)
6988                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6989 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6990    { (exit 1); exit 1; }; }
6991                 ;;
6992         *,c,*)
6993                 ;;
6994         *)
6995                 enable_languages=c,${enable_languages}
6996                 ;;
6997 esac
6998 else
6999   enable_languages=c
7000 fi;
7001
7002 subdirs=
7003 for lang in ${srcdir}/*/config-lang.in
7004 do
7005         case $lang in
7006         # The odd quoting in the next line works around
7007         # an apparent bug in bash 1.12 on linux.
7008         ${srcdir}/[*]/config-lang.in) ;;
7009         *)
7010           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
7011           if test "x$lang_alias" = x
7012           then
7013                 echo "$lang doesn't set \$language." 1>&2
7014                 exit 1
7015           fi
7016           case ",$enable_languages," in
7017           *,$lang_alias,*)
7018             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7019           esac
7020           ;;
7021         esac
7022 done
7023
7024
7025 # -------------------------
7026 # Checks for other programs
7027 # -------------------------
7028
7029 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7030 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7031 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7032 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   cat >conftest.make <<\_ACEOF
7036 all:
7037         @echo 'ac_maketemp="$(MAKE)"'
7038 _ACEOF
7039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7040 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7041 if test -n "$ac_maketemp"; then
7042   eval ac_cv_prog_make_${ac_make}_set=yes
7043 else
7044   eval ac_cv_prog_make_${ac_make}_set=no
7045 fi
7046 rm -f conftest.make
7047 fi
7048 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7049   echo "$as_me:$LINENO: result: yes" >&5
7050 echo "${ECHO_T}yes" >&6
7051   SET_MAKE=
7052 else
7053   echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6
7055   SET_MAKE="MAKE=${MAKE-make}"
7056 fi
7057
7058
7059 # Find some useful tools
7060 for ac_prog in gawk mawk nawk awk
7061 do
7062   # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy $ac_prog; ac_word=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_AWK+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   if test -n "$AWK"; then
7070   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077   for ac_exec_ext in '' $ac_executable_extensions; do
7078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079     ac_cv_prog_AWK="$ac_prog"
7080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084 done
7085
7086 fi
7087 fi
7088 AWK=$ac_cv_prog_AWK
7089 if test -n "$AWK"; then
7090   echo "$as_me:$LINENO: result: $AWK" >&5
7091 echo "${ECHO_T}$AWK" >&6
7092 else
7093   echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7095 fi
7096
7097   test -n "$AWK" && break
7098 done
7099
7100 # We need awk to create options.c and options.h.
7101 # Bail out if it's missing.
7102 case ${AWK} in
7103   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7104 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7105    { (exit 1); exit 1; }; } ;;
7106 esac
7107
7108 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7109 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7110 if test "${gcc_cv_prog_LN_S+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   rm -f conftestdata_t
7114 echo >conftestdata_f
7115 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7116 then
7117   gcc_cv_prog_LN_S="ln -s"
7118 else
7119   if ln conftestdata_f conftestdata_t 2>/dev/null
7120   then
7121     gcc_cv_prog_LN_S=ln
7122   else
7123     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7124     then
7125       gcc_cv_prog_LN_S="cp -p"
7126     else
7127       gcc_cv_prog_LN_S=cp
7128     fi
7129   fi
7130 fi
7131 rm -f conftestdata_f conftestdata_t
7132
7133 fi
7134 LN_S="$gcc_cv_prog_LN_S"
7135 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7136   echo "$as_me:$LINENO: result: yes" >&5
7137 echo "${ECHO_T}yes" >&6
7138 else
7139   if test "$gcc_cv_prog_LN_S" = "ln"; then
7140     echo "$as_me:$LINENO: result: no, using ln" >&5
7141 echo "${ECHO_T}no, using ln" >&6
7142   else
7143     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7144 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7145   fi
7146 fi
7147
7148 echo "$as_me:$LINENO: checking whether ln works" >&5
7149 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7150 if test "${acx_cv_prog_LN+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   rm -f conftestdata_t
7154 echo >conftestdata_f
7155 if ln conftestdata_f conftestdata_t 2>/dev/null
7156 then
7157   acx_cv_prog_LN=ln
7158 else
7159   acx_cv_prog_LN=no
7160 fi
7161 rm -f conftestdata_f conftestdata_t
7162
7163 fi
7164 if test $acx_cv_prog_LN = no; then
7165   LN="$LN_S"
7166   echo "$as_me:$LINENO: result: no, using $LN" >&5
7167 echo "${ECHO_T}no, using $LN" >&6
7168 else
7169   LN="$acx_cv_prog_LN"
7170   echo "$as_me:$LINENO: result: yes" >&5
7171 echo "${ECHO_T}yes" >&6
7172 fi
7173
7174 if test -n "$ac_tool_prefix"; then
7175   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7177 echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7179 if test "${ac_cv_prog_RANLIB+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   if test -n "$RANLIB"; then
7183   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190   for ac_exec_ext in '' $ac_executable_extensions; do
7191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197 done
7198
7199 fi
7200 fi
7201 RANLIB=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203   echo "$as_me:$LINENO: result: $RANLIB" >&5
7204 echo "${ECHO_T}$RANLIB" >&6
7205 else
7206   echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7208 fi
7209
7210 fi
7211 if test -z "$ac_cv_prog_RANLIB"; then
7212   ac_ct_RANLIB=$RANLIB
7213   # Extract the first word of "ranlib", so it can be a program name with args.
7214 set dummy ranlib; ac_word=$2
7215 echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   if test -n "$ac_ct_RANLIB"; then
7221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230     ac_cv_prog_ac_ct_RANLIB="ranlib"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236
7237   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7238 fi
7239 fi
7240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7241 if test -n "$ac_ct_RANLIB"; then
7242   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7243 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7244 else
7245   echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7247 fi
7248
7249   RANLIB=$ac_ct_RANLIB
7250 else
7251   RANLIB="$ac_cv_prog_RANLIB"
7252 fi
7253
7254 case "${host}" in
7255 *-*-darwin*)
7256   # By default, the Darwin ranlib will not treat common symbols as
7257   # definitions when  building the archive table of contents.  Other
7258   # ranlibs do that; pass an option to the Darwin ranlib that makes
7259   # it behave similarly.
7260   ranlib_flags="-c"
7261   ;;
7262 *)
7263   ranlib_flags=""
7264 esac
7265
7266
7267 # Find a good install program.  We prefer a C program (faster),
7268 # so one script is as good as another.  But avoid the broken or
7269 # incompatible versions:
7270 # SysV /etc/install, /usr/sbin/install
7271 # SunOS /usr/etc/install
7272 # IRIX /sbin/install
7273 # AIX /bin/install
7274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7276 # ./install, which can be erroneously created by make from ./install.sh.
7277 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7278 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7279 if test -z "$INSTALL"; then
7280 if test "${ac_cv_path_install+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7284   for ac_dir in $PATH; do
7285     # Account for people who put trailing slashes in PATH elements.
7286     case "$ac_dir/" in
7287     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7288     *)
7289       # OSF1 and SCO ODT 3.0 have their own names for install.
7290       for ac_prog in ginstall scoinst install; do
7291         if test -f $ac_dir/$ac_prog; then
7292           if test $ac_prog = install &&
7293             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7294             # AIX install.  It has an incompatible calling convention.
7295             # OSF/1 installbsd also uses dspmsg, but is usable.
7296             :
7297           else
7298             ac_cv_path_install="$ac_dir/$ac_prog -c"
7299             break 2
7300           fi
7301         fi
7302       done
7303       ;;
7304     esac
7305   done
7306   IFS="$ac_save_IFS"
7307
7308 fi
7309   if test "${ac_cv_path_install+set}" = set; then
7310     INSTALL="$ac_cv_path_install"
7311   else
7312     # As a last resort, use the slow shell script.  We don't cache a
7313     # path for INSTALL within a source directory, because that will
7314     # break other packages using the cache if that directory is
7315     # removed, or if the path is relative.
7316     INSTALL="$ac_install_sh"
7317   fi
7318 fi
7319 echo "$as_me:$LINENO: result: $INSTALL" >&5
7320 echo "${ECHO_T}$INSTALL" >&6
7321
7322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7323 # It thinks the first close brace ends the variable substitution.
7324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7325
7326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7327
7328
7329 # See if cmp has --ignore-initial.
7330 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7331 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7332 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335    echo abfoo >t1
7336   echo cdfoo >t2
7337   gcc_cv_prog_cmp_skip=slowcompare
7338   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7339     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7340       :
7341     else
7342       gcc_cv_prog_cmp_skip=gnucompare
7343     fi
7344   fi
7345   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7346     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7347       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7348         :
7349       else
7350         gcc_cv_prog_cmp_skip=fastcompare
7351       fi
7352     fi
7353   fi
7354   rm t1 t2
7355
7356 fi
7357 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7358 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7359 make_compare_target=$gcc_cv_prog_cmp_skip
7360
7361
7362
7363 # See if we have the mktemp command.
7364 # Extract the first word of "mktemp", so it can be a program name with args.
7365 set dummy mktemp; ac_word=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   if test -n "$have_mktemp_command"; then
7372   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379   for ac_exec_ext in '' $ac_executable_extensions; do
7380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_have_mktemp_command="yes"
7382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386 done
7387
7388   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7389 fi
7390 fi
7391 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7392 if test -n "$have_mktemp_command"; then
7393   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7394 echo "${ECHO_T}$have_mktemp_command" >&6
7395 else
7396   echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7398 fi
7399
7400
7401 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7402
7403 # See if makeinfo has been installed and is modern enough
7404 # that we can use it.
7405
7406 ac_executable_extensions="$build_exeext"
7407
7408 # Extract the first word of "makeinfo", so it can be a program name with args.
7409 set dummy makeinfo; ac_word=$2
7410 echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7412 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   if test -n "$MAKEINFO"; then
7416   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425     ac_cv_prog_MAKEINFO="makeinfo"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431
7432 fi
7433 fi
7434 MAKEINFO=$ac_cv_prog_MAKEINFO
7435 if test -n "$MAKEINFO"; then
7436   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7437 echo "${ECHO_T}$MAKEINFO" >&6
7438 else
7439   echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443 if test -n "$MAKEINFO"; then
7444   # Found it, now check the version.
7445   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7446 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7447 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450     ac_prog_version=`$MAKEINFO --version 2>&1 |
7451                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7452   echo "configure:7452: version of makeinfo is $ac_prog_version" >&5
7453   case $ac_prog_version in
7454     '')     gcc_cv_prog_makeinfo_modern=no;;
7455     4.[4-9]*)
7456             gcc_cv_prog_makeinfo_modern=yes;;
7457     *)      gcc_cv_prog_makeinfo_modern=no;;
7458   esac
7459
7460 fi
7461 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7462 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7463 else
7464   gcc_cv_prog_makeinfo_modern=no
7465 fi
7466
7467 if test $gcc_cv_prog_makeinfo_modern = no; then
7468   MAKEINFO="$MISSING makeinfo"
7469   { echo "$as_me:$LINENO: WARNING:
7470 *** Makeinfo is missing or too old.
7471 *** Info documentation will not be built." >&5
7472 echo "$as_me: WARNING:
7473 *** Makeinfo is missing or too old.
7474 *** Info documentation will not be built." >&2;}
7475   BUILD_INFO=
7476 else
7477   BUILD_INFO=info
7478 fi
7479
7480
7481 # Is pod2man recent enough to regenerate manpages?
7482 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7483 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7484 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7485   echo "$as_me:$LINENO: result: yes" >&5
7486 echo "${ECHO_T}yes" >&6
7487   GENERATED_MANPAGES=generated-manpages
7488 else
7489   echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491   GENERATED_MANPAGES=
7492 fi
7493
7494
7495 # How about lex?
7496 for ac_prog in flex
7497 do
7498   # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502 if test "${ac_cv_prog_FLEX+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   if test -n "$FLEX"; then
7506   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_FLEX="$ac_prog"
7516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521
7522 fi
7523 fi
7524 FLEX=$ac_cv_prog_FLEX
7525 if test -n "$FLEX"; then
7526   echo "$as_me:$LINENO: result: $FLEX" >&5
7527 echo "${ECHO_T}$FLEX" >&6
7528 else
7529   echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7531 fi
7532
7533   test -n "$FLEX" && break
7534 done
7535 test -n "$FLEX" || FLEX="$MISSING flex"
7536
7537
7538 # Bison?
7539 for ac_prog in bison
7540 do
7541   # Extract the first word of "$ac_prog", so it can be a program name with args.
7542 set dummy $ac_prog; ac_word=$2
7543 echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545 if test "${ac_cv_prog_BISON+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   if test -n "$BISON"; then
7549   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     ac_cv_prog_BISON="$ac_prog"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564
7565 fi
7566 fi
7567 BISON=$ac_cv_prog_BISON
7568 if test -n "$BISON"; then
7569   echo "$as_me:$LINENO: result: $BISON" >&5
7570 echo "${ECHO_T}$BISON" >&6
7571 else
7572   echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574 fi
7575
7576   test -n "$BISON" && break
7577 done
7578 test -n "$BISON" || BISON="$MISSING bison"
7579
7580
7581 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7582 # check for build == host before using them.
7583
7584 # NM
7585 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7586   && test -d ../binutils ; then
7587   NM='$(objdir)/../binutils/nm-new'
7588 else
7589   # Extract the first word of "nm", so it can be a program name with args.
7590 set dummy nm; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_NM+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   if test -n "$NM"; then
7597   ac_cv_prog_NM="$NM" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604   for ac_exec_ext in '' $ac_executable_extensions; do
7605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606     ac_cv_prog_NM="nm"
7607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611 done
7612
7613   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7614 fi
7615 fi
7616 NM=$ac_cv_prog_NM
7617 if test -n "$NM"; then
7618   echo "$as_me:$LINENO: result: $NM" >&5
7619 echo "${ECHO_T}$NM" >&6
7620 else
7621   echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7623 fi
7624
7625 fi
7626
7627 # AR
7628 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7629   && test -d ../binutils ; then
7630   AR='$(objdir)/../binutils/ar'
7631 else
7632   # Extract the first word of "ar", so it can be a program name with args.
7633 set dummy ar; ac_word=$2
7634 echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7636 if test "${ac_cv_prog_AR+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   if test -n "$AR"; then
7640   ac_cv_prog_AR="$AR" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649     ac_cv_prog_AR="ar"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655
7656   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7657 fi
7658 fi
7659 AR=$ac_cv_prog_AR
7660 if test -n "$AR"; then
7661   echo "$as_me:$LINENO: result: $AR" >&5
7662 echo "${ECHO_T}$AR" >&6
7663 else
7664   echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7666 fi
7667
7668 fi
7669
7670
7671 # --------------------
7672 # Checks for C headers
7673 # --------------------
7674
7675 echo "$as_me:$LINENO: checking for GNU C library" >&5
7676 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7677 if test "${gcc_cv_glibc+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686 #include <features.h>
7687 int
7688 main ()
7689 {
7690
7691 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7692 #error Not a GNU C library system
7693 #endif
7694   ;
7695   return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700   (eval $ac_compile) 2>conftest.er1
7701   ac_status=$?
7702   grep -v '^ *+' conftest.er1 >conftest.err
7703   rm -f conftest.er1
7704   cat conftest.err >&5
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); } &&
7707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; } &&
7713          { ac_try='test -s conftest.$ac_objext'
7714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715   (eval $ac_try) 2>&5
7716   ac_status=$?
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); }; }; then
7719   gcc_cv_glibc=yes
7720 else
7721   echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7723
7724 gcc_cv_glibc=no
7725 fi
7726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 fi
7728
7729 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7730 echo "${ECHO_T}$gcc_cv_glibc" >&6
7731 if test $gcc_cv_glibc = yes; then
7732
7733 cat >>confdefs.h <<\_ACEOF
7734 #define _GNU_SOURCE 1
7735 _ACEOF
7736
7737 fi
7738
7739 # Need to reject headers which give warnings, so that the -Werror bootstrap
7740 # works later. *sigh*  This needs to come before all header checks.
7741
7742 ac_c_preproc_warn_flag=yes
7743
7744 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7746 if test "${ac_cv_header_stdc+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755 #include <stdlib.h>
7756 #include <stdarg.h>
7757 #include <string.h>
7758 #include <float.h>
7759
7760 int
7761 main ()
7762 {
7763
7764   ;
7765   return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770   (eval $ac_compile) 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } &&
7777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779   (eval $ac_try) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; } &&
7783          { ac_try='test -s conftest.$ac_objext'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   ac_cv_header_stdc=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_cv_header_stdc=no
7795 fi
7796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7797
7798 if test $ac_cv_header_stdc = yes; then
7799   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7800   cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h.  */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h.  */
7806 #include <string.h>
7807
7808 _ACEOF
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810   $EGREP "memchr" >/dev/null 2>&1; then
7811   :
7812 else
7813   ac_cv_header_stdc=no
7814 fi
7815 rm -f conftest*
7816
7817 fi
7818
7819 if test $ac_cv_header_stdc = yes; then
7820   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7821   cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h.  */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h.  */
7827 #include <stdlib.h>
7828
7829 _ACEOF
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831   $EGREP "free" >/dev/null 2>&1; then
7832   :
7833 else
7834   ac_cv_header_stdc=no
7835 fi
7836 rm -f conftest*
7837
7838 fi
7839
7840 if test $ac_cv_header_stdc = yes; then
7841   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7842   if test "$cross_compiling" = yes; then
7843   :
7844 else
7845   cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851 #include <ctype.h>
7852 #if ((' ' & 0x0FF) == 0x020)
7853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7855 #else
7856 # define ISLOWER(c) \
7857                    (('a' <= (c) && (c) <= 'i') \
7858                      || ('j' <= (c) && (c) <= 'r') \
7859                      || ('s' <= (c) && (c) <= 'z'))
7860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7861 #endif
7862
7863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7864 int
7865 main ()
7866 {
7867   int i;
7868   for (i = 0; i < 256; i++)
7869     if (XOR (islower (i), ISLOWER (i))
7870         || toupper (i) != TOUPPER (i))
7871       exit(2);
7872   exit (0);
7873 }
7874 _ACEOF
7875 rm -f conftest$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877   (eval $ac_link) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   :
7887 else
7888   echo "$as_me: program exited with status $ac_status" >&5
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 ( exit $ac_status )
7893 ac_cv_header_stdc=no
7894 fi
7895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7896 fi
7897 fi
7898 fi
7899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7901 if test $ac_cv_header_stdc = yes; then
7902
7903 cat >>confdefs.h <<\_ACEOF
7904 #define STDC_HEADERS 1
7905 _ACEOF
7906
7907 fi
7908
7909 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7910 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7911 if test "${ac_cv_header_time+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 #include <sys/types.h>
7921 #include <sys/time.h>
7922 #include <time.h>
7923
7924 int
7925 main ()
7926 {
7927 if ((struct tm *) 0)
7928 return 0;
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935   (eval $ac_compile) 2>conftest.er1
7936   ac_status=$?
7937   grep -v '^ *+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
7939   cat conftest.err >&5
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } &&
7942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944   (eval $ac_try) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; } &&
7948          { ac_try='test -s conftest.$ac_objext'
7949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950   (eval $ac_try) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; }; then
7954   ac_cv_header_time=yes
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959 ac_cv_header_time=no
7960 fi
7961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7964 echo "${ECHO_T}$ac_cv_header_time" >&6
7965 if test $ac_cv_header_time = yes; then
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define TIME_WITH_SYS_TIME 1
7969 _ACEOF
7970
7971 fi
7972
7973 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7974 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7975 if test "${gcc_cv_header_string+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984 #include <string.h>
7985 #include <strings.h>
7986 int
7987 main ()
7988 {
7989
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996   (eval $ac_compile) 2>conftest.er1
7997   ac_status=$?
7998   grep -v '^ *+' conftest.er1 >conftest.err
7999   rm -f conftest.er1
8000   cat conftest.err >&5
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); } &&
8003          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005   (eval $ac_try) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); }; } &&
8009          { ac_try='test -s conftest.$ac_objext'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   gcc_cv_header_string=yes
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 gcc_cv_header_string=no
8021 fi
8022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8023 fi
8024 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8025 echo "${ECHO_T}$gcc_cv_header_string" >&6
8026 if test $gcc_cv_header_string = yes; then
8027
8028 cat >>confdefs.h <<\_ACEOF
8029 #define STRING_WITH_STRINGS 1
8030 _ACEOF
8031
8032 fi
8033
8034 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8035 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8036 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045 #include <sys/types.h>
8046 #include <sys/wait.h>
8047 #ifndef WEXITSTATUS
8048 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8049 #endif
8050 #ifndef WIFEXITED
8051 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8052 #endif
8053
8054 int
8055 main ()
8056 {
8057   int s;
8058   wait (&s);
8059   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066   (eval $ac_compile) 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075   (eval $ac_try) 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); }; } &&
8079          { ac_try='test -s conftest.$ac_objext'
8080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081   (eval $ac_try) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); }; }; then
8085   ac_cv_header_sys_wait_h=yes
8086 else
8087   echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090 ac_cv_header_sys_wait_h=no
8091 fi
8092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8093 fi
8094 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8095 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8096 if test $ac_cv_header_sys_wait_h = yes; then
8097
8098 cat >>confdefs.h <<\_ACEOF
8099 #define HAVE_SYS_WAIT_H 1
8100 _ACEOF
8101
8102 fi
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8127                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8128                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8129                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8130 do
8131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8132 echo "$as_me:$LINENO: checking for $ac_header" >&5
8133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8135   echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137   cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143 #include <$ac_header>
8144 _ACEOF
8145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8147   ac_status=$?
8148   grep -v '^ *+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } >/dev/null; then
8153   if test -s conftest.err; then
8154     ac_cpp_err=$ac_c_preproc_warn_flag
8155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8156   else
8157     ac_cpp_err=
8158   fi
8159 else
8160   ac_cpp_err=yes
8161 fi
8162 if test -z "$ac_cpp_err"; then
8163   eval "$as_ac_Header=yes"
8164 else
8165   echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8167
8168   eval "$as_ac_Header=no"
8169 fi
8170 rm -f conftest.err conftest.$ac_ext
8171 fi
8172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8175   cat >>confdefs.h <<_ACEOF
8176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8177 _ACEOF
8178
8179 fi
8180 done
8181
8182
8183 # Check for thread headers.
8184 echo "$as_me:$LINENO: checking for thread.h" >&5
8185 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8186 if test "${ac_cv_header_thread_h+set}" = set; then
8187   echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189   cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 #include <thread.h>
8196 _ACEOF
8197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } >/dev/null; then
8205   if test -s conftest.err; then
8206     ac_cpp_err=$ac_c_preproc_warn_flag
8207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8208   else
8209     ac_cpp_err=
8210   fi
8211 else
8212   ac_cpp_err=yes
8213 fi
8214 if test -z "$ac_cpp_err"; then
8215   ac_cv_header_thread_h=yes
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220   ac_cv_header_thread_h=no
8221 fi
8222 rm -f conftest.err conftest.$ac_ext
8223 fi
8224 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8225 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8226 if test $ac_cv_header_thread_h = yes; then
8227   have_thread_h=yes
8228 else
8229   have_thread_h=
8230 fi
8231
8232 echo "$as_me:$LINENO: checking for pthread.h" >&5
8233 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_pthread_h+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 #include <pthread.h>
8244 _ACEOF
8245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } >/dev/null; then
8253   if test -s conftest.err; then
8254     ac_cpp_err=$ac_c_preproc_warn_flag
8255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8256   else
8257     ac_cpp_err=
8258   fi
8259 else
8260   ac_cpp_err=yes
8261 fi
8262 if test -z "$ac_cpp_err"; then
8263   ac_cv_header_pthread_h=yes
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268   ac_cv_header_pthread_h=no
8269 fi
8270 rm -f conftest.err conftest.$ac_ext
8271 fi
8272 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8273 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8274 if test $ac_cv_header_pthread_h = yes; then
8275   have_pthread_h=yes
8276 else
8277   have_pthread_h=
8278 fi
8279
8280
8281 # These tests can't be done till we know if we have limits.h.
8282 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8283 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8284 if test "${gcc_cv_decl_char_bit+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 #ifdef HAVE_LIMITS_H
8294 #include <limits.h>
8295 #endif
8296 #ifdef CHAR_BIT
8297 found
8298 #endif
8299 _ACEOF
8300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8301   $EGREP "found" >/dev/null 2>&1; then
8302   gcc_cv_decl_char_bit=yes
8303 else
8304   gcc_cv_decl_char_bit=no
8305 fi
8306 rm -f conftest*
8307
8308
8309 fi
8310 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8311 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8312 if test $gcc_cv_decl_char_bit = no; then
8313   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8314 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8315 if test "${gcc_cv_c_nbby+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   i=8
8319  gcc_cv_c_nbby=
8320  while test $i -lt 65; do
8321    cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327
8328 int
8329 main ()
8330 {
8331 switch(0) {
8332   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8333   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8334   ; }
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341   (eval $ac_compile) 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; } &&
8354          { ac_try='test -s conftest.$ac_objext'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   gcc_cv_c_nbby=$i; break
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 fi
8366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8367    i=`expr $i + 1`
8368  done
8369  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8370
8371 fi
8372 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8373 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8374 if test $gcc_cv_c_nbby = failed; then
8375   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8376 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8377    { (exit 1); exit 1; }; }
8378 else
8379
8380 cat >>confdefs.h <<_ACEOF
8381 #define CHAR_BIT $gcc_cv_c_nbby
8382 _ACEOF
8383
8384 fi
8385 fi
8386 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8388 if test "${ac_cv_c_bigendian+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   # See if sys/param.h defines the BYTE_ORDER macro.
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8400
8401 int
8402 main ()
8403 {
8404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8405  bogus endian macros
8406 #endif
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414   (eval $ac_compile) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; } &&
8427          { ac_try='test -s conftest.$ac_objext'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; }; then
8433   # It does; now see whether it defined to BIG_ENDIAN or not.
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 #include <sys/types.h>
8441 #include <sys/param.h>
8442
8443 int
8444 main ()
8445 {
8446 #if BYTE_ORDER != BIG_ENDIAN
8447  not big endian
8448 #endif
8449
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456   (eval $ac_compile) 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } &&
8463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; } &&
8469          { ac_try='test -s conftest.$ac_objext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_c_bigendian=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 ac_cv_c_bigendian=no
8481 fi
8482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 # It does not; compile a test program.
8488 if test "$cross_compiling" = yes; then
8489   # try to guess the endianness by grepping values into an object file
8490   ac_cv_c_bigendian=unknown
8491   cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8498 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8499 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8500 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8501 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8502 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8503 int
8504 main ()
8505 {
8506  _ascii (); _ebcdic ();
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513   (eval $ac_compile) 2>conftest.er1
8514   ac_status=$?
8515   grep -v '^ *+' conftest.er1 >conftest.err
8516   rm -f conftest.er1
8517   cat conftest.err >&5
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; } &&
8526          { ac_try='test -s conftest.$ac_objext'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; }; then
8532   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8533   ac_cv_c_bigendian=yes
8534 fi
8535 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8536   if test "$ac_cv_c_bigendian" = unknown; then
8537     ac_cv_c_bigendian=no
8538   else
8539     # finding both strings is unlikely to happen, but who knows?
8540     ac_cv_c_bigendian=unknown
8541   fi
8542 fi
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 fi
8548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8549 else
8550   cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556 int
8557 main ()
8558 {
8559   /* Are we little or big endian?  From Harbison&Steele.  */
8560   union
8561   {
8562     long l;
8563     char c[sizeof (long)];
8564   } u;
8565   u.l = 1;
8566   exit (u.c[sizeof (long) - 1] == 1);
8567 }
8568 _ACEOF
8569 rm -f conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571   (eval $ac_link) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_c_bigendian=no
8581 else
8582   echo "$as_me: program exited with status $ac_status" >&5
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ( exit $ac_status )
8587 ac_cv_c_bigendian=yes
8588 fi
8589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8590 fi
8591 fi
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 fi
8594 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8595 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8596 case $ac_cv_c_bigendian in
8597   yes)
8598
8599 cat >>confdefs.h <<\_ACEOF
8600 #define WORDS_BIGENDIAN 1
8601 _ACEOF
8602  ;;
8603   no)
8604      ;;
8605   *)
8606     { { echo "$as_me:$LINENO: error: unknown endianness
8607 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8608 echo "$as_me: error: unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8610    { (exit 1); exit 1; }; } ;;
8611 esac
8612
8613
8614 # --------
8615 # UNSORTED
8616 # --------
8617
8618 # Stage specific cflags for build.
8619 stage1_cflags=
8620 case $build in
8621 vax-*-*)
8622   if test x$GCC = xyes
8623   then
8624     stage1_cflags="-Wa,-J"
8625   else
8626     stage1_cflags="-J"
8627   fi
8628   ;;
8629 powerpc-*-darwin*)
8630   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8631   # sources; use -no-cpp-precomp to get to GNU cpp.
8632   # Apple's GCC has bugs in designated initializer handling, so disable
8633   # that too.
8634   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8635   ;;
8636 esac
8637
8638
8639 # These libraries may be used by collect2.
8640 # We may need a special search path to get them linked.
8641 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8642 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8643 if test "${gcc_cv_collect2_libs+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   save_LIBS="$LIBS"
8647 for libs in '' -lld -lmld \
8648                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8649                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8650 do
8651         LIBS="$libs"
8652         cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658
8659 /* Override any gcc2 internal prototype to avoid an error.  */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 /* We use char because int might match the return type of a gcc2
8664    builtin and then its argument prototype would still apply.  */
8665 char ldopen ();
8666 int
8667 main ()
8668 {
8669 ldopen ();
8670   ;
8671   return 0;
8672 }
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676   (eval $ac_link) 2>conftest.er1
8677   ac_status=$?
8678   grep -v '^ *+' conftest.er1 >conftest.err
8679   rm -f conftest.er1
8680   cat conftest.err >&5
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } &&
8683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; } &&
8689          { ac_try='test -s conftest$ac_exeext'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; }; then
8695   gcc_cv_collect2_libs="$libs"; break
8696 else
8697   echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 fi
8701 rm -f conftest.err conftest.$ac_objext \
8702       conftest$ac_exeext conftest.$ac_ext
8703 done
8704 LIBS="$save_LIBS"
8705 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8706 fi
8707 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8708 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8709 case $gcc_cv_collect2_libs in
8710         "none required")        ;;
8711         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8712 esac
8713
8714
8715 # When building Ada code on Alpha, we need exc_resume which is usually in
8716 # -lexc.  So test for it.
8717 save_LIBS="$LIBS"
8718 LIBS=
8719 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8720 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8721 if test "${ac_cv_search_exc_resume+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   ac_func_search_save_LIBS=$LIBS
8725 ac_cv_search_exc_resume=no
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h.  */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h.  */
8732
8733 /* Override any gcc2 internal prototype to avoid an error.  */
8734 #ifdef __cplusplus
8735 extern "C"
8736 #endif
8737 /* We use char because int might match the return type of a gcc2
8738    builtin and then its argument prototype would still apply.  */
8739 char exc_resume ();
8740 int
8741 main ()
8742 {
8743 exc_resume ();
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750   (eval $ac_link) 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   ac_cv_search_exc_resume="none required"
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 fi
8775 rm -f conftest.err conftest.$ac_objext \
8776       conftest$ac_exeext conftest.$ac_ext
8777 if test "$ac_cv_search_exc_resume" = no; then
8778   for ac_lib in exc; do
8779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8780     cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786
8787 /* Override any gcc2 internal prototype to avoid an error.  */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 /* We use char because int might match the return type of a gcc2
8792    builtin and then its argument prototype would still apply.  */
8793 char exc_resume ();
8794 int
8795 main ()
8796 {
8797 exc_resume ();
8798   ;
8799   return 0;
8800 }
8801 _ACEOF
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804   (eval $ac_link) 2>conftest.er1
8805   ac_status=$?
8806   grep -v '^ *+' conftest.er1 >conftest.err
8807   rm -f conftest.er1
8808   cat conftest.err >&5
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); } &&
8811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; } &&
8817          { ac_try='test -s conftest$ac_exeext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_cv_search_exc_resume="-l$ac_lib"
8824 break
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 fi
8830 rm -f conftest.err conftest.$ac_objext \
8831       conftest$ac_exeext conftest.$ac_ext
8832   done
8833 fi
8834 LIBS=$ac_func_search_save_LIBS
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8837 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8838 if test "$ac_cv_search_exc_resume" != no; then
8839   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8840
8841 fi
8842
8843 GNAT_LIBEXC="$LIBS"
8844 LIBS="$save_LIBS"
8845
8846
8847 # Some systems put ldexp and frexp in libm instead of libc; assume
8848 # they're both in the same place.  jcf-dump needs them.
8849 save_LIBS="$LIBS"
8850 LIBS=
8851 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8852 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8853 if test "${ac_cv_search_ldexp+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856   ac_func_search_save_LIBS=$LIBS
8857 ac_cv_search_ldexp=no
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char ldexp ();
8872 int
8873 main ()
8874 {
8875 ldexp ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882   (eval $ac_link) 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } &&
8889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891   (eval $ac_try) 2>&5
8892   ac_status=$?
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); }; } &&
8895          { ac_try='test -s conftest$ac_exeext'
8896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897   (eval $ac_try) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; }; then
8901   ac_cv_search_ldexp="none required"
8902 else
8903   echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 fi
8907 rm -f conftest.err conftest.$ac_objext \
8908       conftest$ac_exeext conftest.$ac_ext
8909 if test "$ac_cv_search_ldexp" = no; then
8910   for ac_lib in m; do
8911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8912     cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918
8919 /* Override any gcc2 internal prototype to avoid an error.  */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 /* We use char because int might match the return type of a gcc2
8924    builtin and then its argument prototype would still apply.  */
8925 char ldexp ();
8926 int
8927 main ()
8928 {
8929 ldexp ();
8930   ;
8931   return 0;
8932 }
8933 _ACEOF
8934 rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936   (eval $ac_link) 2>conftest.er1
8937   ac_status=$?
8938   grep -v '^ *+' conftest.er1 >conftest.err
8939   rm -f conftest.er1
8940   cat conftest.err >&5
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } &&
8943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; } &&
8949          { ac_try='test -s conftest$ac_exeext'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   ac_cv_search_ldexp="-l$ac_lib"
8956 break
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961 fi
8962 rm -f conftest.err conftest.$ac_objext \
8963       conftest$ac_exeext conftest.$ac_ext
8964   done
8965 fi
8966 LIBS=$ac_func_search_save_LIBS
8967 fi
8968 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8969 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8970 if test "$ac_cv_search_ldexp" != no; then
8971   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8972
8973 fi
8974
8975 LDEXP_LIB="$LIBS"
8976 LIBS="$save_LIBS"
8977
8978
8979 # Use <inttypes.h> only if it exists,
8980 # doesn't clash with <sys/types.h>, and declares intmax_t.
8981 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8982 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8983 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
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 #include <sys/types.h>
8993 #include <inttypes.h>
8994 int
8995 main ()
8996 {
8997 intmax_t i = -1;
8998   ;
8999   return 0;
9000 }
9001 _ACEOF
9002 rm -f conftest.$ac_objext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004   (eval $ac_compile) 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } &&
9011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; } &&
9017          { ac_try='test -s conftest.$ac_objext'
9018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019   (eval $ac_try) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; }; then
9023   gcc_cv_header_inttypes_h=yes
9024 else
9025   echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 gcc_cv_header_inttypes_h=no
9029 fi
9030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9031 fi
9032
9033 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9034 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9035 if test $gcc_cv_header_inttypes_h = yes; then
9036
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_INTTYPES_H 1
9039 _ACEOF
9040
9041 fi
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9081         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9082         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9083         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
9084 do
9085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9086 echo "$as_me:$LINENO: checking for $ac_func" >&5
9087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9088 if eval "test \"\${$as_ac_var+set}\" = set"; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9099 #define $ac_func innocuous_$ac_func
9100
9101 /* System header to define __stub macros and hopefully few prototypes,
9102     which can conflict with char $ac_func (); below.
9103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9104     <limits.h> exists even on freestanding compilers.  */
9105
9106 #ifdef __STDC__
9107 # include <limits.h>
9108 #else
9109 # include <assert.h>
9110 #endif
9111
9112 #undef $ac_func
9113
9114 /* Override any gcc2 internal prototype to avoid an error.  */
9115 #ifdef __cplusplus
9116 extern "C"
9117 {
9118 #endif
9119 /* We use char because int might match the return type of a gcc2
9120    builtin and then its argument prototype would still apply.  */
9121 char $ac_func ();
9122 /* The GNU C library defines this for functions which it implements
9123     to always fail with ENOSYS.  Some functions are actually named
9124     something starting with __ and the normal name is an alias.  */
9125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9126 choke me
9127 #else
9128 char (*f) () = $ac_func;
9129 #endif
9130 #ifdef __cplusplus
9131 }
9132 #endif
9133
9134 int
9135 main ()
9136 {
9137 return f != $ac_func;
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"                   || test ! -s conftest.err'
9152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153   (eval $ac_try) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; } &&
9157          { ac_try='test -s conftest$ac_exeext'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; }; then
9163   eval "$as_ac_var=yes"
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 eval "$as_ac_var=no"
9169 fi
9170 rm -f conftest.err conftest.$ac_objext \
9171       conftest$ac_exeext conftest.$ac_ext
9172 fi
9173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9175 if test `eval echo '${'$as_ac_var'}'` = yes; then
9176   cat >>confdefs.h <<_ACEOF
9177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9178 _ACEOF
9179
9180 fi
9181 done
9182
9183
9184 if test x$ac_cv_func_mbstowcs = xyes; then
9185   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9186 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9187 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190       if test "$cross_compiling" = yes; then
9191   gcc_cv_func_mbstowcs_works=yes
9192 else
9193   cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 #include <stdlib.h>
9200 int main()
9201 {
9202   mbstowcs(0, "", 0);
9203   return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208   (eval $ac_link) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213   (eval $ac_try) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); }; }; then
9217   gcc_cv_func_mbstowcs_works=yes
9218 else
9219   echo "$as_me: program exited with status $ac_status" >&5
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 ( exit $ac_status )
9224 gcc_cv_func_mbstowcs_works=no
9225 fi
9226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9227 fi
9228 fi
9229 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9230 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9231   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9232
9233 cat >>confdefs.h <<\_ACEOF
9234 #define HAVE_WORKING_MBSTOWCS 1
9235 _ACEOF
9236
9237   fi
9238 fi
9239
9240 echo "$as_me:$LINENO: checking for ssize_t" >&5
9241 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9242 if test "${ac_cv_type_ssize_t+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245   cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h.  */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h.  */
9251 $ac_includes_default
9252 int
9253 main ()
9254 {
9255 if ((ssize_t *) 0)
9256   return 0;
9257 if (sizeof (ssize_t))
9258   return 0;
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265   (eval $ac_compile) 2>conftest.er1
9266   ac_status=$?
9267   grep -v '^ *+' conftest.er1 >conftest.err
9268   rm -f conftest.er1
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; } &&
9278          { ac_try='test -s conftest.$ac_objext'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284   ac_cv_type_ssize_t=yes
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 ac_cv_type_ssize_t=no
9290 fi
9291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9292 fi
9293 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9294 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9295 if test $ac_cv_type_ssize_t = yes; then
9296   :
9297 else
9298
9299 cat >>confdefs.h <<_ACEOF
9300 #define ssize_t int
9301 _ACEOF
9302
9303 fi
9304
9305
9306 # Try to determine the array type of the second argument of getgroups
9307 # for the target system (int or gid_t).
9308 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9309 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9310 if test "${ac_cv_type_uid_t+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319 #include <sys/types.h>
9320
9321 _ACEOF
9322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9323   $EGREP "uid_t" >/dev/null 2>&1; then
9324   ac_cv_type_uid_t=yes
9325 else
9326   ac_cv_type_uid_t=no
9327 fi
9328 rm -f conftest*
9329
9330 fi
9331 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9332 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9333 if test $ac_cv_type_uid_t = no; then
9334
9335 cat >>confdefs.h <<\_ACEOF
9336 #define uid_t int
9337 _ACEOF
9338
9339
9340 cat >>confdefs.h <<\_ACEOF
9341 #define gid_t int
9342 _ACEOF
9343
9344 fi
9345
9346 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9347 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9348 if test "${ac_cv_type_getgroups+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   if test "$cross_compiling" = yes; then
9352   ac_cv_type_getgroups=cross
9353 else
9354   cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 /* Thanks to Mike Rendell for this test.  */
9361 #include <sys/types.h>
9362 #define NGID 256
9363 #undef MAX
9364 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9365
9366 int
9367 main ()
9368 {
9369   gid_t gidset[NGID];
9370   int i, n;
9371   union { gid_t gval; long lval; }  val;
9372
9373   val.lval = -1;
9374   for (i = 0; i < NGID; i++)
9375     gidset[i] = val.gval;
9376   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9377                  gidset);
9378   /* Exit non-zero if getgroups seems to require an array of ints.  This
9379      happens when gid_t is short but getgroups modifies an array of ints.  */
9380   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9381 }
9382 _ACEOF
9383 rm -f conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385   (eval $ac_link) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; }; then
9394   ac_cv_type_getgroups=gid_t
9395 else
9396   echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ( exit $ac_status )
9401 ac_cv_type_getgroups=int
9402 fi
9403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9404 fi
9405 if test $ac_cv_type_getgroups = cross; then
9406         cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <unistd.h>
9413
9414 _ACEOF
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9417   ac_cv_type_getgroups=gid_t
9418 else
9419   ac_cv_type_getgroups=int
9420 fi
9421 rm -f conftest*
9422
9423 fi
9424 fi
9425 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9426 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9427
9428 cat >>confdefs.h <<_ACEOF
9429 #define GETGROUPS_T $ac_cv_type_getgroups
9430 _ACEOF
9431
9432
9433 if test "${target}" = "${build}"; then
9434   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9435 else
9436   case "${target}" in
9437         # This condition may need some tweaking.  It should include all
9438         # targets where the array type of the second argument of getgroups
9439         # is int and the type of gid_t is not equivalent to int.
9440         *-*-sunos* | *-*-ultrix*)
9441                 TARGET_GETGROUPS_T=int
9442                 ;;
9443         *)
9444                 TARGET_GETGROUPS_T=gid_t
9445                 ;;
9446   esac
9447 fi
9448
9449
9450
9451 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9452 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9453 if test "${ac_cv_header_sys_mman_h+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 #include <sys/mman.h>
9463 _ACEOF
9464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } >/dev/null; then
9472   if test -s conftest.err; then
9473     ac_cpp_err=$ac_c_preproc_warn_flag
9474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9475   else
9476     ac_cpp_err=
9477   fi
9478 else
9479   ac_cpp_err=yes
9480 fi
9481 if test -z "$ac_cpp_err"; then
9482   ac_cv_header_sys_mman_h=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487   ac_cv_header_sys_mman_h=no
9488 fi
9489 rm -f conftest.err conftest.$ac_ext
9490 fi
9491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9492 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9493 if test $ac_cv_header_sys_mman_h = yes; then
9494   gcc_header_sys_mman_h=yes
9495 else
9496   gcc_header_sys_mman_h=no
9497 fi
9498
9499 echo "$as_me:$LINENO: checking for mmap" >&5
9500 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9501 if test "${ac_cv_func_mmap+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9512 #define mmap innocuous_mmap
9513
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char mmap (); below.
9516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517     <limits.h> exists even on freestanding compilers.  */
9518
9519 #ifdef __STDC__
9520 # include <limits.h>
9521 #else
9522 # include <assert.h>
9523 #endif
9524
9525 #undef mmap
9526
9527 /* Override any gcc2 internal prototype to avoid an error.  */
9528 #ifdef __cplusplus
9529 extern "C"
9530 {
9531 #endif
9532 /* We use char because int might match the return type of a gcc2
9533    builtin and then its argument prototype would still apply.  */
9534 char mmap ();
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined (__stub_mmap) || defined (__stub___mmap)
9539 choke me
9540 #else
9541 char (*f) () = mmap;
9542 #endif
9543 #ifdef __cplusplus
9544 }
9545 #endif
9546
9547 int
9548 main ()
9549 {
9550 return f != mmap;
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557   (eval $ac_link) 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; } &&
9570          { ac_try='test -s conftest$ac_exeext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_cv_func_mmap=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_cv_func_mmap=no
9582 fi
9583 rm -f conftest.err conftest.$ac_objext \
9584       conftest$ac_exeext conftest.$ac_ext
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9587 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9588 if test $ac_cv_func_mmap = yes; then
9589   gcc_func_mmap=yes
9590 else
9591   gcc_func_mmap=no
9592 fi
9593
9594 if test "$gcc_header_sys_mman_h" != yes \
9595  || test "$gcc_func_mmap" != yes; then
9596    gcc_cv_func_mmap_file=no
9597    gcc_cv_func_mmap_dev_zero=no
9598    gcc_cv_func_mmap_anon=no
9599 else
9600    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9601 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9602 if test "${gcc_cv_func_mmap_file+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   # Add a system to this blacklist if
9606    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9607    # memory area containing the same data that you'd get if you applied
9608    # read() to the same fd.  The only system known to have a problem here
9609    # is VMS, where text files have record structure.
9610    case "$host_os" in
9611      vms* | ultrix*)
9612         gcc_cv_func_mmap_file=no ;;
9613      *)
9614         gcc_cv_func_mmap_file=yes;;
9615    esac
9616 fi
9617 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9618 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9619    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9620 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9621 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   # Add a system to this blacklist if it has mmap() but /dev/zero
9625    # does not exist, or if mmapping /dev/zero does not give anonymous
9626    # zeroed pages with both the following properties:
9627    # 1. If you map N consecutive pages in with one call, and then
9628    #    unmap any subset of those pages, the pages that were not
9629    #    explicitly unmapped remain accessible.
9630    # 2. If you map two adjacent blocks of memory and then unmap them
9631    #    both at once, they must both go away.
9632    # Systems known to be in this category are Windows (all variants),
9633    # VMS, and Darwin.
9634    case "$host_os" in
9635      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9636         gcc_cv_func_mmap_dev_zero=no ;;
9637      *)
9638         gcc_cv_func_mmap_dev_zero=yes;;
9639    esac
9640 fi
9641 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9642 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9643
9644    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9645    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9646 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9647 if test "${gcc_cv_decl_map_anon+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656 #include <sys/types.h>
9657 #include <sys/mman.h>
9658 #include <unistd.h>
9659
9660 #ifndef MAP_ANONYMOUS
9661 #define MAP_ANONYMOUS MAP_ANON
9662 #endif
9663
9664 int
9665 main ()
9666 {
9667 int n = MAP_ANONYMOUS;
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674   (eval $ac_compile) 2>conftest.er1
9675   ac_status=$?
9676   grep -v '^ *+' conftest.er1 >conftest.err
9677   rm -f conftest.er1
9678   cat conftest.err >&5
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } &&
9681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683   (eval $ac_try) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; } &&
9687          { ac_try='test -s conftest.$ac_objext'
9688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689   (eval $ac_try) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; }; then
9693   gcc_cv_decl_map_anon=yes
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698 gcc_cv_decl_map_anon=no
9699 fi
9700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9703 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9704
9705    if test $gcc_cv_decl_map_anon = no; then
9706      gcc_cv_func_mmap_anon=no
9707    else
9708      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9709 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9710 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9711   echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9714    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9715    # doesn't give anonymous zeroed pages with the same properties listed
9716    # above for use of /dev/zero.
9717    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9718    case "$host_os" in
9719      vms* | cygwin* | pe | mingw* | sco* | udk* )
9720         gcc_cv_func_mmap_anon=no ;;
9721      *)
9722         gcc_cv_func_mmap_anon=yes;;
9723    esac
9724 fi
9725 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9726 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9727    fi
9728 fi
9729
9730 if test $gcc_cv_func_mmap_file = yes; then
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_MMAP_FILE 1
9734 _ACEOF
9735
9736 fi
9737 if test $gcc_cv_func_mmap_dev_zero = yes; then
9738
9739 cat >>confdefs.h <<\_ACEOF
9740 #define HAVE_MMAP_DEV_ZERO 1
9741 _ACEOF
9742
9743 fi
9744 if test $gcc_cv_func_mmap_anon = yes; then
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_MMAP_ANON 1
9748 _ACEOF
9749
9750 fi
9751
9752
9753 case "${host}" in
9754 *-*-*vms*)
9755   # Under VMS, vfork works very differently than on Unix. The standard test
9756   # won't work, and it isn't easily adaptable. It makes more sense to
9757   # just force it.
9758   ac_cv_func_vfork_works=yes
9759   ;;
9760 esac
9761 echo "$as_me:$LINENO: checking for pid_t" >&5
9762 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9763 if test "${ac_cv_type_pid_t+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772 $ac_includes_default
9773 int
9774 main ()
9775 {
9776 if ((pid_t *) 0)
9777   return 0;
9778 if (sizeof (pid_t))
9779   return 0;
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786   (eval $ac_compile) 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; } &&
9799          { ac_try='test -s conftest.$ac_objext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_cv_type_pid_t=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_cv_type_pid_t=no
9811 fi
9812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9813 fi
9814 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9815 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9816 if test $ac_cv_type_pid_t = yes; then
9817   :
9818 else
9819
9820 cat >>confdefs.h <<_ACEOF
9821 #define pid_t int
9822 _ACEOF
9823
9824 fi
9825
9826
9827
9828 for ac_header in unistd.h vfork.h
9829 do
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842 #include <$ac_header>
9843 _ACEOF
9844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } >/dev/null; then
9852   if test -s conftest.err; then
9853     ac_cpp_err=$ac_c_preproc_warn_flag
9854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9855   else
9856     ac_cpp_err=
9857   fi
9858 else
9859   ac_cpp_err=yes
9860 fi
9861 if test -z "$ac_cpp_err"; then
9862   eval "$as_ac_Header=yes"
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867   eval "$as_ac_Header=no"
9868 fi
9869 rm -f conftest.err conftest.$ac_ext
9870 fi
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874   cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 fi
9879 done
9880
9881
9882
9883 for ac_func in fork vfork
9884 do
9885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9886 echo "$as_me:$LINENO: checking for $ac_func" >&5
9887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9888 if eval "test \"\${$as_ac_var+set}\" = set"; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9899 #define $ac_func innocuous_$ac_func
9900
9901 /* System header to define __stub macros and hopefully few prototypes,
9902     which can conflict with char $ac_func (); below.
9903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904     <limits.h> exists even on freestanding compilers.  */
9905
9906 #ifdef __STDC__
9907 # include <limits.h>
9908 #else
9909 # include <assert.h>
9910 #endif
9911
9912 #undef $ac_func
9913
9914 /* Override any gcc2 internal prototype to avoid an error.  */
9915 #ifdef __cplusplus
9916 extern "C"
9917 {
9918 #endif
9919 /* We use char because int might match the return type of a gcc2
9920    builtin and then its argument prototype would still apply.  */
9921 char $ac_func ();
9922 /* The GNU C library defines this for functions which it implements
9923     to always fail with ENOSYS.  Some functions are actually named
9924     something starting with __ and the normal name is an alias.  */
9925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9926 choke me
9927 #else
9928 char (*f) () = $ac_func;
9929 #endif
9930 #ifdef __cplusplus
9931 }
9932 #endif
9933
9934 int
9935 main ()
9936 {
9937 return f != $ac_func;
9938   ;
9939   return 0;
9940 }
9941 _ACEOF
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944   (eval $ac_link) 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } &&
9951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; } &&
9957          { ac_try='test -s conftest$ac_exeext'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   eval "$as_ac_var=yes"
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 eval "$as_ac_var=no"
9969 fi
9970 rm -f conftest.err conftest.$ac_objext \
9971       conftest$ac_exeext conftest.$ac_ext
9972 fi
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976   cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978 _ACEOF
9979
9980 fi
9981 done
9982
9983 if test "x$ac_cv_func_fork" = xyes; then
9984   echo "$as_me:$LINENO: checking for working fork" >&5
9985 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9986 if test "${ac_cv_func_fork_works+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   if test "$cross_compiling" = yes; then
9990   ac_cv_func_fork_works=cross
9991 else
9992   cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 $ac_includes_default
9999 int
10000 main ()
10001 {
10002
10003           /* By Ruediger Kuhlmann. */
10004           if (fork() < 0)
10005             exit (1);
10006           exit (0);
10007
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014   (eval $ac_link) 2>&5
10015   ac_status=$?
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019   (eval $ac_try) 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023   ac_cv_func_fork_works=yes
10024 else
10025   echo "$as_me: program exited with status $ac_status" >&5
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ( exit $ac_status )
10030 ac_cv_func_fork_works=no
10031 fi
10032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 fi
10035 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10036 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10037
10038 else
10039   ac_cv_func_fork_works=$ac_cv_func_fork
10040 fi
10041 if test "x$ac_cv_func_fork_works" = xcross; then
10042   case $host in
10043     *-*-amigaos* | *-*-msdosdjgpp*)
10044       # Override, as these systems have only a dummy fork() stub
10045       ac_cv_func_fork_works=no
10046       ;;
10047     *)
10048       ac_cv_func_fork_works=yes
10049       ;;
10050   esac
10051   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10052 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10053 fi
10054 ac_cv_func_vfork_works=$ac_cv_func_vfork
10055 if test "x$ac_cv_func_vfork" = xyes; then
10056   echo "$as_me:$LINENO: checking for working vfork" >&5
10057 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10058 if test "${ac_cv_func_vfork_works+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   if test "$cross_compiling" = yes; then
10062   ac_cv_func_vfork_works=cross
10063 else
10064   cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 /* Thanks to Paul Eggert for this test.  */
10071 #include <stdio.h>
10072 #include <stdlib.h>
10073 #include <sys/types.h>
10074 #include <sys/stat.h>
10075 #include <sys/wait.h>
10076 #if HAVE_UNISTD_H
10077 # include <unistd.h>
10078 #endif
10079 #if HAVE_VFORK_H
10080 # include <vfork.h>
10081 #endif
10082 /* On some sparc systems, changes by the child to local and incoming
10083    argument registers are propagated back to the parent.  The compiler
10084    is told about this with #include <vfork.h>, but some compilers
10085    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10086    static variable whose address is put into a register that is
10087    clobbered by the vfork.  */
10088 static void
10089 #ifdef __cplusplus
10090 sparc_address_test (int arg)
10091 # else
10092 sparc_address_test (arg) int arg;
10093 #endif
10094 {
10095   static pid_t child;
10096   if (!child) {
10097     child = vfork ();
10098     if (child < 0) {
10099       perror ("vfork");
10100       _exit(2);
10101     }
10102     if (!child) {
10103       arg = getpid();
10104       write(-1, "", 0);
10105       _exit (arg);
10106     }
10107   }
10108 }
10109
10110 int
10111 main ()
10112 {
10113   pid_t parent = getpid ();
10114   pid_t child;
10115
10116   sparc_address_test (0);
10117
10118   child = vfork ();
10119
10120   if (child == 0) {
10121     /* Here is another test for sparc vfork register problems.  This
10122        test uses lots of local variables, at least as many local
10123        variables as main has allocated so far including compiler
10124        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10125        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10126        reuse the register of parent for one of the local variables,
10127        since it will think that parent can't possibly be used any more
10128        in this routine.  Assigning to the local variable will thus
10129        munge parent in the parent process.  */
10130     pid_t
10131       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10132       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10133     /* Convince the compiler that p..p7 are live; otherwise, it might
10134        use the same hardware register for all 8 local variables.  */
10135     if (p != p1 || p != p2 || p != p3 || p != p4
10136         || p != p5 || p != p6 || p != p7)
10137       _exit(1);
10138
10139     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10140        from child file descriptors.  If the child closes a descriptor
10141        before it execs or exits, this munges the parent's descriptor
10142        as well.  Test for this by closing stdout in the child.  */
10143     _exit(close(fileno(stdout)) != 0);
10144   } else {
10145     int status;
10146     struct stat st;
10147
10148     while (wait(&status) != child)
10149       ;
10150     exit(
10151          /* Was there some problem with vforking?  */
10152          child < 0
10153
10154          /* Did the child fail?  (This shouldn't happen.)  */
10155          || status
10156
10157          /* Did the vfork/compiler bug occur?  */
10158          || parent != getpid()
10159
10160          /* Did the file descriptor bug occur?  */
10161          || fstat(fileno(stdout), &st) != 0
10162          );
10163   }
10164 }
10165 _ACEOF
10166 rm -f conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168   (eval $ac_link) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173   (eval $ac_try) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; }; then
10177   ac_cv_func_vfork_works=yes
10178 else
10179   echo "$as_me: program exited with status $ac_status" >&5
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ( exit $ac_status )
10184 ac_cv_func_vfork_works=no
10185 fi
10186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 fi
10189 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10190 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10191
10192 fi;
10193 if test "x$ac_cv_func_fork_works" = xcross; then
10194   ac_cv_func_vfork_works=$ac_cv_func_vfork
10195   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10196 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10197 fi
10198
10199 if test "x$ac_cv_func_vfork_works" = xyes; then
10200
10201 cat >>confdefs.h <<\_ACEOF
10202 #define HAVE_WORKING_VFORK 1
10203 _ACEOF
10204
10205 else
10206
10207 cat >>confdefs.h <<\_ACEOF
10208 #define vfork fork
10209 _ACEOF
10210
10211 fi
10212 if test "x$ac_cv_func_fork_works" = xyes; then
10213
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_WORKING_FORK 1
10216 _ACEOF
10217
10218 fi
10219
10220
10221
10222       if test "X$prefix" = "XNONE"; then
10223     acl_final_prefix="$ac_default_prefix"
10224   else
10225     acl_final_prefix="$prefix"
10226   fi
10227   if test "X$exec_prefix" = "XNONE"; then
10228     acl_final_exec_prefix='${prefix}'
10229   else
10230     acl_final_exec_prefix="$exec_prefix"
10231   fi
10232   acl_save_prefix="$prefix"
10233   prefix="$acl_final_prefix"
10234   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10235   prefix="$acl_save_prefix"
10236
10237
10238 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10239 if test "${with_gnu_ld+set}" = set; then
10240   withval="$with_gnu_ld"
10241   test "$withval" = no || with_gnu_ld=yes
10242 else
10243   with_gnu_ld=no
10244 fi;
10245 # Prepare PATH_SEPARATOR.
10246 # The user is always right.
10247 if test "${PATH_SEPARATOR+set}" != set; then
10248   echo "#! /bin/sh" >conf$$.sh
10249   echo  "exit 0"   >>conf$$.sh
10250   chmod +x conf$$.sh
10251   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10252     PATH_SEPARATOR=';'
10253   else
10254     PATH_SEPARATOR=:
10255   fi
10256   rm -f conf$$.sh
10257 fi
10258 ac_prog=ld
10259 if test "$GCC" = yes; then
10260   # Check if gcc -print-prog-name=ld gives a path.
10261   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10262 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10263   case $host in
10264   *-*-mingw*)
10265     # gcc leaves a trailing carriage return which upsets mingw
10266     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10267   *)
10268     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10269   esac
10270   case $ac_prog in
10271     # Accept absolute paths.
10272     [\\/]* | [A-Za-z]:[\\/]*)
10273       re_direlt='/[^/][^/]*/\.\./'
10274       # Canonicalize the path of ld
10275       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10276       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10277         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10278       done
10279       test -z "$LD" && LD="$ac_prog"
10280       ;;
10281   "")
10282     # If it fails, then pretend we aren't using GCC.
10283     ac_prog=ld
10284     ;;
10285   *)
10286     # If it is relative, then search for the first ld in PATH.
10287     with_gnu_ld=unknown
10288     ;;
10289   esac
10290 elif test "$with_gnu_ld" = yes; then
10291   echo "$as_me:$LINENO: checking for GNU ld" >&5
10292 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10293 else
10294   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10295 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10296 fi
10297 if test "${acl_cv_path_LD+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   if test -z "$LD"; then
10301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10302   for ac_dir in $PATH; do
10303     test -z "$ac_dir" && ac_dir=.
10304     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10305       acl_cv_path_LD="$ac_dir/$ac_prog"
10306       # Check to see if the program is GNU ld.  I'd rather use --version,
10307       # but apparently some GNU ld's only accept -v.
10308       # Break only if it was the GNU/non-GNU ld that we prefer.
10309       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10310         test "$with_gnu_ld" != no && break
10311       else
10312         test "$with_gnu_ld" != yes && break
10313       fi
10314     fi
10315   done
10316   IFS="$ac_save_ifs"
10317 else
10318   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10319 fi
10320 fi
10321
10322 LD="$acl_cv_path_LD"
10323 if test -n "$LD"; then
10324   echo "$as_me:$LINENO: result: $LD" >&5
10325 echo "${ECHO_T}$LD" >&6
10326 else
10327   echo "$as_me:$LINENO: result: no" >&5
10328 echo "${ECHO_T}no" >&6
10329 fi
10330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10332    { (exit 1); exit 1; }; }
10333 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10335 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10339 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10340   acl_cv_prog_gnu_ld=yes
10341 else
10342   acl_cv_prog_gnu_ld=no
10343 fi
10344 fi
10345 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10346 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10347 with_gnu_ld=$acl_cv_prog_gnu_ld
10348
10349
10350
10351                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10352 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10353 if test "${acl_cv_rpath+set}" = set; then
10354   echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356
10357     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10358     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10359     . ./conftest.sh
10360     rm -f ./conftest.sh
10361     acl_cv_rpath=done
10362
10363 fi
10364 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10365 echo "${ECHO_T}$acl_cv_rpath" >&6
10366   wl="$acl_cv_wl"
10367   libext="$acl_cv_libext"
10368   shlibext="$acl_cv_shlibext"
10369   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10370   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10371   hardcode_direct="$acl_cv_hardcode_direct"
10372   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10373     # Check whether --enable-rpath or --disable-rpath was given.
10374 if test "${enable_rpath+set}" = set; then
10375   enableval="$enable_rpath"
10376   :
10377 else
10378   enable_rpath=yes
10379 fi;
10380
10381
10382
10383
10384
10385
10386
10387     use_additional=yes
10388
10389   acl_save_prefix="$prefix"
10390   prefix="$acl_final_prefix"
10391   acl_save_exec_prefix="$exec_prefix"
10392   exec_prefix="$acl_final_exec_prefix"
10393
10394     eval additional_includedir=\"$includedir\"
10395     eval additional_libdir=\"$libdir\"
10396
10397   exec_prefix="$acl_save_exec_prefix"
10398   prefix="$acl_save_prefix"
10399
10400
10401 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10402 if test "${with_libiconv_prefix+set}" = set; then
10403   withval="$with_libiconv_prefix"
10404
10405     if test "X$withval" = "Xno"; then
10406       use_additional=no
10407     else
10408       if test "X$withval" = "X"; then
10409
10410   acl_save_prefix="$prefix"
10411   prefix="$acl_final_prefix"
10412   acl_save_exec_prefix="$exec_prefix"
10413   exec_prefix="$acl_final_exec_prefix"
10414
10415           eval additional_includedir=\"$includedir\"
10416           eval additional_libdir=\"$libdir\"
10417
10418   exec_prefix="$acl_save_exec_prefix"
10419   prefix="$acl_save_prefix"
10420
10421       else
10422         additional_includedir="$withval/include"
10423         additional_libdir="$withval/lib"
10424       fi
10425     fi
10426
10427 fi;
10428       LIBICONV=
10429   LTLIBICONV=
10430   INCICONV=
10431   rpathdirs=
10432   ltrpathdirs=
10433   names_already_handled=
10434   names_next_round='iconv '
10435   while test -n "$names_next_round"; do
10436     names_this_round="$names_next_round"
10437     names_next_round=
10438     for name in $names_this_round; do
10439       already_handled=
10440       for n in $names_already_handled; do
10441         if test "$n" = "$name"; then
10442           already_handled=yes
10443           break
10444         fi
10445       done
10446       if test -z "$already_handled"; then
10447         names_already_handled="$names_already_handled $name"
10448                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10449         eval value=\"\$HAVE_LIB$uppername\"
10450         if test -n "$value"; then
10451           if test "$value" = yes; then
10452             eval value=\"\$LIB$uppername\"
10453             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10454             eval value=\"\$LTLIB$uppername\"
10455             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10456           else
10457                                     :
10458           fi
10459         else
10460                               found_dir=
10461           found_la=
10462           found_so=
10463           found_a=
10464           if test $use_additional = yes; then
10465             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10466               found_dir="$additional_libdir"
10467               found_so="$additional_libdir/lib$name.$shlibext"
10468               if test -f "$additional_libdir/lib$name.la"; then
10469                 found_la="$additional_libdir/lib$name.la"
10470               fi
10471             else
10472               if test -f "$additional_libdir/lib$name.$libext"; then
10473                 found_dir="$additional_libdir"
10474                 found_a="$additional_libdir/lib$name.$libext"
10475                 if test -f "$additional_libdir/lib$name.la"; then
10476                   found_la="$additional_libdir/lib$name.la"
10477                 fi
10478               fi
10479             fi
10480           fi
10481           if test "X$found_dir" = "X"; then
10482             for x in $LDFLAGS $LTLIBICONV; do
10483
10484   acl_save_prefix="$prefix"
10485   prefix="$acl_final_prefix"
10486   acl_save_exec_prefix="$exec_prefix"
10487   exec_prefix="$acl_final_exec_prefix"
10488   eval x=\"$x\"
10489   exec_prefix="$acl_save_exec_prefix"
10490   prefix="$acl_save_prefix"
10491
10492               case "$x" in
10493                 -L*)
10494                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10495                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10496                     found_dir="$dir"
10497                     found_so="$dir/lib$name.$shlibext"
10498                     if test -f "$dir/lib$name.la"; then
10499                       found_la="$dir/lib$name.la"
10500                     fi
10501                   else
10502                     if test -f "$dir/lib$name.$libext"; then
10503                       found_dir="$dir"
10504                       found_a="$dir/lib$name.$libext"
10505                       if test -f "$dir/lib$name.la"; then
10506                         found_la="$dir/lib$name.la"
10507                       fi
10508                     fi
10509                   fi
10510                   ;;
10511               esac
10512               if test "X$found_dir" != "X"; then
10513                 break
10514               fi
10515             done
10516           fi
10517           if test "X$found_dir" != "X"; then
10518                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10519             if test "X$found_so" != "X"; then
10520                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10521                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10522               else
10523                                                                                 haveit=
10524                 for x in $ltrpathdirs; do
10525                   if test "X$x" = "X$found_dir"; then
10526                     haveit=yes
10527                     break
10528                   fi
10529                 done
10530                 if test -z "$haveit"; then
10531                   ltrpathdirs="$ltrpathdirs $found_dir"
10532                 fi
10533                                 if test "$hardcode_direct" = yes; then
10534                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10535                 else
10536                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10537                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10538                                                             haveit=
10539                     for x in $rpathdirs; do
10540                       if test "X$x" = "X$found_dir"; then
10541                         haveit=yes
10542                         break
10543                       fi
10544                     done
10545                     if test -z "$haveit"; then
10546                       rpathdirs="$rpathdirs $found_dir"
10547                     fi
10548                   else
10549                                                                                 haveit=
10550                     for x in $LDFLAGS $LIBICONV; do
10551
10552   acl_save_prefix="$prefix"
10553   prefix="$acl_final_prefix"
10554   acl_save_exec_prefix="$exec_prefix"
10555   exec_prefix="$acl_final_exec_prefix"
10556   eval x=\"$x\"
10557   exec_prefix="$acl_save_exec_prefix"
10558   prefix="$acl_save_prefix"
10559
10560                       if test "X$x" = "X-L$found_dir"; then
10561                         haveit=yes
10562                         break
10563                       fi
10564                     done
10565                     if test -z "$haveit"; then
10566                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10567                     fi
10568                     if test "$hardcode_minus_L" != no; then
10569                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10570                     else
10571                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10572                     fi
10573                   fi
10574                 fi
10575               fi
10576             else
10577               if test "X$found_a" != "X"; then
10578                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10579               else
10580                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10581               fi
10582             fi
10583                         additional_includedir=
10584             case "$found_dir" in
10585               */lib | */lib/)
10586                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10587                 additional_includedir="$basedir/include"
10588                 ;;
10589             esac
10590             if test "X$additional_includedir" != "X"; then
10591                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10592                 haveit=
10593                 if test "X$additional_includedir" = "X/usr/local/include"; then
10594                   if test -n "$GCC"; then
10595                     case $host_os in
10596                       linux*) haveit=yes;;
10597                     esac
10598                   fi
10599                 fi
10600                 if test -z "$haveit"; then
10601                   for x in $CPPFLAGS $INCICONV; do
10602
10603   acl_save_prefix="$prefix"
10604   prefix="$acl_final_prefix"
10605   acl_save_exec_prefix="$exec_prefix"
10606   exec_prefix="$acl_final_exec_prefix"
10607   eval x=\"$x\"
10608   exec_prefix="$acl_save_exec_prefix"
10609   prefix="$acl_save_prefix"
10610
10611                     if test "X$x" = "X-I$additional_includedir"; then
10612                       haveit=yes
10613                       break
10614                     fi
10615                   done
10616                   if test -z "$haveit"; then
10617                     if test -d "$additional_includedir"; then
10618                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10619                     fi
10620                   fi
10621                 fi
10622               fi
10623             fi
10624                         if test -n "$found_la"; then
10625                                                         save_libdir="$libdir"
10626               case "$found_la" in
10627                 */* | *\\*) . "$found_la" ;;
10628                 *) . "./$found_la" ;;
10629               esac
10630               libdir="$save_libdir"
10631                             for dep in $dependency_libs; do
10632                 case "$dep" in
10633                   -L*)
10634                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10635                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10636                       haveit=
10637                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10638                         if test -n "$GCC"; then
10639                           case $host_os in
10640                             linux*) haveit=yes;;
10641                           esac
10642                         fi
10643                       fi
10644                       if test -z "$haveit"; then
10645                         haveit=
10646                         for x in $LDFLAGS $LIBICONV; do
10647
10648   acl_save_prefix="$prefix"
10649   prefix="$acl_final_prefix"
10650   acl_save_exec_prefix="$exec_prefix"
10651   exec_prefix="$acl_final_exec_prefix"
10652   eval x=\"$x\"
10653   exec_prefix="$acl_save_exec_prefix"
10654   prefix="$acl_save_prefix"
10655
10656                           if test "X$x" = "X-L$additional_libdir"; then
10657                             haveit=yes
10658                             break
10659                           fi
10660                         done
10661                         if test -z "$haveit"; then
10662                           if test -d "$additional_libdir"; then
10663                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10664                           fi
10665                         fi
10666                         haveit=
10667                         for x in $LDFLAGS $LTLIBICONV; do
10668
10669   acl_save_prefix="$prefix"
10670   prefix="$acl_final_prefix"
10671   acl_save_exec_prefix="$exec_prefix"
10672   exec_prefix="$acl_final_exec_prefix"
10673   eval x=\"$x\"
10674   exec_prefix="$acl_save_exec_prefix"
10675   prefix="$acl_save_prefix"
10676
10677                           if test "X$x" = "X-L$additional_libdir"; then
10678                             haveit=yes
10679                             break
10680                           fi
10681                         done
10682                         if test -z "$haveit"; then
10683                           if test -d "$additional_libdir"; then
10684                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10685                           fi
10686                         fi
10687                       fi
10688                     fi
10689                     ;;
10690                   -R*)
10691                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10692                     if test "$enable_rpath" != no; then
10693                                                                   haveit=
10694                       for x in $rpathdirs; do
10695                         if test "X$x" = "X$dir"; then
10696                           haveit=yes
10697                           break
10698                         fi
10699                       done
10700                       if test -z "$haveit"; then
10701                         rpathdirs="$rpathdirs $dir"
10702                       fi
10703                                                                   haveit=
10704                       for x in $ltrpathdirs; do
10705                         if test "X$x" = "X$dir"; then
10706                           haveit=yes
10707                           break
10708                         fi
10709                       done
10710                       if test -z "$haveit"; then
10711                         ltrpathdirs="$ltrpathdirs $dir"
10712                       fi
10713                     fi
10714                     ;;
10715                   -l*)
10716                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10717                     ;;
10718                   *.la)
10719                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10720                     ;;
10721                   *)
10722                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10723                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10724                     ;;
10725                 esac
10726               done
10727             fi
10728           else
10729                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10730             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10731           fi
10732         fi
10733       fi
10734     done
10735   done
10736   if test "X$rpathdirs" != "X"; then
10737     if test -n "$hardcode_libdir_separator"; then
10738                         alldirs=
10739       for found_dir in $rpathdirs; do
10740         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10741       done
10742             acl_save_libdir="$libdir"
10743       libdir="$alldirs"
10744       eval flag=\"$hardcode_libdir_flag_spec\"
10745       libdir="$acl_save_libdir"
10746       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10747     else
10748             for found_dir in $rpathdirs; do
10749         acl_save_libdir="$libdir"
10750         libdir="$found_dir"
10751         eval flag=\"$hardcode_libdir_flag_spec\"
10752         libdir="$acl_save_libdir"
10753         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10754       done
10755     fi
10756   fi
10757   if test "X$ltrpathdirs" != "X"; then
10758             for found_dir in $ltrpathdirs; do
10759       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10760     done
10761   fi
10762
10763
10764
10765
10766
10767
10768
10769           am_save_CPPFLAGS="$CPPFLAGS"
10770
10771   for element in $INCICONV; do
10772     haveit=
10773     for x in $CPPFLAGS; do
10774
10775   acl_save_prefix="$prefix"
10776   prefix="$acl_final_prefix"
10777   acl_save_exec_prefix="$exec_prefix"
10778   exec_prefix="$acl_final_exec_prefix"
10779   eval x=\"$x\"
10780   exec_prefix="$acl_save_exec_prefix"
10781   prefix="$acl_save_prefix"
10782
10783       if test "X$x" = "X$element"; then
10784         haveit=yes
10785         break
10786       fi
10787     done
10788     if test -z "$haveit"; then
10789       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10790     fi
10791   done
10792
10793
10794   echo "$as_me:$LINENO: checking for iconv" >&5
10795 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10796 if test "${am_cv_func_iconv+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799
10800     am_cv_func_iconv="no, consider installing GNU libiconv"
10801     am_cv_lib_iconv=no
10802     cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808 #include <stdlib.h>
10809 #include <iconv.h>
10810 int
10811 main ()
10812 {
10813 iconv_t cd = iconv_open("","");
10814        iconv(cd,NULL,NULL,NULL,NULL);
10815        iconv_close(cd);
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822   (eval $ac_link) 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } &&
10829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   am_cv_func_iconv=yes
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 fi
10847 rm -f conftest.err conftest.$ac_objext \
10848       conftest$ac_exeext conftest.$ac_ext
10849     if test "$am_cv_func_iconv" != yes; then
10850       am_save_LIBS="$LIBS"
10851       LIBS="$LIBS $LIBICONV"
10852       cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 #include <stdlib.h>
10859 #include <iconv.h>
10860 int
10861 main ()
10862 {
10863 iconv_t cd = iconv_open("","");
10864          iconv(cd,NULL,NULL,NULL,NULL);
10865          iconv_close(cd);
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext conftest$ac_exeext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10872   (eval $ac_link) 2>conftest.er1
10873   ac_status=$?
10874   grep -v '^ *+' conftest.er1 >conftest.err
10875   rm -f conftest.er1
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } &&
10879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881   (eval $ac_try) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; } &&
10885          { ac_try='test -s conftest$ac_exeext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   am_cv_lib_iconv=yes
10892         am_cv_func_iconv=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 fi
10898 rm -f conftest.err conftest.$ac_objext \
10899       conftest$ac_exeext conftest.$ac_ext
10900       LIBS="$am_save_LIBS"
10901     fi
10902
10903 fi
10904 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10905 echo "${ECHO_T}$am_cv_func_iconv" >&6
10906   if test "$am_cv_func_iconv" = yes; then
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_ICONV 1
10910 _ACEOF
10911
10912   fi
10913   if test "$am_cv_lib_iconv" = yes; then
10914     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10915 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10916     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10917 echo "${ECHO_T}$LIBICONV" >&6
10918   else
10919             CPPFLAGS="$am_save_CPPFLAGS"
10920     LIBICONV=
10921     LTLIBICONV=
10922   fi
10923
10924
10925
10926   if test "$am_cv_func_iconv" = yes; then
10927     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10928 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10929     if test "${am_cv_proto_iconv+set}" = set; then
10930   echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932
10933       cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939
10940 #include <stdlib.h>
10941 #include <iconv.h>
10942 extern
10943 #ifdef __cplusplus
10944 "C"
10945 #endif
10946 #if defined(__STDC__) || defined(__cplusplus)
10947 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10948 #else
10949 size_t iconv();
10950 #endif
10951
10952 int
10953 main ()
10954 {
10955
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962   (eval $ac_compile) 2>conftest.er1
10963   ac_status=$?
10964   grep -v '^ *+' conftest.er1 >conftest.err
10965   rm -f conftest.er1
10966   cat conftest.err >&5
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } &&
10969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971   (eval $ac_try) 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; } &&
10975          { ac_try='test -s conftest.$ac_objext'
10976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977   (eval $ac_try) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; }; then
10981   am_cv_proto_iconv_arg1=""
10982 else
10983   echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 am_cv_proto_iconv_arg1="const"
10987 fi
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989       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);"
10990 fi
10991
10992     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10993     echo "$as_me:$LINENO: result: ${ac_t:-
10994          }$am_cv_proto_iconv" >&5
10995 echo "${ECHO_T}${ac_t:-
10996          }$am_cv_proto_iconv" >&6
10997
10998 cat >>confdefs.h <<_ACEOF
10999 #define ICONV_CONST $am_cv_proto_iconv_arg1
11000 _ACEOF
11001
11002   fi
11003
11004 # Until we have in-tree GNU iconv:
11005 LIBICONV_DEP=
11006
11007
11008
11009   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11010 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11011 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h.  */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h.  */
11020 #include <locale.h>
11021 int
11022 main ()
11023 {
11024 return LC_MESSAGES
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031   (eval $ac_link) 2>conftest.er1
11032   ac_status=$?
11033   grep -v '^ *+' conftest.er1 >conftest.err
11034   rm -f conftest.er1
11035   cat conftest.err >&5
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); } &&
11038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; } &&
11044          { ac_try='test -s conftest$ac_exeext'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   am_cv_val_LC_MESSAGES=yes
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 am_cv_val_LC_MESSAGES=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext \
11058       conftest$ac_exeext conftest.$ac_ext
11059 fi
11060 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11061 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11062   if test $am_cv_val_LC_MESSAGES = yes; then
11063
11064 cat >>confdefs.h <<\_ACEOF
11065 #define HAVE_LC_MESSAGES 1
11066 _ACEOF
11067
11068   fi
11069
11070
11071
11072   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11073 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11074 if test "${am_cv_langinfo_codeset+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083 #include <langinfo.h>
11084 int
11085 main ()
11086 {
11087 char* cs = nl_langinfo(CODESET);
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094   (eval $ac_link) 2>conftest.er1
11095   ac_status=$?
11096   grep -v '^ *+' conftest.er1 >conftest.err
11097   rm -f conftest.er1
11098   cat conftest.err >&5
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } &&
11101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103   (eval $ac_try) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; } &&
11107          { ac_try='test -s conftest$ac_exeext'
11108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109   (eval $ac_try) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; }; then
11113   am_cv_langinfo_codeset=yes
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 am_cv_langinfo_codeset=no
11119 fi
11120 rm -f conftest.err conftest.$ac_objext \
11121       conftest$ac_exeext conftest.$ac_ext
11122
11123 fi
11124 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11125 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11126   if test $am_cv_langinfo_codeset = yes; then
11127
11128 cat >>confdefs.h <<\_ACEOF
11129 #define HAVE_LANGINFO_CODESET 1
11130 _ACEOF
11131
11132   fi
11133
11134
11135 # We will need to find libiberty.h and ansidecl.h
11136 saved_CFLAGS="$CFLAGS"
11137 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11178         strsignal strstr strverscmp \
11179         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11180         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
11181 do
11182   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11183 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11184 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11185 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194 #undef $ac_tr_decl
11195 #define $ac_tr_decl 1
11196
11197 #include "ansidecl.h"
11198 #include "system.h"
11199
11200 int
11201 main ()
11202 {
11203 #ifndef $ac_func
11204 char *(*pfn) = (char *(*)) $ac_func ;
11205 #endif
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212   (eval $ac_compile) 2>conftest.er1
11213   ac_status=$?
11214   grep -v '^ *+' conftest.er1 >conftest.err
11215   rm -f conftest.er1
11216   cat conftest.err >&5
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } &&
11219          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221   (eval $ac_try) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; } &&
11225          { ac_try='test -s conftest.$ac_objext'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   eval "gcc_cv_have_decl_$ac_func=yes"
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 eval "gcc_cv_have_decl_$ac_func=no"
11237 fi
11238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11239 fi
11240
11241 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11242   echo "$as_me:$LINENO: result: yes" >&5
11243 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11244 #define $ac_tr_decl 1
11245 _ACEOF
11246
11247 else
11248   echo "$as_me:$LINENO: result: no" >&5
11249 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11250 #define $ac_tr_decl 0
11251 _ACEOF
11252
11253 fi
11254
11255 done
11256
11257
11258
11259
11260
11261 for ac_func in getrlimit setrlimit getrusage
11262 do
11263   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11264 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11265 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11266 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 #undef $ac_tr_decl
11276 #define $ac_tr_decl 1
11277
11278 #include "ansidecl.h"
11279 #include "system.h"
11280 #ifdef HAVE_SYS_RESOURCE_H
11281 #include <sys/resource.h>
11282 #endif
11283
11284
11285 int
11286 main ()
11287 {
11288 #ifndef $ac_func
11289 char *(*pfn) = (char *(*)) $ac_func ;
11290 #endif
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297   (eval $ac_compile) 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; } &&
11310          { ac_try='test -s conftest.$ac_objext'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   eval "gcc_cv_have_decl_$ac_func=yes"
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 eval "gcc_cv_have_decl_$ac_func=no"
11322 fi
11323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11324 fi
11325
11326 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11327   echo "$as_me:$LINENO: result: yes" >&5
11328 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11329 #define $ac_tr_decl 1
11330 _ACEOF
11331
11332 else
11333   echo "$as_me:$LINENO: result: no" >&5
11334 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11335 #define $ac_tr_decl 0
11336 _ACEOF
11337
11338 fi
11339
11340 done
11341
11342
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349
11350 #include "ansidecl.h"
11351 #include "system.h"
11352 #ifdef HAVE_SYS_RESOURCE_H
11353 #include <sys/resource.h>
11354 #endif
11355
11356 int
11357 main ()
11358 {
11359 rlim_t l = 0;
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366   (eval $ac_compile) 2>conftest.er1
11367   ac_status=$?
11368   grep -v '^ *+' conftest.er1 >conftest.err
11369   rm -f conftest.er1
11370   cat conftest.err >&5
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } &&
11373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; } &&
11379          { ac_try='test -s conftest.$ac_objext'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   :
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define rlim_t long
11393 _ACEOF
11394
11395 fi
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397
11398 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11399 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11400 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11401 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11402
11403 for ac_func in ldgetname
11404 do
11405   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11406 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11407 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11408 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 #undef $ac_tr_decl
11418 #define $ac_tr_decl 1
11419
11420 #include "ansidecl.h"
11421 #include "system.h"
11422 #ifdef HAVE_LDFCN_H
11423 #undef FREAD
11424 #undef FWRITE
11425 #include <ldfcn.h>
11426 #endif
11427
11428
11429 int
11430 main ()
11431 {
11432 #ifndef $ac_func
11433 char *(*pfn) = (char *(*)) $ac_func ;
11434 #endif
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441   (eval $ac_compile) 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } &&
11448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450   (eval $ac_try) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; } &&
11454          { ac_try='test -s conftest.$ac_objext'
11455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456   (eval $ac_try) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; }; then
11460   eval "gcc_cv_have_decl_$ac_func=yes"
11461 else
11462   echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 eval "gcc_cv_have_decl_$ac_func=no"
11466 fi
11467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11468 fi
11469
11470 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11471   echo "$as_me:$LINENO: result: yes" >&5
11472 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11473 #define $ac_tr_decl 1
11474 _ACEOF
11475
11476 else
11477   echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11479 #define $ac_tr_decl 0
11480 _ACEOF
11481
11482 fi
11483
11484 done
11485
11486
11487
11488 for ac_func in times
11489 do
11490   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11491 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11492 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11493 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 #undef $ac_tr_decl
11503 #define $ac_tr_decl 1
11504
11505 #include "ansidecl.h"
11506 #include "system.h"
11507 #ifdef HAVE_SYS_TIMES_H
11508 #include <sys/times.h>
11509 #endif
11510
11511
11512 int
11513 main ()
11514 {
11515 #ifndef $ac_func
11516 char *(*pfn) = (char *(*)) $ac_func ;
11517 #endif
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524   (eval $ac_compile) 2>conftest.er1
11525   ac_status=$?
11526   grep -v '^ *+' conftest.er1 >conftest.err
11527   rm -f conftest.er1
11528   cat conftest.err >&5
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); } &&
11531          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533   (eval $ac_try) 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; } &&
11537          { ac_try='test -s conftest.$ac_objext'
11538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539   (eval $ac_try) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; }; then
11543   eval "gcc_cv_have_decl_$ac_func=yes"
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 eval "gcc_cv_have_decl_$ac_func=no"
11549 fi
11550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11551 fi
11552
11553 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11554   echo "$as_me:$LINENO: result: yes" >&5
11555 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11556 #define $ac_tr_decl 1
11557 _ACEOF
11558
11559 else
11560   echo "$as_me:$LINENO: result: no" >&5
11561 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11562 #define $ac_tr_decl 0
11563 _ACEOF
11564
11565 fi
11566
11567 done
11568
11569
11570 # More time-related stuff.
11571 echo "$as_me:$LINENO: checking for struct tms" >&5
11572 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11573 if test "${ac_cv_struct_tms+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576
11577 cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583
11584 #include "ansidecl.h"
11585 #include "system.h"
11586 #ifdef HAVE_SYS_TIMES_H
11587 #include <sys/times.h>
11588 #endif
11589
11590 int
11591 main ()
11592 {
11593 struct tms tms;
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600   (eval $ac_compile) 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } &&
11607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; } &&
11613          { ac_try='test -s conftest.$ac_objext'
11614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615   (eval $ac_try) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; }; then
11619   ac_cv_struct_tms=yes
11620 else
11621   echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 ac_cv_struct_tms=no
11625 fi
11626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627 fi
11628 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11629 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11630 if test $ac_cv_struct_tms = yes; then
11631
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_STRUCT_TMS 1
11634 _ACEOF
11635
11636 fi
11637
11638 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11639 # revisit after autoconf 2.50.
11640 echo "$as_me:$LINENO: checking for clock_t" >&5
11641 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11642 if test "${gcc_cv_type_clock_t+set}" = set; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652
11653 #include "ansidecl.h"
11654 #include "system.h"
11655
11656 int
11657 main ()
11658 {
11659 clock_t x;
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666   (eval $ac_compile) 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
11679          { ac_try='test -s conftest.$ac_objext'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   gcc_cv_type_clock_t=yes
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 gcc_cv_type_clock_t=no
11691 fi
11692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11693 fi
11694 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11695 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11696 if test $gcc_cv_type_clock_t = yes; then
11697
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_CLOCK_T 1
11700 _ACEOF
11701
11702 fi
11703
11704 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11705 CFLAGS="$saved_CFLAGS"
11706
11707 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11708 if test "${enable_initfini_array+set}" = set; then
11709   enableval="$enable_initfini_array"
11710
11711 else
11712
11713 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11714 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11715 if test "${gcc_cv_initfini_array+set}" = set; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718     if test "$cross_compiling" = yes; then
11719   gcc_cv_initfini_array=no
11720 else
11721   cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727
11728 static int x = -1;
11729 int main (void) { return x; }
11730 int foo (void) { x = 0; }
11731 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11732 _ACEOF
11733 rm -f conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735   (eval $ac_link) 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; }; then
11744   gcc_cv_initfini_array=yes
11745 else
11746   echo "$as_me: program exited with status $ac_status" >&5
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ( exit $ac_status )
11751 gcc_cv_initfini_array=no
11752 fi
11753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11754 fi
11755 fi
11756 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11757 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11758   enable_initfini_array=$gcc_cv_initfini_array
11759
11760 fi;
11761 if test $enable_initfini_array = yes; then
11762
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_INITFINI_ARRAY 1
11765 _ACEOF
11766
11767 fi
11768
11769 # mkdir takes a single argument on some systems.
11770 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11771 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11772 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775   cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781
11782 #include <sys/types.h>
11783 #ifdef HAVE_SYS_STAT_H
11784 # include <sys/stat.h>
11785 #endif
11786 #ifdef HAVE_UNISTD_H
11787 # include <unistd.h>
11788 #endif
11789 #ifdef HAVE_DIRECT_H
11790 # include <direct.h>
11791 #endif
11792 int
11793 main ()
11794 {
11795 mkdir ("foo", 0);
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802   (eval $ac_compile) 2>conftest.er1
11803   ac_status=$?
11804   grep -v '^ *+' conftest.er1 >conftest.err
11805   rm -f conftest.er1
11806   cat conftest.err >&5
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); } &&
11809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811   (eval $ac_try) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; } &&
11815          { ac_try='test -s conftest.$ac_objext'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; }; then
11821   gcc_cv_mkdir_takes_one_arg=no
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 gcc_cv_mkdir_takes_one_arg=yes
11827 fi
11828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11831 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11832 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11833
11834 cat >>confdefs.h <<\_ACEOF
11835 #define MKDIR_TAKES_ONE_ARG 1
11836 _ACEOF
11837
11838 fi
11839
11840
11841 # File extensions
11842 manext='.1'
11843 objext='.o'
11844
11845
11846
11847 # With Setjmp/Longjmp based exception handling.
11848 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11849 if test "${enable_sjlj_exceptions+set}" = set; then
11850   enableval="$enable_sjlj_exceptions"
11851   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11852
11853 cat >>confdefs.h <<_ACEOF
11854 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11855 _ACEOF
11856
11857 fi;
11858
11859 # For platforms with the unwind ABI which includes an unwind library,
11860 # libunwind, we can choose to use the system libunwind.
11861
11862 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11863 if test "${with_system_libunwind+set}" = set; then
11864   withval="$with_system_libunwind"
11865
11866 fi;
11867
11868 # --------------------------------------------------------
11869 # Build, host, and target specific configuration fragments
11870 # --------------------------------------------------------
11871
11872 # Collect build-machine-specific information.
11873 . ${srcdir}/config.build
11874
11875 # Collect host-machine-specific information.
11876 . ${srcdir}/config.host
11877
11878 target_gtfiles=
11879
11880 # Collect target-machine-specific information.
11881 . ${srcdir}/config.gcc
11882
11883 extra_objs="${host_extra_objs} ${extra_objs}"
11884 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11885
11886 # Default the target-machine variables that were not explicitly set.
11887 if test x"$tm_file" = x
11888 then tm_file=$cpu_type/$cpu_type.h; fi
11889
11890 if test x"$extra_headers" = x
11891 then extra_headers=; fi
11892
11893 if test x$md_file = x
11894 then md_file=$cpu_type/$cpu_type.md; fi
11895
11896 if test x$out_file = x
11897 then out_file=$cpu_type/$cpu_type.c; fi
11898
11899 if test x"$tmake_file" = x
11900 then tmake_file=$cpu_type/t-$cpu_type
11901 fi
11902
11903 if test x"$dwarf2" = xyes
11904 then tm_file="$tm_file tm-dwarf2.h"
11905 fi
11906
11907 # Say what files are being used for the output code and MD file.
11908 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11909 echo "Using \`$srcdir/config/$md_file' as machine description file."
11910
11911 # If any of the xm_file variables contain nonexistent files, warn
11912 # about them and drop them.
11913
11914 bx=
11915 for x in $build_xm_file; do
11916   if    test -f $srcdir/config/$x
11917   then      bx="$bx $x"
11918   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11919 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11920   fi
11921 done
11922 build_xm_file="$bx"
11923
11924 hx=
11925 for x in $host_xm_file; do
11926   if    test -f $srcdir/config/$x
11927   then      hx="$hx $x"
11928   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11929 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11930   fi
11931 done
11932 host_xm_file="$hx"
11933
11934 tx=
11935 for x in $xm_file; do
11936   if    test -f $srcdir/config/$x
11937   then      tx="$tx $x"
11938   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11939 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11940   fi
11941 done
11942 xm_file="$tx"
11943
11944 count=a
11945 for f in $tm_file; do
11946         count=${count}x
11947 done
11948 if test $count = ax; then
11949         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11950 else
11951         echo "Using the following target machine macro files:"
11952         for f in $tm_file; do
11953                 echo "  $srcdir/config/$f"
11954         done
11955 fi
11956
11957 if test x$need_64bit_hwint = xyes; then
11958
11959 cat >>confdefs.h <<\_ACEOF
11960 #define NEED_64BIT_HOST_WIDE_INT 1
11961 _ACEOF
11962
11963 fi
11964
11965 if test x$use_long_long_for_widest_fast_int = xyes; then
11966
11967 cat >>confdefs.h <<\_ACEOF
11968 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11969 _ACEOF
11970
11971 fi
11972
11973 count=a
11974 for f in $host_xm_file; do
11975         count=${count}x
11976 done
11977 if test $count = a; then
11978         :
11979 elif test $count = ax; then
11980         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11981 else
11982         echo "Using the following host machine macro files:"
11983         for f in $host_xm_file; do
11984                 echo "  $srcdir/config/$f"
11985         done
11986 fi
11987 echo "Using ${out_host_hook_obj} for host machine hooks."
11988
11989 if test "$host_xm_file" != "$build_xm_file"; then
11990         count=a
11991         for f in $build_xm_file; do
11992                 count=${count}x
11993         done
11994         if test $count = a; then
11995                 :
11996         elif test $count = ax; then
11997                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11998         else
11999                 echo "Using the following build machine macro files:"
12000                 for f in $build_xm_file; do
12001                         echo "  $srcdir/config/$f"
12002                 done
12003         fi
12004 fi
12005
12006 # ---------
12007 # Threading
12008 # ---------
12009
12010 # Check if a valid thread package
12011 case ${enable_threads} in
12012   "" | no)
12013     # No threads
12014     target_thread_file='single'
12015     ;;
12016   yes)
12017     # default
12018     target_thread_file='single'
12019     ;;
12020   aix | dce | gnat | irix | posix | posix95 | rtems | \
12021   single | solaris | vxworks | win32 )
12022     target_thread_file=${enable_threads}
12023     ;;
12024   *)
12025     echo "${enable_threads} is an unknown thread package" 1>&2
12026     exit 1
12027     ;;
12028 esac
12029
12030 if test x${thread_file} = x; then
12031   # No thread file set by target-specific clauses in config.gcc,
12032   # so use file chosen by default logic above
12033   thread_file=${target_thread_file}
12034 fi
12035
12036 # Make gthr-default.h if we have a thread file.
12037 gthread_flags=
12038 if test $thread_file != single; then
12039   rm -f gthr-default.h
12040   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12041   gthread_flags=-DHAVE_GTHR_DEFAULT
12042 fi
12043
12044
12045 # --------
12046 # UNSORTED
12047 # --------
12048
12049 use_cxa_atexit=no
12050 if test x$enable___cxa_atexit = xyes || \
12051    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12052   if test x$host = x$target; then
12053     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12054 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12055 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h.  */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h.  */
12064 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12066 #define __cxa_atexit innocuous___cxa_atexit
12067
12068 /* System header to define __stub macros and hopefully few prototypes,
12069     which can conflict with char __cxa_atexit (); below.
12070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071     <limits.h> exists even on freestanding compilers.  */
12072
12073 #ifdef __STDC__
12074 # include <limits.h>
12075 #else
12076 # include <assert.h>
12077 #endif
12078
12079 #undef __cxa_atexit
12080
12081 /* Override any gcc2 internal prototype to avoid an error.  */
12082 #ifdef __cplusplus
12083 extern "C"
12084 {
12085 #endif
12086 /* We use char because int might match the return type of a gcc2
12087    builtin and then its argument prototype would still apply.  */
12088 char __cxa_atexit ();
12089 /* The GNU C library defines this for functions which it implements
12090     to always fail with ENOSYS.  Some functions are actually named
12091     something starting with __ and the normal name is an alias.  */
12092 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12093 choke me
12094 #else
12095 char (*f) () = __cxa_atexit;
12096 #endif
12097 #ifdef __cplusplus
12098 }
12099 #endif
12100
12101 int
12102 main ()
12103 {
12104 return f != __cxa_atexit;
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111   (eval $ac_link) 2>conftest.er1
12112   ac_status=$?
12113   grep -v '^ *+' conftest.er1 >conftest.err
12114   rm -f conftest.er1
12115   cat conftest.err >&5
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; } &&
12124          { ac_try='test -s conftest$ac_exeext'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   ac_cv_func___cxa_atexit=yes
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 ac_cv_func___cxa_atexit=no
12136 fi
12137 rm -f conftest.err conftest.$ac_objext \
12138       conftest$ac_exeext conftest.$ac_ext
12139 fi
12140 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12141 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12142 if test $ac_cv_func___cxa_atexit = yes; then
12143   use_cxa_atexit=yes
12144 else
12145   echo "__cxa_atexit can't be enabled on this target"
12146 fi
12147
12148   else
12149     # We can't check for __cxa_atexit when building a cross, so assume
12150     # it is available
12151     use_cxa_atexit=yes
12152   fi
12153   if test x$use_cxa_atexit = xyes; then
12154
12155 cat >>confdefs.h <<\_ACEOF
12156 #define DEFAULT_USE_CXA_ATEXIT 1
12157 _ACEOF
12158
12159   fi
12160 fi
12161
12162 # Look for a file containing extra machine modes.
12163 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12164   extra_modes_file='$(srcdir)'/config/${extra_modes}
12165
12166
12167 cat >>confdefs.h <<_ACEOF
12168 #define EXTRA_MODES_FILE "config/$extra_modes"
12169 _ACEOF
12170
12171 fi
12172
12173 # Convert extra_options into a form suitable for Makefile use.
12174 extra_opt_files=
12175 for f in $extra_options; do
12176   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12177 done
12178
12179
12180 # auto-host.h is the file containing items generated by autoconf and is
12181 # the first file included by config.h.
12182 # If host=build, it is correct to have bconfig include auto-host.h
12183 # as well.  If host!=build, we are in error and need to do more
12184 # work to find out the build config parameters.
12185 if test x$host = x$build
12186 then
12187         build_auto=auto-host.h
12188 else
12189         # We create a subdir, then run autoconf in the subdir.
12190         # To prevent recursion we set host and build for the new
12191         # invocation of configure to the build for this invocation
12192         # of configure.
12193         tempdir=build.$$
12194         rm -rf $tempdir
12195         mkdir $tempdir
12196         cd $tempdir
12197         case ${srcdir} in
12198         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12199         *) realsrcdir=../${srcdir};;
12200         esac
12201         saved_CFLAGS="${CFLAGS}"
12202         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12203         ${realsrcdir}/configure \
12204                 --enable-languages=${enable_languages-all} \
12205                 --target=$target_alias --host=$build_alias --build=$build_alias
12206         CFLAGS="${saved_CFLAGS}"
12207
12208         # We just finished tests for the build machine, so rename
12209         # the file auto-build.h in the gcc directory.
12210         mv auto-host.h ../auto-build.h
12211         cd ..
12212         rm -rf $tempdir
12213         build_auto=auto-build.h
12214 fi
12215
12216
12217 tm_file="${tm_file} defaults.h"
12218 tm_p_file="${tm_p_file} tm-preds.h"
12219 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12220 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12221 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12222 # put this back in temporarily.
12223 xm_file="auto-host.h ansidecl.h ${xm_file}"
12224
12225 # --------
12226 # UNSORTED
12227 # --------
12228
12229 # Compile in configure arguments.
12230 if test -f configargs.h ; then
12231         # Being re-configured.
12232         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12233         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12234 else
12235         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12236 fi
12237
12238 # Double all backslashes and backslash all quotes to turn
12239 # gcc_config_arguments into a C string.
12240 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12241 $gcc_config_arguments
12242 EOF
12243 gcc_config_arguments_str=`cat conftest.out`
12244 rm -f conftest.out
12245
12246 cat > configargs.h <<EOF
12247 /* Generated automatically. */
12248 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12249 static const char thread_model[] = "$thread_file";
12250
12251 static const struct {
12252   const char *name, *value;
12253 } configure_default_options[] = $configure_default_options;
12254 EOF
12255
12256 # Internationalization
12257 # If we haven't got the data from the intl directory,
12258 # assume NLS is disabled.
12259 USE_NLS=no
12260 LIBINTL=
12261 LIBINTL_DEP=
12262 INCINTL=
12263 XGETTEXT=
12264 GMSGFMT=
12265 POSUB=
12266 if test -f ../intl/config.intl; then
12267   . ../intl/config.intl
12268 fi
12269 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12270 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12271 if test x"$USE_NLS" != xyes; then
12272   echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6
12274 else
12275   echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6
12277
12278 cat >>confdefs.h <<\_ACEOF
12279 #define ENABLE_NLS 1
12280 _ACEOF
12281
12282
12283   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12284 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12285   # Look for .po and .gmo files in the source directory.
12286   CATALOGS=
12287   XLINGUAS=
12288   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12289     # If there aren't any .gmo files the shell will give us the
12290     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12291     # weeded out.
12292     case "$cat" in *\**)
12293       continue;;
12294     esac
12295     # The quadruple backslash is collapsed to a double backslash
12296     # by the backticks, then collapsed again by the double quotes,
12297     # leaving us with one backslash in the sed expression (right
12298     # before the dot that mustn't act as a wildcard).
12299     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12300     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12301     # The user is allowed to set LINGUAS to a list of languages to
12302     # install catalogs for.  If it's empty that means "all of them."
12303     if test "x$LINGUAS" = x; then
12304       CATALOGS="$CATALOGS $cat"
12305       XLINGUAS="$XLINGUAS $lang"
12306     else
12307       case "$LINGUAS" in *$lang*)
12308         CATALOGS="$CATALOGS $cat"
12309         XLINGUAS="$XLINGUAS $lang"
12310         ;;
12311       esac
12312     fi
12313   done
12314   LINGUAS="$XLINGUAS"
12315   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12316 echo "${ECHO_T}$LINGUAS" >&6
12317 fi
12318
12319 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12320 # -liconv on the link line twice.
12321 case "$LIBINTL" in *$LIBICONV*)
12322         LIBICONV= ;;
12323 esac
12324
12325 # Check whether --enable-secureplt or --disable-secureplt was given.
12326 if test "${enable_secureplt+set}" = set; then
12327   enableval="$enable_secureplt"
12328
12329 fi;
12330
12331 # Windows32 Registry support for specifying GCC installation paths.
12332 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12333 if test "${enable_win32_registry+set}" = set; then
12334   enableval="$enable_win32_registry"
12335
12336 fi;
12337
12338 case $host_os in
12339   win32 | pe | cygwin* | mingw32* | uwin*)
12340     if test "x$enable_win32_registry" != xno; then
12341       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12342 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12343 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   ac_func_search_save_LIBS=$LIBS
12347 ac_cv_search_RegOpenKeyExA=no
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h.  */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h.  */
12354
12355 /* Override any gcc2 internal prototype to avoid an error.  */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 /* We use char because int might match the return type of a gcc2
12360    builtin and then its argument prototype would still apply.  */
12361 char RegOpenKeyExA ();
12362 int
12363 main ()
12364 {
12365 RegOpenKeyExA ();
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372   (eval $ac_link) 2>conftest.er1
12373   ac_status=$?
12374   grep -v '^ *+' conftest.er1 >conftest.err
12375   rm -f conftest.er1
12376   cat conftest.err >&5
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; } &&
12385          { ac_try='test -s conftest$ac_exeext'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; }; then
12391   ac_cv_search_RegOpenKeyExA="none required"
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 fi
12397 rm -f conftest.err conftest.$ac_objext \
12398       conftest$ac_exeext conftest.$ac_ext
12399 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12400   for ac_lib in advapi32; do
12401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12402     cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408
12409 /* Override any gcc2 internal prototype to avoid an error.  */
12410 #ifdef __cplusplus
12411 extern "C"
12412 #endif
12413 /* We use char because int might match the return type of a gcc2
12414    builtin and then its argument prototype would still apply.  */
12415 char RegOpenKeyExA ();
12416 int
12417 main ()
12418 {
12419 RegOpenKeyExA ();
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426   (eval $ac_link) 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } &&
12433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; } &&
12439          { ac_try='test -s conftest$ac_exeext'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12446 break
12447 else
12448   echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 fi
12452 rm -f conftest.err conftest.$ac_objext \
12453       conftest$ac_exeext conftest.$ac_ext
12454   done
12455 fi
12456 LIBS=$ac_func_search_save_LIBS
12457 fi
12458 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12459 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12460 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12461   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12462
12463 else
12464   enable_win32_registry=no
12465 fi
12466
12467     fi
12468
12469     if test "x$enable_win32_registry" != xno; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define ENABLE_WIN32_REGISTRY 1
12473 _ACEOF
12474
12475
12476       if test "x$enable_win32_registry" != xyes \
12477          && test "x$enable_win32_registry" != x; then
12478
12479 cat >>confdefs.h <<_ACEOF
12480 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12481 _ACEOF
12482
12483       fi
12484     fi
12485   ;;
12486 esac
12487
12488 # Get an absolute path to the GCC top-level source directory
12489 holddir=`${PWDCMD-pwd}`
12490 cd $srcdir
12491 topdir=`${PWDCMD-pwd}`
12492 cd $holddir
12493
12494 # Conditionalize the makefile for this host machine.
12495 xmake_file=
12496 for f in ${host_xmake_file}
12497 do
12498         if test -f ${srcdir}/config/$f
12499         then
12500                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12501         fi
12502 done
12503
12504 # Conditionalize the makefile for this target machine.
12505 tmake_file_=
12506 for f in ${tmake_file}
12507 do
12508         if test -f ${srcdir}/config/$f
12509         then
12510                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12511         fi
12512 done
12513 tmake_file="${tmake_file_}"
12514
12515 # If the host doesn't support symlinks, modify CC in
12516 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12517 # Otherwise, we can use "CC=$(CC)".
12518 rm -f symtest.tem
12519 case "$LN_S" in
12520         *-s*)
12521                 cc_set_by_configure="\$(CC)"
12522                 quoted_cc_set_by_configure="\$(CC)"
12523                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12524                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12525                 ;;
12526         *)
12527                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12528                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12529                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12530                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12531                 ;;
12532 esac
12533
12534 # This is a terrible hack which will go away some day.
12535 host_cc_for_libada=${CC}
12536
12537
12538 out_object_file=`basename $out_file .c`.o
12539
12540 tm_file_list="options.h"
12541 tm_include_list="options.h"
12542 for f in $tm_file; do
12543   case $f in
12544     defaults.h )
12545        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12546        tm_include_list="${tm_include_list} $f"
12547        ;;
12548     * )
12549        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12550        tm_include_list="${tm_include_list} config/$f"
12551        ;;
12552   esac
12553 done
12554
12555 tm_p_file_list=
12556 tm_p_include_list=
12557 for f in $tm_p_file; do
12558   case $f in
12559     tm-preds.h )
12560        tm_p_file_list="${tm_p_file_list} $f"
12561        tm_p_include_list="${tm_p_include_list} $f"
12562        ;;
12563     * )
12564        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12565        tm_p_include_list="${tm_p_include_list} config/$f"
12566   esac
12567 done
12568
12569 xm_file_list=
12570 xm_include_list=
12571 for f in $xm_file; do
12572   case $f in
12573     ansidecl.h )
12574        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12575        xm_include_list="${xm_include_list} $f"
12576        ;;
12577     auto-host.h )
12578        xm_file_list="${xm_file_list} $f"
12579        xm_include_list="${xm_include_list} $f"
12580        ;;
12581     * )
12582        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12583        xm_include_list="${xm_include_list} config/$f"
12584        ;;
12585   esac
12586 done
12587
12588 host_xm_file_list=
12589 host_xm_include_list=
12590 for f in $host_xm_file; do
12591   case $f in
12592     ansidecl.h )
12593        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12594        host_xm_include_list="${host_xm_include_list} $f"
12595        ;;
12596     auto-host.h )
12597        host_xm_file_list="${host_xm_file_list} $f"
12598        host_xm_include_list="${host_xm_include_list} $f"
12599        ;;
12600     * )
12601        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12602        host_xm_include_list="${host_xm_include_list} config/$f"
12603        ;;
12604   esac
12605 done
12606
12607 build_xm_file_list=
12608 for f in $build_xm_file; do
12609   case $f in
12610     ansidecl.h )
12611        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12612        build_xm_include_list="${build_xm_include_list} $f"
12613        ;;
12614     auto-build.h | auto-host.h )
12615        build_xm_file_list="${build_xm_file_list} $f"
12616        build_xm_include_list="${build_xm_include_list} $f"
12617        ;;
12618     * )
12619        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12620        build_xm_include_list="${build_xm_include_list} config/$f"
12621        ;;
12622   esac
12623 done
12624
12625 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12626 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12627 CROSS=
12628 ALL=all.internal
12629 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12630
12631 if test "x$with_build_sysroot" != x; then
12632   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12633 else
12634   # This value is used, even on a native system, because
12635   # CROSS_SYSTEM_HEADER_DIR is just
12636   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12637   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12638 fi
12639
12640 if test x$host != x$target
12641 then
12642         CROSS="-DCROSS_COMPILE"
12643         ALL=all.cross
12644         SYSTEM_HEADER_DIR=$build_system_header_dir
12645         case "$host","$target" in
12646         # Darwin crosses can use the host system's libraries and headers,
12647         # because of the fat library support.  Of course, it must be the
12648         # same version of Darwin on both sides.  Allow the user to
12649         # just say --target=foo-darwin without a version number to mean
12650         # "the version on this system".
12651             *-*-darwin*,*-*-darwin*)
12652                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12653                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12654                 if test $hostos = $targetos -o $targetos = darwin ; then
12655                     CROSS=
12656                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12657                     with_headers=yes
12658                 fi
12659                 ;;
12660
12661             i?86-*-*,x86_64-*-* \
12662             | powerpc*-*-*,powerpc64*-*-*)
12663                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12664         esac
12665 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12666         SYSTEM_HEADER_DIR=$build_system_header_dir
12667 fi
12668
12669 # If this is a cross-compiler that does not
12670 # have its own set of headers then define
12671 # inhibit_libc
12672
12673 # If this is using newlib, without having the headers available now,
12674 # then define inhibit_libc in LIBGCC2_CFLAGS.
12675 # This prevents libgcc2 from containing any code which requires libc
12676 # support.
12677 inhibit_libc=false
12678 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12679        test x$with_newlib = xyes ; } &&
12680      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12681        inhibit_libc=true
12682 fi
12683
12684
12685 # When building gcc with a cross-compiler, we need to adjust things so
12686 # that the generator programs are still built with the native compiler.
12687 # Also, we cannot run fixincludes or fix-header.
12688
12689 # These are the normal (build=host) settings:
12690 CC_FOR_BUILD='$(CC)'
12691 BUILD_CFLAGS='$(ALL_CFLAGS)'
12692 STMP_FIXINC=stmp-fixinc
12693
12694 # Possibly disable fixproto, on a per-target basis.
12695 case ${use_fixproto} in
12696   no)
12697     STMP_FIXPROTO=
12698     ;;
12699   yes)
12700     STMP_FIXPROTO=stmp-fixproto
12701     ;;
12702 esac
12703
12704
12705 # And these apply if build != host, or we are generating coverage data
12706 if test x$build != x$host || test "x$coverage_flags" != x
12707 then
12708     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12709
12710     if test "x$TARGET_SYSTEM_ROOT" = x; then
12711         if test "x$STMP_FIXPROTO" != x; then
12712           STMP_FIXPROTO=stmp-install-fixproto
12713         fi
12714     fi
12715 fi
12716
12717 # Expand extra_headers to include complete path.
12718 # This substitutes for lots of t-* files.
12719 extra_headers_list=
12720 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12721 for file in ${extra_headers} ; do
12722   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12723 done
12724
12725 # Define collect2 in Makefile.
12726 case $host_can_use_collect2 in
12727   no) collect2= ;;
12728   *) collect2='collect2$(exeext)' ;;
12729 esac
12730
12731
12732 # Add a definition of USE_COLLECT2 if system wants one.
12733 case $use_collect2 in
12734   no) use_collect2= ;;
12735   "") ;;
12736   *)
12737     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12738     xm_defines="${xm_defines} USE_COLLECT2"
12739     case $host_can_use_collect2 in
12740       no)
12741         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12742 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12743    { (exit 1); exit 1; }; }
12744         ;;
12745     esac
12746     ;;
12747 esac
12748
12749 # ---------------------------
12750 # Assembler & linker features
12751 # ---------------------------
12752
12753 # Identify the assembler which will work hand-in-glove with the newly
12754 # built GCC, so that we can examine its features.  This is the assembler
12755 # which will be driven by the driver program.
12756 #
12757 # If build != host, and we aren't building gas in-tree, we identify a
12758 # build->target assembler and hope that it will have the same features
12759 # as the host->target assembler we'll be using.
12760 in_tree_gas=no
12761 gcc_cv_as=
12762 gcc_cv_gas_major_version=
12763 gcc_cv_gas_minor_version=
12764 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12765 if test -x "$DEFAULT_ASSEMBLER"; then
12766         gcc_cv_as="$DEFAULT_ASSEMBLER"
12767 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12768      && test -f ../gas/Makefile \
12769      && test x$build = x$host; then
12770   # Single tree build which includes gas.  We want to prefer it
12771   # over whatever linker top-level may have detected, since
12772   # we'll use what we're building after installation anyway.
12773   in_tree_gas=yes
12774   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12775 for f in $gcc_cv_as_bfd_srcdir/configure \
12776          $gcc_cv_as_gas_srcdir/configure \
12777          $gcc_cv_as_gas_srcdir/configure.in \
12778          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12779   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12780   if test x$gcc_cv_gas_version != x; then
12781     break
12782   fi
12783 done
12784 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12785 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12786 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12787 case $gcc_cv_gas_patch_version in
12788   "") gcc_cv_gas_patch_version="0" ;;
12789 esac
12790 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12791                             + $gcc_cv_gas_minor_version \) \* 1000 \
12792                             + $gcc_cv_gas_patch_version`
12793
12794   gcc_cv_as=../gas/as-new$build_exeext
12795   in_tree_gas_is_elf=no
12796   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12797      || (grep 'obj_format = multi' ../gas/Makefile \
12798          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12799   then
12800     in_tree_gas_is_elf=yes
12801   fi
12802 elif test -x as$build_exeext; then
12803         # Build using assembler in the current directory.
12804         gcc_cv_as=./as$build_exeext
12805 fi
12806
12807
12808 # When searching for the assembler or linker, search the same directories
12809 # that the installed compiler will search.  Else we may find the wrong
12810 # assembler or linker and lose.  If we do not find a suitable binary,
12811 # then try the user's path.
12812 #
12813 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12814 if test "x$exec_prefix" = xNONE; then
12815         if test "x$prefix" = xNONE; then
12816                 gcc_cv_tool_prefix=/usr/local
12817         else
12818                 gcc_cv_tool_prefix=$prefix
12819         fi
12820 else
12821         gcc_cv_tool_prefix=$exec_prefix
12822 fi
12823
12824 if test x$host = x$build; then
12825     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12826     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12827     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12828     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12829     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12830     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12831 else
12832     gcc_cv_tool_dirs=
12833 fi
12834
12835 if test x$build = x$target; then
12836     # Rummage through tm_files looking for MD_EXEC_PREFIX
12837     md_dirs=
12838     for f in ${tm_file_list}; do
12839         if test -f $f; then
12840             if grep '^#[        ]*undef[        ]*MD_EXEC_PREFIX' $f > /dev/null; then
12841                 md_dirs=
12842             fi
12843             md_dirs="$md_dirs "`sed -n -e 's@^#[        ]*define[       ]*MD_EXEC_PREFIX[       ]*"\(.*\)/"@\1@p' < $f`
12844         fi
12845     done
12846     for f in ${md_dirs}; do
12847         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12848     done
12849 fi
12850
12851
12852
12853
12854 exec 6>/dev/null
12855
12856 # First try the environment variables.  Handle full paths or basenames.
12857 if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
12858         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12859 set dummy $AS_FOR_TARGET; ac_word=$2
12860 echo "$as_me:$LINENO: checking for $ac_word" >&5
12861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12862 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   case $gcc_cv_as in
12866   [\\/]* | ?:[\\/]*)
12867   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12868   ;;
12869   *)
12870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12872 do
12873   IFS=$as_save_IFS
12874   test -z "$as_dir" && as_dir=.
12875   for ac_exec_ext in '' $ac_executable_extensions; do
12876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12879     break 2
12880   fi
12881 done
12882 done
12883
12884   ;;
12885 esac
12886 fi
12887 gcc_cv_as=$ac_cv_path_gcc_cv_as
12888
12889 if test -n "$gcc_cv_as"; then
12890   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12891 echo "${ECHO_T}$gcc_cv_as" >&6
12892 else
12893   echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6
12895 fi
12896
12897 fi
12898 if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
12899         # Extract the first word of "$AS", so it can be a program name with args.
12900 set dummy $AS; ac_word=$2
12901 echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906   case $gcc_cv_as in
12907   [\\/]* | ?:[\\/]*)
12908   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12909   ;;
12910   *)
12911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914   IFS=$as_save_IFS
12915   test -z "$as_dir" && as_dir=.
12916   for ac_exec_ext in '' $ac_executable_extensions; do
12917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920     break 2
12921   fi
12922 done
12923 done
12924
12925   ;;
12926 esac
12927 fi
12928 gcc_cv_as=$ac_cv_path_gcc_cv_as
12929
12930 if test -n "$gcc_cv_as"; then
12931   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12932 echo "${ECHO_T}$gcc_cv_as" >&6
12933 else
12934   echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6
12936 fi
12937
12938 fi
12939
12940 if test "x$gcc_cv_as" = x; then
12941         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12942         # is empty.
12943         if test "x$gcc_cv_tool_dirs" = x; then
12944                 gcc_cv_as=
12945         else
12946                 for ac_prog in as
12947 do
12948   # Extract the first word of "$ac_prog", so it can be a program name with args.
12949 set dummy $ac_prog; ac_word=$2
12950 echo "$as_me:$LINENO: checking for $ac_word" >&5
12951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12952 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   case $gcc_cv_as in
12956   [\\/]* | ?:[\\/]*)
12957   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12958   ;;
12959   *)
12960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961 for as_dir in $gcc_cv_tool_dirs
12962 do
12963   IFS=$as_save_IFS
12964   test -z "$as_dir" && as_dir=.
12965   for ac_exec_ext in '' $ac_executable_extensions; do
12966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12967     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12969     break 2
12970   fi
12971 done
12972 done
12973
12974   ;;
12975 esac
12976 fi
12977 gcc_cv_as=$ac_cv_path_gcc_cv_as
12978
12979 if test -n "$gcc_cv_as"; then
12980   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12981 echo "${ECHO_T}$gcc_cv_as" >&6
12982 else
12983   echo "$as_me:$LINENO: result: no" >&5
12984 echo "${ECHO_T}no" >&6
12985 fi
12986
12987   test -n "$gcc_cv_as" && break
12988 done
12989
12990         fi
12991 fi
12992 if test "x$gcc_cv_as" = x; then
12993         # If the loop above did not find a tool, then use whatever
12994         # one we can find in the users's path.  We are looking for a
12995         # ${build} -> ${target} tool.
12996         if test "x$program_prefix" != xNONE; then
12997                 default_tool_name=${program_prefix}as
12998         elif test x$build != x$host && test x$build != x$target; then
12999                 default_tool_name=${target_noncanonical}-as
13000         else
13001                 default_tool_name=`echo as | sed "${program_transform_name}"`
13002         fi
13003         for ac_prog in $default_tool_name
13004 do
13005   # Extract the first word of "$ac_prog", so it can be a program name with args.
13006 set dummy $ac_prog; ac_word=$2
13007 echo "$as_me:$LINENO: checking for $ac_word" >&5
13008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13009 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   case $gcc_cv_as in
13013   [\\/]* | ?:[\\/]*)
13014   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13015   ;;
13016   *)
13017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13019 do
13020   IFS=$as_save_IFS
13021   test -z "$as_dir" && as_dir=.
13022   for ac_exec_ext in '' $ac_executable_extensions; do
13023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13026     break 2
13027   fi
13028 done
13029 done
13030
13031   ;;
13032 esac
13033 fi
13034 gcc_cv_as=$ac_cv_path_gcc_cv_as
13035
13036 if test -n "$gcc_cv_as"; then
13037   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13038 echo "${ECHO_T}$gcc_cv_as" >&6
13039 else
13040   echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6
13042 fi
13043
13044   test -n "$gcc_cv_as" && break
13045 done
13046 test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13047
13048 fi
13049 test "$silent" != yes && exec 6>&1
13050
13051 ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13052
13053 echo "$as_me:$LINENO: checking what assembler to use" >&5
13054 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13055 case $in_tree_gas in
13056   yes)
13057     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13058 echo "${ECHO_T}\"newly built gas\"" >&6
13059     ;;
13060   no)
13061     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13062 echo "${ECHO_T}$gcc_cv_as" >&6
13063     ;;
13064 esac
13065
13066 # Identify the linker which will work hand-in-glove with the newly
13067 # built GCC, so that we can examine its features.  This is the linker
13068 # which will be driven by the driver program.
13069 #
13070 # If build != host, and we aren't building gas in-tree, we identify a
13071 # build->target linker and hope that it will have the same features
13072 # as the host->target linker we'll be using.
13073 in_tree_ld=no
13074 gcc_cv_ld=
13075 gcc_cv_gld_major_version=
13076 gcc_cv_gld_minor_version=
13077 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13078 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13079 if test -x "$DEFAULT_LINKER"; then
13080         gcc_cv_ld="$DEFAULT_LINKER"
13081 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13082      && test -f ../ld/Makefile \
13083      && test x$build = x$host; then
13084         # Single tree build which includes ld.  We want to prefer it
13085         # over whatever linker top-level may have detected, since
13086         # we'll use what we're building after installation anyway.
13087         in_tree_ld=yes
13088         in_tree_ld_is_elf=no
13089         if (grep 'EMUL = .*elf' ../ld/Makefile \
13090             || grep 'EMUL = .*linux' ../ld/Makefile \
13091             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13092           in_tree_ld_is_elf=yes
13093         fi
13094         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
13095         do
13096                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13097                 if test x$gcc_cv_gld_version != x; then
13098                         break
13099                 fi
13100         done
13101         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13102         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13103         gcc_cv_ld=../ld/ld-new$build_exeext
13104 elif test -x collect-ld$build_exeext; then
13105         # Build using linker in the current directory.
13106         gcc_cv_ld=./collect-ld$build_exeext
13107 fi
13108
13109
13110
13111
13112
13113 exec 6>/dev/null
13114
13115 # First try the environment variables.  Handle full paths or basenames.
13116 if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13117         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13118 set dummy $LD_FOR_TARGET; ac_word=$2
13119 echo "$as_me:$LINENO: checking for $ac_word" >&5
13120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13121 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13122   echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124   case $gcc_cv_ld in
13125   [\\/]* | ?:[\\/]*)
13126   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13127   ;;
13128   *)
13129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13131 do
13132   IFS=$as_save_IFS
13133   test -z "$as_dir" && as_dir=.
13134   for ac_exec_ext in '' $ac_executable_extensions; do
13135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13138     break 2
13139   fi
13140 done
13141 done
13142
13143   ;;
13144 esac
13145 fi
13146 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13147
13148 if test -n "$gcc_cv_ld"; then
13149   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13150 echo "${ECHO_T}$gcc_cv_ld" >&6
13151 else
13152   echo "$as_me:$LINENO: result: no" >&5
13153 echo "${ECHO_T}no" >&6
13154 fi
13155
13156 fi
13157 if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
13158         # Extract the first word of "$LD", so it can be a program name with args.
13159 set dummy $LD; ac_word=$2
13160 echo "$as_me:$LINENO: checking for $ac_word" >&5
13161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13162 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   case $gcc_cv_ld in
13166   [\\/]* | ?:[\\/]*)
13167   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13168   ;;
13169   *)
13170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173   IFS=$as_save_IFS
13174   test -z "$as_dir" && as_dir=.
13175   for ac_exec_ext in '' $ac_executable_extensions; do
13176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13179     break 2
13180   fi
13181 done
13182 done
13183
13184   ;;
13185 esac
13186 fi
13187 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13188
13189 if test -n "$gcc_cv_ld"; then
13190   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13191 echo "${ECHO_T}$gcc_cv_ld" >&6
13192 else
13193   echo "$as_me:$LINENO: result: no" >&5
13194 echo "${ECHO_T}no" >&6
13195 fi
13196
13197 fi
13198
13199 if test "x$gcc_cv_ld" = x; then
13200         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13201         # is empty.
13202         if test "x$gcc_cv_tool_dirs" = x; then
13203                 gcc_cv_ld=
13204         else
13205                 for ac_prog in ld
13206 do
13207   # Extract the first word of "$ac_prog", so it can be a program name with args.
13208 set dummy $ac_prog; ac_word=$2
13209 echo "$as_me:$LINENO: checking for $ac_word" >&5
13210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13211 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   case $gcc_cv_ld in
13215   [\\/]* | ?:[\\/]*)
13216   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13217   ;;
13218   *)
13219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $gcc_cv_tool_dirs
13221 do
13222   IFS=$as_save_IFS
13223   test -z "$as_dir" && as_dir=.
13224   for ac_exec_ext in '' $ac_executable_extensions; do
13225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13226     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13228     break 2
13229   fi
13230 done
13231 done
13232
13233   ;;
13234 esac
13235 fi
13236 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13237
13238 if test -n "$gcc_cv_ld"; then
13239   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13240 echo "${ECHO_T}$gcc_cv_ld" >&6
13241 else
13242   echo "$as_me:$LINENO: result: no" >&5
13243 echo "${ECHO_T}no" >&6
13244 fi
13245
13246   test -n "$gcc_cv_ld" && break
13247 done
13248
13249         fi
13250 fi
13251 if test "x$gcc_cv_ld" = x; then
13252         # If the loop above did not find a tool, then use whatever
13253         # one we can find in the users's path.  We are looking for a
13254         # ${build} -> ${target} tool.
13255         if test "x$program_prefix" != xNONE; then
13256                 default_tool_name=${program_prefix}ld
13257         elif test x$build != x$host && test x$build != x$target; then
13258                 default_tool_name=${target_noncanonical}-ld
13259         else
13260                 default_tool_name=`echo ld | sed "${program_transform_name}"`
13261         fi
13262         for ac_prog in $default_tool_name
13263 do
13264   # Extract the first word of "$ac_prog", so it can be a program name with args.
13265 set dummy $ac_prog; ac_word=$2
13266 echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13268 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   case $gcc_cv_ld in
13272   [\\/]* | ?:[\\/]*)
13273   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13274   ;;
13275   *)
13276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279   IFS=$as_save_IFS
13280   test -z "$as_dir" && as_dir=.
13281   for ac_exec_ext in '' $ac_executable_extensions; do
13282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13285     break 2
13286   fi
13287 done
13288 done
13289
13290   ;;
13291 esac
13292 fi
13293 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13294
13295 if test -n "$gcc_cv_ld"; then
13296   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13297 echo "${ECHO_T}$gcc_cv_ld" >&6
13298 else
13299   echo "$as_me:$LINENO: result: no" >&5
13300 echo "${ECHO_T}no" >&6
13301 fi
13302
13303   test -n "$gcc_cv_ld" && break
13304 done
13305 test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13306
13307 fi
13308 test "$silent" != yes && exec 6>&1
13309
13310 ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
13311
13312 echo "$as_me:$LINENO: checking what linker to use" >&5
13313 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13314 case $in_tree_ld in
13315   yes)
13316     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13317 echo "${ECHO_T}\"newly built ld\"" >&6
13318     ;;
13319   no)
13320     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13321 echo "${ECHO_T}$gcc_cv_ld" >&6
13322     ;;
13323 esac
13324
13325 # Figure out what nm we will be using.
13326 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13327 in_tree_nm=no
13328 gcc_cv_nm=
13329 if test -f $gcc_cv_binutils_srcdir/configure.in \
13330      && test -f ../binutils/Makefile; then
13331         # Single tree build which includes binutils.
13332         in_tree_nm=yes
13333         gcc_cv_nm=../binutils/nm-new$build_exeext
13334 elif test -x nm$build_exeext; then
13335         gcc_cv_nm=./nm$build_exeext
13336 fi
13337
13338
13339
13340
13341
13342 exec 6>/dev/null
13343
13344 # First try the environment variables.  Handle full paths or basenames.
13345 if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
13346         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13347 set dummy $NM_FOR_TARGET; ac_word=$2
13348 echo "$as_me:$LINENO: checking for $ac_word" >&5
13349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13350 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   case $gcc_cv_nm in
13354   [\\/]* | ?:[\\/]*)
13355   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13356   ;;
13357   *)
13358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13360 do
13361   IFS=$as_save_IFS
13362   test -z "$as_dir" && as_dir=.
13363   for ac_exec_ext in '' $ac_executable_extensions; do
13364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13367     break 2
13368   fi
13369 done
13370 done
13371
13372   ;;
13373 esac
13374 fi
13375 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13376
13377 if test -n "$gcc_cv_nm"; then
13378   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13379 echo "${ECHO_T}$gcc_cv_nm" >&6
13380 else
13381   echo "$as_me:$LINENO: result: no" >&5
13382 echo "${ECHO_T}no" >&6
13383 fi
13384
13385 fi
13386 if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
13387         # Extract the first word of "$NM", so it can be a program name with args.
13388 set dummy $NM; ac_word=$2
13389 echo "$as_me:$LINENO: checking for $ac_word" >&5
13390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13391 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   case $gcc_cv_nm in
13395   [\\/]* | ?:[\\/]*)
13396   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13397   ;;
13398   *)
13399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH
13401 do
13402   IFS=$as_save_IFS
13403   test -z "$as_dir" && as_dir=.
13404   for ac_exec_ext in '' $ac_executable_extensions; do
13405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13406     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13408     break 2
13409   fi
13410 done
13411 done
13412
13413   ;;
13414 esac
13415 fi
13416 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13417
13418 if test -n "$gcc_cv_nm"; then
13419   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13420 echo "${ECHO_T}$gcc_cv_nm" >&6
13421 else
13422   echo "$as_me:$LINENO: result: no" >&5
13423 echo "${ECHO_T}no" >&6
13424 fi
13425
13426 fi
13427
13428 if test "x$gcc_cv_nm" = x; then
13429         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13430         # is empty.
13431         if test "x$gcc_cv_tool_dirs" = x; then
13432                 gcc_cv_nm=
13433         else
13434                 for ac_prog in nm
13435 do
13436   # Extract the first word of "$ac_prog", so it can be a program name with args.
13437 set dummy $ac_prog; ac_word=$2
13438 echo "$as_me:$LINENO: checking for $ac_word" >&5
13439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13440 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13441   echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443   case $gcc_cv_nm in
13444   [\\/]* | ?:[\\/]*)
13445   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13446   ;;
13447   *)
13448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $gcc_cv_tool_dirs
13450 do
13451   IFS=$as_save_IFS
13452   test -z "$as_dir" && as_dir=.
13453   for ac_exec_ext in '' $ac_executable_extensions; do
13454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457     break 2
13458   fi
13459 done
13460 done
13461
13462   ;;
13463 esac
13464 fi
13465 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13466
13467 if test -n "$gcc_cv_nm"; then
13468   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13469 echo "${ECHO_T}$gcc_cv_nm" >&6
13470 else
13471   echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13473 fi
13474
13475   test -n "$gcc_cv_nm" && break
13476 done
13477
13478         fi
13479 fi
13480 if test "x$gcc_cv_nm" = x; then
13481         # If the loop above did not find a tool, then use whatever
13482         # one we can find in the users's path.  We are looking for a
13483         # ${build} -> ${target} tool.
13484         if test "x$program_prefix" != xNONE; then
13485                 default_tool_name=${program_prefix}nm
13486         elif test x$build != x$host && test x$build != x$target; then
13487                 default_tool_name=${target_noncanonical}-nm
13488         else
13489                 default_tool_name=`echo nm | sed "${program_transform_name}"`
13490         fi
13491         for ac_prog in $default_tool_name
13492 do
13493   # Extract the first word of "$ac_prog", so it can be a program name with args.
13494 set dummy $ac_prog; ac_word=$2
13495 echo "$as_me:$LINENO: checking for $ac_word" >&5
13496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13497 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   case $gcc_cv_nm in
13501   [\\/]* | ?:[\\/]*)
13502   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13503   ;;
13504   *)
13505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506 for as_dir in $PATH
13507 do
13508   IFS=$as_save_IFS
13509   test -z "$as_dir" && as_dir=.
13510   for ac_exec_ext in '' $ac_executable_extensions; do
13511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13514     break 2
13515   fi
13516 done
13517 done
13518
13519   ;;
13520 esac
13521 fi
13522 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13523
13524 if test -n "$gcc_cv_nm"; then
13525   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13526 echo "${ECHO_T}$gcc_cv_nm" >&6
13527 else
13528   echo "$as_me:$LINENO: result: no" >&5
13529 echo "${ECHO_T}no" >&6
13530 fi
13531
13532   test -n "$gcc_cv_nm" && break
13533 done
13534 test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13535
13536 fi
13537 test "$silent" != yes && exec 6>&1
13538
13539 ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
13540
13541 echo "$as_me:$LINENO: checking what nm to use" >&5
13542 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13543 case $in_tree_nm in
13544   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13545 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13546   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13547 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13548 esac
13549
13550 # Figure out what objdump we will be using.
13551 in_tree_objdump=no
13552 gcc_cv_objdump=
13553 if test -f $gcc_cv_binutils_srcdir/configure.in \
13554      && test -f ../binutils/Makefile; then
13555         # Single tree build which includes binutils.
13556         in_tree_objdump=yes
13557         gcc_cv_objdump=../binutils/objdump$build_exeext
13558 elif test -x objdump$build_exeext; then
13559         gcc_cv_objdump=./objdump$build_exeext
13560 fi
13561
13562
13563
13564
13565
13566 exec 6>/dev/null
13567
13568 # First try the environment variables.  Handle full paths or basenames.
13569 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
13570         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13571 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13572 echo "$as_me:$LINENO: checking for $ac_word" >&5
13573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13574 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577   case $gcc_cv_objdump in
13578   [\\/]* | ?:[\\/]*)
13579   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13580   ;;
13581   *)
13582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585   IFS=$as_save_IFS
13586   test -z "$as_dir" && as_dir=.
13587   for ac_exec_ext in '' $ac_executable_extensions; do
13588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13591     break 2
13592   fi
13593 done
13594 done
13595
13596   ;;
13597 esac
13598 fi
13599 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13600
13601 if test -n "$gcc_cv_objdump"; then
13602   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13603 echo "${ECHO_T}$gcc_cv_objdump" >&6
13604 else
13605   echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6
13607 fi
13608
13609 fi
13610 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
13611         # Extract the first word of "$OBJDUMP", so it can be a program name with args.
13612 set dummy $OBJDUMP; ac_word=$2
13613 echo "$as_me:$LINENO: checking for $ac_word" >&5
13614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13615 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   case $gcc_cv_objdump in
13619   [\\/]* | ?:[\\/]*)
13620   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13621   ;;
13622   *)
13623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $PATH
13625 do
13626   IFS=$as_save_IFS
13627   test -z "$as_dir" && as_dir=.
13628   for ac_exec_ext in '' $ac_executable_extensions; do
13629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13630     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13632     break 2
13633   fi
13634 done
13635 done
13636
13637   ;;
13638 esac
13639 fi
13640 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13641
13642 if test -n "$gcc_cv_objdump"; then
13643   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13644 echo "${ECHO_T}$gcc_cv_objdump" >&6
13645 else
13646   echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
13648 fi
13649
13650 fi
13651
13652 if test "x$gcc_cv_objdump" = x; then
13653         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13654         # is empty.
13655         if test "x$gcc_cv_tool_dirs" = x; then
13656                 gcc_cv_objdump=
13657         else
13658                 for ac_prog in objdump
13659 do
13660   # Extract the first word of "$ac_prog", so it can be a program name with args.
13661 set dummy $ac_prog; ac_word=$2
13662 echo "$as_me:$LINENO: checking for $ac_word" >&5
13663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13664 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   case $gcc_cv_objdump in
13668   [\\/]* | ?:[\\/]*)
13669   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13670   ;;
13671   *)
13672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $gcc_cv_tool_dirs
13674 do
13675   IFS=$as_save_IFS
13676   test -z "$as_dir" && as_dir=.
13677   for ac_exec_ext in '' $ac_executable_extensions; do
13678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13681     break 2
13682   fi
13683 done
13684 done
13685
13686   ;;
13687 esac
13688 fi
13689 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13690
13691 if test -n "$gcc_cv_objdump"; then
13692   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13693 echo "${ECHO_T}$gcc_cv_objdump" >&6
13694 else
13695   echo "$as_me:$LINENO: result: no" >&5
13696 echo "${ECHO_T}no" >&6
13697 fi
13698
13699   test -n "$gcc_cv_objdump" && break
13700 done
13701
13702         fi
13703 fi
13704 if test "x$gcc_cv_objdump" = x; then
13705         # If the loop above did not find a tool, then use whatever
13706         # one we can find in the users's path.  We are looking for a
13707         # ${build} -> ${target} tool.
13708         if test "x$program_prefix" != xNONE; then
13709                 default_tool_name=${program_prefix}objdump
13710         elif test x$build != x$host && test x$build != x$target; then
13711                 default_tool_name=${target_noncanonical}-objdump
13712         else
13713                 default_tool_name=`echo objdump | sed "${program_transform_name}"`
13714         fi
13715         for ac_prog in $default_tool_name
13716 do
13717   # Extract the first word of "$ac_prog", so it can be a program name with args.
13718 set dummy $ac_prog; ac_word=$2
13719 echo "$as_me:$LINENO: checking for $ac_word" >&5
13720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13721 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   case $gcc_cv_objdump in
13725   [\\/]* | ?:[\\/]*)
13726   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13727   ;;
13728   *)
13729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732   IFS=$as_save_IFS
13733   test -z "$as_dir" && as_dir=.
13734   for ac_exec_ext in '' $ac_executable_extensions; do
13735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13738     break 2
13739   fi
13740 done
13741 done
13742
13743   ;;
13744 esac
13745 fi
13746 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13747
13748 if test -n "$gcc_cv_objdump"; then
13749   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13750 echo "${ECHO_T}$gcc_cv_objdump" >&6
13751 else
13752   echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13754 fi
13755
13756   test -n "$gcc_cv_objdump" && break
13757 done
13758 test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13759
13760 fi
13761 test "$silent" != yes && exec 6>&1
13762
13763 ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
13764
13765 echo "$as_me:$LINENO: checking what objdump to use" >&5
13766 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13767 case $in_tree_objdump in
13768   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13769 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13770   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13771 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13772 esac
13773
13774 # Figure out what assembler alignment features are present.
13775 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13776 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13777 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   gcc_cv_as_balign_and_p2align=no
13781     if test $in_tree_gas = yes; then
13782     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13783   then gcc_cv_as_balign_and_p2align=yes
13784 fi
13785   elif test x$gcc_cv_as != x; then
13786     echo '.balign 4
13787 .p2align 2' > conftest.s
13788     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790   (eval $ac_try) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; }
13794     then
13795         gcc_cv_as_balign_and_p2align=yes
13796     else
13797       echo "configure: failed program was" >&5
13798       cat conftest.s >&5
13799     fi
13800     rm -f conftest.o conftest.s
13801   fi
13802 fi
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13804 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13805 if test $gcc_cv_as_balign_and_p2align = yes; then
13806
13807 cat >>confdefs.h <<\_ACEOF
13808 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13809 _ACEOF
13810
13811 fi
13812
13813 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13814 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13815 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   gcc_cv_as_max_skip_p2align=no
13819     if test $in_tree_gas = yes; then
13820     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13821   then gcc_cv_as_max_skip_p2align=yes
13822 fi
13823   elif test x$gcc_cv_as != x; then
13824     echo '.p2align 4,,7' > conftest.s
13825     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827   (eval $ac_try) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; }
13831     then
13832         gcc_cv_as_max_skip_p2align=yes
13833     else
13834       echo "configure: failed program was" >&5
13835       cat conftest.s >&5
13836     fi
13837     rm -f conftest.o conftest.s
13838   fi
13839 fi
13840 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13841 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13842 if test $gcc_cv_as_max_skip_p2align = yes; then
13843
13844 cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13846 _ACEOF
13847
13848 fi
13849
13850 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13851 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13852 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   gcc_cv_as_subsection_m1=no
13856     if test $in_tree_gas = yes; then
13857     if test $in_tree_gas_is_elf = yes \
13858   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13859   then gcc_cv_as_subsection_m1=yes
13860 fi
13861   elif test x$gcc_cv_as != x; then
13862     echo 'conftest_label1: .word 0
13863 .subsection -1
13864 conftest_label2: .word 0
13865 .previous' > conftest.s
13866     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868   (eval $ac_try) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }
13872     then
13873         if test x$gcc_cv_nm != x; then
13874     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13875     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13876     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13877     then :
13878     else gcc_cv_as_subsection_m1=yes
13879     fi
13880     rm -f conftest.nm1 conftest.nm2
13881   fi
13882     else
13883       echo "configure: failed program was" >&5
13884       cat conftest.s >&5
13885     fi
13886     rm -f conftest.o conftest.s
13887   fi
13888 fi
13889 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13890 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13891 if test $gcc_cv_as_subsection_m1 = yes; then
13892
13893 cat >>confdefs.h <<\_ACEOF
13894 #define HAVE_GAS_SUBSECTION_ORDERING 1
13895 _ACEOF
13896
13897 fi
13898
13899 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13900 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13901 if test "${gcc_cv_as_weak+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   gcc_cv_as_weak=no
13905     if test $in_tree_gas = yes; then
13906     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13907   then gcc_cv_as_weak=yes
13908 fi
13909   elif test x$gcc_cv_as != x; then
13910     echo '      .weak foobar' > conftest.s
13911     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913   (eval $ac_try) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; }
13917     then
13918         gcc_cv_as_weak=yes
13919     else
13920       echo "configure: failed program was" >&5
13921       cat conftest.s >&5
13922     fi
13923     rm -f conftest.o conftest.s
13924   fi
13925 fi
13926 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13927 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13928 if test $gcc_cv_as_weak = yes; then
13929
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_GAS_WEAK 1
13932 _ACEOF
13933
13934 fi
13935
13936 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13937 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13938 if test "${gcc_cv_as_weakref+set}" = set; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941   gcc_cv_as_weakref=no
13942     if test $in_tree_gas = yes; then
13943     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13944   then gcc_cv_as_weakref=yes
13945 fi
13946   elif test x$gcc_cv_as != x; then
13947     echo '      .weakref foobar, barfnot' > conftest.s
13948     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }
13954     then
13955         gcc_cv_as_weakref=yes
13956     else
13957       echo "configure: failed program was" >&5
13958       cat conftest.s >&5
13959     fi
13960     rm -f conftest.o conftest.s
13961   fi
13962 fi
13963 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13964 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13965 if test $gcc_cv_as_weakref = yes; then
13966
13967 cat >>confdefs.h <<\_ACEOF
13968 #define HAVE_GAS_WEAKREF 1
13969 _ACEOF
13970
13971 fi
13972
13973 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13974 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13975 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   gcc_cv_as_nsubspa_comdat=no
13979     if test $in_tree_gas = yes; then
13980     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13981   then gcc_cv_as_nsubspa_comdat=yes
13982 fi
13983   elif test x$gcc_cv_as != x; then
13984     echo '      .SPACE $TEXT$
13985         .NSUBSPA $CODE$,COMDAT' > conftest.s
13986     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988   (eval $ac_try) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; }
13992     then
13993         gcc_cv_as_nsubspa_comdat=yes
13994     else
13995       echo "configure: failed program was" >&5
13996       cat conftest.s >&5
13997     fi
13998     rm -f conftest.o conftest.s
13999   fi
14000 fi
14001 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14002 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14003 if test $gcc_cv_as_nsubspa_comdat = yes; then
14004
14005 cat >>confdefs.h <<\_ACEOF
14006 #define HAVE_GAS_NSUBSPA_COMDAT 1
14007 _ACEOF
14008
14009 fi
14010
14011 # .hidden needs to be supported in both the assembler and the linker,
14012 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14013 # This is irritatingly difficult to feature test for; we have to check the
14014 # date string after the version number.  If we've got an in-tree
14015 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14016 # to be safe.
14017 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14018 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14019 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14020 if test "${gcc_cv_as_hidden+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   gcc_cv_as_hidden=no
14024     if test $in_tree_gas = yes; then
14025     if test $in_tree_gas_is_elf = yes \
14026   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14027   then gcc_cv_as_hidden=yes
14028 fi
14029   elif test x$gcc_cv_as != x; then
14030     echo '      .hidden foobar
14031 foobar:' > conftest.s
14032     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }
14038     then
14039         gcc_cv_as_hidden=yes
14040     else
14041       echo "configure: failed program was" >&5
14042       cat conftest.s >&5
14043     fi
14044     rm -f conftest.o conftest.s
14045   fi
14046 fi
14047 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14048 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14049
14050
14051 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14052 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14053 if test "${gcc_cv_ld_hidden+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   if test $in_tree_ld = yes ; then
14057   gcc_cv_ld_hidden=no
14058   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 \
14059      && test $in_tree_ld_is_elf = yes; then
14060      gcc_cv_ld_hidden=yes
14061   fi
14062 else
14063   gcc_cv_ld_hidden=yes
14064   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14065   if echo "$ld_ver" | grep GNU > /dev/null; then
14066     ld_vers=`echo $ld_ver | sed -n \
14067         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14068         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14069         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14070         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14071         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14072         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14073         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
14074     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'`
14075     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14076     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14077     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14078     if test 0"$ld_date" -lt 20020404; then
14079       if test -n "$ld_date"; then
14080         # If there was date string, but was earlier than 2002-04-04, fail
14081         gcc_cv_ld_hidden=no
14082       elif test -z "$ld_vers"; then
14083         # If there was no date string nor ld version number, something is wrong
14084         gcc_cv_ld_hidden=no
14085       else
14086         test -z "$ld_vers_patch" && ld_vers_patch=0
14087         if test "$ld_vers_major" -lt 2; then
14088           gcc_cv_ld_hidden=no
14089         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14090           gcc_cv_ld_hidden="no"
14091         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14092           gcc_cv_ld_hidden=no
14093         fi
14094       fi
14095     fi
14096   else
14097     case "${target}" in
14098       hppa64*-*-hpux* | ia64*-*-hpux*)
14099         gcc_cv_ld_hidden=yes
14100         ;;
14101       *)
14102         gcc_cv_ld_hidden=no
14103         ;;
14104     esac
14105   fi
14106 fi
14107 fi
14108 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14109 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14110 libgcc_visibility=no
14111
14112
14113 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14114   libgcc_visibility=yes
14115
14116 cat >>confdefs.h <<\_ACEOF
14117 #define HAVE_GAS_HIDDEN 1
14118 _ACEOF
14119
14120 fi
14121
14122 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14123 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14124 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14125 if test "${gcc_cv_as_leb128+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   gcc_cv_as_leb128=no
14129     if test $in_tree_gas = yes; then
14130     if test $in_tree_gas_is_elf = yes \
14131   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14132   then gcc_cv_as_leb128=yes
14133 fi
14134   elif test x$gcc_cv_as != x; then
14135     echo '      .data
14136         .uleb128 L2 - L1
14137 L1:
14138         .uleb128 1280
14139         .sleb128 -1010
14140 L2:' > conftest.s
14141     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }
14147     then
14148         # GAS versions before 2.11 do not support uleb128,
14149   # despite appearing to.
14150   # ??? There exists an elf-specific test that will crash
14151   # the assembler.  Perhaps it's better to figure out whether
14152   # arbitrary sections are supported and try the test.
14153   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14154   if echo "$as_ver" | grep GNU > /dev/null; then
14155     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14156     as_major=`echo $as_ver | sed 's/\..*//'`
14157     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14158     if test $as_major -eq 2 && test $as_minor -lt 11
14159     then :
14160     else gcc_cv_as_leb128=yes
14161     fi
14162   fi
14163     else
14164       echo "configure: failed program was" >&5
14165       cat conftest.s >&5
14166     fi
14167     rm -f conftest.o conftest.s
14168   fi
14169 fi
14170 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14171 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14172 if test $gcc_cv_as_leb128 = yes; then
14173
14174 cat >>confdefs.h <<\_ACEOF
14175 #define HAVE_AS_LEB128 1
14176 _ACEOF
14177
14178 fi
14179
14180 # GAS versions up to and including 2.11.0 may mis-optimize
14181 # .eh_frame data.
14182 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14183 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14184 if test "${gcc_cv_as_eh_frame+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   gcc_cv_as_eh_frame=no
14188     if test $in_tree_gas = yes; then
14189     if test $in_tree_gas_is_elf = yes \
14190   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14191   then gcc_cv_as_eh_frame=yes
14192 fi
14193   elif test x$gcc_cv_as != x; then
14194     echo '      .text
14195 .LFB1:
14196         .4byte  0
14197 .L1:
14198         .4byte  0
14199 .LFE1:
14200         .section        .eh_frame,"aw",@progbits
14201 __FRAME_BEGIN__:
14202         .4byte  .LECIE1-.LSCIE1
14203 .LSCIE1:
14204         .4byte  0x0
14205         .byte   0x1
14206         .ascii "z\0"
14207         .byte   0x1
14208         .byte   0x78
14209         .byte   0x1a
14210         .byte   0x0
14211         .byte   0x4
14212         .4byte  1
14213         .p2align 1
14214 .LECIE1:
14215 .LSFDE1:
14216         .4byte  .LEFDE1-.LASFDE1
14217 .LASFDE1:
14218         .4byte  .LASFDE1-__FRAME_BEGIN__
14219         .4byte  .LFB1
14220         .4byte  .LFE1-.LFB1
14221         .byte   0x4
14222         .4byte  .LFE1-.LFB1
14223         .byte   0x4
14224         .4byte  .L1-.LFB1
14225 .LEFDE1:' > conftest.s
14226     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228   (eval $ac_try) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); }; }
14232     then
14233           cat > conftest.lit <<EOF
14234  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14235  0010 01000000 12000000 18000000 00000000  ................
14236  0020 08000000 04080000 0044               .........D      
14237 EOF
14238 cat > conftest.big <<EOF
14239  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14240  0010 00000001 00000012 00000018 00000000  ................
14241  0020 00000008 04000000 0844               .........D      
14242 EOF
14243   # If the assembler didn't choke, and we can objdump,
14244   # and we got the correct data, then succeed.
14245   if test x$gcc_cv_objdump != x \
14246   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14247      | tail -3 > conftest.got \
14248   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
14249     || cmp conftest.big conftest.got > /dev/null 2>&1; }
14250   then
14251     gcc_cv_as_eh_frame=yes
14252   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258     gcc_cv_as_eh_frame=buggy
14259   else
14260     # Uh oh, what do we do now?
14261     gcc_cv_as_eh_frame=no
14262   fi
14263     else
14264       echo "configure: failed program was" >&5
14265       cat conftest.s >&5
14266     fi
14267     rm -f conftest.o conftest.s
14268   fi
14269 fi
14270 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14271 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14272
14273
14274 if test $gcc_cv_as_eh_frame = buggy; then
14275
14276 cat >>confdefs.h <<\_ACEOF
14277 #define USE_AS_TRADITIONAL_FORMAT 1
14278 _ACEOF
14279
14280 fi
14281
14282 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14283 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14284 if test "${gcc_cv_as_shf_merge+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   gcc_cv_as_shf_merge=no
14288     if test $in_tree_gas = yes; then
14289     if test $in_tree_gas_is_elf = yes \
14290   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14291   then gcc_cv_as_shf_merge=yes
14292 fi
14293   elif test x$gcc_cv_as != x; then
14294     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14295     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297   (eval $ac_try) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; }
14301     then
14302         gcc_cv_as_shf_merge=yes
14303     else
14304       echo "configure: failed program was" >&5
14305       cat conftest.s >&5
14306     fi
14307     rm -f conftest.o conftest.s
14308   fi
14309 fi
14310 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14311 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14312
14313 if test $gcc_cv_as_shf_merge = no; then
14314   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14315 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14316 if test "${gcc_cv_as_shf_merge+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   gcc_cv_as_shf_merge=no
14320     if test $in_tree_gas = yes; then
14321     if test $in_tree_gas_is_elf = yes \
14322   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14323   then gcc_cv_as_shf_merge=yes
14324 fi
14325   elif test x$gcc_cv_as != x; then
14326     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14327     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }
14333     then
14334         gcc_cv_as_shf_merge=yes
14335     else
14336       echo "configure: failed program was" >&5
14337       cat conftest.s >&5
14338     fi
14339     rm -f conftest.o conftest.s
14340   fi
14341 fi
14342 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14343 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14344
14345 fi
14346
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14349 _ACEOF
14350
14351
14352 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14353 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14354 if test "${gcc_cv_as_comdat_group+set}" = set; then
14355   echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357   gcc_cv_as_comdat_group=no
14358     if test $in_tree_gas = yes; then
14359     if test $in_tree_gas_is_elf = yes \
14360   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14361   then gcc_cv_as_comdat_group=yes
14362 fi
14363   elif test x$gcc_cv_as != x; then
14364     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14365     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }
14371     then
14372         gcc_cv_as_comdat_group=yes
14373     else
14374       echo "configure: failed program was" >&5
14375       cat conftest.s >&5
14376     fi
14377     rm -f conftest.o conftest.s
14378   fi
14379 fi
14380 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14381 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14382
14383 if test $gcc_cv_as_comdat_group = yes; then
14384   gcc_cv_as_comdat_group_percent=no
14385 else
14386  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14387 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14388 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   gcc_cv_as_comdat_group_percent=no
14392     if test $in_tree_gas = yes; then
14393     if test $in_tree_gas_is_elf = yes \
14394   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14395   then gcc_cv_as_comdat_group_percent=yes
14396 fi
14397   elif test x$gcc_cv_as != x; then
14398     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14399     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401   (eval $ac_try) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }
14405     then
14406         gcc_cv_as_comdat_group_percent=yes
14407     else
14408       echo "configure: failed program was" >&5
14409       cat conftest.s >&5
14410     fi
14411     rm -f conftest.o conftest.s
14412   fi
14413 fi
14414 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14415 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14416
14417 fi
14418 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14419   comdat_group=yes
14420   if test 0"$ld_date" -lt 20050308; then
14421     if test -n "$ld_date"; then
14422       # If there was date string, but was earlier than 2005-03-08, fail
14423       comdat_group=no
14424     elif test "$ld_vers_major" -lt 2; then
14425       comdat_group=no
14426     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14427       comdat_group=no
14428     fi
14429   fi
14430   if test $comdat_group = no; then
14431     gcc_cv_as_comdat_group=no
14432     gcc_cv_as_comdat_group_percent=no
14433   fi
14434 fi
14435
14436 cat >>confdefs.h <<_ACEOF
14437 #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`
14438 _ACEOF
14439
14440
14441 # Thread-local storage - the check is heavily parametrized.
14442 conftest_s=
14443 tls_first_major=
14444 tls_first_minor=
14445 tls_as_opt=
14446 case "$target" in
14447   alpha*-*-*)
14448     conftest_s='
14449         .section ".tdata","awT",@progbits
14450 foo:    .long   25
14451         .text
14452         ldq     $27,__tls_get_addr($29)         !literal!1
14453         lda     $16,foo($29)                    !tlsgd!1
14454         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14455         ldq     $27,__tls_get_addr($29)         !literal!2
14456         lda     $16,foo($29)                    !tlsldm!2
14457         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14458         ldq     $1,foo($29)                     !gotdtprel
14459         ldah    $2,foo($29)                     !dtprelhi
14460         lda     $3,foo($2)                      !dtprello
14461         lda     $4,foo($29)                     !dtprel
14462         ldq     $1,foo($29)                     !gottprel
14463         ldah    $2,foo($29)                     !tprelhi
14464         lda     $3,foo($2)                      !tprello
14465         lda     $4,foo($29)                     !tprel'
14466         tls_first_major=2
14467         tls_first_minor=13
14468         tls_as_opt=--fatal-warnings
14469         ;;
14470   frv*-*-*)
14471     conftest_s='
14472         .section ".tdata","awT",@progbits
14473 x:      .long   25
14474         .text
14475         call    #gettlsoff(x)'
14476         tls_first_major=2
14477         tls_first_minor=14
14478         ;;
14479   hppa*-*-linux*)
14480     conftest_s='
14481 t1:     .reg    %r20
14482 t2:     .reg    %r21
14483 gp:     .reg    %r19
14484         .section ".tdata","awT",@progbits
14485 foo:    .long   25
14486         .text
14487         .align  4
14488         addil LT%foo-$tls_gdidx$,gp
14489         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14490         b __tls_get_addr
14491         nop
14492         addil LT%foo-$tls_ldidx$,gp
14493         b __tls_get_addr
14494         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14495         addil LR%foo-$tls_dtpoff$,%ret0
14496         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14497         mfctl %cr27,%t1
14498         addil LT%foo-$tls_ieoff$,gp
14499         ldw RT%foo-$tls_ieoff$(%r1),%t2
14500         add %t1,%t2,%t3
14501         mfctl %cr27,%t1
14502         addil LR%foo-$tls_leoff$,%t1
14503         ldo RR%foo-$tls_leoff$(%r1),%t2'
14504         tls_first_major=2
14505         tls_first_minor=15
14506         tls_as_opt=--fatal-warnings
14507         ;;
14508   arm*-*-*)
14509     conftest_s='
14510         .section ".tdata","awT",%progbits
14511 foo:    .long   25
14512         .text
14513 .word foo(gottpoff)
14514 .word foo(tpoff)
14515 .word foo(tlsgd)
14516 .word foo(tlsldm)
14517 .word foo(tlsldo)'
14518         tls_first_major=2
14519         tls_first_minor=17
14520         ;;
14521   i[34567]86-*-*)
14522     conftest_s='
14523         .section ".tdata","awT",@progbits
14524 foo:    .long   25
14525         .text
14526         movl    %gs:0, %eax
14527         leal    foo@TLSGD(,%ebx,1), %eax
14528         leal    foo@TLSLDM(%ebx), %eax
14529         leal    foo@DTPOFF(%eax), %edx
14530         movl    foo@GOTTPOFF(%ebx), %eax
14531         subl    foo@GOTTPOFF(%ebx), %eax
14532         addl    foo@GOTNTPOFF(%ebx), %eax
14533         movl    foo@INDNTPOFF, %eax
14534         movl    $foo@TPOFF, %eax
14535         subl    $foo@TPOFF, %eax
14536         leal    foo@NTPOFF(%ecx), %eax'
14537         tls_first_major=2
14538         tls_first_minor=14
14539         tls_as_opt=--fatal-warnings
14540         ;;
14541   x86_64-*-*)
14542     conftest_s='
14543         .section ".tdata","awT",@progbits
14544 foo:    .long   25
14545         .text
14546         movq    %fs:0, %rax
14547         leaq    foo@TLSGD(%rip), %rdi
14548         leaq    foo@TLSLD(%rip), %rdi
14549         leaq    foo@DTPOFF(%rax), %rdx
14550         movq    foo@GOTTPOFF(%rip), %rax
14551         movq    $foo@TPOFF, %rax'
14552         tls_first_major=2
14553         tls_first_minor=14
14554         tls_as_opt=--fatal-warnings
14555         ;;
14556   ia64-*-*)
14557     conftest_s='
14558         .section ".tdata","awT",@progbits
14559 foo:    data8   25
14560         .text
14561         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14562         addl    r17 = @ltoff(@dtprel(foo#)), gp
14563         addl    r18 = @ltoff(@tprel(foo#)), gp
14564         addl    r19 = @dtprel(foo#), gp
14565         adds    r21 = @dtprel(foo#), r13
14566         movl    r23 = @dtprel(foo#)
14567         addl    r20 = @tprel(foo#), gp
14568         adds    r22 = @tprel(foo#), r13
14569         movl    r24 = @tprel(foo#)'
14570         tls_first_major=2
14571         tls_first_minor=13
14572         tls_as_opt=--fatal-warnings
14573         ;;
14574   mips*-*-*)
14575     conftest_s='
14576         .section .tdata,"awT",@progbits
14577 x:
14578         .word 2
14579         .text
14580         addiu $4, $28, %tlsgd(x)
14581         addiu $4, $28, %tlsldm(x)
14582         lui $4, %dtprel_hi(x)
14583         addiu $4, $4, %dtprel_lo(x)
14584         lw $4, %gottprel(x)($28)
14585         lui $4, %tprel_hi(x)
14586         addiu $4, $4, %tprel_lo(x)'
14587         tls_first_major=2
14588         tls_first_minor=16
14589         tls_as_opt='-32 --fatal-warnings'
14590         ;;
14591   powerpc-*-*)
14592     conftest_s='
14593         .section ".tdata","awT",@progbits
14594         .align 2
14595 ld0:    .space 4
14596 ld1:    .space 4
14597 x1:     .space 4
14598 x2:     .space 4
14599 x3:     .space 4
14600         .text
14601         addi 3,31,ld0@got@tlsgd
14602         bl __tls_get_addr
14603         addi 3,31,x1@got@tlsld
14604         bl __tls_get_addr
14605         addi 9,3,x1@dtprel
14606         addis 9,3,x2@dtprel@ha
14607         addi 9,9,x2@dtprel@l
14608         lwz 9,x3@got@tprel(31)
14609         add 9,9,x@tls
14610         addi 9,2,x1@tprel
14611         addis 9,2,x2@tprel@ha
14612         addi 9,9,x2@tprel@l'
14613         tls_first_major=2
14614         tls_first_minor=14
14615         tls_as_opt="-a32 --fatal-warnings"
14616         ;;
14617   powerpc64-*-*)
14618     conftest_s='
14619         .section ".tdata","awT",@progbits
14620         .align 3
14621 ld0:    .space 8
14622 ld1:    .space 8
14623 x1:     .space 8
14624 x2:     .space 8
14625 x3:     .space 8
14626         .text
14627         addi 3,2,ld0@got@tlsgd
14628         bl .__tls_get_addr
14629         nop
14630         addi 3,2,ld1@toc
14631         bl .__tls_get_addr
14632         nop
14633         addi 3,2,x1@got@tlsld
14634         bl .__tls_get_addr
14635         nop
14636         addi 9,3,x1@dtprel
14637         bl .__tls_get_addr
14638         nop
14639         addis 9,3,x2@dtprel@ha
14640         addi 9,9,x2@dtprel@l
14641         bl .__tls_get_addr
14642         nop
14643         ld 9,x3@got@dtprel(2)
14644         add 9,9,3
14645         bl .__tls_get_addr
14646         nop'
14647         tls_first_major=2
14648         tls_first_minor=14
14649         tls_as_opt="-a64 --fatal-warnings"
14650         ;;
14651   s390-*-*)
14652     conftest_s='
14653         .section ".tdata","awT",@progbits
14654 foo:    .long   25
14655         .text
14656         .long   foo@TLSGD
14657         .long   foo@TLSLDM
14658         .long   foo@DTPOFF
14659         .long   foo@NTPOFF
14660         .long   foo@GOTNTPOFF
14661         .long   foo@INDNTPOFF
14662         l       %r1,foo@GOTNTPOFF(%r12)
14663         l       %r1,0(%r1):tls_load:foo
14664         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14665         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14666         tls_first_major=2
14667         tls_first_minor=14
14668         tls_as_opt="-m31 --fatal-warnings"
14669         ;;
14670   s390x-*-*)
14671     conftest_s='
14672         .section ".tdata","awT",@progbits
14673 foo:    .long   25
14674         .text
14675         .quad   foo@TLSGD
14676         .quad   foo@TLSLDM
14677         .quad   foo@DTPOFF
14678         .quad   foo@NTPOFF
14679         .quad   foo@GOTNTPOFF
14680         lg      %r1,foo@GOTNTPOFF(%r12)
14681         larl    %r1,foo@INDNTPOFF
14682         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14683         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14684         tls_first_major=2
14685         tls_first_minor=14
14686         tls_as_opt="-m64 -Aesame --fatal-warnings"
14687         ;;
14688   sh-*-* | sh[34]-*-*)
14689     conftest_s='
14690         .section ".tdata","awT",@progbits
14691 foo:    .long   25
14692         .text
14693         .long   foo@TLSGD
14694         .long   foo@TLSLDM
14695         .long   foo@DTPOFF
14696         .long   foo@GOTTPOFF
14697         .long   foo@TPOFF'
14698         tls_first_major=2
14699         tls_first_minor=13
14700         tls_as_opt=--fatal-warnings
14701         ;;
14702   sparc*-*-*)
14703     case "$target" in
14704       sparc*-sun-solaris2.*)
14705         on_solaris=yes
14706         ;;
14707       *)
14708         on_solaris=no
14709         ;;
14710     esac
14711     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14712       conftest_s='
14713         .section ".tdata",#alloc,#write,#tls
14714 foo:    .long   25
14715         .text
14716         sethi   %tgd_hi22(foo), %o0
14717         add     %o0, %tgd_lo10(foo), %o1
14718         add     %l7, %o1, %o0, %tgd_add(foo)
14719         call    __tls_get_addr, %tgd_call(foo)
14720         sethi   %tldm_hi22(foo), %l1
14721         add     %l1, %tldm_lo10(foo), %l2
14722         add     %l7, %l2, %o0, %tldm_add(foo)
14723         call    __tls_get_addr, %tldm_call(foo)
14724         sethi   %tldo_hix22(foo), %l3
14725         xor     %l3, %tldo_lox10(foo), %l4
14726         add     %o0, %l4, %l5, %tldo_add(foo)
14727         sethi   %tie_hi22(foo), %o3
14728         add     %o3, %tie_lo10(foo), %o3
14729         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14730         add     %g7, %o2, %o4, %tie_add(foo)
14731         sethi   %tle_hix22(foo), %l1
14732         xor     %l1, %tle_lox10(foo), %o5
14733         ld      [%g7 + %o5], %o1'
14734         tls_first_major=0
14735         tls_first_minor=0
14736     else
14737       conftest_s='
14738         .section ".tdata","awT",@progbits
14739 foo:    .long   25
14740         .text
14741         sethi   %tgd_hi22(foo), %o0
14742         add     %o0, %tgd_lo10(foo), %o1
14743         add     %l7, %o1, %o0, %tgd_add(foo)
14744         call    __tls_get_addr, %tgd_call(foo)
14745         sethi   %tldm_hi22(foo), %l1
14746         add     %l1, %tldm_lo10(foo), %l2
14747         add     %l7, %l2, %o0, %tldm_add(foo)
14748         call    __tls_get_addr, %tldm_call(foo)
14749         sethi   %tldo_hix22(foo), %l3
14750         xor     %l3, %tldo_lox10(foo), %l4
14751         add     %o0, %l4, %l5, %tldo_add(foo)
14752         sethi   %tie_hi22(foo), %o3
14753         add     %o3, %tie_lo10(foo), %o3
14754         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14755         add     %g7, %o2, %o4, %tie_add(foo)
14756         sethi   %tle_hix22(foo), %l1
14757         xor     %l1, %tle_lox10(foo), %o5
14758         ld      [%g7 + %o5], %o1'
14759         tls_first_major=2
14760         tls_first_minor=14
14761         tls_as_opt="-32 --fatal-warnings"
14762       fi
14763         ;;
14764 esac
14765 if test -z "$tls_first_major"; then
14766   : # If we don't have a check, assume no support.
14767 else
14768   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14769 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14770 if test "${gcc_cv_as_tls+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   gcc_cv_as_tls=no
14774     if test $in_tree_gas = yes; then
14775     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14776   then gcc_cv_as_tls=yes
14777 fi
14778   elif test x$gcc_cv_as != x; then
14779     echo "$conftest_s" > conftest.s
14780     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }
14786     then
14787         gcc_cv_as_tls=yes
14788     else
14789       echo "configure: failed program was" >&5
14790       cat conftest.s >&5
14791     fi
14792     rm -f conftest.o conftest.s
14793   fi
14794 fi
14795 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14796 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14797 if test $gcc_cv_as_tls = yes; then
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AS_TLS 1
14801 _ACEOF
14802
14803 fi
14804 fi
14805
14806 # Target-specific assembler checks.
14807
14808 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14809 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14810 gcc_cv_ld_static_dynamic=no
14811 if test $in_tree_ld = yes ; then
14812   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14813     gcc_cv_ld_static_dynamic=yes
14814   fi
14815 elif test x$gcc_cv_ld != x; then
14816         # Check if linker supports -Bstatic/-Bdynamic option
14817         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14818           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14819                 gcc_cv_ld_static_dynamic=yes
14820         fi
14821 fi
14822 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14823
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_LD_STATIC_DYNAMIC 1
14826 _ACEOF
14827
14828 fi
14829 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14830 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14831
14832 if test x"$demangler_in_ld" = xyes; then
14833   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14834 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14835   gcc_cv_ld_demangle=no
14836   if test $in_tree_ld = yes; then
14837     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 \
14838       gcc_cv_ld_demangle=yes
14839     fi
14840   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14841     # Check if the GNU linker supports --demangle option
14842     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14843       gcc_cv_ld_demangle=yes
14844     fi
14845   fi
14846   if test x"$gcc_cv_ld_demangle" = xyes; then
14847
14848 cat >>confdefs.h <<\_ACEOF
14849 #define HAVE_LD_DEMANGLE 1
14850 _ACEOF
14851
14852   fi
14853   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14854 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14855 fi
14856
14857 case "$target" in
14858   # All TARGET_ABI_OSF targets.
14859   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14860     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14861 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14862 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865   gcc_cv_as_alpha_explicit_relocs=no
14866     if test $in_tree_gas = yes; then
14867     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14868   then gcc_cv_as_alpha_explicit_relocs=yes
14869 fi
14870   elif test x$gcc_cv_as != x; then
14871     echo '      .set nomacro
14872         .text
14873         extbl   $3, $2, $3      !lituse_bytoff!1
14874         ldq     $2, a($29)      !literal!1
14875         ldq     $4, b($29)      !literal!2
14876         ldq_u   $3, 0($2)       !lituse_base!1
14877         ldq     $27, f($29)     !literal!5
14878         jsr     $26, ($27), f   !lituse_jsr!5
14879         ldah    $29, 0($26)     !gpdisp!3
14880         lda     $0, c($29)      !gprel
14881         ldah    $1, d($29)      !gprelhigh
14882         lda     $1, d($1)       !gprellow
14883         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14884     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886   (eval $ac_try) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; }
14890     then
14891         gcc_cv_as_alpha_explicit_relocs=yes
14892     else
14893       echo "configure: failed program was" >&5
14894       cat conftest.s >&5
14895     fi
14896     rm -f conftest.o conftest.s
14897   fi
14898 fi
14899 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14900 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14901 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14902
14903 cat >>confdefs.h <<\_ACEOF
14904 #define HAVE_AS_EXPLICIT_RELOCS 1
14905 _ACEOF
14906
14907 fi
14908     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14909 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14910 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14911   echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913   gcc_cv_as_alpha_jsrdirect_relocs=no
14914     if test $in_tree_gas = yes; then
14915     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14916   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14917 fi
14918   elif test x$gcc_cv_as != x; then
14919     echo '      .set nomacro
14920         .text
14921         ldq     $27, a($29)     !literal!1
14922         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14923     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; }
14929     then
14930         gcc_cv_as_alpha_jsrdirect_relocs=yes
14931     else
14932       echo "configure: failed program was" >&5
14933       cat conftest.s >&5
14934     fi
14935     rm -f conftest.o conftest.s
14936   fi
14937 fi
14938 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14939 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14940 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14941
14942 cat >>confdefs.h <<\_ACEOF
14943 #define HAVE_AS_JSRDIRECT_RELOCS 1
14944 _ACEOF
14945
14946 fi
14947     ;;
14948
14949   cris-*-*)
14950     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14951 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14952 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14953   echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955   gcc_cv_as_cris_no_mul_bug=no
14956     if test $in_tree_gas = yes; then
14957     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14958   then gcc_cv_as_cris_no_mul_bug=yes
14959 fi
14960   elif test x$gcc_cv_as != x; then
14961     echo '.text' > conftest.s
14962     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; }
14968     then
14969         gcc_cv_as_cris_no_mul_bug=yes
14970     else
14971       echo "configure: failed program was" >&5
14972       cat conftest.s >&5
14973     fi
14974     rm -f conftest.o conftest.s
14975   fi
14976 fi
14977 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14978 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14979 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14980
14981 cat >>confdefs.h <<\_ACEOF
14982 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14983 _ACEOF
14984
14985 fi
14986     ;;
14987
14988   sparc*-*-*)
14989     echo "$as_me:$LINENO: checking assembler for .register" >&5
14990 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14991 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   gcc_cv_as_sparc_register_op=no
14995   if test x$gcc_cv_as != x; then
14996     echo '.register %g2, #scratch' > conftest.s
14997     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }
15003     then
15004         gcc_cv_as_sparc_register_op=yes
15005     else
15006       echo "configure: failed program was" >&5
15007       cat conftest.s >&5
15008     fi
15009     rm -f conftest.o conftest.s
15010   fi
15011 fi
15012 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15013 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15014 if test $gcc_cv_as_sparc_register_op = yes; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15018 _ACEOF
15019
15020 fi
15021
15022     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15023 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15024 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   gcc_cv_as_sparc_relax=no
15028   if test x$gcc_cv_as != x; then
15029     echo '.text' > conftest.s
15030     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032   (eval $ac_try) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; }
15036     then
15037         gcc_cv_as_sparc_relax=yes
15038     else
15039       echo "configure: failed program was" >&5
15040       cat conftest.s >&5
15041     fi
15042     rm -f conftest.o conftest.s
15043   fi
15044 fi
15045 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15046 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15047 if test $gcc_cv_as_sparc_relax = yes; then
15048
15049 cat >>confdefs.h <<\_ACEOF
15050 #define HAVE_AS_RELAX_OPTION 1
15051 _ACEOF
15052
15053 fi
15054
15055     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15056 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15057 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060   gcc_cv_as_sparc_ua_pcrel=no
15061   if test x$gcc_cv_as != x; then
15062     echo '.text
15063 foo:
15064         nop
15065 .data
15066 .align 4
15067 .byte 0
15068 .uaword %r_disp32(foo)' > conftest.s
15069     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; }
15075     then
15076         if test x$gcc_cv_ld != x \
15077        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15078          gcc_cv_as_sparc_ua_pcrel=yes
15079        fi
15080        rm -f conftest
15081     else
15082       echo "configure: failed program was" >&5
15083       cat conftest.s >&5
15084     fi
15085     rm -f conftest.o conftest.s
15086   fi
15087 fi
15088 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15089 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15090 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15091
15092 cat >>confdefs.h <<\_ACEOF
15093 #define HAVE_AS_SPARC_UA_PCREL 1
15094 _ACEOF
15095
15096
15097       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15098 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15099 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   gcc_cv_as_sparc_ua_pcrel_hidden=no
15103   if test x$gcc_cv_as != x; then
15104     echo '.data
15105 .align 4
15106 .byte 0x31
15107 .uaword %r_disp32(foo)
15108 .byte 0x32, 0x33, 0x34
15109 .global foo
15110 .hidden foo
15111 foo:
15112 .skip 4' > conftest.s
15113     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; }
15119     then
15120         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15121          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15122          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15123             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15124             if $gcc_cv_objdump -R conftest 2> /dev/null \
15125                | grep 'DISP32' > /dev/null 2>&1; then
15126                 :
15127             else
15128                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15129             fi
15130          fi
15131          rm -f conftest
15132     else
15133       echo "configure: failed program was" >&5
15134       cat conftest.s >&5
15135     fi
15136     rm -f conftest.o conftest.s
15137   fi
15138 fi
15139 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15140 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15141 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15142
15143 cat >>confdefs.h <<\_ACEOF
15144 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15145 _ACEOF
15146
15147 fi
15148
15149 fi # unaligned pcrel relocs
15150
15151     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15152 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15153 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15154   echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156   gcc_cv_as_sparc_offsetable_lo10=no
15157   if test x$gcc_cv_as != x; then
15158     echo '.text
15159         or %g1, %lo(ab) + 12, %g1
15160         or %g1, %lo(ab + 12), %g1' > conftest.s
15161     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163   (eval $ac_try) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }
15167     then
15168         if test x$gcc_cv_objdump != x \
15169        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15170           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15171          gcc_cv_as_sparc_offsetable_lo10=yes
15172        fi
15173     else
15174       echo "configure: failed program was" >&5
15175       cat conftest.s >&5
15176     fi
15177     rm -f conftest.o conftest.s
15178   fi
15179 fi
15180 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15181 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15182 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15183
15184 cat >>confdefs.h <<\_ACEOF
15185 #define HAVE_AS_OFFSETABLE_LO10 1
15186 _ACEOF
15187
15188 fi
15189     ;;
15190
15191   i[34567]86-*-* | x86_64-*-*)
15192     case $target_os in
15193       cygwin* | pe | mingw32*)
15194         # Used for DWARF 2 in PE
15195         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15196 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15197 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   gcc_cv_as_ix86_pe_secrel32=no
15201     if test $in_tree_gas = yes; then
15202     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15203   then gcc_cv_as_ix86_pe_secrel32=yes
15204 fi
15205   elif test x$gcc_cv_as != x; then
15206     echo '.text
15207 foo:    nop
15208 .data
15209         .secrel32 foo' > conftest.s
15210     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212   (eval $ac_try) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }
15216     then
15217         if test x$gcc_cv_ld != x \
15218            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15219              gcc_cv_as_ix86_pe_secrel32=yes
15220            fi
15221            rm -f conftest
15222     else
15223       echo "configure: failed program was" >&5
15224       cat conftest.s >&5
15225     fi
15226     rm -f conftest.o conftest.s
15227   fi
15228 fi
15229 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15230 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15231 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15232
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_GAS_PE_SECREL32_RELOC 1
15235 _ACEOF
15236
15237 fi
15238         ;;
15239     esac
15240
15241     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15242 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15243 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15244   echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246   gcc_cv_as_ix86_filds_fists=no
15247     if test $in_tree_gas = yes; then
15248     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15249   then gcc_cv_as_ix86_filds_fists=yes
15250 fi
15251   elif test x$gcc_cv_as != x; then
15252     echo 'filds mem; fists mem' > conftest.s
15253     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255   (eval $ac_try) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }
15259     then
15260         gcc_cv_as_ix86_filds_fists=yes
15261     else
15262       echo "configure: failed program was" >&5
15263       cat conftest.s >&5
15264     fi
15265     rm -f conftest.o conftest.s
15266   fi
15267 fi
15268 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15269 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15270 if test $gcc_cv_as_ix86_filds_fists = yes; then
15271
15272 cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_GAS_FILDS_FISTS 1
15274 _ACEOF
15275
15276 fi
15277
15278     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15279 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15280 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283   gcc_cv_as_ix86_cmov_sun_syntax=no
15284   if test x$gcc_cv_as != x; then
15285     echo 'cmovl.l %edx, %eax' > conftest.s
15286     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; }
15292     then
15293         gcc_cv_as_ix86_cmov_sun_syntax=yes
15294     else
15295       echo "configure: failed program was" >&5
15296       cat conftest.s >&5
15297     fi
15298     rm -f conftest.o conftest.s
15299   fi
15300 fi
15301 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15302 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15303 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15304
15305 cat >>confdefs.h <<\_ACEOF
15306 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15307 _ACEOF
15308
15309 fi
15310
15311     # This one is used unconditionally by i386.[ch]; it is to be defined
15312     # to 1 if the feature is present, 0 otherwise.
15313     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15314 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15315 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15316   echo $ECHO_N "(cached) $ECHO_C" >&6
15317 else
15318   gcc_cv_as_ix86_gotoff_in_data=no
15319     if test $in_tree_gas = yes; then
15320     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15321   then gcc_cv_as_ix86_gotoff_in_data=yes
15322 fi
15323   elif test x$gcc_cv_as != x; then
15324     echo '      .text
15325 .L0:
15326         nop
15327         .data
15328         .long .L0@GOTOFF' > conftest.s
15329     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; }
15335     then
15336         gcc_cv_as_ix86_gotoff_in_data=yes
15337     else
15338       echo "configure: failed program was" >&5
15339       cat conftest.s >&5
15340     fi
15341     rm -f conftest.o conftest.s
15342   fi
15343 fi
15344 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15345 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15346
15347
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15350 _ACEOF
15351
15352     ;;
15353
15354   ia64*-*-*)
15355     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15356 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15357 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15358   echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15361     if test $in_tree_gas = yes; then
15362     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15363   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15364 fi
15365   elif test x$gcc_cv_as != x; then
15366     echo '      .text
15367         addl r15 = @ltoffx(x#), gp
15368         ;;
15369         ld8.mov r16 = [r15], x#' > conftest.s
15370     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }
15376     then
15377         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15378     else
15379       echo "configure: failed program was" >&5
15380       cat conftest.s >&5
15381     fi
15382     rm -f conftest.o conftest.s
15383   fi
15384 fi
15385 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15386 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15387 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15388
15389 cat >>confdefs.h <<\_ACEOF
15390 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15391 _ACEOF
15392
15393 fi
15394
15395     ;;
15396
15397   powerpc*-*-*)
15398     case $target in
15399       *-*-aix*) conftest_s='    .machine "pwr5"
15400         .csect .text[PR]
15401         mfcr 3,128';;
15402       *-*-darwin*)
15403         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15404 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15405 if test "${gcc_cv_as_machine_directive+set}" = set; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   gcc_cv_as_machine_directive=no
15409   if test x$gcc_cv_as != x; then
15410     echo '      .machine ppc7400' > conftest.s
15411     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); }; }
15417     then
15418         gcc_cv_as_machine_directive=yes
15419     else
15420       echo "configure: failed program was" >&5
15421       cat conftest.s >&5
15422     fi
15423     rm -f conftest.o conftest.s
15424   fi
15425 fi
15426 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15427 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15428
15429         if test x$gcc_cv_as_machine_directive != xyes; then
15430           echo "*** This target requires an assembler supporting \".machine\"" >&2
15431           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15432           test x$build = x$target && exit 1
15433         fi
15434         conftest_s='    .text
15435         mfcr r3,128';;
15436       *) conftest_s='   .machine power4
15437         .text
15438         mfcr 3,128';;
15439     esac
15440
15441     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15442 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15443 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   gcc_cv_as_powerpc_mfcrf=no
15447     if test $in_tree_gas = yes; then
15448     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15449   then gcc_cv_as_powerpc_mfcrf=yes
15450 fi
15451   elif test x$gcc_cv_as != x; then
15452     echo "$conftest_s" > conftest.s
15453     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455   (eval $ac_try) 2>&5
15456   ac_status=$?
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); }; }
15459     then
15460         gcc_cv_as_powerpc_mfcrf=yes
15461     else
15462       echo "configure: failed program was" >&5
15463       cat conftest.s >&5
15464     fi
15465     rm -f conftest.o conftest.s
15466   fi
15467 fi
15468 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15469 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15470 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15471
15472 cat >>confdefs.h <<\_ACEOF
15473 #define HAVE_AS_MFCRF 1
15474 _ACEOF
15475
15476 fi
15477
15478     case $target in
15479       *-*-aix*) conftest_s='    .machine "pwr5"
15480         .csect .text[PR]
15481         popcntb 3,3';;
15482       *) conftest_s='   .machine power5
15483         .text
15484         popcntb 3,3';;
15485     esac
15486
15487     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15488 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15489 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   gcc_cv_as_powerpc_popcntb=no
15493     if test $in_tree_gas = yes; then
15494     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15495   then gcc_cv_as_powerpc_popcntb=yes
15496 fi
15497   elif test x$gcc_cv_as != x; then
15498     echo "$conftest_s" > conftest.s
15499     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501   (eval $ac_try) 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; }
15505     then
15506         gcc_cv_as_powerpc_popcntb=yes
15507     else
15508       echo "configure: failed program was" >&5
15509       cat conftest.s >&5
15510     fi
15511     rm -f conftest.o conftest.s
15512   fi
15513 fi
15514 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15515 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15516 if test $gcc_cv_as_powerpc_popcntb = yes; then
15517
15518 cat >>confdefs.h <<\_ACEOF
15519 #define HAVE_AS_POPCNTB 1
15520 _ACEOF
15521
15522 fi
15523
15524     case $target in
15525       *-*-aix*) conftest_s='    .machine "pwr5x"
15526         .csect .text[PR]
15527         frin 1,1';;
15528       *) conftest_s='   .machine power5
15529         .text
15530         frin 1,1';;
15531     esac
15532
15533     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15534 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15535 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15536   echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538   gcc_cv_as_powerpc_fprnd=no
15539     if test $in_tree_gas = yes; then
15540     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15541   then gcc_cv_as_powerpc_fprnd=yes
15542 fi
15543   elif test x$gcc_cv_as != x; then
15544     echo "$conftest_s" > conftest.s
15545     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }
15551     then
15552         gcc_cv_as_powerpc_fprnd=yes
15553     else
15554       echo "configure: failed program was" >&5
15555       cat conftest.s >&5
15556     fi
15557     rm -f conftest.o conftest.s
15558   fi
15559 fi
15560 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15561 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15562 if test $gcc_cv_as_powerpc_fprnd = yes; then
15563
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_AS_FPRND 1
15566 _ACEOF
15567
15568 fi
15569
15570     case $target in
15571       *-*-aix*) conftest_s='    .csect .text[PR]
15572 LCF..0:
15573         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15574       *-*-darwin*)
15575         conftest_s='    .text
15576 LCF0:
15577         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15578       *) conftest_s='   .text
15579 .LCF0:
15580         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15581     esac
15582
15583     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15584 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15585 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   gcc_cv_as_powerpc_rel16=no
15589     if test $in_tree_gas = yes; then
15590     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15591   then gcc_cv_as_powerpc_rel16=yes
15592 fi
15593   elif test x$gcc_cv_as != x; then
15594     echo "$conftest_s" > conftest.s
15595     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597   (eval $ac_try) 2>&5
15598   ac_status=$?
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); }; }
15601     then
15602         gcc_cv_as_powerpc_rel16=yes
15603     else
15604       echo "configure: failed program was" >&5
15605       cat conftest.s >&5
15606     fi
15607     rm -f conftest.o conftest.s
15608   fi
15609 fi
15610 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15611 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15612 if test $gcc_cv_as_powerpc_rel16 = yes; then
15613
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE_AS_REL16 1
15616 _ACEOF
15617
15618 fi
15619     ;;
15620
15621   mips*-*-*)
15622     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15623 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15624 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627   gcc_cv_as_mips_explicit_relocs=no
15628     if test $in_tree_gas = yes; then
15629     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15630   then gcc_cv_as_mips_explicit_relocs=yes
15631 fi
15632   elif test x$gcc_cv_as != x; then
15633     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15634     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }
15640     then
15641         gcc_cv_as_mips_explicit_relocs=yes
15642     else
15643       echo "configure: failed program was" >&5
15644       cat conftest.s >&5
15645     fi
15646     rm -f conftest.o conftest.s
15647   fi
15648 fi
15649 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15650 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15651 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15652   if test x$target_cpu_default = x
15653        then target_cpu_default=MASK_EXPLICIT_RELOCS
15654        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15655        fi
15656 fi
15657     ;;
15658 esac
15659
15660 # Mips and HP-UX need the GNU assembler.
15661 # Linux on IA64 might be able to use the Intel assembler.
15662
15663 case "$target" in
15664   mips*-*-* | *-*-hpux* )
15665     if test x$gas_flag = xyes \
15666        || test x"$host" != x"$build" \
15667        || test ! -x "$gcc_cv_as" \
15668        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15669       :
15670     else
15671       echo "*** This configuration requires the GNU assembler" >&2
15672       exit 1
15673     fi
15674     ;;
15675 esac
15676
15677 # ??? Not all targets support dwarf2 debug_line, even within a version
15678 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15679 # info to the output file.  So, as supported targets are added to gas 2.11,
15680 # add some instruction here to (also) show we expect this might work.
15681 # ??? Once 2.11 is released, probably need to add first known working
15682 # version to the per-target configury.
15683 case "$target" in
15684   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15685   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15686   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15687     insn="nop"
15688     ;;
15689   ia64*-*-* | s390*-*-*)
15690     insn="nop 0"
15691     ;;
15692   mmix-*-*)
15693     insn="swym 0"
15694     ;;
15695 esac
15696 if test x"$insn" != x; then
15697  conftest_s="\
15698         .file 1 \"conftest.s\"
15699         .loc 1 3 0
15700         $insn"
15701  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15702 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15703 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   gcc_cv_as_dwarf2_debug_line=no
15707     if test $in_tree_gas = yes; then
15708     if test $in_tree_gas_is_elf = yes \
15709   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15710   then gcc_cv_as_dwarf2_debug_line=yes
15711 fi
15712   elif test x$gcc_cv_as != x; then
15713     echo "$conftest_s" > conftest.s
15714     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716   (eval $ac_try) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; }
15720     then
15721         if test x$gcc_cv_objdump != x \
15722    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15723       | grep debug_line > /dev/null 2>&1; then
15724      gcc_cv_as_dwarf2_debug_line=yes
15725    fi
15726     else
15727       echo "configure: failed program was" >&5
15728       cat conftest.s >&5
15729     fi
15730     rm -f conftest.o conftest.s
15731   fi
15732 fi
15733 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15734 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15735
15736
15737 # The .debug_line file table must be in the exact order that
15738 # we specified the files, since these indices are also used
15739 # by DW_AT_decl_file.  Approximate this test by testing if
15740 # the assembler bitches if the same index is assigned twice.
15741  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15742 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15743 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15744   echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746   gcc_cv_as_dwarf2_file_buggy=no
15747   if test x$gcc_cv_as != x; then
15748     echo '      .file 1 "foo.s"
15749         .file 1 "bar.s"' > conftest.s
15750     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752   (eval $ac_try) 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; }
15756     then
15757         gcc_cv_as_dwarf2_file_buggy=yes
15758     else
15759       echo "configure: failed program was" >&5
15760       cat conftest.s >&5
15761     fi
15762     rm -f conftest.o conftest.s
15763   fi
15764 fi
15765 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15766 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15767
15768
15769  if test $gcc_cv_as_dwarf2_debug_line = yes \
15770  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15771
15772 cat >>confdefs.h <<\_ACEOF
15773 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15774 _ACEOF
15775
15776  fi
15777
15778  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15779 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15780 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   gcc_cv_as_gdwarf2_flag=no
15784     if test $in_tree_gas = yes; then
15785     if test $in_tree_gas_is_elf = yes \
15786   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15787   then gcc_cv_as_gdwarf2_flag=yes
15788 fi
15789   elif test x$gcc_cv_as != x; then
15790     echo "$insn" > conftest.s
15791     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }
15797     then
15798         gcc_cv_as_gdwarf2_flag=yes
15799     else
15800       echo "configure: failed program was" >&5
15801       cat conftest.s >&5
15802     fi
15803     rm -f conftest.o conftest.s
15804   fi
15805 fi
15806 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15807 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15808 if test $gcc_cv_as_gdwarf2_flag = yes; then
15809
15810 cat >>confdefs.h <<\_ACEOF
15811 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15812 _ACEOF
15813
15814 fi
15815
15816  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15817 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15818 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   gcc_cv_as_gstabs_flag=no
15822     if test $in_tree_gas = yes; then
15823     if test $in_tree_gas_is_elf = yes \
15824   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15825   then gcc_cv_as_gstabs_flag=yes
15826 fi
15827   elif test x$gcc_cv_as != x; then
15828     echo "$insn" > conftest.s
15829     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831   (eval $ac_try) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); }; }
15835     then
15836         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15837    # and warns about it, but still exits successfully.  So check for
15838    # this.
15839    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; }
15845    then :
15846    else gcc_cv_as_gstabs_flag=yes
15847    fi
15848     else
15849       echo "configure: failed program was" >&5
15850       cat conftest.s >&5
15851     fi
15852     rm -f conftest.o conftest.s
15853   fi
15854 fi
15855 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15856 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15857 if test $gcc_cv_as_gstabs_flag = yes; then
15858
15859 cat >>confdefs.h <<\_ACEOF
15860 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15861 _ACEOF
15862
15863 fi
15864 fi
15865
15866 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15867 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15868 gcc_cv_ld_ro_rw_mix=unknown
15869 if test $in_tree_ld = yes ; then
15870   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 \
15871      && test $in_tree_ld_is_elf = yes; then
15872     gcc_cv_ld_ro_rw_mix=read-write
15873   fi
15874 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15875   echo '.section myfoosect, "a"' > conftest1.s
15876   echo '.section myfoosect, "aw"' > conftest2.s
15877   echo '.byte 1' >> conftest2.s
15878   echo '.section myfoosect, "a"' > conftest3.s
15879   echo '.byte 0' >> conftest3.s
15880   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15881      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15882      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15883      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15884         conftest2.o conftest3.o > /dev/null 2>&1; then
15885     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15886                          | sed -e '/myfoosect/!d' -e N`
15887     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15888       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15889         gcc_cv_ld_ro_rw_mix=read-only
15890       else
15891         gcc_cv_ld_ro_rw_mix=read-write
15892       fi
15893     fi
15894   fi
15895   rm -f conftest.* conftest[123].*
15896 fi
15897 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15898
15899 cat >>confdefs.h <<\_ACEOF
15900 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15901 _ACEOF
15902
15903 fi
15904 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15905 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15906
15907 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15908 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15909 gcc_cv_ld_eh_frame_hdr=no
15910 if test $in_tree_ld = yes ; then
15911   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 \
15912      && test $in_tree_ld_is_elf = yes; then
15913     gcc_cv_ld_eh_frame_hdr=yes
15914   fi
15915 elif test x$gcc_cv_ld != x; then
15916         # Check if linker supports --eh-frame-hdr option
15917         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15918                 gcc_cv_ld_eh_frame_hdr=yes
15919         fi
15920 fi
15921
15922 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15923
15924 cat >>confdefs.h <<\_ACEOF
15925 #define HAVE_LD_EH_FRAME_HDR 1
15926 _ACEOF
15927
15928 fi
15929 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15930 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15931
15932 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15933 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15934 gcc_cv_ld_pie=no
15935 if test $in_tree_ld = yes ; then
15936   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 \
15937      && test $in_tree_ld_is_elf = yes; then
15938     gcc_cv_ld_pie=yes
15939   fi
15940 elif test x$gcc_cv_ld != x; then
15941         # Check if linker supports -pie option
15942         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15943                 gcc_cv_ld_pie=yes
15944         fi
15945 fi
15946 if test x"$gcc_cv_ld_pie" = xyes; then
15947
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_LD_PIE 1
15950 _ACEOF
15951
15952 fi
15953 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15954 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15955
15956 # --------
15957 # UNSORTED
15958 # --------
15959
15960 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15961 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15962 if test "${gcc_cv_ld_as_needed+set}" = set; then
15963   echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965   gcc_cv_ld_as_needed=no
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 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15968      && test $in_tree_ld_is_elf = yes; then
15969     gcc_cv_ld_as_needed=yes
15970   fi
15971 elif test x$gcc_cv_ld != x; then
15972         # Check if linker supports --as-needed and --no-as-needed options
15973         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15974                 gcc_cv_ld_as_needed=yes
15975         fi
15976 fi
15977
15978 fi
15979 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15980 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15981 if test x"$gcc_cv_ld_as_needed" = xyes; then
15982
15983 cat >>confdefs.h <<\_ACEOF
15984 #define HAVE_LD_AS_NEEDED 1
15985 _ACEOF
15986
15987 fi
15988
15989 case "$target:$tm_file" in
15990   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15991     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15992 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15993 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15994   echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996   gcc_cv_ld_no_dot_syms=no
15997     if test $in_tree_ld = yes ; then
15998       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
15999         gcc_cv_ld_no_dot_syms=yes
16000       fi
16001     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16002       cat > conftest1.s <<EOF
16003         .text
16004         bl .foo
16005 EOF
16006       cat > conftest2.s <<EOF
16007         .section ".opd","aw"
16008         .align 3
16009         .globl foo
16010         .type foo,@function
16011 foo:
16012         .quad .LEfoo,.TOC.@tocbase,0
16013         .text
16014 .LEfoo:
16015         blr
16016         .size foo,.-.LEfoo
16017 EOF
16018       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16019          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16020          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16021         gcc_cv_ld_no_dot_syms=yes
16022       fi
16023       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16024     fi
16025
16026 fi
16027 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16028 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16029     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16030
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_LD_NO_DOT_SYMS 1
16033 _ACEOF
16034
16035     fi
16036     ;;
16037 esac
16038
16039 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16040 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16041 if test "${gcc_cv_ld_sysroot+set}" = set; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044   gcc_cv_ld_sysroot=no
16045   if test $in_tree_ld = yes ; then
16046       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
16047         gcc_cv_ld_sysroot=yes
16048       fi
16049   elif test x$gcc_cv_ld != x; then
16050     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16051       gcc_cv_ld_sysroot=yes
16052     fi
16053   fi
16054 fi
16055 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16056 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16057 if test x"$gcc_cv_ld_sysroot" = xyes; then
16058
16059 cat >>confdefs.h <<\_ACEOF
16060 #define HAVE_LD_SYSROOT 1
16061 _ACEOF
16062
16063 fi
16064
16065 if test x$with_sysroot = x && test x$host = x$target \
16066    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define PREFIX_INCLUDE_DIR "$prefix/include"
16070 _ACEOF
16071
16072 fi
16073
16074 # Test for stack protector support in target C library.
16075 case "$target" in
16076   *-*-linux*)
16077     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16078 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16079 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16080   echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082   gcc_cv_libc_provides_ssp=no
16083       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16084         if test "x$with_sysroot" = x; then
16085           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16086         elif test "x$with_sysroot" = xyes; then
16087           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16088         else
16089           glibc_header_dir="${with_sysroot}/usr/include"
16090         fi
16091       else
16092         glibc_header_dir=/usr/include
16093       fi
16094       # glibc 2.4 and later provides __stack_chk_fail and
16095       # either __stack_chk_guard, or TLS access to stack guard canary.
16096       if test -f $glibc_header_dir/features.h \
16097          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16098             $glibc_header_dir/features.h > /dev/null; then
16099         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16100            $glibc_header_dir/features.h > /dev/null; then
16101           gcc_cv_libc_provides_ssp=yes
16102         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16103              $glibc_header_dir/features.h > /dev/null \
16104              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16105              $glibc_header_dir/features.h > /dev/null; then
16106           gcc_cv_libc_provides_ssp=yes
16107         fi
16108       fi
16109 fi
16110 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16111 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16112   *) gcc_cv_libc_provides_ssp=no ;;
16113 esac
16114 if test x$gcc_cv_libc_provides_ssp = xyes; then
16115
16116 cat >>confdefs.h <<\_ACEOF
16117 #define TARGET_LIBC_PROVIDES_SSP 1
16118 _ACEOF
16119
16120 fi
16121
16122 # Find out what GC implementation we want, or may, use.
16123
16124 # Check whether --with-gc or --without-gc was given.
16125 if test "${with_gc+set}" = set; then
16126   withval="$with_gc"
16127   case "$withval" in
16128   page)
16129     GGC=ggc-$withval
16130     ;;
16131   zone)
16132     GGC=ggc-$withval
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define GGC_ZONE 1
16136 _ACEOF
16137
16138     ;;
16139   *)
16140     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16141 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16142    { (exit 1); exit 1; }; }
16143     ;;
16144 esac
16145 else
16146   GGC=ggc-page
16147 fi;
16148
16149 echo "Using $GGC for garbage collection."
16150
16151 # Use the system's zlib library.
16152 zlibdir=-L../zlib
16153 zlibinc="-I\$(srcdir)/../zlib"
16154
16155 # Check whether --with-system-zlib or --without-system-zlib was given.
16156 if test "${with_system_zlib+set}" = set; then
16157   withval="$with_system_zlib"
16158   zlibdir=
16159 zlibinc=
16160
16161 fi;
16162
16163
16164
16165
16166 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16167 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16168     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16169 if test "${enable_maintainer_mode+set}" = set; then
16170   enableval="$enable_maintainer_mode"
16171   maintainer_mode=$enableval
16172 else
16173   maintainer_mode=no
16174 fi;
16175
16176 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16177 echo "${ECHO_T}$maintainer_mode" >&6
16178
16179 if test "$maintainer_mode" = "yes"; then
16180   MAINT=''
16181 else
16182   MAINT='#'
16183 fi
16184
16185 # --------------
16186 # Language hooks
16187 # --------------
16188
16189 # Make empty files to contain the specs and options for each language.
16190 # Then add #include lines to for a compiler that has specs and/or options.
16191
16192 lang_opt_files=
16193 lang_specs_files=
16194 lang_tree_files=
16195 for subdir in . $subdirs
16196 do
16197         if test -f $srcdir/$subdir/lang.opt; then
16198             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16199         fi
16200         if test -f $srcdir/$subdir/lang-specs.h; then
16201             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16202         fi
16203         if test -f $srcdir/$subdir/$subdir-tree.def; then
16204             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16205         fi
16206 done
16207
16208 # These (without "all_") are set in each config-lang.in.
16209 # `language' must be a single word so is spelled singularly.
16210 all_languages=
16211 all_boot_languages=
16212 all_compilers=
16213 all_stagestuff=
16214 all_outputs='Makefile gccbug mklibgcc libada-mk'
16215 # List of language makefile fragments.
16216 all_lang_makefrags=
16217 # List of language subdirectory makefiles.  Deprecated.
16218 all_lang_makefiles=
16219 # Files for gengtype
16220 all_gtfiles="$target_gtfiles"
16221 # Files for gengtype with language
16222 all_gtfiles_files_langs=
16223 all_gtfiles_files_files=
16224
16225 # Add the language fragments.
16226 # Languages are added via two mechanisms.  Some information must be
16227 # recorded in makefile variables, these are defined in config-lang.in.
16228 # We accumulate them and plug them into the main Makefile.
16229 # The other mechanism is a set of hooks for each of the main targets
16230 # like `clean', `install', etc.
16231
16232 language_hooks="Make-hooks"
16233
16234 for s in $subdirs
16235 do
16236                 language=
16237                 boot_language=
16238                 compilers=
16239                 stagestuff=
16240                 outputs=
16241                 gtfiles=
16242                 . ${srcdir}/$s/config-lang.in
16243                 if test "x$language" = x
16244                 then
16245                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
16246                         exit 1
16247                 fi
16248                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
16249                 if test -f ${srcdir}/$s/Makefile.in
16250                 then all_lang_makefiles="$s/Makefile"
16251                 fi
16252                 all_languages="$all_languages $language"
16253                 if test "x$boot_language" = xyes
16254                 then
16255                         all_boot_languages="$all_boot_languages $language"
16256                 fi
16257                 all_compilers="$all_compilers $compilers"
16258                 all_stagestuff="$all_stagestuff $stagestuff"
16259                 all_outputs="$all_outputs $outputs"
16260                 all_gtfiles="$all_gtfiles $gtfiles"
16261                 for f in $gtfiles
16262                 do
16263                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16264                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16265                 done
16266 done
16267
16268 # Pick up gtfiles for c
16269 gtfiles=
16270 s="c"
16271 . ${srcdir}/c-config-lang.in
16272 all_gtfiles="$all_gtfiles $gtfiles"
16273 for f in $gtfiles
16274 do
16275         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16276         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16277 done
16278
16279 check_languages=
16280 for language in $all_languages
16281 do
16282                 check_languages="$check_languages check-$language"
16283 done
16284
16285 # We link each language in with a set of hooks, reached indirectly via
16286 # lang.${target}.
16287
16288 rm -f Make-hooks
16289 touch Make-hooks
16290 target_list="all.cross start.encap rest.encap tags \
16291         install-common install-man \
16292         uninstall info man srcextra srcman srcinfo \
16293         mostlyclean clean distclean maintainer-clean \
16294         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16295 for t in $target_list
16296 do
16297         x=
16298         for lang in $all_languages
16299         do
16300                         x="$x $lang.$t"
16301         done
16302         echo "lang.$t: $x" >> Make-hooks
16303 done
16304
16305 # --------
16306 # UNSORTED
16307 # --------
16308
16309 # Create .gdbinit.
16310
16311 echo "dir ." > .gdbinit
16312 echo "dir ${srcdir}" >> .gdbinit
16313 if test x$gdb_needs_out_file_path = xyes
16314 then
16315         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16316 fi
16317 if test "x$subdirs" != x; then
16318         for s in $subdirs
16319         do
16320                 echo "dir ${srcdir}/$s" >> .gdbinit
16321         done
16322 fi
16323 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16324
16325 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16326 # absolute path for gcc_tooldir based on inserting the number of up-directory
16327 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16328 # $(libsubdir)/@(unlibsubdir) based path.
16329 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16330 # make and thus we'd get different behavior depending on where we built the
16331 # sources.
16332 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16333     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16334 else
16335 # An explanation of the sed strings:
16336 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16337 #  -e 's|/$||'            match a trailing forward slash and eliminates it
16338 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16339 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
16340 #
16341 # (*) Note this pattern overwrites the first character of the string
16342 # with a forward slash if one is not already present.  This is not a
16343 # problem because the exact names of the sub-directories concerned is
16344 # unimportant, just the number of them matters.
16345 #
16346 # The practical upshot of these patterns is like this:
16347 #
16348 #  prefix     exec_prefix        result
16349 #  ------     -----------        ------
16350 #   /foo        /foo/bar          ../
16351 #   /foo/       /foo/bar          ../
16352 #   /foo        /foo/bar/         ../
16353 #   /foo/       /foo/bar/         ../
16354 #   /foo        /foo/bar/ugg      ../../
16355 #
16356     dollar='$$'
16357     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16358 fi
16359
16360
16361
16362 # Find a directory in which to install a shared libgcc.
16363
16364 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16365 if test "${enable_version_specific_runtime_libs+set}" = set; then
16366   enableval="$enable_version_specific_runtime_libs"
16367
16368 fi;
16369
16370
16371 # Check whether --with-slibdir or --without-slibdir was given.
16372 if test "${with_slibdir+set}" = set; then
16373   withval="$with_slibdir"
16374   slibdir="$with_slibdir"
16375 else
16376   if test "${enable_version_specific_runtime_libs+set}" = set; then
16377   slibdir='$(libsubdir)'
16378 elif test "$host" != "$target"; then
16379   slibdir='$(build_tooldir)/lib'
16380 else
16381   slibdir='$(libdir)'
16382 fi
16383 fi;
16384
16385
16386 objdir=`${PWDCMD-pwd}`
16387
16388
16389 # Substitute configuration variables
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453 # Echo link setup.
16454 if test x${build} = x${host} ; then
16455   if test x${host} = x${target} ; then
16456     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16457   else
16458     echo "Links are now set up to build a cross-compiler" 1>&2
16459     echo " from ${host} to ${target}." 1>&2
16460   fi
16461 else
16462   if test x${host} = x${target} ; then
16463     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16464     echo " for ${target}." 1>&2
16465   else
16466     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16467     echo " from ${host} to ${target}." 1>&2
16468   fi
16469 fi
16470
16471
16472
16473
16474 # Configure the subdirectories
16475 # AC_CONFIG_SUBDIRS($subdirs)
16476
16477 # Create the Makefile
16478 # and configure language subdirectories
16479           ac_config_files="$ac_config_files $all_outputs"
16480
16481
16482           ac_config_commands="$ac_config_commands default"
16483
16484 cat >confcache <<\_ACEOF
16485 # This file is a shell script that caches the results of configure
16486 # tests run on this system so they can be shared between configure
16487 # scripts and configure runs, see configure's option --config-cache.
16488 # It is not useful on other systems.  If it contains results you don't
16489 # want to keep, you may remove or edit it.
16490 #
16491 # config.status only pays attention to the cache file if you give it
16492 # the --recheck option to rerun configure.
16493 #
16494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16496 # following values.
16497
16498 _ACEOF
16499
16500 # The following way of writing the cache mishandles newlines in values,
16501 # but we know of no workaround that is simple, portable, and efficient.
16502 # So, don't put newlines in cache variables' values.
16503 # Ultrix sh set writes to stderr and can't be redirected directly,
16504 # and sets the high bit in the cache file unless we assign to the vars.
16505 {
16506   (set) 2>&1 |
16507     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16508     *ac_space=\ *)
16509       # `set' does not quote correctly, so add quotes (double-quote
16510       # substitution turns \\\\ into \\, and sed turns \\ into \).
16511       sed -n \
16512         "s/'/'\\\\''/g;
16513           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16514       ;;
16515     *)
16516       # `set' quotes correctly as required by POSIX, so do not add quotes.
16517       sed -n \
16518         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16519       ;;
16520     esac;
16521 } |
16522   sed '
16523      t clear
16524      : clear
16525      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16526      t end
16527      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16528      : end' >>confcache
16529 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16530   if test -w $cache_file; then
16531     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16532     cat confcache >$cache_file
16533   else
16534     echo "not updating unwritable cache $cache_file"
16535   fi
16536 fi
16537 rm -f confcache
16538
16539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16540 # Let make expand exec_prefix.
16541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16542
16543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16545 # trailing colons and then remove the whole line if VPATH becomes empty
16546 # (actually we leave an empty line to preserve line numbers).
16547 if test "x$srcdir" = x.; then
16548   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16549 s/:*\$(srcdir):*/:/;
16550 s/:*\${srcdir}:*/:/;
16551 s/:*@srcdir@:*/:/;
16552 s/^\([^=]*=[     ]*\):*/\1/;
16553 s/:*$//;
16554 s/^[^=]*=[       ]*$//;
16555 }'
16556 fi
16557
16558 DEFS=-DHAVE_CONFIG_H
16559
16560 ac_libobjs=
16561 ac_ltlibobjs=
16562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16563   # 1. Remove the extension, and $U if already installed.
16564   ac_i=`echo "$ac_i" |
16565          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16566   # 2. Add them.
16567   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16568   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16569 done
16570 LIBOBJS=$ac_libobjs
16571
16572 LTLIBOBJS=$ac_ltlibobjs
16573
16574
16575
16576 : ${CONFIG_STATUS=./config.status}
16577 ac_clean_files_save=$ac_clean_files
16578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16581 cat >$CONFIG_STATUS <<_ACEOF
16582 #! $SHELL
16583 # Generated by $as_me.
16584 # Run this file to recreate the current configuration.
16585 # Compiler output produced by configure, useful for debugging
16586 # configure, is in config.log if it exists.
16587
16588 debug=false
16589 ac_cs_recheck=false
16590 ac_cs_silent=false
16591 SHELL=\${CONFIG_SHELL-$SHELL}
16592 _ACEOF
16593
16594 cat >>$CONFIG_STATUS <<\_ACEOF
16595 ## --------------------- ##
16596 ## M4sh Initialization.  ##
16597 ## --------------------- ##
16598
16599 # Be Bourne compatible
16600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16601   emulate sh
16602   NULLCMD=:
16603   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16604   # is contrary to our usage.  Disable this feature.
16605   alias -g '${1+"$@"}'='"$@"'
16606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16607   set -o posix
16608 fi
16609 DUALCASE=1; export DUALCASE # for MKS sh
16610
16611 # Support unset when possible.
16612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16613   as_unset=unset
16614 else
16615   as_unset=false
16616 fi
16617
16618
16619 # Work around bugs in pre-3.0 UWIN ksh.
16620 $as_unset ENV MAIL MAILPATH
16621 PS1='$ '
16622 PS2='> '
16623 PS4='+ '
16624
16625 # NLS nuisances.
16626 for as_var in \
16627   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16628   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16629   LC_TELEPHONE LC_TIME
16630 do
16631   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16632     eval $as_var=C; export $as_var
16633   else
16634     $as_unset $as_var
16635   fi
16636 done
16637
16638 # Required to use basename.
16639 if expr a : '\(a\)' >/dev/null 2>&1; then
16640   as_expr=expr
16641 else
16642   as_expr=false
16643 fi
16644
16645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16646   as_basename=basename
16647 else
16648   as_basename=false
16649 fi
16650
16651
16652 # Name of the executable.
16653 as_me=`$as_basename "$0" ||
16654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16655          X"$0" : 'X\(//\)$' \| \
16656          X"$0" : 'X\(/\)$' \| \
16657          .     : '\(.\)' 2>/dev/null ||
16658 echo X/"$0" |
16659     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16660           /^X\/\(\/\/\)$/{ s//\1/; q; }
16661           /^X\/\(\/\).*/{ s//\1/; q; }
16662           s/.*/./; q'`
16663
16664
16665 # PATH needs CR, and LINENO needs CR and PATH.
16666 # Avoid depending upon Character Ranges.
16667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16670 as_cr_digits='0123456789'
16671 as_cr_alnum=$as_cr_Letters$as_cr_digits
16672
16673 # The user is always right.
16674 if test "${PATH_SEPARATOR+set}" != set; then
16675   echo "#! /bin/sh" >conf$$.sh
16676   echo  "exit 0"   >>conf$$.sh
16677   chmod +x conf$$.sh
16678   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16679     PATH_SEPARATOR=';'
16680   else
16681     PATH_SEPARATOR=:
16682   fi
16683   rm -f conf$$.sh
16684 fi
16685
16686
16687   as_lineno_1=$LINENO
16688   as_lineno_2=$LINENO
16689   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16690   test "x$as_lineno_1" != "x$as_lineno_2" &&
16691   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16692   # Find who we are.  Look in the path if we contain no path at all
16693   # relative or not.
16694   case $0 in
16695     *[\\/]* ) as_myself=$0 ;;
16696     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697 for as_dir in $PATH
16698 do
16699   IFS=$as_save_IFS
16700   test -z "$as_dir" && as_dir=.
16701   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16702 done
16703
16704        ;;
16705   esac
16706   # We did not find ourselves, most probably we were run as `sh COMMAND'
16707   # in which case we are not to be found in the path.
16708   if test "x$as_myself" = x; then
16709     as_myself=$0
16710   fi
16711   if test ! -f "$as_myself"; then
16712     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16714    { (exit 1); exit 1; }; }
16715   fi
16716   case $CONFIG_SHELL in
16717   '')
16718     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16720 do
16721   IFS=$as_save_IFS
16722   test -z "$as_dir" && as_dir=.
16723   for as_base in sh bash ksh sh5; do
16724          case $as_dir in
16725          /*)
16726            if ("$as_dir/$as_base" -c '
16727   as_lineno_1=$LINENO
16728   as_lineno_2=$LINENO
16729   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16730   test "x$as_lineno_1" != "x$as_lineno_2" &&
16731   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16732              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16733              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16734              CONFIG_SHELL=$as_dir/$as_base
16735              export CONFIG_SHELL
16736              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16737            fi;;
16738          esac
16739        done
16740 done
16741 ;;
16742   esac
16743
16744   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16745   # uniformly replaced by the line number.  The first 'sed' inserts a
16746   # line-number line before each line; the second 'sed' does the real
16747   # work.  The second script uses 'N' to pair each line-number line
16748   # with the numbered line, and appends trailing '-' during
16749   # substitution so that $LINENO is not a special case at line end.
16750   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16751   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16752   sed '=' <$as_myself |
16753     sed '
16754       N
16755       s,$,-,
16756       : loop
16757       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16758       t loop
16759       s,-$,,
16760       s,^['$as_cr_digits']*\n,,
16761     ' >$as_me.lineno &&
16762   chmod +x $as_me.lineno ||
16763     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16765    { (exit 1); exit 1; }; }
16766
16767   # Don't try to exec as it changes $[0], causing all sort of problems
16768   # (the dirname of $[0] is not the place where we might find the
16769   # original and so on.  Autoconf is especially sensible to this).
16770   . ./$as_me.lineno
16771   # Exit status is that of the last command.
16772   exit
16773 }
16774
16775
16776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16777   *c*,-n*) ECHO_N= ECHO_C='
16778 ' ECHO_T='      ' ;;
16779   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16780   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16781 esac
16782
16783 if expr a : '\(a\)' >/dev/null 2>&1; then
16784   as_expr=expr
16785 else
16786   as_expr=false
16787 fi
16788
16789 rm -f conf$$ conf$$.exe conf$$.file
16790 echo >conf$$.file
16791 if ln -s conf$$.file conf$$ 2>/dev/null; then
16792   # We could just check for DJGPP; but this test a) works b) is more generic
16793   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16794   if test -f conf$$.exe; then
16795     # Don't use ln at all; we don't have any links
16796     as_ln_s='cp -p'
16797   else
16798     as_ln_s='ln -s'
16799   fi
16800 elif ln conf$$.file conf$$ 2>/dev/null; then
16801   as_ln_s=ln
16802 else
16803   as_ln_s='cp -p'
16804 fi
16805 rm -f conf$$ conf$$.exe conf$$.file
16806
16807 if mkdir -p . 2>/dev/null; then
16808   as_mkdir_p=:
16809 else
16810   test -d ./-p && rmdir ./-p
16811   as_mkdir_p=false
16812 fi
16813
16814 as_executable_p="test -f"
16815
16816 # Sed expression to map a string onto a valid CPP name.
16817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16818
16819 # Sed expression to map a string onto a valid variable name.
16820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16821
16822
16823 # IFS
16824 # We need space, tab and new line, in precisely that order.
16825 as_nl='
16826 '
16827 IFS="   $as_nl"
16828
16829 # CDPATH.
16830 $as_unset CDPATH
16831
16832 exec 6>&1
16833
16834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16835 # report actual input values of CONFIG_FILES etc. instead of their
16836 # values after options handling.  Logging --version etc. is OK.
16837 exec 5>>config.log
16838 {
16839   echo
16840   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16841 ## Running $as_me. ##
16842 _ASBOX
16843 } >&5
16844 cat >&5 <<_CSEOF
16845
16846 This file was extended by $as_me, which was
16847 generated by GNU Autoconf 2.59.  Invocation command line was
16848
16849   CONFIG_FILES    = $CONFIG_FILES
16850   CONFIG_HEADERS  = $CONFIG_HEADERS
16851   CONFIG_LINKS    = $CONFIG_LINKS
16852   CONFIG_COMMANDS = $CONFIG_COMMANDS
16853   $ $0 $@
16854
16855 _CSEOF
16856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16857 echo >&5
16858 _ACEOF
16859
16860 # Files that config.status was made for.
16861 if test -n "$ac_config_files"; then
16862   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16863 fi
16864
16865 if test -n "$ac_config_headers"; then
16866   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16867 fi
16868
16869 if test -n "$ac_config_links"; then
16870   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16871 fi
16872
16873 if test -n "$ac_config_commands"; then
16874   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16875 fi
16876
16877 cat >>$CONFIG_STATUS <<\_ACEOF
16878
16879 ac_cs_usage="\
16880 \`$as_me' instantiates files from templates according to the
16881 current configuration.
16882
16883 Usage: $0 [OPTIONS] [FILE]...
16884
16885   -h, --help       print this help, then exit
16886   -V, --version    print version number, then exit
16887   -q, --quiet      do not print progress messages
16888   -d, --debug      don't remove temporary files
16889       --recheck    update $as_me by reconfiguring in the same conditions
16890   --file=FILE[:TEMPLATE]
16891                    instantiate the configuration file FILE
16892   --header=FILE[:TEMPLATE]
16893                    instantiate the configuration header FILE
16894
16895 Configuration files:
16896 $config_files
16897
16898 Configuration headers:
16899 $config_headers
16900
16901 Configuration commands:
16902 $config_commands
16903
16904 Report bugs to <bug-autoconf@gnu.org>."
16905 _ACEOF
16906
16907 cat >>$CONFIG_STATUS <<_ACEOF
16908 ac_cs_version="\\
16909 config.status
16910 configured by $0, generated by GNU Autoconf 2.59,
16911   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16912
16913 Copyright (C) 2003 Free Software Foundation, Inc.
16914 This config.status script is free software; the Free Software Foundation
16915 gives unlimited permission to copy, distribute and modify it."
16916 srcdir=$srcdir
16917 _ACEOF
16918
16919 cat >>$CONFIG_STATUS <<\_ACEOF
16920 # If no file are specified by the user, then we need to provide default
16921 # value.  By we need to know if files were specified by the user.
16922 ac_need_defaults=:
16923 while test $# != 0
16924 do
16925   case $1 in
16926   --*=*)
16927     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16928     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16929     ac_shift=:
16930     ;;
16931   -*)
16932     ac_option=$1
16933     ac_optarg=$2
16934     ac_shift=shift
16935     ;;
16936   *) # This is not an option, so the user has probably given explicit
16937      # arguments.
16938      ac_option=$1
16939      ac_need_defaults=false;;
16940   esac
16941
16942   case $ac_option in
16943   # Handling of the options.
16944 _ACEOF
16945 cat >>$CONFIG_STATUS <<\_ACEOF
16946   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16947     ac_cs_recheck=: ;;
16948   --version | --vers* | -V )
16949     echo "$ac_cs_version"; exit 0 ;;
16950   --he | --h)
16951     # Conflict between --help and --header
16952     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16953 Try \`$0 --help' for more information." >&5
16954 echo "$as_me: error: ambiguous option: $1
16955 Try \`$0 --help' for more information." >&2;}
16956    { (exit 1); exit 1; }; };;
16957   --help | --hel | -h )
16958     echo "$ac_cs_usage"; exit 0 ;;
16959   --debug | --d* | -d )
16960     debug=: ;;
16961   --file | --fil | --fi | --f )
16962     $ac_shift
16963     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16964     ac_need_defaults=false;;
16965   --header | --heade | --head | --hea )
16966     $ac_shift
16967     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16968     ac_need_defaults=false;;
16969   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16970   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16971     ac_cs_silent=: ;;
16972
16973   # This is an error.
16974   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16975 Try \`$0 --help' for more information." >&5
16976 echo "$as_me: error: unrecognized option: $1
16977 Try \`$0 --help' for more information." >&2;}
16978    { (exit 1); exit 1; }; } ;;
16979
16980   *) ac_config_targets="$ac_config_targets $1" ;;
16981
16982   esac
16983   shift
16984 done
16985
16986 ac_configure_extra_args=
16987
16988 if $ac_cs_silent; then
16989   exec 6>/dev/null
16990   ac_configure_extra_args="$ac_configure_extra_args --silent"
16991 fi
16992
16993 _ACEOF
16994 cat >>$CONFIG_STATUS <<_ACEOF
16995 if \$ac_cs_recheck; then
16996   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16997   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16998 fi
16999
17000 _ACEOF
17001
17002 cat >>$CONFIG_STATUS <<_ACEOF
17003 #
17004 # INIT-COMMANDS section.
17005 #
17006
17007 subdirs='$subdirs'
17008
17009 _ACEOF
17010
17011
17012
17013 cat >>$CONFIG_STATUS <<\_ACEOF
17014 for ac_config_target in $ac_config_targets
17015 do
17016   case "$ac_config_target" in
17017   # Handling of arguments.
17018   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17019   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17020   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17021   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17023    { (exit 1); exit 1; }; };;
17024   esac
17025 done
17026
17027 # If the user did not use the arguments to specify the items to instantiate,
17028 # then the envvar interface is used.  Set only those that are not.
17029 # We use the long form for the default assignment because of an extremely
17030 # bizarre bug on SunOS 4.1.3.
17031 if $ac_need_defaults; then
17032   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17033   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17034   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17035 fi
17036
17037 # Have a temporary directory for convenience.  Make it in the build tree
17038 # simply because there is no reason to put it here, and in addition,
17039 # creating and moving files from /tmp can sometimes cause problems.
17040 # Create a temporary directory, and hook for its removal unless debugging.
17041 $debug ||
17042 {
17043   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17044   trap '{ (exit 1); exit 1; }' 1 2 13 15
17045 }
17046
17047 # Create a (secure) tmp directory for tmp files.
17048
17049 {
17050   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17051   test -n "$tmp" && test -d "$tmp"
17052 }  ||
17053 {
17054   tmp=./confstat$$-$RANDOM
17055   (umask 077 && mkdir $tmp)
17056 } ||
17057 {
17058    echo "$me: cannot create a temporary directory in ." >&2
17059    { (exit 1); exit 1; }
17060 }
17061
17062 _ACEOF
17063
17064 cat >>$CONFIG_STATUS <<_ACEOF
17065
17066 #
17067 # CONFIG_FILES section.
17068 #
17069
17070 # No need to generate the scripts if there are no CONFIG_FILES.
17071 # This happens for instance when ./config.status config.h
17072 if test -n "\$CONFIG_FILES"; then
17073   # Protect against being on the right side of a sed subst in config.status.
17074   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17075    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17076 s,@SHELL@,$SHELL,;t t
17077 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17078 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17079 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17080 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17081 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17082 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17083 s,@exec_prefix@,$exec_prefix,;t t
17084 s,@prefix@,$prefix,;t t
17085 s,@program_transform_name@,$program_transform_name,;t t
17086 s,@bindir@,$bindir,;t t
17087 s,@sbindir@,$sbindir,;t t
17088 s,@libexecdir@,$libexecdir,;t t
17089 s,@datadir@,$datadir,;t t
17090 s,@sysconfdir@,$sysconfdir,;t t
17091 s,@sharedstatedir@,$sharedstatedir,;t t
17092 s,@localstatedir@,$localstatedir,;t t
17093 s,@libdir@,$libdir,;t t
17094 s,@includedir@,$includedir,;t t
17095 s,@oldincludedir@,$oldincludedir,;t t
17096 s,@infodir@,$infodir,;t t
17097 s,@mandir@,$mandir,;t t
17098 s,@build_alias@,$build_alias,;t t
17099 s,@host_alias@,$host_alias,;t t
17100 s,@target_alias@,$target_alias,;t t
17101 s,@DEFS@,$DEFS,;t t
17102 s,@ECHO_C@,$ECHO_C,;t t
17103 s,@ECHO_N@,$ECHO_N,;t t
17104 s,@ECHO_T@,$ECHO_T,;t t
17105 s,@LIBS@,$LIBS,;t t
17106 s,@build@,$build,;t t
17107 s,@build_cpu@,$build_cpu,;t t
17108 s,@build_vendor@,$build_vendor,;t t
17109 s,@build_os@,$build_os,;t t
17110 s,@host@,$host,;t t
17111 s,@host_cpu@,$host_cpu,;t t
17112 s,@host_vendor@,$host_vendor,;t t
17113 s,@host_os@,$host_os,;t t
17114 s,@target@,$target,;t t
17115 s,@target_cpu@,$target_cpu,;t t
17116 s,@target_vendor@,$target_vendor,;t t
17117 s,@target_os@,$target_os,;t t
17118 s,@target_noncanonical@,$target_noncanonical,;t t
17119 s,@build_subdir@,$build_subdir,;t t
17120 s,@host_subdir@,$host_subdir,;t t
17121 s,@target_subdir@,$target_subdir,;t t
17122 s,@GENINSRC@,$GENINSRC,;t t
17123 s,@CC@,$CC,;t t
17124 s,@CFLAGS@,$CFLAGS,;t t
17125 s,@LDFLAGS@,$LDFLAGS,;t t
17126 s,@CPPFLAGS@,$CPPFLAGS,;t t
17127 s,@ac_ct_CC@,$ac_ct_CC,;t t
17128 s,@EXEEXT@,$EXEEXT,;t t
17129 s,@OBJEXT@,$OBJEXT,;t t
17130 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17131 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17132 s,@CPP@,$CPP,;t t
17133 s,@EGREP@,$EGREP,;t t
17134 s,@strict1_warn@,$strict1_warn,;t t
17135 s,@warn_cflags@,$warn_cflags,;t t
17136 s,@WERROR@,$WERROR,;t t
17137 s,@nocommon_flag@,$nocommon_flag,;t t
17138 s,@TREEBROWSER@,$TREEBROWSER,;t t
17139 s,@valgrind_path@,$valgrind_path,;t t
17140 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17141 s,@valgrind_command@,$valgrind_command,;t t
17142 s,@coverage_flags@,$coverage_flags,;t t
17143 s,@enable_multilib@,$enable_multilib,;t t
17144 s,@enable_decimal_float@,$enable_decimal_float,;t t
17145 s,@enable_shared@,$enable_shared,;t t
17146 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17147 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17148 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17149 s,@onestep@,$onestep,;t t
17150 s,@SET_MAKE@,$SET_MAKE,;t t
17151 s,@AWK@,$AWK,;t t
17152 s,@LN_S@,$LN_S,;t t
17153 s,@LN@,$LN,;t t
17154 s,@RANLIB@,$RANLIB,;t t
17155 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17156 s,@ranlib_flags@,$ranlib_flags,;t t
17157 s,@INSTALL@,$INSTALL,;t t
17158 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17159 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17160 s,@make_compare_target@,$make_compare_target,;t t
17161 s,@have_mktemp_command@,$have_mktemp_command,;t t
17162 s,@MAKEINFO@,$MAKEINFO,;t t
17163 s,@BUILD_INFO@,$BUILD_INFO,;t t
17164 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17165 s,@FLEX@,$FLEX,;t t
17166 s,@BISON@,$BISON,;t t
17167 s,@NM@,$NM,;t t
17168 s,@AR@,$AR,;t t
17169 s,@stage1_cflags@,$stage1_cflags,;t t
17170 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17171 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17172 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17173 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17174 s,@LIBICONV@,$LIBICONV,;t t
17175 s,@LTLIBICONV@,$LTLIBICONV,;t t
17176 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17177 s,@manext@,$manext,;t t
17178 s,@objext@,$objext,;t t
17179 s,@gthread_flags@,$gthread_flags,;t t
17180 s,@extra_modes_file@,$extra_modes_file,;t t
17181 s,@extra_opt_files@,$extra_opt_files,;t t
17182 s,@USE_NLS@,$USE_NLS,;t t
17183 s,@LIBINTL@,$LIBINTL,;t t
17184 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17185 s,@INCINTL@,$INCINTL,;t t
17186 s,@XGETTEXT@,$XGETTEXT,;t t
17187 s,@GMSGFMT@,$GMSGFMT,;t t
17188 s,@POSUB@,$POSUB,;t t
17189 s,@CATALOGS@,$CATALOGS,;t t
17190 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17191 s,@CROSS@,$CROSS,;t t
17192 s,@ALL@,$ALL,;t t
17193 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17194 s,@inhibit_libc@,$inhibit_libc,;t t
17195 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17196 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17197 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17198 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17199 s,@collect2@,$collect2,;t t
17200 s,@gcc_cv_as@,$gcc_cv_as,;t t
17201 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17202 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17203 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17204 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17205 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17206 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17207 s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t
17208 s,@libgcc_visibility@,$libgcc_visibility,;t t
17209 s,@GGC@,$GGC,;t t
17210 s,@zlibdir@,$zlibdir,;t t
17211 s,@zlibinc@,$zlibinc,;t t
17212 s,@MAINT@,$MAINT,;t t
17213 s,@gcc_tooldir@,$gcc_tooldir,;t t
17214 s,@dollar@,$dollar,;t t
17215 s,@slibdir@,$slibdir,;t t
17216 s,@objdir@,$objdir,;t t
17217 s,@subdirs@,$subdirs,;t t
17218 s,@srcdir@,$srcdir,;t t
17219 s,@all_boot_languages@,$all_boot_languages,;t t
17220 s,@all_compilers@,$all_compilers,;t t
17221 s,@all_gtfiles@,$all_gtfiles,;t t
17222 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17223 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17224 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17225 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17226 s,@all_languages@,$all_languages,;t t
17227 s,@all_stagestuff@,$all_stagestuff,;t t
17228 s,@build_exeext@,$build_exeext,;t t
17229 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17230 s,@build_xm_file_list@,$build_xm_file_list,;t t
17231 s,@build_xm_include_list@,$build_xm_include_list,;t t
17232 s,@build_xm_defines@,$build_xm_defines,;t t
17233 s,@check_languages@,$check_languages,;t t
17234 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17235 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17236 s,@cpp_install_dir@,$cpp_install_dir,;t t
17237 s,@xmake_file@,$xmake_file,;t t
17238 s,@tmake_file@,$tmake_file,;t t
17239 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17240 s,@extra_headers_list@,$extra_headers_list,;t t
17241 s,@extra_objs@,$extra_objs,;t t
17242 s,@extra_parts@,$extra_parts,;t t
17243 s,@extra_passes@,$extra_passes,;t t
17244 s,@extra_programs@,$extra_programs,;t t
17245 s,@float_h_file@,$float_h_file,;t t
17246 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17247 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17248 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17249 s,@host_exeext@,$host_exeext,;t t
17250 s,@host_xm_file_list@,$host_xm_file_list,;t t
17251 s,@host_xm_include_list@,$host_xm_include_list,;t t
17252 s,@host_xm_defines@,$host_xm_defines,;t t
17253 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17254 s,@install@,$install,;t t
17255 s,@lang_opt_files@,$lang_opt_files,;t t
17256 s,@lang_specs_files@,$lang_specs_files,;t t
17257 s,@lang_tree_files@,$lang_tree_files,;t t
17258 s,@local_prefix@,$local_prefix,;t t
17259 s,@md_file@,$md_file,;t t
17260 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17261 s,@out_file@,$out_file,;t t
17262 s,@out_object_file@,$out_object_file,;t t
17263 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17264 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17265 s,@thread_file@,$thread_file,;t t
17266 s,@tm_file_list@,$tm_file_list,;t t
17267 s,@tm_include_list@,$tm_include_list,;t t
17268 s,@tm_defines@,$tm_defines,;t t
17269 s,@tm_p_file_list@,$tm_p_file_list,;t t
17270 s,@tm_p_include_list@,$tm_p_include_list,;t t
17271 s,@xm_file_list@,$xm_file_list,;t t
17272 s,@xm_include_list@,$xm_include_list,;t t
17273 s,@xm_defines@,$xm_defines,;t t
17274 s,@c_target_objs@,$c_target_objs,;t t
17275 s,@cxx_target_objs@,$cxx_target_objs,;t t
17276 s,@target_cpu_default@,$target_cpu_default,;t t
17277 s,@GMPLIBS@,$GMPLIBS,;t t
17278 s,@GMPINC@,$GMPINC,;t t
17279 s,@LIBOBJS@,$LIBOBJS,;t t
17280 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17281 /@language_hooks@/r $language_hooks
17282 s,@language_hooks@,,;t t
17283 CEOF
17284
17285 _ACEOF
17286
17287   cat >>$CONFIG_STATUS <<\_ACEOF
17288   # Split the substitutions into bite-sized pieces for seds with
17289   # small command number limits, like on Digital OSF/1 and HP-UX.
17290   ac_max_sed_lines=48
17291   ac_sed_frag=1 # Number of current file.
17292   ac_beg=1 # First line for current file.
17293   ac_end=$ac_max_sed_lines # Line after last line for current file.
17294   ac_more_lines=:
17295   ac_sed_cmds=
17296   while $ac_more_lines; do
17297     if test $ac_beg -gt 1; then
17298       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17299     else
17300       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17301     fi
17302     if test ! -s $tmp/subs.frag; then
17303       ac_more_lines=false
17304     else
17305       # The purpose of the label and of the branching condition is to
17306       # speed up the sed processing (if there are no `@' at all, there
17307       # is no need to browse any of the substitutions).
17308       # These are the two extra sed commands mentioned above.
17309       (echo ':t
17310   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17311       if test -z "$ac_sed_cmds"; then
17312         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17313       else
17314         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17315       fi
17316       ac_sed_frag=`expr $ac_sed_frag + 1`
17317       ac_beg=$ac_end
17318       ac_end=`expr $ac_end + $ac_max_sed_lines`
17319     fi
17320   done
17321   if test -z "$ac_sed_cmds"; then
17322     ac_sed_cmds=cat
17323   fi
17324 fi # test -n "$CONFIG_FILES"
17325
17326 _ACEOF
17327 cat >>$CONFIG_STATUS <<\_ACEOF
17328 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17329   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17330   case $ac_file in
17331   - | *:- | *:-:* ) # input from stdin
17332         cat >$tmp/stdin
17333         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17334         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17335   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17336         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17337   * )   ac_file_in=$ac_file.in ;;
17338   esac
17339
17340   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17341   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343          X"$ac_file" : 'X\(//\)[^/]' \| \
17344          X"$ac_file" : 'X\(//\)$' \| \
17345          X"$ac_file" : 'X\(/\)' \| \
17346          .     : '\(.\)' 2>/dev/null ||
17347 echo X"$ac_file" |
17348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17350           /^X\(\/\/\)$/{ s//\1/; q; }
17351           /^X\(\/\).*/{ s//\1/; q; }
17352           s/.*/./; q'`
17353   { if $as_mkdir_p; then
17354     mkdir -p "$ac_dir"
17355   else
17356     as_dir="$ac_dir"
17357     as_dirs=
17358     while test ! -d "$as_dir"; do
17359       as_dirs="$as_dir $as_dirs"
17360       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362          X"$as_dir" : 'X\(//\)[^/]' \| \
17363          X"$as_dir" : 'X\(//\)$' \| \
17364          X"$as_dir" : 'X\(/\)' \| \
17365          .     : '\(.\)' 2>/dev/null ||
17366 echo X"$as_dir" |
17367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17369           /^X\(\/\/\)$/{ s//\1/; q; }
17370           /^X\(\/\).*/{ s//\1/; q; }
17371           s/.*/./; q'`
17372     done
17373     test ! -n "$as_dirs" || mkdir $as_dirs
17374   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17375 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17376    { (exit 1); exit 1; }; }; }
17377
17378   ac_builddir=.
17379
17380 if test "$ac_dir" != .; then
17381   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17382   # A "../" for each directory in $ac_dir_suffix.
17383   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17384 else
17385   ac_dir_suffix= ac_top_builddir=
17386 fi
17387
17388 case $srcdir in
17389   .)  # No --srcdir option.  We are building in place.
17390     ac_srcdir=.
17391     if test -z "$ac_top_builddir"; then
17392        ac_top_srcdir=.
17393     else
17394        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17395     fi ;;
17396   [\\/]* | ?:[\\/]* )  # Absolute path.
17397     ac_srcdir=$srcdir$ac_dir_suffix;
17398     ac_top_srcdir=$srcdir ;;
17399   *) # Relative path.
17400     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17401     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17402 esac
17403
17404 # Do not use `cd foo && pwd` to compute absolute paths, because
17405 # the directories may not exist.
17406 case `pwd` in
17407 .) ac_abs_builddir="$ac_dir";;
17408 *)
17409   case "$ac_dir" in
17410   .) ac_abs_builddir=`pwd`;;
17411   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17412   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17413   esac;;
17414 esac
17415 case $ac_abs_builddir in
17416 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17417 *)
17418   case ${ac_top_builddir}. in
17419   .) ac_abs_top_builddir=$ac_abs_builddir;;
17420   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17421   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17422   esac;;
17423 esac
17424 case $ac_abs_builddir in
17425 .) ac_abs_srcdir=$ac_srcdir;;
17426 *)
17427   case $ac_srcdir in
17428   .) ac_abs_srcdir=$ac_abs_builddir;;
17429   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17430   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17431   esac;;
17432 esac
17433 case $ac_abs_builddir in
17434 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17435 *)
17436   case $ac_top_srcdir in
17437   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17438   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17439   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17440   esac;;
17441 esac
17442
17443
17444
17445   # Let's still pretend it is `configure' which instantiates (i.e., don't
17446   # use $as_me), people would be surprised to read:
17447   #    /* config.h.  Generated by config.status.  */
17448   if test x"$ac_file" = x-; then
17449     configure_input=
17450   else
17451     configure_input="$ac_file.  "
17452   fi
17453   configure_input=$configure_input"Generated from `echo $ac_file_in |
17454                                      sed 's,.*/,,'` by configure."
17455
17456   # First look for the input files in the build tree, otherwise in the
17457   # src tree.
17458   ac_file_inputs=`IFS=:
17459     for f in $ac_file_in; do
17460       case $f in
17461       -) echo $tmp/stdin ;;
17462       [\\/$]*)
17463          # Absolute (can't be DOS-style, as IFS=:)
17464          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17465 echo "$as_me: error: cannot find input file: $f" >&2;}
17466    { (exit 1); exit 1; }; }
17467          echo "$f";;
17468       *) # Relative
17469          if test -f "$f"; then
17470            # Build tree
17471            echo "$f"
17472          elif test -f "$srcdir/$f"; then
17473            # Source tree
17474            echo "$srcdir/$f"
17475          else
17476            # /dev/null tree
17477            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17478 echo "$as_me: error: cannot find input file: $f" >&2;}
17479    { (exit 1); exit 1; }; }
17480          fi;;
17481       esac
17482     done` || { (exit 1); exit 1; }
17483
17484   if test x"$ac_file" != x-; then
17485     { echo "$as_me:$LINENO: creating $ac_file" >&5
17486 echo "$as_me: creating $ac_file" >&6;}
17487     rm -f "$ac_file"
17488   fi
17489 _ACEOF
17490 cat >>$CONFIG_STATUS <<_ACEOF
17491   sed "$ac_vpsub
17492 $extrasub
17493 _ACEOF
17494 cat >>$CONFIG_STATUS <<\_ACEOF
17495 :t
17496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17497 s,@configure_input@,$configure_input,;t t
17498 s,@srcdir@,$ac_srcdir,;t t
17499 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17500 s,@top_srcdir@,$ac_top_srcdir,;t t
17501 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17502 s,@builddir@,$ac_builddir,;t t
17503 s,@abs_builddir@,$ac_abs_builddir,;t t
17504 s,@top_builddir@,$ac_top_builddir,;t t
17505 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17507   rm -f $tmp/stdin
17508   if test x"$ac_file" != x-; then
17509     mv $tmp/out $ac_file
17510   else
17511     cat $tmp/out
17512     rm -f $tmp/out
17513   fi
17514
17515 done
17516 _ACEOF
17517 cat >>$CONFIG_STATUS <<\_ACEOF
17518
17519 #
17520 # CONFIG_HEADER section.
17521 #
17522
17523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17525 #
17526 # ac_d sets the value in "#define NAME VALUE" lines.
17527 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17528 ac_dB='[         ].*$,\1#\2'
17529 ac_dC=' '
17530 ac_dD=',;t'
17531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17532 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17533 ac_uB='$,\1#\2define\3'
17534 ac_uC=' '
17535 ac_uD=',;t'
17536
17537 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17538   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17539   case $ac_file in
17540   - | *:- | *:-:* ) # input from stdin
17541         cat >$tmp/stdin
17542         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17544   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17545         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17546   * )   ac_file_in=$ac_file.in ;;
17547   esac
17548
17549   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17550 echo "$as_me: creating $ac_file" >&6;}
17551
17552   # First look for the input files in the build tree, otherwise in the
17553   # src tree.
17554   ac_file_inputs=`IFS=:
17555     for f in $ac_file_in; do
17556       case $f in
17557       -) echo $tmp/stdin ;;
17558       [\\/$]*)
17559          # Absolute (can't be DOS-style, as IFS=:)
17560          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17561 echo "$as_me: error: cannot find input file: $f" >&2;}
17562    { (exit 1); exit 1; }; }
17563          # Do quote $f, to prevent DOS paths from being IFS'd.
17564          echo "$f";;
17565       *) # Relative
17566          if test -f "$f"; then
17567            # Build tree
17568            echo "$f"
17569          elif test -f "$srcdir/$f"; then
17570            # Source tree
17571            echo "$srcdir/$f"
17572          else
17573            # /dev/null tree
17574            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17575 echo "$as_me: error: cannot find input file: $f" >&2;}
17576    { (exit 1); exit 1; }; }
17577          fi;;
17578       esac
17579     done` || { (exit 1); exit 1; }
17580   # Remove the trailing spaces.
17581   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17582
17583 _ACEOF
17584
17585 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17586 # `conftest.undefs', that substitutes the proper values into
17587 # config.h.in to produce config.h.  The first handles `#define'
17588 # templates, and the second `#undef' templates.
17589 # And first: Protect against being on the right side of a sed subst in
17590 # config.status.  Protect against being in an unquoted here document
17591 # in config.status.
17592 rm -f conftest.defines conftest.undefs
17593 # Using a here document instead of a string reduces the quoting nightmare.
17594 # Putting comments in sed scripts is not portable.
17595 #
17596 # `end' is used to avoid that the second main sed command (meant for
17597 # 0-ary CPP macros) applies to n-ary macro definitions.
17598 # See the Autoconf documentation for `clear'.
17599 cat >confdef2sed.sed <<\_ACEOF
17600 s/[\\&,]/\\&/g
17601 s,[\\$`],\\&,g
17602 t clear
17603 : clear
17604 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17605 t end
17606 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17607 : end
17608 _ACEOF
17609 # If some macros were called several times there might be several times
17610 # the same #defines, which is useless.  Nevertheless, we may not want to
17611 # sort them, since we want the *last* AC-DEFINE to be honored.
17612 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17613 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17614 rm -f confdef2sed.sed
17615
17616 # This sed command replaces #undef with comments.  This is necessary, for
17617 # example, in the case of _POSIX_SOURCE, which is predefined and required
17618 # on some systems where configure will not decide to define it.
17619 cat >>conftest.undefs <<\_ACEOF
17620 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17621 _ACEOF
17622
17623 # Break up conftest.defines because some shells have a limit on the size
17624 # of here documents, and old seds have small limits too (100 cmds).
17625 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17626 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17627 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17628 echo '  :' >>$CONFIG_STATUS
17629 rm -f conftest.tail
17630 while grep . conftest.defines >/dev/null
17631 do
17632   # Write a limited-size here document to $tmp/defines.sed.
17633   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17634   # Speed up: don't consider the non `#define' lines.
17635   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17636   # Work around the forget-to-reset-the-flag bug.
17637   echo 't clr' >>$CONFIG_STATUS
17638   echo ': clr' >>$CONFIG_STATUS
17639   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17640   echo 'CEOF
17641   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17642   rm -f $tmp/in
17643   mv $tmp/out $tmp/in
17644 ' >>$CONFIG_STATUS
17645   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17646   rm -f conftest.defines
17647   mv conftest.tail conftest.defines
17648 done
17649 rm -f conftest.defines
17650 echo '  fi # grep' >>$CONFIG_STATUS
17651 echo >>$CONFIG_STATUS
17652
17653 # Break up conftest.undefs because some shells have a limit on the size
17654 # of here documents, and old seds have small limits too (100 cmds).
17655 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17656 rm -f conftest.tail
17657 while grep . conftest.undefs >/dev/null
17658 do
17659   # Write a limited-size here document to $tmp/undefs.sed.
17660   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17661   # Speed up: don't consider the non `#undef'
17662   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17663   # Work around the forget-to-reset-the-flag bug.
17664   echo 't clr' >>$CONFIG_STATUS
17665   echo ': clr' >>$CONFIG_STATUS
17666   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17667   echo 'CEOF
17668   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17669   rm -f $tmp/in
17670   mv $tmp/out $tmp/in
17671 ' >>$CONFIG_STATUS
17672   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17673   rm -f conftest.undefs
17674   mv conftest.tail conftest.undefs
17675 done
17676 rm -f conftest.undefs
17677
17678 cat >>$CONFIG_STATUS <<\_ACEOF
17679   # Let's still pretend it is `configure' which instantiates (i.e., don't
17680   # use $as_me), people would be surprised to read:
17681   #    /* config.h.  Generated by config.status.  */
17682   if test x"$ac_file" = x-; then
17683     echo "/* Generated by configure.  */" >$tmp/config.h
17684   else
17685     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17686   fi
17687   cat $tmp/in >>$tmp/config.h
17688   rm -f $tmp/in
17689   if test x"$ac_file" != x-; then
17690     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17691       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17692 echo "$as_me: $ac_file is unchanged" >&6;}
17693     else
17694       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17696          X"$ac_file" : 'X\(//\)[^/]' \| \
17697          X"$ac_file" : 'X\(//\)$' \| \
17698          X"$ac_file" : 'X\(/\)' \| \
17699          .     : '\(.\)' 2>/dev/null ||
17700 echo X"$ac_file" |
17701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17703           /^X\(\/\/\)$/{ s//\1/; q; }
17704           /^X\(\/\).*/{ s//\1/; q; }
17705           s/.*/./; q'`
17706       { if $as_mkdir_p; then
17707     mkdir -p "$ac_dir"
17708   else
17709     as_dir="$ac_dir"
17710     as_dirs=
17711     while test ! -d "$as_dir"; do
17712       as_dirs="$as_dir $as_dirs"
17713       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17715          X"$as_dir" : 'X\(//\)[^/]' \| \
17716          X"$as_dir" : 'X\(//\)$' \| \
17717          X"$as_dir" : 'X\(/\)' \| \
17718          .     : '\(.\)' 2>/dev/null ||
17719 echo X"$as_dir" |
17720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17722           /^X\(\/\/\)$/{ s//\1/; q; }
17723           /^X\(\/\).*/{ s//\1/; q; }
17724           s/.*/./; q'`
17725     done
17726     test ! -n "$as_dirs" || mkdir $as_dirs
17727   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17729    { (exit 1); exit 1; }; }; }
17730
17731       rm -f $ac_file
17732       mv $tmp/config.h $ac_file
17733     fi
17734   else
17735     cat $tmp/config.h
17736     rm -f $tmp/config.h
17737   fi
17738 done
17739 _ACEOF
17740 cat >>$CONFIG_STATUS <<\_ACEOF
17741
17742 #
17743 # CONFIG_COMMANDS section.
17744 #
17745 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17746   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17747   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17748   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17749 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17750          X"$ac_dest" : 'X\(//\)[^/]' \| \
17751          X"$ac_dest" : 'X\(//\)$' \| \
17752          X"$ac_dest" : 'X\(/\)' \| \
17753          .     : '\(.\)' 2>/dev/null ||
17754 echo X"$ac_dest" |
17755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17757           /^X\(\/\/\)$/{ s//\1/; q; }
17758           /^X\(\/\).*/{ s//\1/; q; }
17759           s/.*/./; q'`
17760   { if $as_mkdir_p; then
17761     mkdir -p "$ac_dir"
17762   else
17763     as_dir="$ac_dir"
17764     as_dirs=
17765     while test ! -d "$as_dir"; do
17766       as_dirs="$as_dir $as_dirs"
17767       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17769          X"$as_dir" : 'X\(//\)[^/]' \| \
17770          X"$as_dir" : 'X\(//\)$' \| \
17771          X"$as_dir" : 'X\(/\)' \| \
17772          .     : '\(.\)' 2>/dev/null ||
17773 echo X"$as_dir" |
17774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17775           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17776           /^X\(\/\/\)$/{ s//\1/; q; }
17777           /^X\(\/\).*/{ s//\1/; q; }
17778           s/.*/./; q'`
17779     done
17780     test ! -n "$as_dirs" || mkdir $as_dirs
17781   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17783    { (exit 1); exit 1; }; }; }
17784
17785   ac_builddir=.
17786
17787 if test "$ac_dir" != .; then
17788   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17789   # A "../" for each directory in $ac_dir_suffix.
17790   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17791 else
17792   ac_dir_suffix= ac_top_builddir=
17793 fi
17794
17795 case $srcdir in
17796   .)  # No --srcdir option.  We are building in place.
17797     ac_srcdir=.
17798     if test -z "$ac_top_builddir"; then
17799        ac_top_srcdir=.
17800     else
17801        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17802     fi ;;
17803   [\\/]* | ?:[\\/]* )  # Absolute path.
17804     ac_srcdir=$srcdir$ac_dir_suffix;
17805     ac_top_srcdir=$srcdir ;;
17806   *) # Relative path.
17807     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17808     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17809 esac
17810
17811 # Do not use `cd foo && pwd` to compute absolute paths, because
17812 # the directories may not exist.
17813 case `pwd` in
17814 .) ac_abs_builddir="$ac_dir";;
17815 *)
17816   case "$ac_dir" in
17817   .) ac_abs_builddir=`pwd`;;
17818   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17819   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17820   esac;;
17821 esac
17822 case $ac_abs_builddir in
17823 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17824 *)
17825   case ${ac_top_builddir}. in
17826   .) ac_abs_top_builddir=$ac_abs_builddir;;
17827   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17828   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17829   esac;;
17830 esac
17831 case $ac_abs_builddir in
17832 .) ac_abs_srcdir=$ac_srcdir;;
17833 *)
17834   case $ac_srcdir in
17835   .) ac_abs_srcdir=$ac_abs_builddir;;
17836   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17837   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17838   esac;;
17839 esac
17840 case $ac_abs_builddir in
17841 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17842 *)
17843   case $ac_top_srcdir in
17844   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17845   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17846   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17847   esac;;
17848 esac
17849
17850
17851   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17852 echo "$as_me: executing $ac_dest commands" >&6;}
17853   case $ac_dest in
17854     default )
17855 case ${CONFIG_HEADERS} in
17856   *auto-host.h:config.in*)
17857   echo > cstamp-h ;;
17858 esac
17859 # Make sure all the subdirs exist.
17860 for d in $subdirs doc build
17861 do
17862     test -d $d || mkdir $d
17863 done
17864 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17865 # bootstrapping and the installation procedure can still use
17866 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17867 # FLAGS_TO_PASS has been modified to solve the problem there.
17868 # This is virtually a duplicate of what happens in configure.lang; we do
17869 # an extra check to make sure this only happens if ln -s can be used.
17870 case "$LN_S" in
17871   *-s*)
17872     for d in ${subdirs} ; do
17873         STARTDIR=`${PWDCMD-pwd}`
17874         cd $d
17875         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17876         do
17877                 rm -f $t
17878                 $LN_S ../$t $t 2>/dev/null
17879         done
17880         cd $STARTDIR
17881     done
17882   ;;
17883 esac
17884  ;;
17885   esac
17886 done
17887 _ACEOF
17888
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17890
17891 { (exit 0); exit 0; }
17892 _ACEOF
17893 chmod +x $CONFIG_STATUS
17894 ac_clean_files=$ac_clean_files_save
17895
17896
17897 # configure is writing to config.log, and then calls config.status.
17898 # config.status does its own redirection, appending to config.log.
17899 # Unfortunately, on DOS this fails, as config.log is still kept open
17900 # by configure, so config.status won't be able to write to it; its
17901 # output is simply discarded.  So we exec the FD to /dev/null,
17902 # effectively closing config.log, so it can be properly (re)opened and
17903 # appended to by config.status.  When coming back to configure, we
17904 # need to make the FD available again.
17905 if test "$no_create" != yes; then
17906   ac_cs_success=:
17907   ac_config_status_args=
17908   test "$silent" = yes &&
17909     ac_config_status_args="$ac_config_status_args --quiet"
17910   exec 5>/dev/null
17911   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17912   exec 5>>config.log
17913   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17914   # would make configure fail if this is the last instruction.
17915   $ac_cs_success || { (exit 1); exit 1; }
17916 fi
17917