OSDN Git Service

* g++.dg/warn/miss-format-1.C: XFAIL vscanf test on Solaris 2.5.1 to 8.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 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-threads        enable thread usage for target GCC
884   --enable-threads=LIB    use LIB thread package for target GCC
885   --enable-objc-gc        enable the use of Boehm's garbage collector with
886                           the GNU Objective-C runtime
887   --disable-shared        don't provide a shared libgcc
888   --enable-intermodule    build the compiler in one step
889   --enable-languages=LIST specify which front-ends to build
890   --disable-rpath         do not hardcode runtime library paths
891   --enable-initfini-array       use .init_array/.fini_array sections
892   --enable-sjlj-exceptions
893                           arrange to use setjmp/longjmp exception handling
894   --enable-secureplt      enable -msecure-plt by default for PowerPC
895   --disable-win32-registry
896                           disable lookup of installation paths in the
897                           Registry on Windows hosts
898   --enable-win32-registry enable registry lookup (default)
899   --enable-win32-registry=KEY
900                           use KEY instead of GCC version as the last portion
901                           of the registry key
902   --enable-maintainer-mode
903                           enable make rules and dependencies not useful
904                           (and sometimes confusing) to the casual installer
905   --enable-version-specific-runtime-libs
906                           specify that runtime libraries should be
907                           installed in a compiler-specific directory
908
909 Optional Packages:
910   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
911   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
912   --with-local-prefix=DIR specifies directory to put local include
913   --with-gxx-include-dir=DIR
914                           specifies directory to put g++ header files
915   --with-cpp-install-dir=DIR
916                           install the user visible C preprocessor in DIR
917                           (relative to PREFIX) as well as PREFIX/bin
918   --with-gnu-ld           arrange to work with GNU ld.
919   --with-ld               arrange to use the specified ld (full pathname)
920   --with-demangler-in-ld  try to use demangler in GNU ld.
921   --with-gnu-as           arrange to work with GNU as
922   --with-as               arrange to use the specified as (full pathname)
923   --with-stabs            arrange to use stabs instead of host debug format
924   --with-dwarf2           force the default debug format to be DWARF 2
925   --with-build-sysroot=sysroot
926                           use sysroot as the system root during the build
927   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
928   --with-gnu-ld           assume the C compiler uses GNU ld default=no
929   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
930   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
931   --with-system-libunwind use installed libunwind
932   --with-gc={page,zone}   choose the garbage collection mechanism to use
933                           with the compiler
934   --with-system-zlib      use installed libz
935   --with-slibdir=DIR      shared libraries in DIR LIBDIR
936
937 Some influential environment variables:
938   CC          C compiler command
939   CFLAGS      C compiler flags
940   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
941               nonstandard directory <lib dir>
942   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
943               headers in a nonstandard directory <include dir>
944   CPP         C preprocessor
945   GMPLIBS     How to link GMP
946   GMPINC      How to find GMP include files
947
948 Use these variables to override the choices made by `configure' or to help
949 it to find libraries and programs with nonstandard names/locations.
950
951 _ACEOF
952 fi
953
954 if test "$ac_init_help" = "recursive"; then
955   # If there are subdirs, report their specific --help.
956   ac_popdir=`pwd`
957   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
958     test -d $ac_dir || continue
959     ac_builddir=.
960
961 if test "$ac_dir" != .; then
962   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
963   # A "../" for each directory in $ac_dir_suffix.
964   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
965 else
966   ac_dir_suffix= ac_top_builddir=
967 fi
968
969 case $srcdir in
970   .)  # No --srcdir option.  We are building in place.
971     ac_srcdir=.
972     if test -z "$ac_top_builddir"; then
973        ac_top_srcdir=.
974     else
975        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
976     fi ;;
977   [\\/]* | ?:[\\/]* )  # Absolute path.
978     ac_srcdir=$srcdir$ac_dir_suffix;
979     ac_top_srcdir=$srcdir ;;
980   *) # Relative path.
981     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
982     ac_top_srcdir=$ac_top_builddir$srcdir ;;
983 esac
984
985 # Do not use `cd foo && pwd` to compute absolute paths, because
986 # the directories may not exist.
987 case `pwd` in
988 .) ac_abs_builddir="$ac_dir";;
989 *)
990   case "$ac_dir" in
991   .) ac_abs_builddir=`pwd`;;
992   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
993   *) ac_abs_builddir=`pwd`/"$ac_dir";;
994   esac;;
995 esac
996 case $ac_abs_builddir in
997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *)
999   case ${ac_top_builddir}. in
1000   .) ac_abs_top_builddir=$ac_abs_builddir;;
1001   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1002   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1003   esac;;
1004 esac
1005 case $ac_abs_builddir in
1006 .) ac_abs_srcdir=$ac_srcdir;;
1007 *)
1008   case $ac_srcdir in
1009   .) ac_abs_srcdir=$ac_abs_builddir;;
1010   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1011   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1012   esac;;
1013 esac
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *)
1017   case $ac_top_srcdir in
1018   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1020   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021   esac;;
1022 esac
1023
1024     cd $ac_dir
1025     # Check for guested configure; otherwise get Cygnus style configure.
1026     if test -f $ac_srcdir/configure.gnu; then
1027       echo
1028       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1029     elif test -f $ac_srcdir/configure; then
1030       echo
1031       $SHELL $ac_srcdir/configure  --help=recursive
1032     elif test -f $ac_srcdir/configure.ac ||
1033            test -f $ac_srcdir/configure.in; then
1034       echo
1035       $ac_configure --help
1036     else
1037       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1038     fi
1039     cd "$ac_popdir"
1040   done
1041 fi
1042
1043 test -n "$ac_init_help" && exit 0
1044 if $ac_init_version; then
1045   cat <<\_ACEOF
1046
1047 Copyright (C) 2003 Free Software Foundation, Inc.
1048 This configure script is free software; the Free Software Foundation
1049 gives unlimited permission to copy, distribute and modify it.
1050 _ACEOF
1051   exit 0
1052 fi
1053 exec 5>config.log
1054 cat >&5 <<_ACEOF
1055 This file contains any messages produced by compilers while
1056 running configure, to aid debugging if configure makes a mistake.
1057
1058 It was created by $as_me, which was
1059 generated by GNU Autoconf 2.59.  Invocation command line was
1060
1061   $ $0 $@
1062
1063 _ACEOF
1064 {
1065 cat <<_ASUNAME
1066 ## --------- ##
1067 ## Platform. ##
1068 ## --------- ##
1069
1070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1075
1076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1077 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1078
1079 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1080 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1082 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1083 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1084 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1085 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1086
1087 _ASUNAME
1088
1089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 for as_dir in $PATH
1091 do
1092   IFS=$as_save_IFS
1093   test -z "$as_dir" && as_dir=.
1094   echo "PATH: $as_dir"
1095 done
1096
1097 } >&5
1098
1099 cat >&5 <<_ACEOF
1100
1101
1102 ## ----------- ##
1103 ## Core tests. ##
1104 ## ----------- ##
1105
1106 _ACEOF
1107
1108
1109 # Keep a trace of the command line.
1110 # Strip out --no-create and --no-recursion so they do not pile up.
1111 # Strip out --silent because we don't want to record it for future runs.
1112 # Also quote any args containing shell meta-characters.
1113 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_configure_args=
1115 ac_configure_args0=
1116 ac_configure_args1=
1117 ac_sep=
1118 ac_must_keep_next=false
1119 for ac_pass in 1 2
1120 do
1121   for ac_arg
1122   do
1123     case $ac_arg in
1124     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1125     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126     | -silent | --silent | --silen | --sile | --sil)
1127       continue ;;
1128     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1129       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1130     esac
1131     case $ac_pass in
1132     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1133     2)
1134       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1135       if test $ac_must_keep_next = true; then
1136         ac_must_keep_next=false # Got value, back to normal.
1137       else
1138         case $ac_arg in
1139           *=* | --config-cache | -C | -disable-* | --disable-* \
1140           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1141           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1142           | -with-* | --with-* | -without-* | --without-* | --x)
1143             case "$ac_configure_args0 " in
1144               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1145             esac
1146             ;;
1147           -* ) ac_must_keep_next=true ;;
1148         esac
1149       fi
1150       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1151       # Get rid of the leading space.
1152       ac_sep=" "
1153       ;;
1154     esac
1155   done
1156 done
1157 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1158 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1159
1160 # When interrupted or exit'd, cleanup temporary files, and complete
1161 # config.log.  We remove comments because anyway the quotes in there
1162 # would cause problems or look ugly.
1163 # WARNING: Be sure not to use single quotes in there, as some shells,
1164 # such as our DU 5.0 friend, will then `close' the trap.
1165 trap 'exit_status=$?
1166   # Save into config.log some information that might help in debugging.
1167   {
1168     echo
1169
1170     cat <<\_ASBOX
1171 ## ---------------- ##
1172 ## Cache variables. ##
1173 ## ---------------- ##
1174 _ASBOX
1175     echo
1176     # The following way of writing the cache mishandles newlines in values,
1177 {
1178   (set) 2>&1 |
1179     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1180     *ac_space=\ *)
1181       sed -n \
1182         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1183           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184       ;;
1185     *)
1186       sed -n \
1187         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188       ;;
1189     esac;
1190 }
1191     echo
1192
1193     cat <<\_ASBOX
1194 ## ----------------- ##
1195 ## Output variables. ##
1196 ## ----------------- ##
1197 _ASBOX
1198     echo
1199     for ac_var in $ac_subst_vars
1200     do
1201       eval ac_val=$`echo $ac_var`
1202       echo "$ac_var='"'"'$ac_val'"'"'"
1203     done | sort
1204     echo
1205
1206     if test -n "$ac_subst_files"; then
1207       cat <<\_ASBOX
1208 ## ------------- ##
1209 ## Output files. ##
1210 ## ------------- ##
1211 _ASBOX
1212       echo
1213       for ac_var in $ac_subst_files
1214       do
1215         eval ac_val=$`echo $ac_var`
1216         echo "$ac_var='"'"'$ac_val'"'"'"
1217       done | sort
1218       echo
1219     fi
1220
1221     if test -s confdefs.h; then
1222       cat <<\_ASBOX
1223 ## ----------- ##
1224 ## confdefs.h. ##
1225 ## ----------- ##
1226 _ASBOX
1227       echo
1228       sed "/^$/d" confdefs.h | sort
1229       echo
1230     fi
1231     test "$ac_signal" != 0 &&
1232       echo "$as_me: caught signal $ac_signal"
1233     echo "$as_me: exit $exit_status"
1234   } >&5
1235   rm -f core *.core &&
1236   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1237     exit $exit_status
1238      ' 0
1239 for ac_signal in 1 2 13 15; do
1240   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 done
1242 ac_signal=0
1243
1244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1245 rm -rf conftest* confdefs.h
1246 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1247 echo >confdefs.h
1248
1249 # Predefined preprocessor variables.
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 _ACEOF
1274
1275
1276 # Let the site file select an alternate cache file if it wants to.
1277 # Prefer explicitly selected file to automatically selected ones.
1278 if test -z "$CONFIG_SITE"; then
1279   if test "x$prefix" != xNONE; then
1280     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1281   else
1282     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1283   fi
1284 fi
1285 for ac_site_file in $CONFIG_SITE; do
1286   if test -r "$ac_site_file"; then
1287     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1288 echo "$as_me: loading site script $ac_site_file" >&6;}
1289     sed 's/^/| /' "$ac_site_file" >&5
1290     . "$ac_site_file"
1291   fi
1292 done
1293
1294 if test -r "$cache_file"; then
1295   # Some versions of bash will fail to source /dev/null (special
1296   # files actually), so we avoid doing that.
1297   if test -f "$cache_file"; then
1298     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1299 echo "$as_me: loading cache $cache_file" >&6;}
1300     case $cache_file in
1301       [\\/]* | ?:[\\/]* ) . $cache_file;;
1302       *)                      . ./$cache_file;;
1303     esac
1304   fi
1305 else
1306   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1307 echo "$as_me: creating cache $cache_file" >&6;}
1308   >$cache_file
1309 fi
1310
1311 # Check that the precious variables saved in the cache have kept the same
1312 # value.
1313 ac_cache_corrupted=false
1314 for ac_var in `(set) 2>&1 |
1315                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1316   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1317   eval ac_new_set=\$ac_env_${ac_var}_set
1318   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1319   eval ac_new_val="\$ac_env_${ac_var}_value"
1320   case $ac_old_set,$ac_new_set in
1321     set,)
1322       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1324       ac_cache_corrupted=: ;;
1325     ,set)
1326       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1328       ac_cache_corrupted=: ;;
1329     ,);;
1330     *)
1331       if test "x$ac_old_val" != "x$ac_new_val"; then
1332         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1333 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1334         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1335 echo "$as_me:   former value:  $ac_old_val" >&2;}
1336         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1337 echo "$as_me:   current value: $ac_new_val" >&2;}
1338         ac_cache_corrupted=:
1339       fi;;
1340   esac
1341   # Pass precious variables to config.status.
1342   if test "$ac_new_set" = set; then
1343     case $ac_new_val in
1344     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1345       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1346     *) ac_arg=$ac_var=$ac_new_val ;;
1347     esac
1348     case " $ac_configure_args " in
1349       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1350       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351     esac
1352   fi
1353 done
1354 if $ac_cache_corrupted; then
1355   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1356 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1357   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1358 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361
1362 ac_ext=c
1363 ac_cpp='$CPP $CPPFLAGS'
1364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1388
1389
1390 gcc_version=`cat $srcdir/BASE-VER`
1391
1392 # Determine the host, build, and target systems
1393 ac_aux_dir=
1394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1395   if test -f $ac_dir/install-sh; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/install-sh -c"
1398     break
1399   elif test -f $ac_dir/install.sh; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/install.sh -c"
1402     break
1403   elif test -f $ac_dir/shtool; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/shtool install -c"
1406     break
1407   fi
1408 done
1409 if test -z "$ac_aux_dir"; then
1410   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1412    { (exit 1); exit 1; }; }
1413 fi
1414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417
1418 # Make sure we can run config.sub.
1419 $ac_config_sub sun4 >/dev/null 2>&1 ||
1420   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1421 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 echo "$as_me:$LINENO: checking build system type" >&5
1425 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426 if test "${ac_cv_build+set}" = set; then
1427   echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429   ac_cv_build_alias=$build_alias
1430 test -z "$ac_cv_build_alias" &&
1431   ac_cv_build_alias=`$ac_config_guess`
1432 test -z "$ac_cv_build_alias" &&
1433   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435    { (exit 1); exit 1; }; }
1436 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1443 echo "${ECHO_T}$ac_cv_build" >&6
1444 build=$ac_cv_build
1445 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking host system type" >&5
1451 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452 if test "${ac_cv_host+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_host_alias=$host_alias
1456 test -z "$ac_cv_host_alias" &&
1457   ac_cv_host_alias=$ac_cv_build_alias
1458 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1465 echo "${ECHO_T}$ac_cv_host" >&6
1466 host=$ac_cv_host
1467 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 echo "$as_me:$LINENO: checking target system type" >&5
1473 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1474 if test "${ac_cv_target+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   ac_cv_target_alias=$target_alias
1478 test "x$ac_cv_target_alias" = "x" &&
1479   ac_cv_target_alias=$ac_cv_host_alias
1480 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1481   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1483    { (exit 1); exit 1; }; }
1484
1485 fi
1486 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1487 echo "${ECHO_T}$ac_cv_target" >&6
1488 target=$ac_cv_target
1489 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
1493
1494 # The aliases save the names the user supplied, while $host etc.
1495 # will get canonicalized.
1496 test -n "$target_alias" &&
1497   test "$program_prefix$program_suffix$program_transform_name" = \
1498     NONENONEs,x,x, &&
1499   program_prefix=${target_alias}-
1500
1501 # Determine the noncanonical target name, for directory use.
1502  case ${build_alias} in
1503   "") build_noncanonical=${build} ;;
1504   *) build_noncanonical=${build_alias} ;;
1505 esac
1506
1507  case ${host_alias} in
1508   "") host_noncanonical=${build_noncanonical} ;;
1509   *) host_noncanonical=${host_alias} ;;
1510 esac
1511
1512  case ${target_alias} in
1513   "") target_noncanonical=${host_noncanonical} ;;
1514   *) target_noncanonical=${target_alias} ;;
1515 esac
1516
1517
1518
1519
1520 # Determine the target- and build-specific subdirectories
1521   # Prefix 'build-' so this never conflicts with target_subdir.
1522 build_subdir="build-${build_noncanonical}"
1523 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1524 if ( test $srcdir = . && test -d gcc ) \
1525    || test -d $srcdir/../host-${host_noncanonical}; then
1526   host_subdir="host-${host_noncanonical}"
1527 else
1528   host_subdir=.
1529 fi
1530 # No prefix.
1531 target_subdir=${target_noncanonical}
1532
1533
1534 # Set program_transform_name
1535 test "$program_prefix" != NONE &&
1536   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $.  echo might interpret backslashes.
1541 # By default was `s,x,x', remove it if useless.
1542 cat <<\_ACEOF >conftest.sed
1543 s/[\\$]/&&/g;s/;s,x,x,$//
1544 _ACEOF
1545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1546 rm conftest.sed
1547
1548
1549 # Check for bogus environment variables.
1550 # Test if LIBRARY_PATH contains the notation for the current directory
1551 # since this would lead to problems installing/building glibc.
1552 # LIBRARY_PATH contains the current directory if one of the following
1553 # is true:
1554 # - one of the terminals (":" and ";") is the first or last sign
1555 # - two terminals occur directly after each other
1556 # - the path contains an element with a dot in it
1557 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1558 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1559 case ${LIBRARY_PATH} in
1560   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1561     library_path_setting="contains current directory"
1562     ;;
1563   *)
1564     library_path_setting="ok"
1565     ;;
1566 esac
1567 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1568 echo "${ECHO_T}$library_path_setting" >&6
1569 if test "$library_path_setting" != "ok"; then
1570 { { echo "$as_me:$LINENO: error:
1571 *** LIBRARY_PATH shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&5
1574 echo "$as_me: error:
1575 *** LIBRARY_PATH shouldn't contain the current directory when
1576 *** building gcc. Please change the environment variable
1577 *** and run configure again." >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580
1581 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # GCC_EXEC_PREFIX contains the current directory if one of the following
1584 # is true:
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1589 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1590 case ${GCC_EXEC_PREFIX} in
1591   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1592     gcc_exec_prefix_setting="contains current directory"
1593     ;;
1594   *)
1595     gcc_exec_prefix_setting="ok"
1596     ;;
1597 esac
1598 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1599 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1600 if test "$gcc_exec_prefix_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611
1612 # -----------
1613 # Directories
1614 # -----------
1615
1616 # Specify the local prefix
1617 local_prefix=
1618
1619 # Check whether --with-local-prefix or --without-local-prefix was given.
1620 if test "${with_local_prefix+set}" = set; then
1621   withval="$with_local_prefix"
1622   case "${withval}" in
1623 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1624 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1625    { (exit 1); exit 1; }; } ;;
1626 no)     ;;
1627 *)      local_prefix=$with_local_prefix ;;
1628 esac
1629 fi;
1630
1631 # Default local prefix if it is empty
1632 if test x$local_prefix = x; then
1633         local_prefix=/usr/local
1634 fi
1635
1636 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1637 # passed in by the toplevel make and thus we'd get different behavior
1638 # depending on where we built the sources.
1639 gcc_gxx_include_dir=
1640 # Specify the g++ header file directory
1641
1642 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1643 if test "${with_gxx_include_dir+set}" = set; then
1644   withval="$with_gxx_include_dir"
1645   case "${withval}" in
1646 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1647 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1648    { (exit 1); exit 1; }; } ;;
1649 no)     ;;
1650 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1651 esac
1652 fi;
1653
1654 if test x${gcc_gxx_include_dir} = x; then
1655   if test x${enable_version_specific_runtime_libs} = xyes; then
1656     gcc_gxx_include_dir='${libsubdir}/include/c++'
1657   else
1658     libstdcxx_incdir='c++/$(version)'
1659     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1660   fi
1661 fi
1662
1663
1664 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1665 if test "${with_cpp_install_dir+set}" = set; then
1666   withval="$with_cpp_install_dir"
1667   if test x$withval = xyes; then
1668   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1669 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1670    { (exit 1); exit 1; }; }
1671 elif test x$withval != xno; then
1672   cpp_install_dir=$withval
1673 fi
1674 fi;
1675
1676 # We would like to our source tree to be readonly.  However when releases or
1677 # pre-releases are generated, the flex/bison generated files as well as the
1678 # various formats of manuals need to be included along with the rest of the
1679 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1680 # just that.
1681
1682 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1683 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1684     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1685 if test "${enable_generated_files_in_srcdir+set}" = set; then
1686   enableval="$enable_generated_files_in_srcdir"
1687   generated_files_in_srcdir=$enableval
1688 else
1689   generated_files_in_srcdir=no
1690 fi;
1691
1692 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1693 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1694
1695 if test "$generated_files_in_srcdir" = "yes"; then
1696   GENINSRC=''
1697 else
1698   GENINSRC='#'
1699 fi
1700
1701
1702 # -------------------
1703 # Find default linker
1704 # -------------------
1705
1706 # With GNU ld
1707
1708 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1709 if test "${with_gnu_ld+set}" = set; then
1710   withval="$with_gnu_ld"
1711   gnu_ld_flag="$with_gnu_ld"
1712 else
1713   gnu_ld_flag=no
1714 fi;
1715
1716 # With pre-defined ld
1717
1718 # Check whether --with-ld or --without-ld was given.
1719 if test "${with_ld+set}" = set; then
1720   withval="$with_ld"
1721   DEFAULT_LINKER="$with_ld"
1722 fi;
1723 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1724   if test ! -x "$DEFAULT_LINKER"; then
1725     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1726 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1727    { (exit 1); exit 1; }; }
1728   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1729     gnu_ld_flag=yes
1730   fi
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1734 _ACEOF
1735
1736 fi
1737
1738 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1739 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1740 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1741   if test x"$gnu_ld_flag" = x"no"; then
1742     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1743 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1744   else
1745     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1747   fi
1748 else
1749   echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 fi
1752
1753 # With demangler in GNU ld
1754
1755 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1756 if test "${with_demangler_in_ld+set}" = set; then
1757   withval="$with_demangler_in_ld"
1758   demangler_in_ld="$with_demangler_in_ld"
1759 else
1760   demangler_in_ld=no
1761 fi;
1762
1763 # ----------------------
1764 # Find default assembler
1765 # ----------------------
1766
1767 # With GNU as
1768
1769 # Check whether --with-gnu-as or --without-gnu-as was given.
1770 if test "${with_gnu_as+set}" = set; then
1771   withval="$with_gnu_as"
1772   gas_flag="$with_gnu_as"
1773 else
1774   gas_flag=no
1775 fi;
1776
1777
1778 # Check whether --with-as or --without-as was given.
1779 if test "${with_as+set}" = set; then
1780   withval="$with_as"
1781   DEFAULT_ASSEMBLER="$with_as"
1782 fi;
1783 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1784   if test ! -x "$DEFAULT_ASSEMBLER"; then
1785     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1786 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1787    { (exit 1); exit 1; }; }
1788   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1789     gas_flag=yes
1790   fi
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1794 _ACEOF
1795
1796 fi
1797
1798 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1799 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1800 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1801   if test x"$gas_flag" = x"no"; then
1802     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1803 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1804   else
1805     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1807   fi
1808 else
1809   echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 fi
1812
1813 # ---------------
1814 # Find C compiler
1815 # ---------------
1816
1817 # If a non-executable a.out is present (e.g. created by GNU as above even if
1818 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1819 # file, even when creating an executable, so an execution test fails.
1820 # Remove possible default executable files to avoid this.
1821 #
1822 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1823 # Autoconf includes it.
1824 rm -f a.out a.exe b.out
1825
1826 # Find the native compiler
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$CC"; then
1841   ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 fi
1858 fi
1859 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861   echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868 fi
1869 if test -z "$ac_cv_prog_CC"; then
1870   ac_ct_CC=$CC
1871   # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$ac_ct_CC"; then
1879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_ac_ct_CC="gcc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906   CC=$ac_ct_CC
1907 else
1908   CC="$ac_cv_prog_CC"
1909 fi
1910
1911 if test -z "$CC"; then
1912   if test -n "$ac_tool_prefix"; then
1913   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$CC"; then
1921   ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_CC="${ac_tool_prefix}cc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$ac_cv_prog_CC"; then
1950   ac_ct_CC=$CC
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$ac_ct_CC"; then
1959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_ac_ct_CC="cc"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986   CC=$ac_ct_CC
1987 else
1988   CC="$ac_cv_prog_CC"
1989 fi
1990
1991 fi
1992 if test -z "$CC"; then
1993   # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$CC"; then
2001   ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003   ac_prog_rejected=no
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012        ac_prog_rejected=yes
2013        continue
2014      fi
2015     ac_cv_prog_CC="cc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 if test $ac_prog_rejected = yes; then
2023   # We found a bogon in the path, so make sure we never use it.
2024   set dummy $ac_cv_prog_CC
2025   shift
2026   if test $# != 0; then
2027     # We chose a different compiler from the bogus one.
2028     # However, it has the same basename, so the bogon will be chosen
2029     # first if we set CC to just the basename; use the full file name.
2030     shift
2031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2032   fi
2033 fi
2034 fi
2035 fi
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038   echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045 fi
2046 if test -z "$CC"; then
2047   if test -n "$ac_tool_prefix"; then
2048   for ac_prog in cl
2049   do
2050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078   echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085     test -n "$CC" && break
2086   done
2087 fi
2088 if test -z "$CC"; then
2089   ac_ct_CC=$CC
2090   for ac_prog in cl
2091 do
2092   # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$ac_ct_CC"; then
2100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109     ac_cv_prog_ac_ct_CC="$ac_prog"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115
2116 fi
2117 fi
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2122 else
2123   echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127   test -n "$ac_ct_CC" && break
2128 done
2129
2130   CC=$ac_ct_CC
2131 fi
2132
2133 fi
2134
2135
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140    { (exit 1); exit 1; }; }
2141
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO:" \
2144      "checking for C compiler version" >&5
2145 ac_compiler=`set X $ac_compile; echo $2`
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2147   (eval $ac_compiler --version </dev/null >&5) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2152   (eval $ac_compiler -v </dev/null >&5) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2157   (eval $ac_compiler -V </dev/null >&5) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161
2162 cat >conftest.$ac_ext <<_ACEOF
2163 /* confdefs.h.  */
2164 _ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h.  */
2168
2169 int
2170 main ()
2171 {
2172
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 ac_clean_files_save=$ac_clean_files
2178 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2179 # Try to create an executable without -o first, disregard a.out.
2180 # It will help us diagnose broken compilers, and finding out an intuition
2181 # of exeext.
2182 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2183 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2184 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2186   (eval $ac_link_default) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; then
2190   # Find the output, starting from the most likely.  This scheme is
2191 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2192 # resort.
2193
2194 # Be careful to initialize this variable, since it used to be cached.
2195 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2196 ac_cv_exeext=
2197 # b.out is created by i960 compilers.
2198 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2199 do
2200   test -f "$ac_file" || continue
2201   case $ac_file in
2202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2203         ;;
2204     conftest.$ac_ext )
2205         # This is the source file.
2206         ;;
2207     [ab].out )
2208         # We found the default executable, but exeext='' is most
2209         # certainly right.
2210         break;;
2211     *.* )
2212         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213         # FIXME: I believe we export ac_cv_exeext for Libtool,
2214         # but it would be cool to find out if it's true.  Does anybody
2215         # maintain Libtool? --akim.
2216         export ac_cv_exeext
2217         break;;
2218     * )
2219         break;;
2220   esac
2221 done
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&2;}
2230    { (exit 77); exit 77; }; }
2231 fi
2232
2233 ac_exeext=$ac_cv_exeext
2234 echo "$as_me:$LINENO: result: $ac_file" >&5
2235 echo "${ECHO_T}$ac_file" >&6
2236
2237 # Check the compiler produces executables we can run.  If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2240 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2241 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2242 # If not cross compiling, check that we can run a simple program.
2243 if test "$cross_compiling" != yes; then
2244   if { ac_try='./$ac_file'
2245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246   (eval $ac_try) 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); }; }; then
2250     cross_compiling=no
2251   else
2252     if test "$cross_compiling" = maybe; then
2253         cross_compiling=yes
2254     else
2255         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261    { (exit 1); exit 1; }; }
2262     fi
2263   fi
2264 fi
2265 echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6
2267
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check the compiler produces executables we can run.  If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2274 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6
2276
2277 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2280   (eval $ac_link) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; then
2284   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2287 # `rm'.
2288 for ac_file in conftest.exe conftest conftest.*; do
2289   test -f "$ac_file" || continue
2290   case $ac_file in
2291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2292     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293           export ac_cv_exeext
2294           break;;
2295     * ) break;;
2296   esac
2297 done
2298 else
2299   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2302 See \`config.log' for more details." >&2;}
2303    { (exit 1); exit 1; }; }
2304 fi
2305
2306 rm -f conftest$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2308 echo "${ECHO_T}$ac_cv_exeext" >&6
2309
2310 rm -f conftest.$ac_ext
2311 EXEEXT=$ac_cv_exeext
2312 ac_exeext=$EXEEXT
2313 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2314 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2315 if test "${ac_cv_objext+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   cat >conftest.$ac_ext <<_ACEOF
2319 /* confdefs.h.  */
2320 _ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h.  */
2324
2325 int
2326 main ()
2327 {
2328
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 rm -f conftest.o conftest.obj
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335   (eval $ac_compile) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; then
2339   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2340   case $ac_file in
2341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2342     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343        break;;
2344   esac
2345 done
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 fi
2359 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6
2361 OBJEXT=$ac_cv_objext
2362 ac_objext=$OBJEXT
2363 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   ac_compiler_gnu=yes
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_compiler_gnu=no
2413 fi
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416
2417 fi
2418 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2420 GCC=`test $ac_compiler_gnu = yes && echo yes`
2421 ac_test_CFLAGS=${CFLAGS+set}
2422 ac_save_CFLAGS=$CFLAGS
2423 CFLAGS="-g"
2424 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cc_g+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446   (eval $ac_compile) 2>conftest.er1
2447   ac_status=$?
2448   grep -v '^ *+' conftest.er1 >conftest.err
2449   rm -f conftest.er1
2450   cat conftest.err >&5
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); } &&
2453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; } &&
2459          { ac_try='test -s conftest.$ac_objext'
2460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; }; then
2465   ac_cv_prog_cc_g=yes
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 ac_cv_prog_cc_g=no
2471 fi
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 fi
2474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2476 if test "$ac_test_CFLAGS" = set; then
2477   CFLAGS=$ac_save_CFLAGS
2478 elif test $ac_cv_prog_cc_g = yes; then
2479   if test "$GCC" = yes; then
2480     CFLAGS="-g -O2"
2481   else
2482     CFLAGS="-g"
2483   fi
2484 else
2485   if test "$GCC" = yes; then
2486     CFLAGS="-O2"
2487   else
2488     CFLAGS=
2489   fi
2490 fi
2491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   ac_cv_prog_cc_stdc=no
2497 ac_save_CC=$CC
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504 #include <stdarg.h>
2505 #include <stdio.h>
2506 #include <sys/types.h>
2507 #include <sys/stat.h>
2508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2509 struct buf { int x; };
2510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2511 static char *e (p, i)
2512      char **p;
2513      int i;
2514 {
2515   return p[i];
2516 }
2517 static char *f (char * (*g) (char **, int), char **p, ...)
2518 {
2519   char *s;
2520   va_list v;
2521   va_start (v,p);
2522   s = g (p, va_arg (v,int));
2523   va_end (v);
2524   return s;
2525 }
2526
2527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2528    function prototypes and stuff, but not '\xHH' hex character constants.
2529    These don't provoke an error unfortunately, instead are silently treated
2530    as 'x'.  The following induces an error, until -std1 is added to get
2531    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2532    array size at least.  It's necessary to write '\x00'==0 to get something
2533    that's true only with -std1.  */
2534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2535
2536 int test (int i, double x);
2537 struct s1 {int (*f) (int a);};
2538 struct s2 {int (*f) (double a);};
2539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2540 int argc;
2541 char **argv;
2542 int
2543 main ()
2544 {
2545 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 # Don't try gcc -ansi; that turns off useful extensions and
2551 # breaks some systems' header files.
2552 # AIX                   -qlanglvl=ansi
2553 # Ultrix and OSF/1      -std1
2554 # HP-UX 10.20 and later -Ae
2555 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2556 # SVR4                  -Xc -D__EXTENSIONS__
2557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2558 do
2559   CC="$ac_save_CC $ac_arg"
2560   rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562   (eval $ac_compile) 2>conftest.er1
2563   ac_status=$?
2564   grep -v '^ *+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; } &&
2575          { ac_try='test -s conftest.$ac_objext'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; }; then
2581   ac_cv_prog_cc_stdc=$ac_arg
2582 break
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 fi
2588 rm -f conftest.err conftest.$ac_objext
2589 done
2590 rm -f conftest.$ac_ext conftest.$ac_objext
2591 CC=$ac_save_CC
2592
2593 fi
2594
2595 case "x$ac_cv_prog_cc_stdc" in
2596   x|xno)
2597     echo "$as_me:$LINENO: result: none needed" >&5
2598 echo "${ECHO_T}none needed" >&6 ;;
2599   *)
2600     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602     CC="$CC $ac_cv_prog_cc_stdc" ;;
2603 esac
2604
2605 # Some people use a C++ compiler to compile C.  Since we use `exit',
2606 # in C++ we need to declare it.  In case someone uses the same compiler
2607 # for both compiling C and C++ we need to have the C++ compiler decide
2608 # the declaration of exit, since it's the most demanding environment.
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #ifndef __cplusplus
2611   choke me
2612 #endif
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616   (eval $ac_compile) 2>conftest.er1
2617   ac_status=$?
2618   grep -v '^ *+' conftest.er1 >conftest.err
2619   rm -f conftest.er1
2620   cat conftest.err >&5
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   for ac_declaration in \
2636    '' \
2637    'extern "C" void std::exit (int) throw (); using std::exit;' \
2638    'extern "C" void std::exit (int); using std::exit;' \
2639    'extern "C" void exit (int) throw ();' \
2640    'extern "C" void exit (int);' \
2641    'void exit (int);'
2642 do
2643   cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 $ac_declaration
2650 #include <stdlib.h>
2651 int
2652 main ()
2653 {
2654 exit (42);
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661   (eval $ac_compile) 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; } &&
2674          { ac_try='test -s conftest.$ac_objext'
2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676   (eval $ac_try) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; }; then
2680   :
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 continue
2686 fi
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688   cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694 $ac_declaration
2695 int
2696 main ()
2697 {
2698 exit (42);
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705   (eval $ac_compile) 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; } &&
2718          { ac_try='test -s conftest.$ac_objext'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; }; then
2724   break
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 fi
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 done
2732 rm -f conftest*
2733 if test -n "$ac_declaration"; then
2734   echo '#ifdef __cplusplus' >>confdefs.h
2735   echo $ac_declaration      >>confdefs.h
2736   echo '#endif'             >>confdefs.h
2737 fi
2738
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 fi
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751 if test "x$CC" != xcc; then
2752   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2754 else
2755   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2757 fi
2758 set dummy $CC; ac_cc=`echo $2 |
2759                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 # Make sure it works both with $CC and with simple cc.
2779 # We do the test twice because some compilers refuse to overwrite an
2780 # existing .o file with -o, though they will create one.
2781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); };
2792 then
2793   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2794   if test "x$CC" != xcc; then
2795     # Test first that cc exists at all.
2796     if { ac_try='cc -c conftest.$ac_ext >&5'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; }; then
2802       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2803       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); };
2813       then
2814         # cc works too.
2815         :
2816       else
2817         # cc exists but doesn't like -o.
2818         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2819       fi
2820     fi
2821   fi
2822 else
2823   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2824 fi
2825 rm -f conftest*
2826
2827 fi
2828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2829   echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2831 else
2832   echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2834
2835 cat >>confdefs.h <<\_ACEOF
2836 #define NO_MINUS_C_MINUS_O 1
2837 _ACEOF
2838
2839 fi
2840
2841 # expand $ac_aux_dir to an absolute path
2842 am_aux_dir=`cd $ac_aux_dir && pwd`
2843
2844 # FIXME: we rely on the cache variable name because
2845 # there is no other way.
2846 set dummy $CC
2847 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2849    # Losing compiler, so override with the script.
2850    # FIXME: It is wrong to rewrite CC.
2851    # But if we don't then we get into trouble of one sort or another.
2852    # A longer-term fix would be to have automake use am__CC in this case,
2853    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2854    CC="$am_aux_dir/compile $CC"
2855 fi
2856
2857 # autoconf is lame and doesn't give us any substitution variable for this.
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2859   NO_MINUS_C_MINUS_O=yes
2860 else
2861   OUTPUT_OPTION='-o $@'
2862 fi
2863
2864
2865
2866 # -------------------------
2867 # Check C compiler features
2868 # -------------------------
2869
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2879   CPP=
2880 fi
2881 if test -z "$CPP"; then
2882   if test "${ac_cv_prog_CPP+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885       # Double quotes because CPP needs to be expanded
2886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887     do
2888       ac_preproc_ok=false
2889 for ac_c_preproc_warn_flag in '' yes
2890 do
2891   # Use a header file that comes with gcc, so configuring glibc
2892   # with a fresh cross-compiler works.
2893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894   # <limits.h> exists even on freestanding compilers.
2895   # On the NeXT, cc -E runs the code through the compiler's parser,
2896   # not just through cpp. "Syntax error" is here to catch this case.
2897   cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #ifdef __STDC__
2904 # include <limits.h>
2905 #else
2906 # include <assert.h>
2907 #endif
2908                      Syntax error
2909 _ACEOF
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } >/dev/null; then
2918   if test -s conftest.err; then
2919     ac_cpp_err=$ac_c_preproc_warn_flag
2920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2921   else
2922     ac_cpp_err=
2923   fi
2924 else
2925   ac_cpp_err=yes
2926 fi
2927 if test -z "$ac_cpp_err"; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933   # Broken: fails on valid input.
2934 continue
2935 fi
2936 rm -f conftest.err conftest.$ac_ext
2937
2938   # OK, works on sane cases.  Now check whether non-existent headers
2939   # can be detected and how.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } >/dev/null; then
2956   if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   # Broken: success on invalid input.
2967 continue
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Passes both tests.
2973 ac_preproc_ok=:
2974 break
2975 fi
2976 rm -f conftest.err conftest.$ac_ext
2977
2978 done
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2982   break
2983 fi
2984
2985     done
2986     ac_cv_prog_CPP=$CPP
2987
2988 fi
2989   CPP=$ac_cv_prog_CPP
2990 else
2991   ac_cv_prog_CPP=$CPP
2992 fi
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2995 ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015                      Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040   # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045   # OK, works on sane cases.  Now check whether non-existent headers
3046   # can be detected and how.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #include <ac_nonexistent.h>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   # Broken: success on invalid input.
3074 continue
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3089   :
3090 else
3091   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095    { (exit 1); exit 1; }; }
3096 fi
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105 echo "$as_me:$LINENO: checking for inline" >&5
3106 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3107 if test "${ac_cv_c_inline+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   ac_cv_c_inline=no
3111 for ac_kw in inline __inline__ __inline; do
3112   cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118 #ifndef __cplusplus
3119 typedef int foo_t;
3120 static $ac_kw foo_t static_foo () {return 0; }
3121 $ac_kw foo_t foo () {return 0; }
3122 #endif
3123
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127   (eval $ac_compile) 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } &&
3134          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136   (eval $ac_try) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142   (eval $ac_try) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   ac_cv_c_inline=$ac_kw; break
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 fi
3152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3153 done
3154
3155 fi
3156 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3157 echo "${ECHO_T}$ac_cv_c_inline" >&6
3158
3159
3160 case $ac_cv_c_inline in
3161   inline | yes) ;;
3162   *)
3163     case $ac_cv_c_inline in
3164       no) ac_val=;;
3165       *) ac_val=$ac_cv_c_inline;;
3166     esac
3167     cat >>confdefs.h <<_ACEOF
3168 #ifndef __cplusplus
3169 #define inline $ac_val
3170 #endif
3171 _ACEOF
3172     ;;
3173 esac
3174
3175
3176 # sizeof(char) is 1 by definition.
3177
3178 echo "$as_me:$LINENO: checking for egrep" >&5
3179 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3180 if test "${ac_cv_prog_egrep+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3184     then ac_cv_prog_egrep='grep -E'
3185     else ac_cv_prog_egrep='egrep'
3186     fi
3187 fi
3188 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3189 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3190  EGREP=$ac_cv_prog_egrep
3191
3192
3193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3195 if test "${ac_cv_header_stdc+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204 #include <stdlib.h>
3205 #include <stdarg.h>
3206 #include <string.h>
3207 #include <float.h>
3208
3209 int
3210 main ()
3211 {
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219   (eval $ac_compile) 2>conftest.er1
3220   ac_status=$?
3221   grep -v '^ *+' conftest.er1 >conftest.err
3222   rm -f conftest.er1
3223   cat conftest.err >&5
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); } &&
3226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228   (eval $ac_try) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; } &&
3232          { ac_try='test -s conftest.$ac_objext'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_cv_header_stdc=yes
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 ac_cv_header_stdc=no
3244 fi
3245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3246
3247 if test $ac_cv_header_stdc = yes; then
3248   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <string.h>
3256
3257 _ACEOF
3258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3259   $EGREP "memchr" >/dev/null 2>&1; then
3260   :
3261 else
3262   ac_cv_header_stdc=no
3263 fi
3264 rm -f conftest*
3265
3266 fi
3267
3268 if test $ac_cv_header_stdc = yes; then
3269   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3270   cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276 #include <stdlib.h>
3277
3278 _ACEOF
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280   $EGREP "free" >/dev/null 2>&1; then
3281   :
3282 else
3283   ac_cv_header_stdc=no
3284 fi
3285 rm -f conftest*
3286
3287 fi
3288
3289 if test $ac_cv_header_stdc = yes; then
3290   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3291   if test "$cross_compiling" = yes; then
3292   :
3293 else
3294   cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300 #include <ctype.h>
3301 #if ((' ' & 0x0FF) == 0x020)
3302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3304 #else
3305 # define ISLOWER(c) \
3306                    (('a' <= (c) && (c) <= 'i') \
3307                      || ('j' <= (c) && (c) <= 'r') \
3308                      || ('s' <= (c) && (c) <= 'z'))
3309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3310 #endif
3311
3312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3313 int
3314 main ()
3315 {
3316   int i;
3317   for (i = 0; i < 256; i++)
3318     if (XOR (islower (i), ISLOWER (i))
3319         || toupper (i) != TOUPPER (i))
3320       exit(2);
3321   exit (0);
3322 }
3323 _ACEOF
3324 rm -f conftest$ac_exeext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3326   (eval $ac_link) 2>&5
3327   ac_status=$?
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331   (eval $ac_try) 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; }; then
3335   :
3336 else
3337   echo "$as_me: program exited with status $ac_status" >&5
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 ( exit $ac_status )
3342 ac_cv_header_stdc=no
3343 fi
3344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3345 fi
3346 fi
3347 fi
3348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3350 if test $ac_cv_header_stdc = yes; then
3351
3352 cat >>confdefs.h <<\_ACEOF
3353 #define STDC_HEADERS 1
3354 _ACEOF
3355
3356 fi
3357
3358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3369                   inttypes.h stdint.h unistd.h
3370 do
3371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 echo "$as_me:$LINENO: checking for $ac_header" >&5
3373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383 $ac_includes_default
3384
3385 #include <$ac_header>
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389   (eval $ac_compile) 2>conftest.er1
3390   ac_status=$?
3391   grep -v '^ *+' conftest.er1 >conftest.err
3392   rm -f conftest.er1
3393   cat conftest.err >&5
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } &&
3396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; } &&
3402          { ac_try='test -s conftest.$ac_objext'
3403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404   (eval $ac_try) 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; }; then
3408   eval "$as_ac_Header=yes"
3409 else
3410   echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 eval "$as_ac_Header=no"
3414 fi
3415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3420   cat >>confdefs.h <<_ACEOF
3421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3422 _ACEOF
3423
3424 fi
3425
3426 done
3427
3428
3429 echo "$as_me:$LINENO: checking for void *" >&5
3430 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3431 if test "${ac_cv_type_void_p+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 $ac_includes_default
3441 int
3442 main ()
3443 {
3444 if ((void * *) 0)
3445   return 0;
3446 if (sizeof (void *))
3447   return 0;
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454   (eval $ac_compile) 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } &&
3461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463   (eval $ac_try) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; } &&
3467          { ac_try='test -s conftest.$ac_objext'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   ac_cv_type_void_p=yes
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 ac_cv_type_void_p=no
3479 fi
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481 fi
3482 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3483 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3484
3485 echo "$as_me:$LINENO: checking size of void *" >&5
3486 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3487 if test "${ac_cv_sizeof_void_p+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   if test "$ac_cv_type_void_p" = yes; then
3491   # The cast to unsigned long works around a bug in the HP C Compiler
3492   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3493   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3494   # This bug is HP SR number 8606223364.
3495   if test "$cross_compiling" = yes; then
3496   # Depending upon the size, compute the lo and hi bounds.
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 $ac_includes_default
3504 int
3505 main ()
3506 {
3507 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3508 test_array [0] = 0
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516   (eval $ac_compile) 2>conftest.er1
3517   ac_status=$?
3518   grep -v '^ *+' conftest.er1 >conftest.err
3519   rm -f conftest.er1
3520   cat conftest.err >&5
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); } &&
3523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525   (eval $ac_try) 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); }; } &&
3529          { ac_try='test -s conftest.$ac_objext'
3530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531   (eval $ac_try) 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }; }; then
3535   ac_lo=0 ac_mid=0
3536   while :; do
3537     cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 $ac_includes_default
3544 int
3545 main ()
3546 {
3547 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3548 test_array [0] = 0
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556   (eval $ac_compile) 2>conftest.er1
3557   ac_status=$?
3558   grep -v '^ *+' conftest.er1 >conftest.err
3559   rm -f conftest.er1
3560   cat conftest.err >&5
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } &&
3563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565   (eval $ac_try) 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); }; } &&
3569          { ac_try='test -s conftest.$ac_objext'
3570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571   (eval $ac_try) 2>&5
3572   ac_status=$?
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); }; }; then
3575   ac_hi=$ac_mid; break
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 ac_lo=`expr $ac_mid + 1`
3581                     if test $ac_lo -le $ac_mid; then
3582                       ac_lo= ac_hi=
3583                       break
3584                     fi
3585                     ac_mid=`expr 2 '*' $ac_mid + 1`
3586 fi
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588   done
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 $ac_includes_default
3600 int
3601 main ()
3602 {
3603 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3604 test_array [0] = 0
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612   (eval $ac_compile) 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621   (eval $ac_try) 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); }; } &&
3625          { ac_try='test -s conftest.$ac_objext'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; }; then
3631   ac_hi=-1 ac_mid=-1
3632   while :; do
3633     cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h.  */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h.  */
3639 $ac_includes_default
3640 int
3641 main ()
3642 {
3643 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3644 test_array [0] = 0
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652   (eval $ac_compile) 2>conftest.er1
3653   ac_status=$?
3654   grep -v '^ *+' conftest.er1 >conftest.err
3655   rm -f conftest.er1
3656   cat conftest.err >&5
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; } &&
3665          { ac_try='test -s conftest.$ac_objext'
3666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667   (eval $ac_try) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; }; then
3671   ac_lo=$ac_mid; break
3672 else
3673   echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 ac_hi=`expr '(' $ac_mid ')' - 1`
3677                        if test $ac_mid -le $ac_hi; then
3678                          ac_lo= ac_hi=
3679                          break
3680                        fi
3681                        ac_mid=`expr 2 '*' $ac_mid`
3682 fi
3683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684   done
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 ac_lo= ac_hi=
3690 fi
3691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3692 fi
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694 # Binary search between lo and hi bounds.
3695 while test "x$ac_lo" != "x$ac_hi"; do
3696   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703 $ac_includes_default
3704 int
3705 main ()
3706 {
3707 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3708 test_array [0] = 0
3709
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } &&
3723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; } &&
3729          { ac_try='test -s conftest.$ac_objext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   ac_hi=$ac_mid
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 ac_lo=`expr '(' $ac_mid ')' + 1`
3741 fi
3742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3743 done
3744 case $ac_lo in
3745 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3746 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: cannot compute sizeof (void *), 77
3749 See \`config.log' for more details." >&2;}
3750    { (exit 1); exit 1; }; } ;;
3751 esac
3752 else
3753   if test "$cross_compiling" = yes; then
3754   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3755 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3756    { (exit 1); exit 1; }; }
3757 else
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 $ac_includes_default
3765 long longval () { return (long) (sizeof (void *)); }
3766 unsigned long ulongval () { return (long) (sizeof (void *)); }
3767 #include <stdio.h>
3768 #include <stdlib.h>
3769 int
3770 main ()
3771 {
3772
3773   FILE *f = fopen ("conftest.val", "w");
3774   if (! f)
3775     exit (1);
3776   if (((long) (sizeof (void *))) < 0)
3777     {
3778       long i = longval ();
3779       if (i != ((long) (sizeof (void *))))
3780         exit (1);
3781       fprintf (f, "%ld\n", i);
3782     }
3783   else
3784     {
3785       unsigned long i = ulongval ();
3786       if (i != ((long) (sizeof (void *))))
3787         exit (1);
3788       fprintf (f, "%lu\n", i);
3789     }
3790   exit (ferror (f) || fclose (f) != 0);
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 rm -f conftest$ac_exeext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798   (eval $ac_link) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; }; then
3807   ac_cv_sizeof_void_p=`cat conftest.val`
3808 else
3809   echo "$as_me: program exited with status $ac_status" >&5
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 ( exit $ac_status )
3814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute sizeof (void *), 77
3817 See \`config.log' for more details." >&2;}
3818    { (exit 1); exit 1; }; }
3819 fi
3820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 fi
3823 rm -f conftest.val
3824 else
3825   ac_cv_sizeof_void_p=0
3826 fi
3827 fi
3828 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3829 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3830 cat >>confdefs.h <<_ACEOF
3831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3832 _ACEOF
3833
3834
3835 echo "$as_me:$LINENO: checking for short" >&5
3836 echo $ECHO_N "checking for short... $ECHO_C" >&6
3837 if test "${ac_cv_type_short+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 $ac_includes_default
3847 int
3848 main ()
3849 {
3850 if ((short *) 0)
3851   return 0;
3852 if (sizeof (short))
3853   return 0;
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_type_short=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_type_short=no
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3889 echo "${ECHO_T}$ac_cv_type_short" >&6
3890
3891 echo "$as_me:$LINENO: checking size of short" >&5
3892 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3893 if test "${ac_cv_sizeof_short+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   if test "$ac_cv_type_short" = yes; then
3897   # The cast to unsigned long works around a bug in the HP C Compiler
3898   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3899   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3900   # This bug is HP SR number 8606223364.
3901   if test "$cross_compiling" = yes; then
3902   # Depending upon the size, compute the lo and hi bounds.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 $ac_includes_default
3910 int
3911 main ()
3912 {
3913 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3914 test_array [0] = 0
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922   (eval $ac_compile) 2>conftest.er1
3923   ac_status=$?
3924   grep -v '^ *+' conftest.er1 >conftest.err
3925   rm -f conftest.er1
3926   cat conftest.err >&5
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } &&
3929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; } &&
3935          { ac_try='test -s conftest.$ac_objext'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   ac_lo=0 ac_mid=0
3942   while :; do
3943     cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 $ac_includes_default
3950 int
3951 main ()
3952 {
3953 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3954 test_array [0] = 0
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962   (eval $ac_compile) 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } &&
3969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971   (eval $ac_try) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; } &&
3975          { ac_try='test -s conftest.$ac_objext'
3976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977   (eval $ac_try) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }; }; then
3981   ac_hi=$ac_mid; break
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ac_lo=`expr $ac_mid + 1`
3987                     if test $ac_lo -le $ac_mid; then
3988                       ac_lo= ac_hi=
3989                       break
3990                     fi
3991                     ac_mid=`expr 2 '*' $ac_mid + 1`
3992 fi
3993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994   done
3995 else
3996   echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005 $ac_includes_default
4006 int
4007 main ()
4008 {
4009 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4010 test_array [0] = 0
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018   (eval $ac_compile) 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } &&
4025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; } &&
4031          { ac_try='test -s conftest.$ac_objext'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   ac_hi=-1 ac_mid=-1
4038   while :; do
4039     cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 $ac_includes_default
4046 int
4047 main ()
4048 {
4049 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4050 test_array [0] = 0
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058   (eval $ac_compile) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067   (eval $ac_try) 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; } &&
4071          { ac_try='test -s conftest.$ac_objext'
4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073   (eval $ac_try) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; }; then
4077   ac_lo=$ac_mid; break
4078 else
4079   echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 ac_hi=`expr '(' $ac_mid ')' - 1`
4083                        if test $ac_mid -le $ac_hi; then
4084                          ac_lo= ac_hi=
4085                          break
4086                        fi
4087                        ac_mid=`expr 2 '*' $ac_mid`
4088 fi
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090   done
4091 else
4092   echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 ac_lo= ac_hi=
4096 fi
4097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 fi
4099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 # Binary search between lo and hi bounds.
4101 while test "x$ac_lo" != "x$ac_hi"; do
4102   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4103   cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 $ac_includes_default
4110 int
4111 main ()
4112 {
4113 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4114 test_array [0] = 0
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122   (eval $ac_compile) 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131   (eval $ac_try) 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; } &&
4135          { ac_try='test -s conftest.$ac_objext'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; }; then
4141   ac_hi=$ac_mid
4142 else
4143   echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 ac_lo=`expr '(' $ac_mid ')' + 1`
4147 fi
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149 done
4150 case $ac_lo in
4151 ?*) ac_cv_sizeof_short=$ac_lo;;
4152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4153 See \`config.log' for more details." >&5
4154 echo "$as_me: error: cannot compute sizeof (short), 77
4155 See \`config.log' for more details." >&2;}
4156    { (exit 1); exit 1; }; } ;;
4157 esac
4158 else
4159   if test "$cross_compiling" = yes; then
4160   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4161 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4162    { (exit 1); exit 1; }; }
4163 else
4164   cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 $ac_includes_default
4171 long longval () { return (long) (sizeof (short)); }
4172 unsigned long ulongval () { return (long) (sizeof (short)); }
4173 #include <stdio.h>
4174 #include <stdlib.h>
4175 int
4176 main ()
4177 {
4178
4179   FILE *f = fopen ("conftest.val", "w");
4180   if (! f)
4181     exit (1);
4182   if (((long) (sizeof (short))) < 0)
4183     {
4184       long i = longval ();
4185       if (i != ((long) (sizeof (short))))
4186         exit (1);
4187       fprintf (f, "%ld\n", i);
4188     }
4189   else
4190     {
4191       unsigned long i = ulongval ();
4192       if (i != ((long) (sizeof (short))))
4193         exit (1);
4194       fprintf (f, "%lu\n", i);
4195     }
4196   exit (ferror (f) || fclose (f) != 0);
4197
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204   (eval $ac_link) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   ac_cv_sizeof_short=`cat conftest.val`
4214 else
4215   echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ( exit $ac_status )
4220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&2;}
4224    { (exit 1); exit 1; }; }
4225 fi
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4227 fi
4228 fi
4229 rm -f conftest.val
4230 else
4231   ac_cv_sizeof_short=0
4232 fi
4233 fi
4234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4235 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4236 cat >>confdefs.h <<_ACEOF
4237 #define SIZEOF_SHORT $ac_cv_sizeof_short
4238 _ACEOF
4239
4240
4241 echo "$as_me:$LINENO: checking for int" >&5
4242 echo $ECHO_N "checking for int... $ECHO_C" >&6
4243 if test "${ac_cv_type_int+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_includes_default
4253 int
4254 main ()
4255 {
4256 if ((int *) 0)
4257   return 0;
4258 if (sizeof (int))
4259   return 0;
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266   (eval $ac_compile) 2>conftest.er1
4267   ac_status=$?
4268   grep -v '^ *+' conftest.er1 >conftest.err
4269   rm -f conftest.er1
4270   cat conftest.err >&5
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); } &&
4273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275   (eval $ac_try) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; } &&
4279          { ac_try='test -s conftest.$ac_objext'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   ac_cv_type_int=yes
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 ac_cv_type_int=no
4291 fi
4292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 fi
4294 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4295 echo "${ECHO_T}$ac_cv_type_int" >&6
4296
4297 echo "$as_me:$LINENO: checking size of int" >&5
4298 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4299 if test "${ac_cv_sizeof_int+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   if test "$ac_cv_type_int" = yes; then
4303   # The cast to unsigned long works around a bug in the HP C Compiler
4304   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4305   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4306   # This bug is HP SR number 8606223364.
4307   if test "$cross_compiling" = yes; then
4308   # Depending upon the size, compute the lo and hi bounds.
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316 int
4317 main ()
4318 {
4319 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4320 test_array [0] = 0
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest.$ac_objext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_lo=0 ac_mid=0
4348   while :; do
4349     cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 $ac_includes_default
4356 int
4357 main ()
4358 {
4359 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4360 test_array [0] = 0
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368   (eval $ac_compile) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377   (eval $ac_try) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; } &&
4381          { ac_try='test -s conftest.$ac_objext'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   ac_hi=$ac_mid; break
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 ac_lo=`expr $ac_mid + 1`
4393                     if test $ac_lo -le $ac_mid; then
4394                       ac_lo= ac_hi=
4395                       break
4396                     fi
4397                     ac_mid=`expr 2 '*' $ac_mid + 1`
4398 fi
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4400   done
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 $ac_includes_default
4412 int
4413 main ()
4414 {
4415 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4416 test_array [0] = 0
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424   (eval $ac_compile) 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } &&
4431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; } &&
4437          { ac_try='test -s conftest.$ac_objext'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; }; then
4443   ac_hi=-1 ac_mid=-1
4444   while :; do
4445     cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 $ac_includes_default
4452 int
4453 main ()
4454 {
4455 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4456 test_array [0] = 0
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } &&
4471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473   (eval $ac_try) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; } &&
4477          { ac_try='test -s conftest.$ac_objext'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; }; then
4483   ac_lo=$ac_mid; break
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_hi=`expr '(' $ac_mid ')' - 1`
4489                        if test $ac_mid -le $ac_hi; then
4490                          ac_lo= ac_hi=
4491                          break
4492                        fi
4493                        ac_mid=`expr 2 '*' $ac_mid`
4494 fi
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4496   done
4497 else
4498   echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 ac_lo= ac_hi=
4502 fi
4503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506 # Binary search between lo and hi bounds.
4507 while test "x$ac_lo" != "x$ac_hi"; do
4508   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4509   cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h.  */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h.  */
4515 $ac_includes_default
4516 int
4517 main ()
4518 {
4519 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4520 test_array [0] = 0
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528   (eval $ac_compile) 2>conftest.er1
4529   ac_status=$?
4530   grep -v '^ *+' conftest.er1 >conftest.err
4531   rm -f conftest.er1
4532   cat conftest.err >&5
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); } &&
4535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; } &&
4541          { ac_try='test -s conftest.$ac_objext'
4542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543   (eval $ac_try) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }; }; then
4547   ac_hi=$ac_mid
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ac_lo=`expr '(' $ac_mid ')' + 1`
4553 fi
4554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555 done
4556 case $ac_lo in
4557 ?*) ac_cv_sizeof_int=$ac_lo;;
4558 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4559 See \`config.log' for more details." >&5
4560 echo "$as_me: error: cannot compute sizeof (int), 77
4561 See \`config.log' for more details." >&2;}
4562    { (exit 1); exit 1; }; } ;;
4563 esac
4564 else
4565   if test "$cross_compiling" = yes; then
4566   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4567 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4568    { (exit 1); exit 1; }; }
4569 else
4570   cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 $ac_includes_default
4577 long longval () { return (long) (sizeof (int)); }
4578 unsigned long ulongval () { return (long) (sizeof (int)); }
4579 #include <stdio.h>
4580 #include <stdlib.h>
4581 int
4582 main ()
4583 {
4584
4585   FILE *f = fopen ("conftest.val", "w");
4586   if (! f)
4587     exit (1);
4588   if (((long) (sizeof (int))) < 0)
4589     {
4590       long i = longval ();
4591       if (i != ((long) (sizeof (int))))
4592         exit (1);
4593       fprintf (f, "%ld\n", i);
4594     }
4595   else
4596     {
4597       unsigned long i = ulongval ();
4598       if (i != ((long) (sizeof (int))))
4599         exit (1);
4600       fprintf (f, "%lu\n", i);
4601     }
4602   exit (ferror (f) || fclose (f) != 0);
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest$ac_exeext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4610   (eval $ac_link) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_cv_sizeof_int=`cat conftest.val`
4620 else
4621   echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ( exit $ac_status )
4626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (int), 77
4629 See \`config.log' for more details." >&2;}
4630    { (exit 1); exit 1; }; }
4631 fi
4632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 fi
4635 rm -f conftest.val
4636 else
4637   ac_cv_sizeof_int=0
4638 fi
4639 fi
4640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4641 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4642 cat >>confdefs.h <<_ACEOF
4643 #define SIZEOF_INT $ac_cv_sizeof_int
4644 _ACEOF
4645
4646
4647 echo "$as_me:$LINENO: checking for long" >&5
4648 echo $ECHO_N "checking for long... $ECHO_C" >&6
4649 if test "${ac_cv_type_long+set}" = set; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652   cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658 $ac_includes_default
4659 int
4660 main ()
4661 {
4662 if ((long *) 0)
4663   return 0;
4664 if (sizeof (long))
4665   return 0;
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672   (eval $ac_compile) 2>conftest.er1
4673   ac_status=$?
4674   grep -v '^ *+' conftest.er1 >conftest.err
4675   rm -f conftest.er1
4676   cat conftest.err >&5
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); } &&
4679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681   (eval $ac_try) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; } &&
4685          { ac_try='test -s conftest.$ac_objext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   ac_cv_type_long=yes
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_cv_type_long=no
4697 fi
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 fi
4700 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4701 echo "${ECHO_T}$ac_cv_type_long" >&6
4702
4703 echo "$as_me:$LINENO: checking size of long" >&5
4704 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4705 if test "${ac_cv_sizeof_long+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   if test "$ac_cv_type_long" = yes; then
4709   # The cast to unsigned long works around a bug in the HP C Compiler
4710   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4711   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4712   # This bug is HP SR number 8606223364.
4713   if test "$cross_compiling" = yes; then
4714   # Depending upon the size, compute the lo and hi bounds.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721 $ac_includes_default
4722 int
4723 main ()
4724 {
4725 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4726 test_array [0] = 0
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734   (eval $ac_compile) 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743   (eval $ac_try) 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; } &&
4747          { ac_try='test -s conftest.$ac_objext'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; }; then
4753   ac_lo=0 ac_mid=0
4754   while :; do
4755     cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 $ac_includes_default
4762 int
4763 main ()
4764 {
4765 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4766 test_array [0] = 0
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   ac_hi=$ac_mid; break
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 ac_lo=`expr $ac_mid + 1`
4799                     if test $ac_lo -le $ac_mid; then
4800                       ac_lo= ac_hi=
4801                       break
4802                     fi
4803                     ac_mid=`expr 2 '*' $ac_mid + 1`
4804 fi
4805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4806   done
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817 $ac_includes_default
4818 int
4819 main ()
4820 {
4821 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4822 test_array [0] = 0
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_hi=-1 ac_mid=-1
4850   while :; do
4851     cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 $ac_includes_default
4858 int
4859 main ()
4860 {
4861 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4862 test_array [0] = 0
4863
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870   (eval $ac_compile) 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } &&
4877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; } &&
4883          { ac_try='test -s conftest.$ac_objext'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; }; then
4889   ac_lo=$ac_mid; break
4890 else
4891   echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 ac_hi=`expr '(' $ac_mid ')' - 1`
4895                        if test $ac_mid -le $ac_hi; then
4896                          ac_lo= ac_hi=
4897                          break
4898                        fi
4899                        ac_mid=`expr 2 '*' $ac_mid`
4900 fi
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902   done
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_lo= ac_hi=
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 # Binary search between lo and hi bounds.
4913 while test "x$ac_lo" != "x$ac_hi"; do
4914   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4915   cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 $ac_includes_default
4922 int
4923 main ()
4924 {
4925 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4926 test_array [0] = 0
4927
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943   (eval $ac_try) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; } &&
4947          { ac_try='test -s conftest.$ac_objext'
4948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949   (eval $ac_try) 2>&5
4950   ac_status=$?
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); }; }; then
4953   ac_hi=$ac_mid
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 ac_lo=`expr '(' $ac_mid ')' + 1`
4959 fi
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 done
4962 case $ac_lo in
4963 ?*) ac_cv_sizeof_long=$ac_lo;;
4964 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4965 See \`config.log' for more details." >&5
4966 echo "$as_me: error: cannot compute sizeof (long), 77
4967 See \`config.log' for more details." >&2;}
4968    { (exit 1); exit 1; }; } ;;
4969 esac
4970 else
4971   if test "$cross_compiling" = yes; then
4972   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4973 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4974    { (exit 1); exit 1; }; }
4975 else
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 $ac_includes_default
4983 long longval () { return (long) (sizeof (long)); }
4984 unsigned long ulongval () { return (long) (sizeof (long)); }
4985 #include <stdio.h>
4986 #include <stdlib.h>
4987 int
4988 main ()
4989 {
4990
4991   FILE *f = fopen ("conftest.val", "w");
4992   if (! f)
4993     exit (1);
4994   if (((long) (sizeof (long))) < 0)
4995     {
4996       long i = longval ();
4997       if (i != ((long) (sizeof (long))))
4998         exit (1);
4999       fprintf (f, "%ld\n", i);
5000     }
5001   else
5002     {
5003       unsigned long i = ulongval ();
5004       if (i != ((long) (sizeof (long))))
5005         exit (1);
5006       fprintf (f, "%lu\n", i);
5007     }
5008   exit (ferror (f) || fclose (f) != 0);
5009
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest$ac_exeext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5016   (eval $ac_link) 2>&5
5017   ac_status=$?
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; }; then
5025   ac_cv_sizeof_long=`cat conftest.val`
5026 else
5027   echo "$as_me: program exited with status $ac_status" >&5
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031 ( exit $ac_status )
5032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5033 See \`config.log' for more details." >&5
5034 echo "$as_me: error: cannot compute sizeof (long), 77
5035 See \`config.log' for more details." >&2;}
5036    { (exit 1); exit 1; }; }
5037 fi
5038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 fi
5041 rm -f conftest.val
5042 else
5043   ac_cv_sizeof_long=0
5044 fi
5045 fi
5046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5047 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5048 cat >>confdefs.h <<_ACEOF
5049 #define SIZEOF_LONG $ac_cv_sizeof_long
5050 _ACEOF
5051
5052
5053 echo "$as_me:$LINENO: checking for long long" >&5
5054 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5055 if test "${ac_cv_type_long_long+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 $ac_includes_default
5065 int
5066 main ()
5067 {
5068 if ((long long *) 0)
5069   return 0;
5070 if (sizeof (long long))
5071   return 0;
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>conftest.er1
5079   ac_status=$?
5080   grep -v '^ *+' conftest.er1 >conftest.err
5081   rm -f conftest.er1
5082   cat conftest.err >&5
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; } &&
5091          { ac_try='test -s conftest.$ac_objext'
5092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093   (eval $ac_try) 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); }; }; then
5097   ac_cv_type_long_long=yes
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 ac_cv_type_long_long=no
5103 fi
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5107 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5108 if test $ac_cv_type_long_long = yes; then
5109
5110 cat >>confdefs.h <<_ACEOF
5111 #define HAVE_LONG_LONG 1
5112 _ACEOF
5113
5114 echo "$as_me:$LINENO: checking for long long" >&5
5115 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5116 if test "${ac_cv_type_long_long+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 $ac_includes_default
5126 int
5127 main ()
5128 {
5129 if ((long long *) 0)
5130   return 0;
5131 if (sizeof (long long))
5132   return 0;
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139   (eval $ac_compile) 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } &&
5146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148   (eval $ac_try) 2>&5
5149   ac_status=$?
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); }; } &&
5152          { ac_try='test -s conftest.$ac_objext'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; }; then
5158   ac_cv_type_long_long=yes
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ac_cv_type_long_long=no
5164 fi
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5166 fi
5167 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5168 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5169
5170 echo "$as_me:$LINENO: checking size of long long" >&5
5171 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5172 if test "${ac_cv_sizeof_long_long+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test "$ac_cv_type_long_long" = yes; then
5176   # The cast to unsigned long works around a bug in the HP C Compiler
5177   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5178   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5179   # This bug is HP SR number 8606223364.
5180   if test "$cross_compiling" = yes; then
5181   # Depending upon the size, compute the lo and hi bounds.
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 $ac_includes_default
5189 int
5190 main ()
5191 {
5192 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5193 test_array [0] = 0
5194
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_lo=0 ac_mid=0
5221   while :; do
5222     cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 $ac_includes_default
5229 int
5230 main ()
5231 {
5232 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5233 test_array [0] = 0
5234
5235   ;
5236   return 0;
5237 }
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241   (eval $ac_compile) 2>conftest.er1
5242   ac_status=$?
5243   grep -v '^ *+' conftest.er1 >conftest.err
5244   rm -f conftest.er1
5245   cat conftest.err >&5
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; } &&
5254          { ac_try='test -s conftest.$ac_objext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_hi=$ac_mid; break
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ac_lo=`expr $ac_mid + 1`
5266                     if test $ac_lo -le $ac_mid; then
5267                       ac_lo= ac_hi=
5268                       break
5269                     fi
5270                     ac_mid=`expr 2 '*' $ac_mid + 1`
5271 fi
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5273   done
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 $ac_includes_default
5285 int
5286 main ()
5287 {
5288 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5289 test_array [0] = 0
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297   (eval $ac_compile) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; } &&
5310          { ac_try='test -s conftest.$ac_objext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   ac_hi=-1 ac_mid=-1
5317   while :; do
5318     cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324 $ac_includes_default
5325 int
5326 main ()
5327 {
5328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5329 test_array [0] = 0
5330
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337   (eval $ac_compile) 2>conftest.er1
5338   ac_status=$?
5339   grep -v '^ *+' conftest.er1 >conftest.err
5340   rm -f conftest.er1
5341   cat conftest.err >&5
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); } &&
5344          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; } &&
5350          { ac_try='test -s conftest.$ac_objext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_lo=$ac_mid; break
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_hi=`expr '(' $ac_mid ')' - 1`
5362                        if test $ac_mid -le $ac_hi; then
5363                          ac_lo= ac_hi=
5364                          break
5365                        fi
5366                        ac_mid=`expr 2 '*' $ac_mid`
5367 fi
5368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369   done
5370 else
5371   echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374 ac_lo= ac_hi=
5375 fi
5376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379 # Binary search between lo and hi bounds.
5380 while test "x$ac_lo" != "x$ac_hi"; do
5381   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5382   cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h.  */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h.  */
5388 $ac_includes_default
5389 int
5390 main ()
5391 {
5392 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5393 test_array [0] = 0
5394
5395   ;
5396   return 0;
5397 }
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401   (eval $ac_compile) 2>conftest.er1
5402   ac_status=$?
5403   grep -v '^ *+' conftest.er1 >conftest.err
5404   rm -f conftest.er1
5405   cat conftest.err >&5
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); } &&
5408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410   (eval $ac_try) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); }; } &&
5414          { ac_try='test -s conftest.$ac_objext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_hi=$ac_mid
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_lo=`expr '(' $ac_mid ')' + 1`
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 done
5429 case $ac_lo in
5430 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5431 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5432 See \`config.log' for more details." >&5
5433 echo "$as_me: error: cannot compute sizeof (long long), 77
5434 See \`config.log' for more details." >&2;}
5435    { (exit 1); exit 1; }; } ;;
5436 esac
5437 else
5438   if test "$cross_compiling" = yes; then
5439   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5440 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5441    { (exit 1); exit 1; }; }
5442 else
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 $ac_includes_default
5450 long longval () { return (long) (sizeof (long long)); }
5451 unsigned long ulongval () { return (long) (sizeof (long long)); }
5452 #include <stdio.h>
5453 #include <stdlib.h>
5454 int
5455 main ()
5456 {
5457
5458   FILE *f = fopen ("conftest.val", "w");
5459   if (! f)
5460     exit (1);
5461   if (((long) (sizeof (long long))) < 0)
5462     {
5463       long i = longval ();
5464       if (i != ((long) (sizeof (long long))))
5465         exit (1);
5466       fprintf (f, "%ld\n", i);
5467     }
5468   else
5469     {
5470       unsigned long i = ulongval ();
5471       if (i != ((long) (sizeof (long long))))
5472         exit (1);
5473       fprintf (f, "%lu\n", i);
5474     }
5475   exit (ferror (f) || fclose (f) != 0);
5476
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483   (eval $ac_link) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   ac_cv_sizeof_long_long=`cat conftest.val`
5493 else
5494   echo "$as_me: program exited with status $ac_status" >&5
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ( exit $ac_status )
5499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5500 See \`config.log' for more details." >&5
5501 echo "$as_me: error: cannot compute sizeof (long long), 77
5502 See \`config.log' for more details." >&2;}
5503    { (exit 1); exit 1; }; }
5504 fi
5505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 fi
5508 rm -f conftest.val
5509 else
5510   ac_cv_sizeof_long_long=0
5511 fi
5512 fi
5513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5514 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5515 cat >>confdefs.h <<_ACEOF
5516 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5517 _ACEOF
5518
5519
5520 fi
5521
5522 echo "$as_me:$LINENO: checking for __int64" >&5
5523 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5524 if test "${ac_cv_type___int64+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h.  */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h.  */
5533 $ac_includes_default
5534 int
5535 main ()
5536 {
5537 if ((__int64 *) 0)
5538   return 0;
5539 if (sizeof (__int64))
5540   return 0;
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547   (eval $ac_compile) 2>conftest.er1
5548   ac_status=$?
5549   grep -v '^ *+' conftest.er1 >conftest.err
5550   rm -f conftest.er1
5551   cat conftest.err >&5
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } &&
5554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; } &&
5560          { ac_try='test -s conftest.$ac_objext'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; }; then
5566   ac_cv_type___int64=yes
5567 else
5568   echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 ac_cv_type___int64=no
5572 fi
5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5576 echo "${ECHO_T}$ac_cv_type___int64" >&6
5577 if test $ac_cv_type___int64 = yes; then
5578
5579 cat >>confdefs.h <<_ACEOF
5580 #define HAVE___INT64 1
5581 _ACEOF
5582
5583 echo "$as_me:$LINENO: checking for __int64" >&5
5584 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5585 if test "${ac_cv_type___int64+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594 $ac_includes_default
5595 int
5596 main ()
5597 {
5598 if ((__int64 *) 0)
5599   return 0;
5600 if (sizeof (__int64))
5601   return 0;
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608   (eval $ac_compile) 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } &&
5615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest.$ac_objext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_cv_type___int64=yes
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_cv_type___int64=no
5633 fi
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635 fi
5636 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5637 echo "${ECHO_T}$ac_cv_type___int64" >&6
5638
5639 echo "$as_me:$LINENO: checking size of __int64" >&5
5640 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5641 if test "${ac_cv_sizeof___int64+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   if test "$ac_cv_type___int64" = yes; then
5645   # The cast to unsigned long works around a bug in the HP C Compiler
5646   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5647   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5648   # This bug is HP SR number 8606223364.
5649   if test "$cross_compiling" = yes; then
5650   # Depending upon the size, compute the lo and hi bounds.
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657 $ac_includes_default
5658 int
5659 main ()
5660 {
5661 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5662 test_array [0] = 0
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670   (eval $ac_compile) 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } &&
5677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679   (eval $ac_try) 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); }; } &&
5683          { ac_try='test -s conftest.$ac_objext'
5684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685   (eval $ac_try) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; }; then
5689   ac_lo=0 ac_mid=0
5690   while :; do
5691     cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h.  */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h.  */
5697 $ac_includes_default
5698 int
5699 main ()
5700 {
5701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5702 test_array [0] = 0
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710   (eval $ac_compile) 2>conftest.er1
5711   ac_status=$?
5712   grep -v '^ *+' conftest.er1 >conftest.err
5713   rm -f conftest.er1
5714   cat conftest.err >&5
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } &&
5717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest.$ac_objext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_hi=$ac_mid; break
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_lo=`expr $ac_mid + 1`
5735                     if test $ac_lo -le $ac_mid; then
5736                       ac_lo= ac_hi=
5737                       break
5738                     fi
5739                     ac_mid=`expr 2 '*' $ac_mid + 1`
5740 fi
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742   done
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 $ac_includes_default
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5758 test_array [0] = 0
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766   (eval $ac_compile) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; } &&
5779          { ac_try='test -s conftest.$ac_objext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_hi=-1 ac_mid=-1
5786   while :; do
5787     cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 $ac_includes_default
5794 int
5795 main ()
5796 {
5797 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5798 test_array [0] = 0
5799
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806   (eval $ac_compile) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; } &&
5819          { ac_try='test -s conftest.$ac_objext'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; }; then
5825   ac_lo=$ac_mid; break
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 ac_hi=`expr '(' $ac_mid ')' - 1`
5831                        if test $ac_mid -le $ac_hi; then
5832                          ac_lo= ac_hi=
5833                          break
5834                        fi
5835                        ac_mid=`expr 2 '*' $ac_mid`
5836 fi
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838   done
5839 else
5840   echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_lo= ac_hi=
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 fi
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 # Binary search between lo and hi bounds.
5849 while test "x$ac_lo" != "x$ac_hi"; do
5850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5851   cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 $ac_includes_default
5858 int
5859 main ()
5860 {
5861 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5862 test_array [0] = 0
5863
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870   (eval $ac_compile) 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; } &&
5883          { ac_try='test -s conftest.$ac_objext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_hi=$ac_mid
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_lo=`expr '(' $ac_mid ')' + 1`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 case $ac_lo in
5899 ?*) ac_cv_sizeof___int64=$ac_lo;;
5900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot compute sizeof (__int64), 77
5903 See \`config.log' for more details." >&2;}
5904    { (exit 1); exit 1; }; } ;;
5905 esac
5906 else
5907   if test "$cross_compiling" = yes; then
5908   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5909 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5910    { (exit 1); exit 1; }; }
5911 else
5912   cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 $ac_includes_default
5919 long longval () { return (long) (sizeof (__int64)); }
5920 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5921 #include <stdio.h>
5922 #include <stdlib.h>
5923 int
5924 main ()
5925 {
5926
5927   FILE *f = fopen ("conftest.val", "w");
5928   if (! f)
5929     exit (1);
5930   if (((long) (sizeof (__int64))) < 0)
5931     {
5932       long i = longval ();
5933       if (i != ((long) (sizeof (__int64))))
5934         exit (1);
5935       fprintf (f, "%ld\n", i);
5936     }
5937   else
5938     {
5939       unsigned long i = ulongval ();
5940       if (i != ((long) (sizeof (__int64))))
5941         exit (1);
5942       fprintf (f, "%lu\n", i);
5943     }
5944   exit (ferror (f) || fclose (f) != 0);
5945
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952   (eval $ac_link) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; }; then
5961   ac_cv_sizeof___int64=`cat conftest.val`
5962 else
5963   echo "$as_me: program exited with status $ac_status" >&5
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 ( exit $ac_status )
5968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot compute sizeof (__int64), 77
5971 See \`config.log' for more details." >&2;}
5972    { (exit 1); exit 1; }; }
5973 fi
5974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 fi
5977 rm -f conftest.val
5978 else
5979   ac_cv_sizeof___int64=0
5980 fi
5981 fi
5982 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5983 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5986 _ACEOF
5987
5988
5989 fi
5990
5991
5992 # ---------------------
5993 # Warnings and checking
5994 # ---------------------
5995
5996 # Check $CC warning features (if it's GCC).
5997 # We want to use -pedantic, but we don't want warnings about
5998 # * 'long long'
5999 # * variadic macros
6000 # So, we only use -pedantic if we can disable those warnings.
6001
6002 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6003 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6004 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   save_CFLAGS="$CFLAGS"
6008   CFLAGS="-Wno-long-long"
6009   cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h.  */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h.  */
6015
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019   (eval $ac_compile) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } &&
6026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest.$ac_objext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   ac_cv_prog_cc_w_no_long_long=yes
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ac_cv_prog_cc_w_no_long_long=no
6044 fi
6045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046   CFLAGS="$save_CFLAGS"
6047
6048 fi
6049 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6050 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6051
6052 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6053 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6054 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   save_CFLAGS="$CFLAGS"
6058   CFLAGS="-Wno-variadic-macros"
6059   cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069   (eval $ac_compile) 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } &&
6076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; } &&
6082          { ac_try='test -s conftest.$ac_objext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   ac_cv_prog_cc_w_no_variadic_macros=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_cv_prog_cc_w_no_variadic_macros=no
6094 fi
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096   CFLAGS="$save_CFLAGS"
6097
6098 fi
6099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6100 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6101
6102 strict1_warn=
6103 if test $ac_cv_prog_cc_w_no_long_long = yes \
6104    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6105   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6106 fi
6107
6108 # Add -Wold-style-definition if it's accepted
6109 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6110 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6111 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   save_CFLAGS="$CFLAGS"
6115   CFLAGS="-Wold-style-definition"
6116   cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126   (eval $ac_compile) 2>conftest.er1
6127   ac_status=$?
6128   grep -v '^ *+' conftest.er1 >conftest.err
6129   rm -f conftest.er1
6130   cat conftest.err >&5
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; } &&
6139          { ac_try='test -s conftest.$ac_objext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   ac_cv_prog_cc_w_old_style_definition=yes
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_cv_prog_cc_w_old_style_definition=no
6151 fi
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153   CFLAGS="$save_CFLAGS"
6154
6155 fi
6156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6157 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6158 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6159   strict1_warn="${strict1_warn} -Wold-style-definition"
6160 fi
6161
6162 # Add -Wmissing-format-attribute if it's accepted
6163 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6164 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6165 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   save_CFLAGS="$CFLAGS"
6169   CFLAGS="-Wmissing-format-attribute"
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176
6177 _ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180   (eval $ac_compile) 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_cv_prog_cc_w_missing_format_attribute=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_cv_prog_cc_w_missing_format_attribute=no
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207   CFLAGS="$save_CFLAGS"
6208
6209 fi
6210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6211 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6212 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6213   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6214 fi
6215
6216 # Enable -Werror, period.
6217 # Check whether --enable-werror_always or --disable-werror_always was given.
6218 if test "${enable_werror_always+set}" = set; then
6219   enableval="$enable_werror_always"
6220
6221 else
6222   enable_werror_always=no
6223 fi;
6224 if test x${enable_werror_always} = xyes ; then
6225   strict1_warn="${strict1_warn} -Werror"
6226   WERROR=-Werror
6227 fi
6228
6229
6230
6231 # If the native compiler is GCC, we can enable warnings even in stage1.
6232 # That's useful for people building cross-compilers, or just running a
6233 # quick `make'.
6234 warn_cflags=
6235 if test "x$GCC" = "xyes"; then
6236   warn_cflags='$(GCC_WARN_CFLAGS)'
6237 fi
6238
6239
6240 # Enable -Werror in bootstrap stage2 and later.
6241 is_release=
6242 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6243   is_release=yes
6244 fi
6245 # Check whether --enable-werror or --disable-werror was given.
6246 if test "${enable_werror+set}" = set; then
6247   enableval="$enable_werror"
6248
6249 else
6250   if test x$is_release = x ; then
6251   # Default to "yes" on development branches.
6252   enable_werror=yes
6253 else
6254   # Default to "no" on release branches.
6255   enable_werror=no
6256 fi
6257 fi;
6258 if test x$enable_werror = xyes ; then
6259   WERROR=-Werror
6260 fi
6261
6262
6263 # Enable expensive internal checks
6264 # Check whether --enable-checking or --disable-checking was given.
6265 if test "${enable_checking+set}" = set; then
6266   enableval="$enable_checking"
6267   ac_checking_flags="${enableval}"
6268 else
6269
6270 # Determine the default checks.
6271 if test x$is_release = x ; then
6272   ac_checking_flags=yes
6273 else
6274   ac_checking_flags=release
6275 fi
6276 fi;
6277 ac_assert_checking=1
6278 ac_checking=
6279 ac_fold_checking=
6280 ac_gc_checking=
6281 ac_gc_always_collect=
6282 ac_rtl_checking=
6283 ac_rtlflag_checking=
6284 ac_runtime_checking=1
6285 ac_tree_checking=
6286 ac_valgrind_checking=
6287 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6288 for check in $ac_checking_flags
6289 do
6290         case $check in
6291         # these set all the flags to specific states
6292         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6293                         ac_fold_checking= ; ac_gc_checking=1 ;
6294                         ac_gc_always_collect= ; ac_rtl_checking= ;
6295                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6296                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6297         no|none)        ac_assert_checking= ; ac_checking= ;
6298                         ac_fold_checking= ; ac_gc_checking= ;
6299                         ac_gc_always_collect= ; ac_rtl_checking= ;
6300                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6301                         ac_tree_checking= ; ac_valgrind_checking= ;;
6302         all)            ac_assert_checking=1 ; ac_checking=1 ;
6303                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6304                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6305                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6306                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6307         release)        ac_assert_checking=1 ; ac_checking= ;
6308                         ac_fold_checking= ; ac_gc_checking= ;
6309                         ac_gc_always_collect= ; ac_rtl_checking= ;
6310                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6311                         ac_tree_checking= ; ac_valgrind_checking= ;;
6312         # these enable particular checks
6313         assert)         ac_assert_checking=1 ;;
6314         fold)           ac_fold_checking=1 ;;
6315         gc)             ac_gc_checking=1 ;;
6316         gcac)           ac_gc_always_collect=1 ;;
6317         misc)           ac_checking=1 ;;
6318         rtl)            ac_rtl_checking=1 ;;
6319         rtlflag)        ac_rtlflag_checking=1 ;;
6320         runtime)        ac_runtime_checking=1 ;;
6321         tree)           ac_tree_checking=1 ;;
6322         valgrind)       ac_valgrind_checking=1 ;;
6323         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6324 echo "$as_me: error: unknown check category $check" >&2;}
6325    { (exit 1); exit 1; }; } ;;
6326         esac
6327 done
6328 IFS="$ac_save_IFS"
6329
6330 nocommon_flag=""
6331 if test x$ac_checking != x ; then
6332
6333 cat >>confdefs.h <<\_ACEOF
6334 #define ENABLE_CHECKING 1
6335 _ACEOF
6336
6337   nocommon_flag=-fno-common
6338 fi
6339
6340 if test x$ac_assert_checking != x ; then
6341
6342 cat >>confdefs.h <<\_ACEOF
6343 #define ENABLE_ASSERT_CHECKING 1
6344 _ACEOF
6345
6346 fi
6347
6348 if test x$ac_runtime_checking != x ; then
6349
6350 cat >>confdefs.h <<\_ACEOF
6351 #define ENABLE_RUNTIME_CHECKING 1
6352 _ACEOF
6353
6354 fi
6355 if test x$ac_tree_checking != x ; then
6356
6357 cat >>confdefs.h <<\_ACEOF
6358 #define ENABLE_TREE_CHECKING 1
6359 _ACEOF
6360
6361   TREEBROWSER=tree-browser.o
6362 fi
6363
6364 if test x$ac_rtl_checking != x ; then
6365
6366 cat >>confdefs.h <<\_ACEOF
6367 #define ENABLE_RTL_CHECKING 1
6368 _ACEOF
6369
6370 fi
6371 if test x$ac_rtlflag_checking != x ; then
6372
6373 cat >>confdefs.h <<\_ACEOF
6374 #define ENABLE_RTL_FLAG_CHECKING 1
6375 _ACEOF
6376
6377 fi
6378 if test x$ac_gc_checking != x ; then
6379
6380 cat >>confdefs.h <<\_ACEOF
6381 #define ENABLE_GC_CHECKING 1
6382 _ACEOF
6383
6384 fi
6385 if test x$ac_gc_always_collect != x ; then
6386
6387 cat >>confdefs.h <<\_ACEOF
6388 #define ENABLE_GC_ALWAYS_COLLECT 1
6389 _ACEOF
6390
6391 fi
6392 if test x$ac_fold_checking != x ; then
6393
6394 cat >>confdefs.h <<\_ACEOF
6395 #define ENABLE_FOLD_CHECKING 1
6396 _ACEOF
6397
6398 fi
6399 valgrind_path_defines=
6400 valgrind_command=
6401
6402 if test "${ac_cv_header_valgrind_h+set}" = set; then
6403   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6404 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6405 if test "${ac_cv_header_valgrind_h+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 fi
6408 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6409 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6410 else
6411   # Is the header compilable?
6412 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6413 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 $ac_includes_default
6421 #include <valgrind.h>
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425   (eval $ac_compile) 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
6429   cat conftest.err >&5
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; } &&
6438          { ac_try='test -s conftest.$ac_objext'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; }; then
6444   ac_header_compiler=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_header_compiler=no
6450 fi
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6457 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 #include <valgrind.h>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } >/dev/null; then
6474   if test -s conftest.err; then
6475     ac_cpp_err=$ac_c_preproc_warn_flag
6476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477   else
6478     ac_cpp_err=
6479   fi
6480 else
6481   ac_cpp_err=yes
6482 fi
6483 if test -z "$ac_cpp_err"; then
6484   ac_header_preproc=yes
6485 else
6486   echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489   ac_header_preproc=no
6490 fi
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495 # So?  What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497   yes:no: )
6498     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6502     ac_header_preproc=yes
6503     ;;
6504   no:yes:* )
6505     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6517     (
6518       cat <<\_ASBOX
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists.  ##
6521 ## ------------------------------------------ ##
6522 _ASBOX
6523     ) |
6524       sed "s/^/$as_me: WARNING:     /" >&2
6525     ;;
6526 esac
6527 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6528 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6529 if test "${ac_cv_header_valgrind_h+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   ac_cv_header_valgrind_h=$ac_header_preproc
6533 fi
6534 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6535 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6536
6537 fi
6538 if test $ac_cv_header_valgrind_h = yes; then
6539   have_valgrind_h=yes
6540 else
6541   have_valgrind_h=no
6542 fi
6543
6544
6545
6546 if test x$ac_valgrind_checking != x ; then
6547   # It is certainly possible that there's valgrind but no valgrind.h.
6548   # GCC relies on making annotations so we must have both.
6549   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6550 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6551   cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557 #include <valgrind/memcheck.h>
6558 #ifndef VALGRIND_DISCARD
6559 #error VALGRIND_DISCARD not defined
6560 #endif
6561 _ACEOF
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6564   ac_status=$?
6565   grep -v '^ *+' conftest.er1 >conftest.err
6566   rm -f conftest.er1
6567   cat conftest.err >&5
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } >/dev/null; then
6570   if test -s conftest.err; then
6571     ac_cpp_err=$ac_c_preproc_warn_flag
6572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6573   else
6574     ac_cpp_err=
6575   fi
6576 else
6577   ac_cpp_err=yes
6578 fi
6579 if test -z "$ac_cpp_err"; then
6580   gcc_cv_header_valgrind_memcheck_h=yes
6581 else
6582   echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585   gcc_cv_header_valgrind_memcheck_h=no
6586 fi
6587 rm -f conftest.err conftest.$ac_ext
6588   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6589 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6590   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6591 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6592   cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 #include <memcheck.h>
6599 #ifndef VALGRIND_DISCARD
6600 #error VALGRIND_DISCARD not defined
6601 #endif
6602 _ACEOF
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } >/dev/null; then
6611   if test -s conftest.err; then
6612     ac_cpp_err=$ac_c_preproc_warn_flag
6613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6614   else
6615     ac_cpp_err=
6616   fi
6617 else
6618   ac_cpp_err=yes
6619 fi
6620 if test -z "$ac_cpp_err"; then
6621   gcc_cv_header_memcheck_h=yes
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626   gcc_cv_header_memcheck_h=no
6627 fi
6628 rm -f conftest.err conftest.$ac_ext
6629   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6630 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6631
6632 # Prepare PATH_SEPARATOR.
6633 # The user is always right.
6634 if test "${PATH_SEPARATOR+set}" != set; then
6635   echo "#! /bin/sh" >conf$$.sh
6636   echo  "exit 0"   >>conf$$.sh
6637   chmod +x conf$$.sh
6638   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6639     PATH_SEPARATOR=';'
6640   else
6641     PATH_SEPARATOR=:
6642   fi
6643   rm -f conf$$.sh
6644 fi
6645
6646 # Find out how to test for executable files. Don't use a zero-byte file,
6647 # as systems may use methods other than mode bits to determine executability.
6648 cat >conf$$.file <<_ASEOF
6649 #! /bin/sh
6650 exit 0
6651 _ASEOF
6652 chmod +x conf$$.file
6653 if test -x conf$$.file >/dev/null 2>&1; then
6654   ac_executable_p="test -x"
6655 else
6656   ac_executable_p="test -f"
6657 fi
6658 rm -f conf$$.file
6659
6660 # Extract the first word of "valgrind", so it can be a program name with args.
6661 set dummy valgrind; ac_word=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_valgrind_path+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   case "$valgrind_path" in
6668   [\\/]* | ?:[\\/]*)
6669     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6670     ;;
6671   *)
6672     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6673     for ac_dir in $PATH; do
6674       IFS="$ac_save_IFS"
6675       test -z "$ac_dir" && ac_dir=.
6676       for ac_exec_ext in '' $ac_executable_extensions; do
6677         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6678           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6679             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6680             break 2
6681           fi
6682         fi
6683       done
6684     done
6685     IFS="$ac_save_IFS"
6686     ;;
6687 esac
6688 fi
6689 valgrind_path="$ac_cv_path_valgrind_path"
6690 if test -n "$valgrind_path"; then
6691   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6692 echo "${ECHO_T}$valgrind_path" >&6
6693 else
6694   echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6
6696 fi
6697
6698   if test "x$valgrind_path" = "x" \
6699     || (test $have_valgrind_h = no \
6700         && test $gcc_cv_header_memcheck_h = no \
6701         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6702         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6703 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6704    { (exit 1); exit 1; }; }
6705   fi
6706   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6707   valgrind_command="$valgrind_path -q"
6708
6709 cat >>confdefs.h <<\_ACEOF
6710 #define ENABLE_VALGRIND_CHECKING 1
6711 _ACEOF
6712
6713   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6714
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_VALGRIND_MEMCHECK_H 1
6717 _ACEOF
6718
6719   fi
6720   if test $gcc_cv_header_memcheck_h = yes; then
6721
6722 cat >>confdefs.h <<\_ACEOF
6723 #define HAVE_MEMCHECK_H 1
6724 _ACEOF
6725
6726   fi
6727 fi
6728
6729
6730
6731 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6732 if test "${enable_mapped_location+set}" = set; then
6733   enableval="$enable_mapped_location"
6734
6735 else
6736   enable_mapped_location=no
6737 fi;
6738
6739 if test "$enable_mapped_location" = yes ; then
6740
6741 cat >>confdefs.h <<\_ACEOF
6742 #define USE_MAPPED_LOCATION 1
6743 _ACEOF
6744
6745 fi
6746
6747 # Enable code coverage collection
6748 # Check whether --enable-coverage or --disable-coverage was given.
6749 if test "${enable_coverage+set}" = set; then
6750   enableval="$enable_coverage"
6751   case "${enableval}" in
6752   yes|noopt)
6753     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6754     ;;
6755   opt)
6756     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6757     ;;
6758   no)
6759     # a.k.a. --disable-coverage
6760     coverage_flags=""
6761     ;;
6762   *)
6763     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6764 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6765    { (exit 1); exit 1; }; }
6766     ;;
6767 esac
6768 else
6769   coverage_flags=""
6770 fi;
6771
6772
6773 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6774 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6775   enableval="$enable_gather_detailed_mem_stats"
6776
6777 else
6778   enable_gather_detailed_mem_stats=no
6779 fi;
6780 if test x$enable_gather_detailed_mem_stats = xyes ; then
6781
6782 cat >>confdefs.h <<\_ACEOF
6783 #define GATHER_STATISTICS 1
6784 _ACEOF
6785
6786 fi
6787
6788 # -------------------------------
6789 # Miscenalleous configure options
6790 # -------------------------------
6791
6792 # With stabs
6793
6794 # Check whether --with-stabs or --without-stabs was given.
6795 if test "${with_stabs+set}" = set; then
6796   withval="$with_stabs"
6797   stabs="$with_stabs"
6798 else
6799   stabs=no
6800 fi;
6801
6802 # Determine whether or not multilibs are enabled.
6803 # Check whether --enable-multilib or --disable-multilib was given.
6804 if test "${enable_multilib+set}" = set; then
6805   enableval="$enable_multilib"
6806
6807 else
6808   enable_multilib=yes
6809 fi;
6810
6811
6812 # Enable __cxa_atexit for C++.
6813 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6814 if test "${enable___cxa_atexit+set}" = set; then
6815   enableval="$enable___cxa_atexit"
6816
6817 fi;
6818
6819 # Enable threads
6820 # Pass with no value to take the default
6821 # Pass with a value to specify a thread package
6822 # Check whether --enable-threads or --disable-threads was given.
6823 if test "${enable_threads+set}" = set; then
6824   enableval="$enable_threads"
6825
6826 else
6827   enable_threads=''
6828 fi;
6829
6830 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6831 if test "${enable_objc_gc+set}" = set; then
6832   enableval="$enable_objc_gc"
6833   if test x$enable_objc_gc = xno; then
6834         objc_boehm_gc=''
6835 else
6836         objc_boehm_gc=1
6837 fi
6838 else
6839   objc_boehm_gc=''
6840 fi;
6841
6842
6843 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6844 if test "${with_dwarf2+set}" = set; then
6845   withval="$with_dwarf2"
6846   dwarf2="$with_dwarf2"
6847 else
6848   dwarf2=no
6849 fi;
6850
6851 # Check whether --enable-shared or --disable-shared was given.
6852 if test "${enable_shared+set}" = set; then
6853   enableval="$enable_shared"
6854
6855   case $enable_shared in
6856   yes | no) ;;
6857   *)
6858     enable_shared=no
6859     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6860     for pkg in $enableval; do
6861       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6862         enable_shared=yes
6863       fi
6864     done
6865     IFS="$ac_save_ifs"
6866     ;;
6867   esac
6868
6869 else
6870   enable_shared=yes
6871 fi;
6872
6873
6874
6875 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6876 if test "${with_build_sysroot+set}" = set; then
6877   withval="$with_build_sysroot"
6878
6879 fi;
6880
6881
6882 # Check whether --with-sysroot or --without-sysroot was given.
6883 if test "${with_sysroot+set}" = set; then
6884   withval="$with_sysroot"
6885
6886  case ${with_sysroot} in
6887  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6888  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6889  esac
6890
6891  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6892  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6893
6894  if test "x$exec_prefix" = xNONE; then
6895   if test "x$prefix" = xNONE; then
6896    test_prefix=/usr/local
6897   else
6898    test_prefix=$prefix
6899   fi
6900  else
6901   test_prefix=$exec_prefix
6902  fi
6903  case ${TARGET_SYSTEM_ROOT} in
6904  "${test_prefix}"|"${test_prefix}/"*|\
6905  '${exec_prefix}'|'${exec_prefix}/'*)
6906    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6907    TARGET_SYSTEM_ROOT_DEFINE="$t"
6908    ;;
6909  esac
6910
6911 else
6912
6913  TARGET_SYSTEM_ROOT=
6914  TARGET_SYSTEM_ROOT_DEFINE=
6915  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6916
6917 fi;
6918
6919
6920
6921
6922 # Build with intermodule optimisations
6923 # Check whether --enable-intermodule or --disable-intermodule was given.
6924 if test "${enable_intermodule+set}" = set; then
6925   enableval="$enable_intermodule"
6926   case ${enable_intermodule} in
6927   yes) onestep="-onestep";;
6928   *) onestep="";;
6929 esac
6930 else
6931   onestep=""
6932 fi;
6933
6934
6935 # Sanity check enable_languages in case someone does not run the toplevel
6936 # configure # script.
6937 # Check whether --enable-languages or --disable-languages was given.
6938 if test "${enable_languages+set}" = set; then
6939   enableval="$enable_languages"
6940   case ,${enable_languages}, in
6941        ,,|,yes,)
6942                 # go safe -- we cannot be much sure without the toplevel
6943                 # configure's
6944                 # analysis of which target libs are present and usable
6945                 enable_languages=c
6946                 ;;
6947          *,all,*)
6948                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6949 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6950    { (exit 1); exit 1; }; }
6951                 ;;
6952         *,c,*)
6953                 ;;
6954         *)
6955                 enable_languages=c,${enable_languages}
6956                 ;;
6957 esac
6958 else
6959   enable_languages=c
6960 fi;
6961
6962 subdirs=
6963 for lang in ${srcdir}/*/config-lang.in
6964 do
6965         case $lang in
6966         # The odd quoting in the next line works around
6967         # an apparent bug in bash 1.12 on linux.
6968         ${srcdir}/[*]/config-lang.in) ;;
6969         *)
6970           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6971           if test "x$lang_alias" = x
6972           then
6973                 echo "$lang doesn't set \$language." 1>&2
6974                 exit 1
6975           fi
6976           case ",$enable_languages," in
6977           *,$lang_alias,*)
6978             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6979           esac
6980           ;;
6981         esac
6982 done
6983
6984
6985 # -------------------------
6986 # Checks for other programs
6987 # -------------------------
6988
6989 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6990 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6991 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6992 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   cat >conftest.make <<\_ACEOF
6996 all:
6997         @echo 'ac_maketemp="$(MAKE)"'
6998 _ACEOF
6999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7000 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7001 if test -n "$ac_maketemp"; then
7002   eval ac_cv_prog_make_${ac_make}_set=yes
7003 else
7004   eval ac_cv_prog_make_${ac_make}_set=no
7005 fi
7006 rm -f conftest.make
7007 fi
7008 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7009   echo "$as_me:$LINENO: result: yes" >&5
7010 echo "${ECHO_T}yes" >&6
7011   SET_MAKE=
7012 else
7013   echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6
7015   SET_MAKE="MAKE=${MAKE-make}"
7016 fi
7017
7018
7019 # Find some useful tools
7020 for ac_prog in gawk mawk nawk awk
7021 do
7022   # Extract the first word of "$ac_prog", so it can be a program name with args.
7023 set dummy $ac_prog; ac_word=$2
7024 echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7026 if test "${ac_cv_prog_AWK+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   if test -n "$AWK"; then
7030   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039     ac_cv_prog_AWK="$ac_prog"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045
7046 fi
7047 fi
7048 AWK=$ac_cv_prog_AWK
7049 if test -n "$AWK"; then
7050   echo "$as_me:$LINENO: result: $AWK" >&5
7051 echo "${ECHO_T}$AWK" >&6
7052 else
7053   echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6
7055 fi
7056
7057   test -n "$AWK" && break
7058 done
7059
7060 # We need awk to create options.c and options.h.
7061 # Bail out if it's missing.
7062 case ${AWK} in
7063   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7064 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7065    { (exit 1); exit 1; }; } ;;
7066 esac
7067
7068 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7069 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7070 if test "${gcc_cv_prog_LN_S+set}" = set; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073   rm -f conftestdata_t
7074 echo >conftestdata_f
7075 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7076 then
7077   gcc_cv_prog_LN_S="ln -s"
7078 else
7079   if ln conftestdata_f conftestdata_t 2>/dev/null
7080   then
7081     gcc_cv_prog_LN_S=ln
7082   else
7083     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7084     then
7085       gcc_cv_prog_LN_S="cp -p"
7086     else
7087       gcc_cv_prog_LN_S=cp
7088     fi
7089   fi
7090 fi
7091 rm -f conftestdata_f conftestdata_t
7092
7093 fi
7094 LN_S="$gcc_cv_prog_LN_S"
7095 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7096   echo "$as_me:$LINENO: result: yes" >&5
7097 echo "${ECHO_T}yes" >&6
7098 else
7099   if test "$gcc_cv_prog_LN_S" = "ln"; then
7100     echo "$as_me:$LINENO: result: no, using ln" >&5
7101 echo "${ECHO_T}no, using ln" >&6
7102   else
7103     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7104 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7105   fi
7106 fi
7107
7108 echo "$as_me:$LINENO: checking whether ln works" >&5
7109 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7110 if test "${acx_cv_prog_LN+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 conftestdata_f conftestdata_t 2>/dev/null
7116 then
7117   acx_cv_prog_LN=ln
7118 else
7119   acx_cv_prog_LN=no
7120 fi
7121 rm -f conftestdata_f conftestdata_t
7122
7123 fi
7124 if test $acx_cv_prog_LN = no; then
7125   LN="$LN_S"
7126   echo "$as_me:$LINENO: result: no, using $LN" >&5
7127 echo "${ECHO_T}no, using $LN" >&6
7128 else
7129   LN="$acx_cv_prog_LN"
7130   echo "$as_me:$LINENO: result: yes" >&5
7131 echo "${ECHO_T}yes" >&6
7132 fi
7133
7134 if test -n "$ac_tool_prefix"; then
7135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7137 echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139 if test "${ac_cv_prog_RANLIB+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   if test -n "$RANLIB"; then
7143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150   for ac_exec_ext in '' $ac_executable_extensions; do
7151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157 done
7158
7159 fi
7160 fi
7161 RANLIB=$ac_cv_prog_RANLIB
7162 if test -n "$RANLIB"; then
7163   echo "$as_me:$LINENO: result: $RANLIB" >&5
7164 echo "${ECHO_T}$RANLIB" >&6
7165 else
7166   echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6
7168 fi
7169
7170 fi
7171 if test -z "$ac_cv_prog_RANLIB"; then
7172   ac_ct_RANLIB=$RANLIB
7173   # Extract the first word of "ranlib", so it can be a program name with args.
7174 set dummy ranlib; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   if test -n "$ac_ct_RANLIB"; then
7181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190     ac_cv_prog_ac_ct_RANLIB="ranlib"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196
7197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7198 fi
7199 fi
7200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7201 if test -n "$ac_ct_RANLIB"; then
7202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7204 else
7205   echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7207 fi
7208
7209   RANLIB=$ac_ct_RANLIB
7210 else
7211   RANLIB="$ac_cv_prog_RANLIB"
7212 fi
7213
7214 case "${host}" in
7215 *-*-darwin*)
7216   # By default, the Darwin ranlib will not treat common symbols as
7217   # definitions when  building the archive table of contents.  Other
7218   # ranlibs do that; pass an option to the Darwin ranlib that makes
7219   # it behave similarly.
7220   ranlib_flags="-c"
7221   ;;
7222 *)
7223   ranlib_flags=""
7224 esac
7225
7226
7227 # Find a good install program.  We prefer a C program (faster),
7228 # so one script is as good as another.  But avoid the broken or
7229 # incompatible versions:
7230 # SysV /etc/install, /usr/sbin/install
7231 # SunOS /usr/etc/install
7232 # IRIX /sbin/install
7233 # AIX /bin/install
7234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7236 # ./install, which can be erroneously created by make from ./install.sh.
7237 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7238 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7239 if test -z "$INSTALL"; then
7240 if test "${ac_cv_path_install+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7244   for ac_dir in $PATH; do
7245     # Account for people who put trailing slashes in PATH elements.
7246     case "$ac_dir/" in
7247     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7248     *)
7249       # OSF1 and SCO ODT 3.0 have their own names for install.
7250       for ac_prog in ginstall scoinst install; do
7251         if test -f $ac_dir/$ac_prog; then
7252           if test $ac_prog = install &&
7253             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7254             # AIX install.  It has an incompatible calling convention.
7255             # OSF/1 installbsd also uses dspmsg, but is usable.
7256             :
7257           else
7258             ac_cv_path_install="$ac_dir/$ac_prog -c"
7259             break 2
7260           fi
7261         fi
7262       done
7263       ;;
7264     esac
7265   done
7266   IFS="$ac_save_IFS"
7267
7268 fi
7269   if test "${ac_cv_path_install+set}" = set; then
7270     INSTALL="$ac_cv_path_install"
7271   else
7272     # As a last resort, use the slow shell script.  We don't cache a
7273     # path for INSTALL within a source directory, because that will
7274     # break other packages using the cache if that directory is
7275     # removed, or if the path is relative.
7276     INSTALL="$ac_install_sh"
7277   fi
7278 fi
7279 echo "$as_me:$LINENO: result: $INSTALL" >&5
7280 echo "${ECHO_T}$INSTALL" >&6
7281
7282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283 # It thinks the first close brace ends the variable substitution.
7284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7285
7286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7287
7288
7289 # See if cmp has --ignore-initial.
7290 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7291 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7292 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295    echo abfoo >t1
7296   echo cdfoo >t2
7297   gcc_cv_prog_cmp_skip=slowcompare
7298   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7299     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7300       :
7301     else
7302       gcc_cv_prog_cmp_skip=gnucompare
7303     fi
7304   fi
7305   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7306     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7307       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7308         :
7309       else
7310         gcc_cv_prog_cmp_skip=fastcompare
7311       fi
7312     fi
7313   fi
7314   rm t1 t2
7315
7316 fi
7317 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7318 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7319 make_compare_target=$gcc_cv_prog_cmp_skip
7320
7321
7322
7323 # See if we have the mktemp command.
7324 # Extract the first word of "mktemp", so it can be a program name with args.
7325 set dummy mktemp; ac_word=$2
7326 echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7328 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   if test -n "$have_mktemp_command"; then
7332   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_have_mktemp_command="yes"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347
7348   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7349 fi
7350 fi
7351 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7352 if test -n "$have_mktemp_command"; then
7353   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7354 echo "${ECHO_T}$have_mktemp_command" >&6
7355 else
7356   echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6
7358 fi
7359
7360
7361 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7362
7363 # See if makeinfo has been installed and is modern enough
7364 # that we can use it.
7365
7366 ac_executable_extensions="$build_exeext"
7367
7368 # Extract the first word of "makeinfo", so it can be a program name with args.
7369 set dummy makeinfo; ac_word=$2
7370 echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   if test -n "$MAKEINFO"; then
7376   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_MAKEINFO="makeinfo"
7386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391
7392 fi
7393 fi
7394 MAKEINFO=$ac_cv_prog_MAKEINFO
7395 if test -n "$MAKEINFO"; then
7396   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7397 echo "${ECHO_T}$MAKEINFO" >&6
7398 else
7399   echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7401 fi
7402
7403 if test -n "$MAKEINFO"; then
7404   # Found it, now check the version.
7405   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7406 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7407 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410     ac_prog_version=`$MAKEINFO --version 2>&1 |
7411                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7412   echo "configure:7412: version of makeinfo is $ac_prog_version" >&5
7413   case $ac_prog_version in
7414     '')     gcc_cv_prog_makeinfo_modern=no;;
7415     4.[2-9]*)
7416             gcc_cv_prog_makeinfo_modern=yes;;
7417     *)      gcc_cv_prog_makeinfo_modern=no;;
7418   esac
7419
7420 fi
7421 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7422 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7423 else
7424   gcc_cv_prog_makeinfo_modern=no
7425 fi
7426
7427 if test $gcc_cv_prog_makeinfo_modern = no; then
7428   MAKEINFO="$MISSING makeinfo"
7429   { echo "$as_me:$LINENO: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&5
7432 echo "$as_me: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&2;}
7435   BUILD_INFO=
7436 else
7437   BUILD_INFO=info
7438 fi
7439
7440
7441 # Is pod2man recent enough to regenerate manpages?
7442 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7443 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7444 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7445   echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7447   GENERATED_MANPAGES=generated-manpages
7448 else
7449   echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7451   GENERATED_MANPAGES=
7452 fi
7453
7454
7455 # How about lex?
7456 for ac_prog in flex
7457 do
7458   # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462 if test "${ac_cv_prog_FLEX+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   if test -n "$FLEX"; then
7466   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_FLEX="$ac_prog"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481
7482 fi
7483 fi
7484 FLEX=$ac_cv_prog_FLEX
7485 if test -n "$FLEX"; then
7486   echo "$as_me:$LINENO: result: $FLEX" >&5
7487 echo "${ECHO_T}$FLEX" >&6
7488 else
7489   echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491 fi
7492
7493   test -n "$FLEX" && break
7494 done
7495 test -n "$FLEX" || FLEX="$MISSING flex"
7496
7497
7498 # Bison?
7499 for ac_prog in bison
7500 do
7501   # Extract the first word of "$ac_prog", so it can be a program name with args.
7502 set dummy $ac_prog; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_prog_BISON+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   if test -n "$BISON"; then
7509   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_BISON="$ac_prog"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524
7525 fi
7526 fi
7527 BISON=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529   echo "$as_me:$LINENO: result: $BISON" >&5
7530 echo "${ECHO_T}$BISON" >&6
7531 else
7532   echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7534 fi
7535
7536   test -n "$BISON" && break
7537 done
7538 test -n "$BISON" || BISON="$MISSING bison"
7539
7540
7541 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7542 # check for build == host before using them.
7543
7544 # NM
7545 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7546   && test -d ../binutils ; then
7547   NM='$(objdir)/../binutils/nm-new'
7548 else
7549   # Extract the first word of "nm", so it can be a program name with args.
7550 set dummy nm; ac_word=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_prog_NM+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$NM"; then
7557   ac_cv_prog_NM="$NM" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566     ac_cv_prog_NM="nm"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572
7573   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7574 fi
7575 fi
7576 NM=$ac_cv_prog_NM
7577 if test -n "$NM"; then
7578   echo "$as_me:$LINENO: result: $NM" >&5
7579 echo "${ECHO_T}$NM" >&6
7580 else
7581   echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6
7583 fi
7584
7585 fi
7586
7587 # AR
7588 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7589   && test -d ../binutils ; then
7590   AR='$(objdir)/../binutils/ar'
7591 else
7592   # Extract the first word of "ar", so it can be a program name with args.
7593 set dummy ar; ac_word=$2
7594 echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596 if test "${ac_cv_prog_AR+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   if test -n "$AR"; then
7600   ac_cv_prog_AR="$AR" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607   for ac_exec_ext in '' $ac_executable_extensions; do
7608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609     ac_cv_prog_AR="ar"
7610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614 done
7615
7616   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7617 fi
7618 fi
7619 AR=$ac_cv_prog_AR
7620 if test -n "$AR"; then
7621   echo "$as_me:$LINENO: result: $AR" >&5
7622 echo "${ECHO_T}$AR" >&6
7623 else
7624   echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626 fi
7627
7628 fi
7629
7630
7631 # --------------------
7632 # Checks for C headers
7633 # --------------------
7634
7635 echo "$as_me:$LINENO: checking for GNU C library" >&5
7636 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7637 if test "${gcc_cv_glibc+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 #include <features.h>
7647 int
7648 main ()
7649 {
7650
7651 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7652 #error Not a GNU C library system
7653 #endif
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660   (eval $ac_compile) 2>conftest.er1
7661   ac_status=$?
7662   grep -v '^ *+' conftest.er1 >conftest.err
7663   rm -f conftest.er1
7664   cat conftest.err >&5
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } &&
7667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; } &&
7673          { ac_try='test -s conftest.$ac_objext'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   gcc_cv_glibc=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 gcc_cv_glibc=no
7685 fi
7686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7687 fi
7688
7689 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7690 echo "${ECHO_T}$gcc_cv_glibc" >&6
7691 if test $gcc_cv_glibc = yes; then
7692
7693 cat >>confdefs.h <<\_ACEOF
7694 #define _GNU_SOURCE 1
7695 _ACEOF
7696
7697 fi
7698
7699 # Need to reject headers which give warnings, so that the -Werror bootstrap
7700 # works later. *sigh*  This needs to come before all header checks.
7701
7702 ac_c_preproc_warn_flag=yes
7703
7704 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7706 if test "${ac_cv_header_stdc+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715 #include <stdlib.h>
7716 #include <stdarg.h>
7717 #include <string.h>
7718 #include <float.h>
7719
7720 int
7721 main ()
7722 {
7723
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730   (eval $ac_compile) 2>conftest.er1
7731   ac_status=$?
7732   grep -v '^ *+' conftest.er1 >conftest.err
7733   rm -f conftest.er1
7734   cat conftest.err >&5
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } &&
7737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739   (eval $ac_try) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; } &&
7743          { ac_try='test -s conftest.$ac_objext'
7744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745   (eval $ac_try) 2>&5
7746   ac_status=$?
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); }; }; then
7749   ac_cv_header_stdc=yes
7750 else
7751   echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_header_stdc=no
7755 fi
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757
7758 if test $ac_cv_header_stdc = yes; then
7759   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7760   cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h.  */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h.  */
7766 #include <string.h>
7767
7768 _ACEOF
7769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770   $EGREP "memchr" >/dev/null 2>&1; then
7771   :
7772 else
7773   ac_cv_header_stdc=no
7774 fi
7775 rm -f conftest*
7776
7777 fi
7778
7779 if test $ac_cv_header_stdc = yes; then
7780   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7781   cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787 #include <stdlib.h>
7788
7789 _ACEOF
7790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791   $EGREP "free" >/dev/null 2>&1; then
7792   :
7793 else
7794   ac_cv_header_stdc=no
7795 fi
7796 rm -f conftest*
7797
7798 fi
7799
7800 if test $ac_cv_header_stdc = yes; then
7801   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7802   if test "$cross_compiling" = yes; then
7803   :
7804 else
7805   cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811 #include <ctype.h>
7812 #if ((' ' & 0x0FF) == 0x020)
7813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7815 #else
7816 # define ISLOWER(c) \
7817                    (('a' <= (c) && (c) <= 'i') \
7818                      || ('j' <= (c) && (c) <= 'r') \
7819                      || ('s' <= (c) && (c) <= 'z'))
7820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7821 #endif
7822
7823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7824 int
7825 main ()
7826 {
7827   int i;
7828   for (i = 0; i < 256; i++)
7829     if (XOR (islower (i), ISLOWER (i))
7830         || toupper (i) != TOUPPER (i))
7831       exit(2);
7832   exit (0);
7833 }
7834 _ACEOF
7835 rm -f conftest$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837   (eval $ac_link) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   :
7847 else
7848   echo "$as_me: program exited with status $ac_status" >&5
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ( exit $ac_status )
7853 ac_cv_header_stdc=no
7854 fi
7855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7856 fi
7857 fi
7858 fi
7859 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7860 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7861 if test $ac_cv_header_stdc = yes; then
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define STDC_HEADERS 1
7865 _ACEOF
7866
7867 fi
7868
7869 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7870 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7871 if test "${ac_cv_header_time+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 #include <sys/types.h>
7881 #include <sys/time.h>
7882 #include <time.h>
7883
7884 int
7885 main ()
7886 {
7887 if ((struct tm *) 0)
7888 return 0;
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>conftest.er1
7896   ac_status=$?
7897   grep -v '^ *+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; } &&
7908          { ac_try='test -s conftest.$ac_objext'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   ac_cv_header_time=yes
7915 else
7916   echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 ac_cv_header_time=no
7920 fi
7921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7922 fi
7923 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7924 echo "${ECHO_T}$ac_cv_header_time" >&6
7925 if test $ac_cv_header_time = yes; then
7926
7927 cat >>confdefs.h <<\_ACEOF
7928 #define TIME_WITH_SYS_TIME 1
7929 _ACEOF
7930
7931 fi
7932
7933 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7934 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7935 if test "${gcc_cv_header_string+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 #include <string.h>
7945 #include <strings.h>
7946 int
7947 main ()
7948 {
7949
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956   (eval $ac_compile) 2>conftest.er1
7957   ac_status=$?
7958   grep -v '^ *+' conftest.er1 >conftest.err
7959   rm -f conftest.er1
7960   cat conftest.err >&5
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); } &&
7963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; } &&
7969          { ac_try='test -s conftest.$ac_objext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   gcc_cv_header_string=yes
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 gcc_cv_header_string=no
7981 fi
7982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7985 echo "${ECHO_T}$gcc_cv_header_string" >&6
7986 if test $gcc_cv_header_string = yes; then
7987
7988 cat >>confdefs.h <<\_ACEOF
7989 #define STRING_WITH_STRINGS 1
7990 _ACEOF
7991
7992 fi
7993
7994 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7995 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7996 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005 #include <sys/types.h>
8006 #include <sys/wait.h>
8007 #ifndef WEXITSTATUS
8008 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8009 #endif
8010 #ifndef WIFEXITED
8011 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8012 #endif
8013
8014 int
8015 main ()
8016 {
8017   int s;
8018   wait (&s);
8019   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026   (eval $ac_compile) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; } &&
8039          { ac_try='test -s conftest.$ac_objext'
8040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; }; then
8045   ac_cv_header_sys_wait_h=yes
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ac_cv_header_sys_wait_h=no
8051 fi
8052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8053 fi
8054 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8056 if test $ac_cv_header_sys_wait_h = yes; then
8057
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_SYS_WAIT_H 1
8060 _ACEOF
8061
8062 fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8087                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8088                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8089                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8090 do
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <$ac_header>
8104 _ACEOF
8105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107   ac_status=$?
8108   grep -v '^ *+' conftest.er1 >conftest.err
8109   rm -f conftest.er1
8110   cat conftest.err >&5
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } >/dev/null; then
8113   if test -s conftest.err; then
8114     ac_cpp_err=$ac_c_preproc_warn_flag
8115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8116   else
8117     ac_cpp_err=
8118   fi
8119 else
8120   ac_cpp_err=yes
8121 fi
8122 if test -z "$ac_cpp_err"; then
8123   eval "$as_ac_Header=yes"
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128   eval "$as_ac_Header=no"
8129 fi
8130 rm -f conftest.err conftest.$ac_ext
8131 fi
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8135   cat >>confdefs.h <<_ACEOF
8136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8137 _ACEOF
8138
8139 fi
8140 done
8141
8142
8143 # Check for thread headers.
8144 echo "$as_me:$LINENO: checking for thread.h" >&5
8145 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8146 if test "${ac_cv_header_thread_h+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155 #include <thread.h>
8156 _ACEOF
8157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } >/dev/null; then
8165   if test -s conftest.err; then
8166     ac_cpp_err=$ac_c_preproc_warn_flag
8167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8168   else
8169     ac_cpp_err=
8170   fi
8171 else
8172   ac_cpp_err=yes
8173 fi
8174 if test -z "$ac_cpp_err"; then
8175   ac_cv_header_thread_h=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180   ac_cv_header_thread_h=no
8181 fi
8182 rm -f conftest.err conftest.$ac_ext
8183 fi
8184 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8185 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8186 if test $ac_cv_header_thread_h = yes; then
8187   have_thread_h=yes
8188 else
8189   have_thread_h=
8190 fi
8191
8192 echo "$as_me:$LINENO: checking for pthread.h" >&5
8193 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8194 if test "${ac_cv_header_pthread_h+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203 #include <pthread.h>
8204 _ACEOF
8205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8207   ac_status=$?
8208   grep -v '^ *+' conftest.er1 >conftest.err
8209   rm -f conftest.er1
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } >/dev/null; then
8213   if test -s conftest.err; then
8214     ac_cpp_err=$ac_c_preproc_warn_flag
8215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8216   else
8217     ac_cpp_err=
8218   fi
8219 else
8220   ac_cpp_err=yes
8221 fi
8222 if test -z "$ac_cpp_err"; then
8223   ac_cv_header_pthread_h=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228   ac_cv_header_pthread_h=no
8229 fi
8230 rm -f conftest.err conftest.$ac_ext
8231 fi
8232 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8233 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8234 if test $ac_cv_header_pthread_h = yes; then
8235   have_pthread_h=yes
8236 else
8237   have_pthread_h=
8238 fi
8239
8240
8241 # These tests can't be done till we know if we have limits.h.
8242 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8243 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8244 if test "${gcc_cv_decl_char_bit+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 #ifdef HAVE_LIMITS_H
8254 #include <limits.h>
8255 #endif
8256 #ifdef CHAR_BIT
8257 found
8258 #endif
8259 _ACEOF
8260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8261   $EGREP "found" >/dev/null 2>&1; then
8262   gcc_cv_decl_char_bit=yes
8263 else
8264   gcc_cv_decl_char_bit=no
8265 fi
8266 rm -f conftest*
8267
8268
8269 fi
8270 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8271 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8272 if test $gcc_cv_decl_char_bit = no; then
8273   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8274 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8275 if test "${gcc_cv_c_nbby+set}" = set; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278   i=8
8279  gcc_cv_c_nbby=
8280  while test $i -lt 65; do
8281    cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 int
8289 main ()
8290 {
8291 switch(0) {
8292   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8293   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8294   ; }
8295   ;
8296   return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext
8300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8301   (eval $ac_compile) 2>conftest.er1
8302   ac_status=$?
8303   grep -v '^ *+' conftest.er1 >conftest.err
8304   rm -f conftest.er1
8305   cat conftest.err >&5
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } &&
8308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   gcc_cv_c_nbby=$i; break
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 fi
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327    i=`expr $i + 1`
8328  done
8329  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8330
8331 fi
8332 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8333 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8334 if test $gcc_cv_c_nbby = failed; then
8335   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8336 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8337    { (exit 1); exit 1; }; }
8338 else
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define CHAR_BIT $gcc_cv_c_nbby
8342 _ACEOF
8343
8344 fi
8345 fi
8346 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8348 if test "${ac_cv_c_bigendian+set}" = set; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351   # See if sys/param.h defines the BYTE_ORDER macro.
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 #include <sys/types.h>
8359 #include <sys/param.h>
8360
8361 int
8362 main ()
8363 {
8364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8365  bogus endian macros
8366 #endif
8367
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374   (eval $ac_compile) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; } &&
8387          { ac_try='test -s conftest.$ac_objext'
8388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389   (eval $ac_try) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393   # It does; now see whether it defined to BIG_ENDIAN or not.
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h.  */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h.  */
8400 #include <sys/types.h>
8401 #include <sys/param.h>
8402
8403 int
8404 main ()
8405 {
8406 #if BYTE_ORDER != BIG_ENDIAN
8407  not big endian
8408 #endif
8409
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416   (eval $ac_compile) 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425   (eval $ac_try) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }; } &&
8429          { ac_try='test -s conftest.$ac_objext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_cv_c_bigendian=yes
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ac_cv_c_bigendian=no
8441 fi
8442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447 # It does not; compile a test program.
8448 if test "$cross_compiling" = yes; then
8449   # try to guess the endianness by grepping values into an object file
8450   ac_cv_c_bigendian=unknown
8451   cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8458 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8459 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8460 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8461 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8462 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8463 int
8464 main ()
8465 {
8466  _ascii (); _ebcdic ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; } &&
8486          { ac_try='test -s conftest.$ac_objext'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8493   ac_cv_c_bigendian=yes
8494 fi
8495 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8496   if test "$ac_cv_c_bigendian" = unknown; then
8497     ac_cv_c_bigendian=no
8498   else
8499     # finding both strings is unlikely to happen, but who knows?
8500     ac_cv_c_bigendian=unknown
8501   fi
8502 fi
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 fi
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8509 else
8510   cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516 int
8517 main ()
8518 {
8519   /* Are we little or big endian?  From Harbison&Steele.  */
8520   union
8521   {
8522     long l;
8523     char c[sizeof (long)];
8524   } u;
8525   u.l = 1;
8526   exit (u.c[sizeof (long) - 1] == 1);
8527 }
8528 _ACEOF
8529 rm -f conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531   (eval $ac_link) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; }; then
8540   ac_cv_c_bigendian=no
8541 else
8542   echo "$as_me: program exited with status $ac_status" >&5
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 ( exit $ac_status )
8547 ac_cv_c_bigendian=yes
8548 fi
8549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8550 fi
8551 fi
8552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8555 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8556 case $ac_cv_c_bigendian in
8557   yes)
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define WORDS_BIGENDIAN 1
8561 _ACEOF
8562  ;;
8563   no)
8564      ;;
8565   *)
8566     { { echo "$as_me:$LINENO: error: unknown endianness
8567 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8568 echo "$as_me: error: unknown endianness
8569 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8570    { (exit 1); exit 1; }; } ;;
8571 esac
8572
8573
8574 # --------
8575 # UNSORTED
8576 # --------
8577
8578 # Stage specific cflags for build.
8579 stage1_cflags=
8580 case $build in
8581 vax-*-*)
8582   if test x$GCC = xyes
8583   then
8584     stage1_cflags="-Wa,-J"
8585   else
8586     stage1_cflags="-J"
8587   fi
8588   ;;
8589 powerpc-*-darwin*)
8590   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8591   # sources; use -no-cpp-precomp to get to GNU cpp.
8592   # Apple's GCC has bugs in designated initializer handling, so disable
8593   # that too.
8594   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8595   ;;
8596 esac
8597
8598
8599 # These libraries may be used by collect2.
8600 # We may need a special search path to get them linked.
8601 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8602 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8603 if test "${gcc_cv_collect2_libs+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   save_LIBS="$LIBS"
8607 for libs in '' -lld -lmld \
8608                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8609                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8610 do
8611         LIBS="$libs"
8612         cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618
8619 /* Override any gcc2 internal prototype to avoid an error.  */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 /* We use char because int might match the return type of a gcc2
8624    builtin and then its argument prototype would still apply.  */
8625 char ldopen ();
8626 int
8627 main ()
8628 {
8629 ldopen ();
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; } &&
8649          { ac_try='test -s conftest$ac_exeext'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; }; then
8655   gcc_cv_collect2_libs="$libs"; break
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 fi
8661 rm -f conftest.err conftest.$ac_objext \
8662       conftest$ac_exeext conftest.$ac_ext
8663 done
8664 LIBS="$save_LIBS"
8665 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8666 fi
8667 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8668 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8669 case $gcc_cv_collect2_libs in
8670         "none required")        ;;
8671         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8672 esac
8673
8674
8675 # When building Ada code on Alpha, we need exc_resume which is usually in
8676 # -lexc.  So test for it.
8677 save_LIBS="$LIBS"
8678 LIBS=
8679 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8680 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8681 if test "${ac_cv_search_exc_resume+set}" = set; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684   ac_func_search_save_LIBS=$LIBS
8685 ac_cv_search_exc_resume=no
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692
8693 /* Override any gcc2 internal prototype to avoid an error.  */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698    builtin and then its argument prototype would still apply.  */
8699 char exc_resume ();
8700 int
8701 main ()
8702 {
8703 exc_resume ();
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_search_exc_resume="none required"
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 fi
8735 rm -f conftest.err conftest.$ac_objext \
8736       conftest$ac_exeext conftest.$ac_ext
8737 if test "$ac_cv_search_exc_resume" = no; then
8738   for ac_lib in exc; do
8739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8740     cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h.  */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h.  */
8746
8747 /* Override any gcc2 internal prototype to avoid an error.  */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 /* We use char because int might match the return type of a gcc2
8752    builtin and then its argument prototype would still apply.  */
8753 char exc_resume ();
8754 int
8755 main ()
8756 {
8757 exc_resume ();
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764   (eval $ac_link) 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest$ac_exeext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_cv_search_exc_resume="-l$ac_lib"
8784 break
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 fi
8790 rm -f conftest.err conftest.$ac_objext \
8791       conftest$ac_exeext conftest.$ac_ext
8792   done
8793 fi
8794 LIBS=$ac_func_search_save_LIBS
8795 fi
8796 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8797 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8798 if test "$ac_cv_search_exc_resume" != no; then
8799   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8800
8801 fi
8802
8803 GNAT_LIBEXC="$LIBS"
8804 LIBS="$save_LIBS"
8805
8806
8807 # Some systems put ldexp and frexp in libm instead of libc; assume
8808 # they're both in the same place.  jcf-dump needs them.
8809 save_LIBS="$LIBS"
8810 LIBS=
8811 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8812 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8813 if test "${ac_cv_search_ldexp+set}" = set; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   ac_func_search_save_LIBS=$LIBS
8817 ac_cv_search_ldexp=no
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824
8825 /* Override any gcc2 internal prototype to avoid an error.  */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 /* We use char because int might match the return type of a gcc2
8830    builtin and then its argument prototype would still apply.  */
8831 char ldexp ();
8832 int
8833 main ()
8834 {
8835 ldexp ();
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>conftest.er1
8843   ac_status=$?
8844   grep -v '^ *+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } &&
8849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; } &&
8855          { ac_try='test -s conftest$ac_exeext'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; }; then
8861   ac_cv_search_ldexp="none required"
8862 else
8863   echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866 fi
8867 rm -f conftest.err conftest.$ac_objext \
8868       conftest$ac_exeext conftest.$ac_ext
8869 if test "$ac_cv_search_ldexp" = no; then
8870   for ac_lib in m; do
8871     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8872     cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 /* Override any gcc2 internal prototype to avoid an error.  */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 /* We use char because int might match the return type of a gcc2
8884    builtin and then its argument prototype would still apply.  */
8885 char ldexp ();
8886 int
8887 main ()
8888 {
8889 ldexp ();
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896   (eval $ac_link) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; } &&
8909          { ac_try='test -s conftest$ac_exeext'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; }; then
8915   ac_cv_search_ldexp="-l$ac_lib"
8916 break
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 fi
8922 rm -f conftest.err conftest.$ac_objext \
8923       conftest$ac_exeext conftest.$ac_ext
8924   done
8925 fi
8926 LIBS=$ac_func_search_save_LIBS
8927 fi
8928 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8929 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8930 if test "$ac_cv_search_ldexp" != no; then
8931   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8932
8933 fi
8934
8935 LDEXP_LIB="$LIBS"
8936 LIBS="$save_LIBS"
8937
8938
8939 # Use <inttypes.h> only if it exists,
8940 # doesn't clash with <sys/types.h>, and declares intmax_t.
8941 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8942 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8943 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952 #include <sys/types.h>
8953 #include <inttypes.h>
8954 int
8955 main ()
8956 {
8957 intmax_t i = -1;
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>conftest.er1
8965   ac_status=$?
8966   grep -v '^ *+' conftest.er1 >conftest.err
8967   rm -f conftest.er1
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; } &&
8977          { ac_try='test -s conftest.$ac_objext'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; }; then
8983   gcc_cv_header_inttypes_h=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 gcc_cv_header_inttypes_h=no
8989 fi
8990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991 fi
8992
8993 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8994 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8995 if test $gcc_cv_header_inttypes_h = yes; then
8996
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_INTTYPES_H 1
8999 _ACEOF
9000
9001 fi
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9041         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9042         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9043         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
9044 do
9045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_var+set}\" = set"; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051   cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9059 #define $ac_func innocuous_$ac_func
9060
9061 /* System header to define __stub macros and hopefully few prototypes,
9062     which can conflict with char $ac_func (); below.
9063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064     <limits.h> exists even on freestanding compilers.  */
9065
9066 #ifdef __STDC__
9067 # include <limits.h>
9068 #else
9069 # include <assert.h>
9070 #endif
9071
9072 #undef $ac_func
9073
9074 /* Override any gcc2 internal prototype to avoid an error.  */
9075 #ifdef __cplusplus
9076 extern "C"
9077 {
9078 #endif
9079 /* We use char because int might match the return type of a gcc2
9080    builtin and then its argument prototype would still apply.  */
9081 char $ac_func ();
9082 /* The GNU C library defines this for functions which it implements
9083     to always fail with ENOSYS.  Some functions are actually named
9084     something starting with __ and the normal name is an alias.  */
9085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9086 choke me
9087 #else
9088 char (*f) () = $ac_func;
9089 #endif
9090 #ifdef __cplusplus
9091 }
9092 #endif
9093
9094 int
9095 main ()
9096 {
9097 return f != $ac_func;
9098   ;
9099   return 0;
9100 }
9101 _ACEOF
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104   (eval $ac_link) 2>conftest.er1
9105   ac_status=$?
9106   grep -v '^ *+' conftest.er1 >conftest.err
9107   rm -f conftest.er1
9108   cat conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } &&
9111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; } &&
9117          { ac_try='test -s conftest$ac_exeext'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; }; then
9123   eval "$as_ac_var=yes"
9124 else
9125   echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 eval "$as_ac_var=no"
9129 fi
9130 rm -f conftest.err conftest.$ac_objext \
9131       conftest$ac_exeext conftest.$ac_ext
9132 fi
9133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9135 if test `eval echo '${'$as_ac_var'}'` = yes; then
9136   cat >>confdefs.h <<_ACEOF
9137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9138 _ACEOF
9139
9140 fi
9141 done
9142
9143
9144 if test x$ac_cv_func_mbstowcs = xyes; then
9145   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9146 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9147 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150       if test "$cross_compiling" = yes; then
9151   gcc_cv_func_mbstowcs_works=yes
9152 else
9153   cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h.  */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h.  */
9159 #include <stdlib.h>
9160 int main()
9161 {
9162   mbstowcs(0, "", 0);
9163   return 0;
9164 }
9165 _ACEOF
9166 rm -f conftest$ac_exeext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168   (eval $ac_link) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; }; then
9177   gcc_cv_func_mbstowcs_works=yes
9178 else
9179   echo "$as_me: program exited with status $ac_status" >&5
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ( exit $ac_status )
9184 gcc_cv_func_mbstowcs_works=no
9185 fi
9186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9187 fi
9188 fi
9189 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9190 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9191   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9192
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_WORKING_MBSTOWCS 1
9195 _ACEOF
9196
9197   fi
9198 fi
9199
9200 echo "$as_me:$LINENO: checking for ssize_t" >&5
9201 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9202 if test "${ac_cv_type_ssize_t+set}" = set; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h.  */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h.  */
9211 $ac_includes_default
9212 int
9213 main ()
9214 {
9215 if ((ssize_t *) 0)
9216   return 0;
9217 if (sizeof (ssize_t))
9218   return 0;
9219   ;
9220   return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9225   (eval $ac_compile) 2>conftest.er1
9226   ac_status=$?
9227   grep -v '^ *+' conftest.er1 >conftest.err
9228   rm -f conftest.er1
9229   cat conftest.err >&5
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } &&
9232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; } &&
9238          { ac_try='test -s conftest.$ac_objext'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   ac_cv_type_ssize_t=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 ac_cv_type_ssize_t=no
9250 fi
9251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252 fi
9253 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9254 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9255 if test $ac_cv_type_ssize_t = yes; then
9256   :
9257 else
9258
9259 cat >>confdefs.h <<_ACEOF
9260 #define ssize_t int
9261 _ACEOF
9262
9263 fi
9264
9265
9266 # Try to determine the array type of the second argument of getgroups
9267 # for the target system (int or gid_t).
9268 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9269 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9270 if test "${ac_cv_type_uid_t+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h.  */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h.  */
9279 #include <sys/types.h>
9280
9281 _ACEOF
9282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9283   $EGREP "uid_t" >/dev/null 2>&1; then
9284   ac_cv_type_uid_t=yes
9285 else
9286   ac_cv_type_uid_t=no
9287 fi
9288 rm -f conftest*
9289
9290 fi
9291 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9292 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9293 if test $ac_cv_type_uid_t = no; then
9294
9295 cat >>confdefs.h <<\_ACEOF
9296 #define uid_t int
9297 _ACEOF
9298
9299
9300 cat >>confdefs.h <<\_ACEOF
9301 #define gid_t int
9302 _ACEOF
9303
9304 fi
9305
9306 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9307 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9308 if test "${ac_cv_type_getgroups+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   if test "$cross_compiling" = yes; then
9312   ac_cv_type_getgroups=cross
9313 else
9314   cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320 /* Thanks to Mike Rendell for this test.  */
9321 #include <sys/types.h>
9322 #define NGID 256
9323 #undef MAX
9324 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9325
9326 int
9327 main ()
9328 {
9329   gid_t gidset[NGID];
9330   int i, n;
9331   union { gid_t gval; long lval; }  val;
9332
9333   val.lval = -1;
9334   for (i = 0; i < NGID; i++)
9335     gidset[i] = val.gval;
9336   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9337                  gidset);
9338   /* Exit non-zero if getgroups seems to require an array of ints.  This
9339      happens when gid_t is short but getgroups modifies an array of ints.  */
9340   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9341 }
9342 _ACEOF
9343 rm -f conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345   (eval $ac_link) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; }; then
9354   ac_cv_type_getgroups=gid_t
9355 else
9356   echo "$as_me: program exited with status $ac_status" >&5
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ( exit $ac_status )
9361 ac_cv_type_getgroups=int
9362 fi
9363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9364 fi
9365 if test $ac_cv_type_getgroups = cross; then
9366         cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h.  */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h.  */
9372 #include <unistd.h>
9373
9374 _ACEOF
9375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9376   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9377   ac_cv_type_getgroups=gid_t
9378 else
9379   ac_cv_type_getgroups=int
9380 fi
9381 rm -f conftest*
9382
9383 fi
9384 fi
9385 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9386 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define GETGROUPS_T $ac_cv_type_getgroups
9390 _ACEOF
9391
9392
9393 if test "${target}" = "${build}"; then
9394   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9395 else
9396   case "${target}" in
9397         # This condition may need some tweaking.  It should include all
9398         # targets where the array type of the second argument of getgroups
9399         # is int and the type of gid_t is not equivalent to int.
9400         *-*-sunos* | *-*-ultrix*)
9401                 TARGET_GETGROUPS_T=int
9402                 ;;
9403         *)
9404                 TARGET_GETGROUPS_T=gid_t
9405                 ;;
9406   esac
9407 fi
9408
9409
9410
9411 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9412 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9413 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 #include <sys/mman.h>
9423 _ACEOF
9424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } >/dev/null; then
9432   if test -s conftest.err; then
9433     ac_cpp_err=$ac_c_preproc_warn_flag
9434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9435   else
9436     ac_cpp_err=
9437   fi
9438 else
9439   ac_cpp_err=yes
9440 fi
9441 if test -z "$ac_cpp_err"; then
9442   ac_cv_header_sys_mman_h=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447   ac_cv_header_sys_mman_h=no
9448 fi
9449 rm -f conftest.err conftest.$ac_ext
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9453 if test $ac_cv_header_sys_mman_h = yes; then
9454   gcc_header_sys_mman_h=yes
9455 else
9456   gcc_header_sys_mman_h=no
9457 fi
9458
9459 echo "$as_me:$LINENO: checking for mmap" >&5
9460 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9461 if test "${ac_cv_func_mmap+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h.  */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h.  */
9470 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9472 #define mmap innocuous_mmap
9473
9474 /* System header to define __stub macros and hopefully few prototypes,
9475     which can conflict with char mmap (); below.
9476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477     <limits.h> exists even on freestanding compilers.  */
9478
9479 #ifdef __STDC__
9480 # include <limits.h>
9481 #else
9482 # include <assert.h>
9483 #endif
9484
9485 #undef mmap
9486
9487 /* Override any gcc2 internal prototype to avoid an error.  */
9488 #ifdef __cplusplus
9489 extern "C"
9490 {
9491 #endif
9492 /* We use char because int might match the return type of a gcc2
9493    builtin and then its argument prototype would still apply.  */
9494 char mmap ();
9495 /* The GNU C library defines this for functions which it implements
9496     to always fail with ENOSYS.  Some functions are actually named
9497     something starting with __ and the normal name is an alias.  */
9498 #if defined (__stub_mmap) || defined (__stub___mmap)
9499 choke me
9500 #else
9501 char (*f) () = mmap;
9502 #endif
9503 #ifdef __cplusplus
9504 }
9505 #endif
9506
9507 int
9508 main ()
9509 {
9510 return f != mmap;
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517   (eval $ac_link) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; } &&
9530          { ac_try='test -s conftest$ac_exeext'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; }; then
9536   ac_cv_func_mmap=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_cv_func_mmap=no
9542 fi
9543 rm -f conftest.err conftest.$ac_objext \
9544       conftest$ac_exeext conftest.$ac_ext
9545 fi
9546 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9547 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9548 if test $ac_cv_func_mmap = yes; then
9549   gcc_func_mmap=yes
9550 else
9551   gcc_func_mmap=no
9552 fi
9553
9554 if test "$gcc_header_sys_mman_h" != yes \
9555  || test "$gcc_func_mmap" != yes; then
9556    gcc_cv_func_mmap_file=no
9557    gcc_cv_func_mmap_dev_zero=no
9558    gcc_cv_func_mmap_anon=no
9559 else
9560    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9561 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9562 if test "${gcc_cv_func_mmap_file+set}" = set; then
9563   echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565   # Add a system to this blacklist if
9566    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9567    # memory area containing the same data that you'd get if you applied
9568    # read() to the same fd.  The only system known to have a problem here
9569    # is VMS, where text files have record structure.
9570    case "$host_os" in
9571      vms* | ultrix*)
9572         gcc_cv_func_mmap_file=no ;;
9573      *)
9574         gcc_cv_func_mmap_file=yes;;
9575    esac
9576 fi
9577 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9578 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9579    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9580 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9581 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   # Add a system to this blacklist if it has mmap() but /dev/zero
9585    # does not exist, or if mmapping /dev/zero does not give anonymous
9586    # zeroed pages with both the following properties:
9587    # 1. If you map N consecutive pages in with one call, and then
9588    #    unmap any subset of those pages, the pages that were not
9589    #    explicitly unmapped remain accessible.
9590    # 2. If you map two adjacent blocks of memory and then unmap them
9591    #    both at once, they must both go away.
9592    # Systems known to be in this category are Windows (all variants),
9593    # VMS, and Darwin.
9594    case "$host_os" in
9595      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9596         gcc_cv_func_mmap_dev_zero=no ;;
9597      *)
9598         gcc_cv_func_mmap_dev_zero=yes;;
9599    esac
9600 fi
9601 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9602 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9603
9604    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9605    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9606 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9607 if test "${gcc_cv_decl_map_anon+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h.  */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h.  */
9616 #include <sys/types.h>
9617 #include <sys/mman.h>
9618 #include <unistd.h>
9619
9620 #ifndef MAP_ANONYMOUS
9621 #define MAP_ANONYMOUS MAP_ANON
9622 #endif
9623
9624 int
9625 main ()
9626 {
9627 int n = MAP_ANONYMOUS;
9628   ;
9629   return 0;
9630 }
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634   (eval $ac_compile) 2>conftest.er1
9635   ac_status=$?
9636   grep -v '^ *+' conftest.er1 >conftest.err
9637   rm -f conftest.er1
9638   cat conftest.err >&5
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); } &&
9641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest.$ac_objext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   gcc_cv_decl_map_anon=yes
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 gcc_cv_decl_map_anon=no
9659 fi
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9663 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9664
9665    if test $gcc_cv_decl_map_anon = no; then
9666      gcc_cv_func_mmap_anon=no
9667    else
9668      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9669 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9670 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9674    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9675    # doesn't give anonymous zeroed pages with the same properties listed
9676    # above for use of /dev/zero.
9677    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9678    case "$host_os" in
9679      vms* | cygwin* | pe | mingw* | sco* | udk* )
9680         gcc_cv_func_mmap_anon=no ;;
9681      *)
9682         gcc_cv_func_mmap_anon=yes;;
9683    esac
9684 fi
9685 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9686 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9687    fi
9688 fi
9689
9690 if test $gcc_cv_func_mmap_file = yes; then
9691
9692 cat >>confdefs.h <<\_ACEOF
9693 #define HAVE_MMAP_FILE 1
9694 _ACEOF
9695
9696 fi
9697 if test $gcc_cv_func_mmap_dev_zero = yes; then
9698
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_MMAP_DEV_ZERO 1
9701 _ACEOF
9702
9703 fi
9704 if test $gcc_cv_func_mmap_anon = yes; then
9705
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_MMAP_ANON 1
9708 _ACEOF
9709
9710 fi
9711
9712
9713 case "${host}" in
9714 *-*-*vms*)
9715   # Under VMS, vfork works very differently than on Unix. The standard test
9716   # won't work, and it isn't easily adaptable. It makes more sense to
9717   # just force it.
9718   ac_cv_func_vfork_works=yes
9719   ;;
9720 esac
9721 echo "$as_me:$LINENO: checking for pid_t" >&5
9722 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9723 if test "${ac_cv_type_pid_t+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $ac_includes_default
9733 int
9734 main ()
9735 {
9736 if ((pid_t *) 0)
9737   return 0;
9738 if (sizeof (pid_t))
9739   return 0;
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746   (eval $ac_compile) 2>conftest.er1
9747   ac_status=$?
9748   grep -v '^ *+' conftest.er1 >conftest.err
9749   rm -f conftest.er1
9750   cat conftest.err >&5
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } &&
9753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest.$ac_objext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_cv_type_pid_t=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_cv_type_pid_t=no
9771 fi
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 fi
9774 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9775 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9776 if test $ac_cv_type_pid_t = yes; then
9777   :
9778 else
9779
9780 cat >>confdefs.h <<_ACEOF
9781 #define pid_t int
9782 _ACEOF
9783
9784 fi
9785
9786
9787
9788 for ac_header in unistd.h vfork.h
9789 do
9790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9791 echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802 #include <$ac_header>
9803 _ACEOF
9804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } >/dev/null; then
9812   if test -s conftest.err; then
9813     ac_cpp_err=$ac_c_preproc_warn_flag
9814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9815   else
9816     ac_cpp_err=
9817   fi
9818 else
9819   ac_cpp_err=yes
9820 fi
9821 if test -z "$ac_cpp_err"; then
9822   eval "$as_ac_Header=yes"
9823 else
9824   echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827   eval "$as_ac_Header=no"
9828 fi
9829 rm -f conftest.err conftest.$ac_ext
9830 fi
9831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9834   cat >>confdefs.h <<_ACEOF
9835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9836 _ACEOF
9837
9838 fi
9839 done
9840
9841
9842
9843 for ac_func in fork vfork
9844 do
9845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9846 echo "$as_me:$LINENO: checking for $ac_func" >&5
9847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9848 if eval "test \"\${$as_ac_var+set}\" = set"; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9859 #define $ac_func innocuous_$ac_func
9860
9861 /* System header to define __stub macros and hopefully few prototypes,
9862     which can conflict with char $ac_func (); below.
9863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864     <limits.h> exists even on freestanding compilers.  */
9865
9866 #ifdef __STDC__
9867 # include <limits.h>
9868 #else
9869 # include <assert.h>
9870 #endif
9871
9872 #undef $ac_func
9873
9874 /* Override any gcc2 internal prototype to avoid an error.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 {
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880    builtin and then its argument prototype would still apply.  */
9881 char $ac_func ();
9882 /* The GNU C library defines this for functions which it implements
9883     to always fail with ENOSYS.  Some functions are actually named
9884     something starting with __ and the normal name is an alias.  */
9885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9886 choke me
9887 #else
9888 char (*f) () = $ac_func;
9889 #endif
9890 #ifdef __cplusplus
9891 }
9892 #endif
9893
9894 int
9895 main ()
9896 {
9897 return f != $ac_func;
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } &&
9911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   eval "$as_ac_var=yes"
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 eval "$as_ac_var=no"
9929 fi
9930 rm -f conftest.err conftest.$ac_objext \
9931       conftest$ac_exeext conftest.$ac_ext
9932 fi
9933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9935 if test `eval echo '${'$as_ac_var'}'` = yes; then
9936   cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 _ACEOF
9939
9940 fi
9941 done
9942
9943 if test "x$ac_cv_func_fork" = xyes; then
9944   echo "$as_me:$LINENO: checking for working fork" >&5
9945 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9946 if test "${ac_cv_func_fork_works+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   if test "$cross_compiling" = yes; then
9950   ac_cv_func_fork_works=cross
9951 else
9952   cat >conftest.$ac_ext <<_ACEOF
9953 /* By Ruediger Kuhlmann. */
9954       #include <sys/types.h>
9955       #if HAVE_UNISTD_H
9956       # include <unistd.h>
9957       #endif
9958       /* Some systems only have a dummy stub for fork() */
9959       int main ()
9960       {
9961         if (fork() < 0)
9962           exit (1);
9963         exit (0);
9964       }
9965 _ACEOF
9966 rm -f conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968   (eval $ac_link) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973   (eval $ac_try) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; }; then
9977   ac_cv_func_fork_works=yes
9978 else
9979   echo "$as_me: program exited with status $ac_status" >&5
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 ( exit $ac_status )
9984 ac_cv_func_fork_works=no
9985 fi
9986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9987 fi
9988 fi
9989 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9990 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9991
9992 else
9993   ac_cv_func_fork_works=$ac_cv_func_fork
9994 fi
9995 if test "x$ac_cv_func_fork_works" = xcross; then
9996   case $host in
9997     *-*-amigaos* | *-*-msdosdjgpp*)
9998       # Override, as these systems have only a dummy fork() stub
9999       ac_cv_func_fork_works=no
10000       ;;
10001     *)
10002       ac_cv_func_fork_works=yes
10003       ;;
10004   esac
10005   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10006 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10007 fi
10008 ac_cv_func_vfork_works=$ac_cv_func_vfork
10009 if test "x$ac_cv_func_vfork" = xyes; then
10010   echo "$as_me:$LINENO: checking for working vfork" >&5
10011 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10012 if test "${ac_cv_func_vfork_works+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   if test "$cross_compiling" = yes; then
10016   ac_cv_func_vfork_works=cross
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024 /* Thanks to Paul Eggert for this test.  */
10025 #include <stdio.h>
10026 #include <stdlib.h>
10027 #include <sys/types.h>
10028 #include <sys/stat.h>
10029 #include <sys/wait.h>
10030 #if HAVE_UNISTD_H
10031 # include <unistd.h>
10032 #endif
10033 #if HAVE_VFORK_H
10034 # include <vfork.h>
10035 #endif
10036 /* On some sparc systems, changes by the child to local and incoming
10037    argument registers are propagated back to the parent.  The compiler
10038    is told about this with #include <vfork.h>, but some compilers
10039    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10040    static variable whose address is put into a register that is
10041    clobbered by the vfork.  */
10042 static void
10043 #ifdef __cplusplus
10044 sparc_address_test (int arg)
10045 # else
10046 sparc_address_test (arg) int arg;
10047 #endif
10048 {
10049   static pid_t child;
10050   if (!child) {
10051     child = vfork ();
10052     if (child < 0) {
10053       perror ("vfork");
10054       _exit(2);
10055     }
10056     if (!child) {
10057       arg = getpid();
10058       write(-1, "", 0);
10059       _exit (arg);
10060     }
10061   }
10062 }
10063
10064 int
10065 main ()
10066 {
10067   pid_t parent = getpid ();
10068   pid_t child;
10069
10070   sparc_address_test (0);
10071
10072   child = vfork ();
10073
10074   if (child == 0) {
10075     /* Here is another test for sparc vfork register problems.  This
10076        test uses lots of local variables, at least as many local
10077        variables as main has allocated so far including compiler
10078        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10079        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10080        reuse the register of parent for one of the local variables,
10081        since it will think that parent can't possibly be used any more
10082        in this routine.  Assigning to the local variable will thus
10083        munge parent in the parent process.  */
10084     pid_t
10085       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10086       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10087     /* Convince the compiler that p..p7 are live; otherwise, it might
10088        use the same hardware register for all 8 local variables.  */
10089     if (p != p1 || p != p2 || p != p3 || p != p4
10090         || p != p5 || p != p6 || p != p7)
10091       _exit(1);
10092
10093     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10094        from child file descriptors.  If the child closes a descriptor
10095        before it execs or exits, this munges the parent's descriptor
10096        as well.  Test for this by closing stdout in the child.  */
10097     _exit(close(fileno(stdout)) != 0);
10098   } else {
10099     int status;
10100     struct stat st;
10101
10102     while (wait(&status) != child)
10103       ;
10104     exit(
10105          /* Was there some problem with vforking?  */
10106          child < 0
10107
10108          /* Did the child fail?  (This shouldn't happen.)  */
10109          || status
10110
10111          /* Did the vfork/compiler bug occur?  */
10112          || parent != getpid()
10113
10114          /* Did the file descriptor bug occur?  */
10115          || fstat(fileno(stdout), &st) != 0
10116          );
10117   }
10118 }
10119 _ACEOF
10120 rm -f conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122   (eval $ac_link) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ac_cv_func_vfork_works=yes
10132 else
10133   echo "$as_me: program exited with status $ac_status" >&5
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ( exit $ac_status )
10138 ac_cv_func_vfork_works=no
10139 fi
10140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 fi
10143 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10144 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10145
10146 fi;
10147 if test "x$ac_cv_func_fork_works" = xcross; then
10148   ac_cv_func_vfork_works=$ac_cv_func_vfork
10149   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10150 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10151 fi
10152
10153 if test "x$ac_cv_func_vfork_works" = xyes; then
10154
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_WORKING_VFORK 1
10157 _ACEOF
10158
10159 else
10160
10161 cat >>confdefs.h <<\_ACEOF
10162 #define vfork fork
10163 _ACEOF
10164
10165 fi
10166 if test "x$ac_cv_func_fork_works" = xyes; then
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_WORKING_FORK 1
10170 _ACEOF
10171
10172 fi
10173
10174
10175
10176       if test "X$prefix" = "XNONE"; then
10177     acl_final_prefix="$ac_default_prefix"
10178   else
10179     acl_final_prefix="$prefix"
10180   fi
10181   if test "X$exec_prefix" = "XNONE"; then
10182     acl_final_exec_prefix='${prefix}'
10183   else
10184     acl_final_exec_prefix="$exec_prefix"
10185   fi
10186   acl_save_prefix="$prefix"
10187   prefix="$acl_final_prefix"
10188   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10189   prefix="$acl_save_prefix"
10190
10191
10192 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10193 if test "${with_gnu_ld+set}" = set; then
10194   withval="$with_gnu_ld"
10195   test "$withval" = no || with_gnu_ld=yes
10196 else
10197   with_gnu_ld=no
10198 fi;
10199 # Prepare PATH_SEPARATOR.
10200 # The user is always right.
10201 if test "${PATH_SEPARATOR+set}" != set; then
10202   echo "#! /bin/sh" >conf$$.sh
10203   echo  "exit 0"   >>conf$$.sh
10204   chmod +x conf$$.sh
10205   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10206     PATH_SEPARATOR=';'
10207   else
10208     PATH_SEPARATOR=:
10209   fi
10210   rm -f conf$$.sh
10211 fi
10212 ac_prog=ld
10213 if test "$GCC" = yes; then
10214   # Check if gcc -print-prog-name=ld gives a path.
10215   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10216 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10217   case $host in
10218   *-*-mingw*)
10219     # gcc leaves a trailing carriage return which upsets mingw
10220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10221   *)
10222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10223   esac
10224   case $ac_prog in
10225     # Accept absolute paths.
10226     [\\/]* | [A-Za-z]:[\\/]*)
10227       re_direlt='/[^/][^/]*/\.\./'
10228       # Canonicalize the path of ld
10229       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10230       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10231         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10232       done
10233       test -z "$LD" && LD="$ac_prog"
10234       ;;
10235   "")
10236     # If it fails, then pretend we aren't using GCC.
10237     ac_prog=ld
10238     ;;
10239   *)
10240     # If it is relative, then search for the first ld in PATH.
10241     with_gnu_ld=unknown
10242     ;;
10243   esac
10244 elif test "$with_gnu_ld" = yes; then
10245   echo "$as_me:$LINENO: checking for GNU ld" >&5
10246 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10247 else
10248   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10249 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10250 fi
10251 if test "${acl_cv_path_LD+set}" = set; then
10252   echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254   if test -z "$LD"; then
10255   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10256   for ac_dir in $PATH; do
10257     test -z "$ac_dir" && ac_dir=.
10258     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10259       acl_cv_path_LD="$ac_dir/$ac_prog"
10260       # Check to see if the program is GNU ld.  I'd rather use --version,
10261       # but apparently some GNU ld's only accept -v.
10262       # Break only if it was the GNU/non-GNU ld that we prefer.
10263       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10264         test "$with_gnu_ld" != no && break
10265       else
10266         test "$with_gnu_ld" != yes && break
10267       fi
10268     fi
10269   done
10270   IFS="$ac_save_ifs"
10271 else
10272   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10273 fi
10274 fi
10275
10276 LD="$acl_cv_path_LD"
10277 if test -n "$LD"; then
10278   echo "$as_me:$LINENO: result: $LD" >&5
10279 echo "${ECHO_T}$LD" >&6
10280 else
10281   echo "$as_me:$LINENO: result: no" >&5
10282 echo "${ECHO_T}no" >&6
10283 fi
10284 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10285 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10286    { (exit 1); exit 1; }; }
10287 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10288 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10289 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10293 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10294   acl_cv_prog_gnu_ld=yes
10295 else
10296   acl_cv_prog_gnu_ld=no
10297 fi
10298 fi
10299 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10300 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10301 with_gnu_ld=$acl_cv_prog_gnu_ld
10302
10303
10304
10305                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10306 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10307 if test "${acl_cv_rpath+set}" = set; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310
10311     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10312     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10313     . ./conftest.sh
10314     rm -f ./conftest.sh
10315     acl_cv_rpath=done
10316
10317 fi
10318 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10319 echo "${ECHO_T}$acl_cv_rpath" >&6
10320   wl="$acl_cv_wl"
10321   libext="$acl_cv_libext"
10322   shlibext="$acl_cv_shlibext"
10323   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10324   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10325   hardcode_direct="$acl_cv_hardcode_direct"
10326   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10327     # Check whether --enable-rpath or --disable-rpath was given.
10328 if test "${enable_rpath+set}" = set; then
10329   enableval="$enable_rpath"
10330   :
10331 else
10332   enable_rpath=yes
10333 fi;
10334
10335
10336
10337
10338
10339
10340
10341     use_additional=yes
10342
10343   acl_save_prefix="$prefix"
10344   prefix="$acl_final_prefix"
10345   acl_save_exec_prefix="$exec_prefix"
10346   exec_prefix="$acl_final_exec_prefix"
10347
10348     eval additional_includedir=\"$includedir\"
10349     eval additional_libdir=\"$libdir\"
10350
10351   exec_prefix="$acl_save_exec_prefix"
10352   prefix="$acl_save_prefix"
10353
10354
10355 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10356 if test "${with_libiconv_prefix+set}" = set; then
10357   withval="$with_libiconv_prefix"
10358
10359     if test "X$withval" = "Xno"; then
10360       use_additional=no
10361     else
10362       if test "X$withval" = "X"; then
10363
10364   acl_save_prefix="$prefix"
10365   prefix="$acl_final_prefix"
10366   acl_save_exec_prefix="$exec_prefix"
10367   exec_prefix="$acl_final_exec_prefix"
10368
10369           eval additional_includedir=\"$includedir\"
10370           eval additional_libdir=\"$libdir\"
10371
10372   exec_prefix="$acl_save_exec_prefix"
10373   prefix="$acl_save_prefix"
10374
10375       else
10376         additional_includedir="$withval/include"
10377         additional_libdir="$withval/lib"
10378       fi
10379     fi
10380
10381 fi;
10382       LIBICONV=
10383   LTLIBICONV=
10384   INCICONV=
10385   rpathdirs=
10386   ltrpathdirs=
10387   names_already_handled=
10388   names_next_round='iconv '
10389   while test -n "$names_next_round"; do
10390     names_this_round="$names_next_round"
10391     names_next_round=
10392     for name in $names_this_round; do
10393       already_handled=
10394       for n in $names_already_handled; do
10395         if test "$n" = "$name"; then
10396           already_handled=yes
10397           break
10398         fi
10399       done
10400       if test -z "$already_handled"; then
10401         names_already_handled="$names_already_handled $name"
10402                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10403         eval value=\"\$HAVE_LIB$uppername\"
10404         if test -n "$value"; then
10405           if test "$value" = yes; then
10406             eval value=\"\$LIB$uppername\"
10407             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10408             eval value=\"\$LTLIB$uppername\"
10409             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10410           else
10411                                     :
10412           fi
10413         else
10414                               found_dir=
10415           found_la=
10416           found_so=
10417           found_a=
10418           if test $use_additional = yes; then
10419             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10420               found_dir="$additional_libdir"
10421               found_so="$additional_libdir/lib$name.$shlibext"
10422               if test -f "$additional_libdir/lib$name.la"; then
10423                 found_la="$additional_libdir/lib$name.la"
10424               fi
10425             else
10426               if test -f "$additional_libdir/lib$name.$libext"; then
10427                 found_dir="$additional_libdir"
10428                 found_a="$additional_libdir/lib$name.$libext"
10429                 if test -f "$additional_libdir/lib$name.la"; then
10430                   found_la="$additional_libdir/lib$name.la"
10431                 fi
10432               fi
10433             fi
10434           fi
10435           if test "X$found_dir" = "X"; then
10436             for x in $LDFLAGS $LTLIBICONV; do
10437
10438   acl_save_prefix="$prefix"
10439   prefix="$acl_final_prefix"
10440   acl_save_exec_prefix="$exec_prefix"
10441   exec_prefix="$acl_final_exec_prefix"
10442   eval x=\"$x\"
10443   exec_prefix="$acl_save_exec_prefix"
10444   prefix="$acl_save_prefix"
10445
10446               case "$x" in
10447                 -L*)
10448                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10449                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10450                     found_dir="$dir"
10451                     found_so="$dir/lib$name.$shlibext"
10452                     if test -f "$dir/lib$name.la"; then
10453                       found_la="$dir/lib$name.la"
10454                     fi
10455                   else
10456                     if test -f "$dir/lib$name.$libext"; then
10457                       found_dir="$dir"
10458                       found_a="$dir/lib$name.$libext"
10459                       if test -f "$dir/lib$name.la"; then
10460                         found_la="$dir/lib$name.la"
10461                       fi
10462                     fi
10463                   fi
10464                   ;;
10465               esac
10466               if test "X$found_dir" != "X"; then
10467                 break
10468               fi
10469             done
10470           fi
10471           if test "X$found_dir" != "X"; then
10472                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10473             if test "X$found_so" != "X"; then
10474                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10475                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10476               else
10477                                                                                 haveit=
10478                 for x in $ltrpathdirs; do
10479                   if test "X$x" = "X$found_dir"; then
10480                     haveit=yes
10481                     break
10482                   fi
10483                 done
10484                 if test -z "$haveit"; then
10485                   ltrpathdirs="$ltrpathdirs $found_dir"
10486                 fi
10487                                 if test "$hardcode_direct" = yes; then
10488                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10489                 else
10490                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10491                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10492                                                             haveit=
10493                     for x in $rpathdirs; do
10494                       if test "X$x" = "X$found_dir"; then
10495                         haveit=yes
10496                         break
10497                       fi
10498                     done
10499                     if test -z "$haveit"; then
10500                       rpathdirs="$rpathdirs $found_dir"
10501                     fi
10502                   else
10503                                                                                 haveit=
10504                     for x in $LDFLAGS $LIBICONV; do
10505
10506   acl_save_prefix="$prefix"
10507   prefix="$acl_final_prefix"
10508   acl_save_exec_prefix="$exec_prefix"
10509   exec_prefix="$acl_final_exec_prefix"
10510   eval x=\"$x\"
10511   exec_prefix="$acl_save_exec_prefix"
10512   prefix="$acl_save_prefix"
10513
10514                       if test "X$x" = "X-L$found_dir"; then
10515                         haveit=yes
10516                         break
10517                       fi
10518                     done
10519                     if test -z "$haveit"; then
10520                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10521                     fi
10522                     if test "$hardcode_minus_L" != no; then
10523                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10524                     else
10525                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10526                     fi
10527                   fi
10528                 fi
10529               fi
10530             else
10531               if test "X$found_a" != "X"; then
10532                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10533               else
10534                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10535               fi
10536             fi
10537                         additional_includedir=
10538             case "$found_dir" in
10539               */lib | */lib/)
10540                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10541                 additional_includedir="$basedir/include"
10542                 ;;
10543             esac
10544             if test "X$additional_includedir" != "X"; then
10545                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10546                 haveit=
10547                 if test "X$additional_includedir" = "X/usr/local/include"; then
10548                   if test -n "$GCC"; then
10549                     case $host_os in
10550                       linux*) haveit=yes;;
10551                     esac
10552                   fi
10553                 fi
10554                 if test -z "$haveit"; then
10555                   for x in $CPPFLAGS $INCICONV; do
10556
10557   acl_save_prefix="$prefix"
10558   prefix="$acl_final_prefix"
10559   acl_save_exec_prefix="$exec_prefix"
10560   exec_prefix="$acl_final_exec_prefix"
10561   eval x=\"$x\"
10562   exec_prefix="$acl_save_exec_prefix"
10563   prefix="$acl_save_prefix"
10564
10565                     if test "X$x" = "X-I$additional_includedir"; then
10566                       haveit=yes
10567                       break
10568                     fi
10569                   done
10570                   if test -z "$haveit"; then
10571                     if test -d "$additional_includedir"; then
10572                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10573                     fi
10574                   fi
10575                 fi
10576               fi
10577             fi
10578                         if test -n "$found_la"; then
10579                                                         save_libdir="$libdir"
10580               case "$found_la" in
10581                 */* | *\\*) . "$found_la" ;;
10582                 *) . "./$found_la" ;;
10583               esac
10584               libdir="$save_libdir"
10585                             for dep in $dependency_libs; do
10586                 case "$dep" in
10587                   -L*)
10588                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10589                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10590                       haveit=
10591                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10592                         if test -n "$GCC"; then
10593                           case $host_os in
10594                             linux*) haveit=yes;;
10595                           esac
10596                         fi
10597                       fi
10598                       if test -z "$haveit"; then
10599                         haveit=
10600                         for x in $LDFLAGS $LIBICONV; do
10601
10602   acl_save_prefix="$prefix"
10603   prefix="$acl_final_prefix"
10604   acl_save_exec_prefix="$exec_prefix"
10605   exec_prefix="$acl_final_exec_prefix"
10606   eval x=\"$x\"
10607   exec_prefix="$acl_save_exec_prefix"
10608   prefix="$acl_save_prefix"
10609
10610                           if test "X$x" = "X-L$additional_libdir"; then
10611                             haveit=yes
10612                             break
10613                           fi
10614                         done
10615                         if test -z "$haveit"; then
10616                           if test -d "$additional_libdir"; then
10617                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10618                           fi
10619                         fi
10620                         haveit=
10621                         for x in $LDFLAGS $LTLIBICONV; do
10622
10623   acl_save_prefix="$prefix"
10624   prefix="$acl_final_prefix"
10625   acl_save_exec_prefix="$exec_prefix"
10626   exec_prefix="$acl_final_exec_prefix"
10627   eval x=\"$x\"
10628   exec_prefix="$acl_save_exec_prefix"
10629   prefix="$acl_save_prefix"
10630
10631                           if test "X$x" = "X-L$additional_libdir"; then
10632                             haveit=yes
10633                             break
10634                           fi
10635                         done
10636                         if test -z "$haveit"; then
10637                           if test -d "$additional_libdir"; then
10638                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10639                           fi
10640                         fi
10641                       fi
10642                     fi
10643                     ;;
10644                   -R*)
10645                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10646                     if test "$enable_rpath" != no; then
10647                                                                   haveit=
10648                       for x in $rpathdirs; do
10649                         if test "X$x" = "X$dir"; then
10650                           haveit=yes
10651                           break
10652                         fi
10653                       done
10654                       if test -z "$haveit"; then
10655                         rpathdirs="$rpathdirs $dir"
10656                       fi
10657                                                                   haveit=
10658                       for x in $ltrpathdirs; do
10659                         if test "X$x" = "X$dir"; then
10660                           haveit=yes
10661                           break
10662                         fi
10663                       done
10664                       if test -z "$haveit"; then
10665                         ltrpathdirs="$ltrpathdirs $dir"
10666                       fi
10667                     fi
10668                     ;;
10669                   -l*)
10670                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10671                     ;;
10672                   *.la)
10673                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10674                     ;;
10675                   *)
10676                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10677                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10678                     ;;
10679                 esac
10680               done
10681             fi
10682           else
10683                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10684             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10685           fi
10686         fi
10687       fi
10688     done
10689   done
10690   if test "X$rpathdirs" != "X"; then
10691     if test -n "$hardcode_libdir_separator"; then
10692                         alldirs=
10693       for found_dir in $rpathdirs; do
10694         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10695       done
10696             acl_save_libdir="$libdir"
10697       libdir="$alldirs"
10698       eval flag=\"$hardcode_libdir_flag_spec\"
10699       libdir="$acl_save_libdir"
10700       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10701     else
10702             for found_dir in $rpathdirs; do
10703         acl_save_libdir="$libdir"
10704         libdir="$found_dir"
10705         eval flag=\"$hardcode_libdir_flag_spec\"
10706         libdir="$acl_save_libdir"
10707         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10708       done
10709     fi
10710   fi
10711   if test "X$ltrpathdirs" != "X"; then
10712             for found_dir in $ltrpathdirs; do
10713       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10714     done
10715   fi
10716
10717
10718
10719
10720
10721
10722
10723           am_save_CPPFLAGS="$CPPFLAGS"
10724
10725   for element in $INCICONV; do
10726     haveit=
10727     for x in $CPPFLAGS; do
10728
10729   acl_save_prefix="$prefix"
10730   prefix="$acl_final_prefix"
10731   acl_save_exec_prefix="$exec_prefix"
10732   exec_prefix="$acl_final_exec_prefix"
10733   eval x=\"$x\"
10734   exec_prefix="$acl_save_exec_prefix"
10735   prefix="$acl_save_prefix"
10736
10737       if test "X$x" = "X$element"; then
10738         haveit=yes
10739         break
10740       fi
10741     done
10742     if test -z "$haveit"; then
10743       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10744     fi
10745   done
10746
10747
10748   echo "$as_me:$LINENO: checking for iconv" >&5
10749 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10750 if test "${am_cv_func_iconv+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753
10754     am_cv_func_iconv="no, consider installing GNU libiconv"
10755     am_cv_lib_iconv=no
10756     cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 #include <stdlib.h>
10763 #include <iconv.h>
10764 int
10765 main ()
10766 {
10767 iconv_t cd = iconv_open("","");
10768        iconv(cd,NULL,NULL,NULL,NULL);
10769        iconv_close(cd);
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776   (eval $ac_link) 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } &&
10783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785   (eval $ac_try) 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; } &&
10789          { ac_try='test -s conftest$ac_exeext'
10790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791   (eval $ac_try) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; }; then
10795   am_cv_func_iconv=yes
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800 fi
10801 rm -f conftest.err conftest.$ac_objext \
10802       conftest$ac_exeext conftest.$ac_ext
10803     if test "$am_cv_func_iconv" != yes; then
10804       am_save_LIBS="$LIBS"
10805       LIBS="$LIBS $LIBICONV"
10806       cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812 #include <stdlib.h>
10813 #include <iconv.h>
10814 int
10815 main ()
10816 {
10817 iconv_t cd = iconv_open("","");
10818          iconv(cd,NULL,NULL,NULL,NULL);
10819          iconv_close(cd);
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826   (eval $ac_link) 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } &&
10833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835   (eval $ac_try) 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); }; } &&
10839          { ac_try='test -s conftest$ac_exeext'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; }; then
10845   am_cv_lib_iconv=yes
10846         am_cv_func_iconv=yes
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 fi
10852 rm -f conftest.err conftest.$ac_objext \
10853       conftest$ac_exeext conftest.$ac_ext
10854       LIBS="$am_save_LIBS"
10855     fi
10856
10857 fi
10858 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10859 echo "${ECHO_T}$am_cv_func_iconv" >&6
10860   if test "$am_cv_func_iconv" = yes; then
10861
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_ICONV 1
10864 _ACEOF
10865
10866   fi
10867   if test "$am_cv_lib_iconv" = yes; then
10868     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10869 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10870     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10871 echo "${ECHO_T}$LIBICONV" >&6
10872   else
10873             CPPFLAGS="$am_save_CPPFLAGS"
10874     LIBICONV=
10875     LTLIBICONV=
10876   fi
10877
10878
10879
10880   if test "$am_cv_func_iconv" = yes; then
10881     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10882 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10883     if test "${am_cv_proto_iconv+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886
10887       cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893
10894 #include <stdlib.h>
10895 #include <iconv.h>
10896 extern
10897 #ifdef __cplusplus
10898 "C"
10899 #endif
10900 #if defined(__STDC__) || defined(__cplusplus)
10901 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10902 #else
10903 size_t iconv();
10904 #endif
10905
10906 int
10907 main ()
10908 {
10909
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916   (eval $ac_compile) 2>conftest.er1
10917   ac_status=$?
10918   grep -v '^ *+' conftest.er1 >conftest.err
10919   rm -f conftest.er1
10920   cat conftest.err >&5
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } &&
10923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; } &&
10929          { ac_try='test -s conftest.$ac_objext'
10930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931   (eval $ac_try) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; }; then
10935   am_cv_proto_iconv_arg1=""
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 am_cv_proto_iconv_arg1="const"
10941 fi
10942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10943       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);"
10944 fi
10945
10946     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10947     echo "$as_me:$LINENO: result: ${ac_t:-
10948          }$am_cv_proto_iconv" >&5
10949 echo "${ECHO_T}${ac_t:-
10950          }$am_cv_proto_iconv" >&6
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define ICONV_CONST $am_cv_proto_iconv_arg1
10954 _ACEOF
10955
10956   fi
10957
10958 # Until we have in-tree GNU iconv:
10959 LIBICONV_DEP=
10960
10961
10962
10963   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10964 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10965 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974 #include <locale.h>
10975 int
10976 main ()
10977 {
10978 return LC_MESSAGES
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985   (eval $ac_link) 2>conftest.er1
10986   ac_status=$?
10987   grep -v '^ *+' conftest.er1 >conftest.err
10988   rm -f conftest.er1
10989   cat conftest.err >&5
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); } &&
10992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994   (eval $ac_try) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; } &&
10998          { ac_try='test -s conftest$ac_exeext'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   am_cv_val_LC_MESSAGES=yes
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 am_cv_val_LC_MESSAGES=no
11010 fi
11011 rm -f conftest.err conftest.$ac_objext \
11012       conftest$ac_exeext conftest.$ac_ext
11013 fi
11014 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11015 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11016   if test $am_cv_val_LC_MESSAGES = yes; then
11017
11018 cat >>confdefs.h <<\_ACEOF
11019 #define HAVE_LC_MESSAGES 1
11020 _ACEOF
11021
11022   fi
11023
11024
11025
11026   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11027 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11028 if test "${am_cv_langinfo_codeset+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037 #include <langinfo.h>
11038 int
11039 main ()
11040 {
11041 char* cs = nl_langinfo(CODESET);
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048   (eval $ac_link) 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } &&
11055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057   (eval $ac_try) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; } &&
11061          { ac_try='test -s conftest$ac_exeext'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }; then
11067   am_cv_langinfo_codeset=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 am_cv_langinfo_codeset=no
11073 fi
11074 rm -f conftest.err conftest.$ac_objext \
11075       conftest$ac_exeext conftest.$ac_ext
11076
11077 fi
11078 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11079 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11080   if test $am_cv_langinfo_codeset = yes; then
11081
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_LANGINFO_CODESET 1
11084 _ACEOF
11085
11086   fi
11087
11088
11089 # We will need to find libiberty.h and ansidecl.h
11090 saved_CFLAGS="$CFLAGS"
11091 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11132         strsignal strstr strverscmp \
11133         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11134         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
11135 do
11136   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11137 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11138 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11139 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148 #undef $ac_tr_decl
11149 #define $ac_tr_decl 1
11150
11151 #include "ansidecl.h"
11152 #include "system.h"
11153
11154 int
11155 main ()
11156 {
11157 #ifndef $ac_func
11158 char *(*pfn) = (char *(*)) $ac_func ;
11159 #endif
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166   (eval $ac_compile) 2>conftest.er1
11167   ac_status=$?
11168   grep -v '^ *+' conftest.er1 >conftest.err
11169   rm -f conftest.er1
11170   cat conftest.err >&5
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); } &&
11173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175   (eval $ac_try) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; } &&
11179          { ac_try='test -s conftest.$ac_objext'
11180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181   (eval $ac_try) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   eval "gcc_cv_have_decl_$ac_func=yes"
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 eval "gcc_cv_have_decl_$ac_func=no"
11191 fi
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 fi
11194
11195 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11196   echo "$as_me:$LINENO: result: yes" >&5
11197 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11198 #define $ac_tr_decl 1
11199 _ACEOF
11200
11201 else
11202   echo "$as_me:$LINENO: result: no" >&5
11203 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11204 #define $ac_tr_decl 0
11205 _ACEOF
11206
11207 fi
11208
11209 done
11210
11211
11212
11213
11214
11215 for ac_func in getrlimit setrlimit getrusage
11216 do
11217   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11218 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11219 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11220 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11221   echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223   cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229 #undef $ac_tr_decl
11230 #define $ac_tr_decl 1
11231
11232 #include "ansidecl.h"
11233 #include "system.h"
11234 #ifdef HAVE_SYS_RESOURCE_H
11235 #include <sys/resource.h>
11236 #endif
11237
11238
11239 int
11240 main ()
11241 {
11242 #ifndef $ac_func
11243 char *(*pfn) = (char *(*)) $ac_func ;
11244 #endif
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251   (eval $ac_compile) 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; } &&
11264          { ac_try='test -s conftest.$ac_objext'
11265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266   (eval $ac_try) 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); }; }; then
11270   eval "gcc_cv_have_decl_$ac_func=yes"
11271 else
11272   echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 eval "gcc_cv_have_decl_$ac_func=no"
11276 fi
11277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11278 fi
11279
11280 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11281   echo "$as_me:$LINENO: result: yes" >&5
11282 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11283 #define $ac_tr_decl 1
11284 _ACEOF
11285
11286 else
11287   echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11289 #define $ac_tr_decl 0
11290 _ACEOF
11291
11292 fi
11293
11294 done
11295
11296
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_SYS_RESOURCE_H
11307 #include <sys/resource.h>
11308 #endif
11309
11310 int
11311 main ()
11312 {
11313 rlim_t l = 0;
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320   (eval $ac_compile) 2>conftest.er1
11321   ac_status=$?
11322   grep -v '^ *+' conftest.er1 >conftest.err
11323   rm -f conftest.er1
11324   cat conftest.err >&5
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } &&
11327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; } &&
11333          { ac_try='test -s conftest.$ac_objext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   :
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344
11345 cat >>confdefs.h <<\_ACEOF
11346 #define rlim_t long
11347 _ACEOF
11348
11349 fi
11350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11351
11352 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11353 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11354 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11355 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11356
11357 for ac_func in ldgetname
11358 do
11359   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11360 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11361 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11362 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 #undef $ac_tr_decl
11372 #define $ac_tr_decl 1
11373
11374 #include "ansidecl.h"
11375 #include "system.h"
11376 #ifdef HAVE_LDFCN_H
11377 #undef FREAD
11378 #undef FWRITE
11379 #include <ldfcn.h>
11380 #endif
11381
11382
11383 int
11384 main ()
11385 {
11386 #ifndef $ac_func
11387 char *(*pfn) = (char *(*)) $ac_func ;
11388 #endif
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395   (eval $ac_compile) 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404   (eval $ac_try) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); }; } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; }; then
11414   eval "gcc_cv_have_decl_$ac_func=yes"
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 eval "gcc_cv_have_decl_$ac_func=no"
11420 fi
11421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 fi
11423
11424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11425   echo "$as_me:$LINENO: result: yes" >&5
11426 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11427 #define $ac_tr_decl 1
11428 _ACEOF
11429
11430 else
11431   echo "$as_me:$LINENO: result: no" >&5
11432 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11433 #define $ac_tr_decl 0
11434 _ACEOF
11435
11436 fi
11437
11438 done
11439
11440
11441
11442 for ac_func in times
11443 do
11444   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11445 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11446 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11447 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 #undef $ac_tr_decl
11457 #define $ac_tr_decl 1
11458
11459 #include "ansidecl.h"
11460 #include "system.h"
11461 #ifdef HAVE_SYS_TIMES_H
11462 #include <sys/times.h>
11463 #endif
11464
11465
11466 int
11467 main ()
11468 {
11469 #ifndef $ac_func
11470 char *(*pfn) = (char *(*)) $ac_func ;
11471 #endif
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478   (eval $ac_compile) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; } &&
11491          { ac_try='test -s conftest.$ac_objext'
11492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493   (eval $ac_try) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   eval "gcc_cv_have_decl_$ac_func=yes"
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 eval "gcc_cv_have_decl_$ac_func=no"
11503 fi
11504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11505 fi
11506
11507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11508   echo "$as_me:$LINENO: result: yes" >&5
11509 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11510 #define $ac_tr_decl 1
11511 _ACEOF
11512
11513 else
11514   echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11516 #define $ac_tr_decl 0
11517 _ACEOF
11518
11519 fi
11520
11521 done
11522
11523
11524 # More time-related stuff.
11525 echo "$as_me:$LINENO: checking for struct tms" >&5
11526 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11527 if test "${ac_cv_struct_tms+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537
11538 #include "ansidecl.h"
11539 #include "system.h"
11540 #ifdef HAVE_SYS_TIMES_H
11541 #include <sys/times.h>
11542 #endif
11543
11544 int
11545 main ()
11546 {
11547 struct tms tms;
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11554   (eval $ac_compile) 2>conftest.er1
11555   ac_status=$?
11556   grep -v '^ *+' conftest.er1 >conftest.err
11557   rm -f conftest.er1
11558   cat conftest.err >&5
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } &&
11561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest.$ac_objext'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   ac_cv_struct_tms=yes
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_cv_struct_tms=no
11579 fi
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11583 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11584 if test $ac_cv_struct_tms = yes; then
11585
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_STRUCT_TMS 1
11588 _ACEOF
11589
11590 fi
11591
11592 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11593 # revisit after autoconf 2.50.
11594 echo "$as_me:$LINENO: checking for clock_t" >&5
11595 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11596 if test "${gcc_cv_type_clock_t+set}" = set; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606
11607 #include "ansidecl.h"
11608 #include "system.h"
11609
11610 int
11611 main ()
11612 {
11613 clock_t x;
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620   (eval $ac_compile) 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; } &&
11633          { ac_try='test -s conftest.$ac_objext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   gcc_cv_type_clock_t=yes
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 gcc_cv_type_clock_t=no
11645 fi
11646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11647 fi
11648 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11649 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11650 if test $gcc_cv_type_clock_t = yes; then
11651
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_CLOCK_T 1
11654 _ACEOF
11655
11656 fi
11657
11658 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11659 CFLAGS="$saved_CFLAGS"
11660
11661 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11662 if test "${enable_initfini_array+set}" = set; then
11663   enableval="$enable_initfini_array"
11664
11665 else
11666
11667 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11668 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11669 if test "${gcc_cv_initfini_array+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672     if test "$cross_compiling" = yes; then
11673   gcc_cv_initfini_array=no
11674 else
11675   cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681
11682 static int x = -1;
11683 int main (void) { return x; }
11684 int foo (void) { x = 0; }
11685 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11686 _ACEOF
11687 rm -f conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689   (eval $ac_link) 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694   (eval $ac_try) 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); }; }; then
11698   gcc_cv_initfini_array=yes
11699 else
11700   echo "$as_me: program exited with status $ac_status" >&5
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 ( exit $ac_status )
11705 gcc_cv_initfini_array=no
11706 fi
11707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11708 fi
11709 fi
11710 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11711 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11712   enable_initfini_array=$gcc_cv_initfini_array
11713
11714 fi;
11715 if test $enable_initfini_array = yes; then
11716
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_INITFINI_ARRAY 1
11719 _ACEOF
11720
11721 fi
11722
11723 # mkdir takes a single argument on some systems.
11724 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11725 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11726 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735
11736 #include <sys/types.h>
11737 #ifdef HAVE_SYS_STAT_H
11738 # include <sys/stat.h>
11739 #endif
11740 #ifdef HAVE_UNISTD_H
11741 # include <unistd.h>
11742 #endif
11743 #ifdef HAVE_DIRECT_H
11744 # include <direct.h>
11745 #endif
11746 int
11747 main ()
11748 {
11749 mkdir ("foo", 0);
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756   (eval $ac_compile) 2>conftest.er1
11757   ac_status=$?
11758   grep -v '^ *+' conftest.er1 >conftest.err
11759   rm -f conftest.er1
11760   cat conftest.err >&5
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); } &&
11763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest.$ac_objext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   gcc_cv_mkdir_takes_one_arg=no
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780 gcc_cv_mkdir_takes_one_arg=yes
11781 fi
11782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11783 fi
11784 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11785 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11786 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define MKDIR_TAKES_ONE_ARG 1
11790 _ACEOF
11791
11792 fi
11793
11794
11795 # File extensions
11796 manext='.1'
11797 objext='.o'
11798
11799
11800
11801 # With Setjmp/Longjmp based exception handling.
11802 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11803 if test "${enable_sjlj_exceptions+set}" = set; then
11804   enableval="$enable_sjlj_exceptions"
11805   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11806
11807 cat >>confdefs.h <<_ACEOF
11808 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11809 _ACEOF
11810
11811 fi;
11812
11813 # For platforms with the unwind ABI which includes an unwind library,
11814 # libunwind, we can choose to use the system libunwind.
11815
11816 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11817 if test "${with_system_libunwind+set}" = set; then
11818   withval="$with_system_libunwind"
11819
11820 fi;
11821
11822 # --------------------------------------------------------
11823 # Build, host, and target specific configuration fragments
11824 # --------------------------------------------------------
11825
11826 # Collect build-machine-specific information.
11827 . ${srcdir}/config.build
11828
11829 # Collect host-machine-specific information.
11830 . ${srcdir}/config.host
11831
11832 target_gtfiles=
11833
11834 # Collect target-machine-specific information.
11835 . ${srcdir}/config.gcc
11836
11837 extra_objs="${host_extra_objs} ${extra_objs}"
11838 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11839
11840 # Default the target-machine variables that were not explicitly set.
11841 if test x"$tm_file" = x
11842 then tm_file=$cpu_type/$cpu_type.h; fi
11843
11844 if test x"$extra_headers" = x
11845 then extra_headers=; fi
11846
11847 if test x$md_file = x
11848 then md_file=$cpu_type/$cpu_type.md; fi
11849
11850 if test x$out_file = x
11851 then out_file=$cpu_type/$cpu_type.c; fi
11852
11853 if test x"$tmake_file" = x
11854 then tmake_file=$cpu_type/t-$cpu_type
11855 fi
11856
11857 if test x"$dwarf2" = xyes
11858 then tm_file="$tm_file tm-dwarf2.h"
11859 fi
11860
11861 # Say what files are being used for the output code and MD file.
11862 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11863 echo "Using \`$srcdir/config/$md_file' as machine description file."
11864
11865 # If any of the xm_file variables contain nonexistent files, warn
11866 # about them and drop them.
11867
11868 bx=
11869 for x in $build_xm_file; do
11870   if    test -f $srcdir/config/$x
11871   then      bx="$bx $x"
11872   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11873 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11874   fi
11875 done
11876 build_xm_file="$bx"
11877
11878 hx=
11879 for x in $host_xm_file; do
11880   if    test -f $srcdir/config/$x
11881   then      hx="$hx $x"
11882   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11883 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11884   fi
11885 done
11886 host_xm_file="$hx"
11887
11888 tx=
11889 for x in $xm_file; do
11890   if    test -f $srcdir/config/$x
11891   then      tx="$tx $x"
11892   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11893 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11894   fi
11895 done
11896 xm_file="$tx"
11897
11898 count=a
11899 for f in $tm_file; do
11900         count=${count}x
11901 done
11902 if test $count = ax; then
11903         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11904 else
11905         echo "Using the following target machine macro files:"
11906         for f in $tm_file; do
11907                 echo "  $srcdir/config/$f"
11908         done
11909 fi
11910
11911 if test x$need_64bit_hwint = xyes; then
11912
11913 cat >>confdefs.h <<\_ACEOF
11914 #define NEED_64BIT_HOST_WIDE_INT 1
11915 _ACEOF
11916
11917 fi
11918
11919 if test x$use_long_long_for_widest_fast_int = xyes; then
11920
11921 cat >>confdefs.h <<\_ACEOF
11922 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11923 _ACEOF
11924
11925 fi
11926
11927 count=a
11928 for f in $host_xm_file; do
11929         count=${count}x
11930 done
11931 if test $count = a; then
11932         :
11933 elif test $count = ax; then
11934         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11935 else
11936         echo "Using the following host machine macro files:"
11937         for f in $host_xm_file; do
11938                 echo "  $srcdir/config/$f"
11939         done
11940 fi
11941 echo "Using ${out_host_hook_obj} for host machine hooks."
11942
11943 if test "$host_xm_file" != "$build_xm_file"; then
11944         count=a
11945         for f in $build_xm_file; do
11946                 count=${count}x
11947         done
11948         if test $count = a; then
11949                 :
11950         elif test $count = ax; then
11951                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11952         else
11953                 echo "Using the following build machine macro files:"
11954                 for f in $build_xm_file; do
11955                         echo "  $srcdir/config/$f"
11956                 done
11957         fi
11958 fi
11959
11960 # ---------
11961 # Threading
11962 # ---------
11963
11964 # Check if a valid thread package
11965 case ${enable_threads} in
11966   "" | no)
11967     # No threads
11968     target_thread_file='single'
11969     ;;
11970   yes)
11971     # default
11972     target_thread_file='single'
11973     ;;
11974   aix | dce | gnat | irix | posix | posix95 | rtems | \
11975   single | solaris | vxworks | win32 )
11976     target_thread_file=${enable_threads}
11977     ;;
11978   *)
11979     echo "${enable_threads} is an unknown thread package" 1>&2
11980     exit 1
11981     ;;
11982 esac
11983
11984 if test x${thread_file} = x; then
11985   # No thread file set by target-specific clauses in config.gcc,
11986   # so use file chosen by default logic above
11987   thread_file=${target_thread_file}
11988 fi
11989
11990 # Make gthr-default.h if we have a thread file.
11991 gthread_flags=
11992 if test $thread_file != single; then
11993   rm -f gthr-default.h
11994   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11995   gthread_flags=-DHAVE_GTHR_DEFAULT
11996 fi
11997
11998
11999 # --------
12000 # UNSORTED
12001 # --------
12002
12003 use_cxa_atexit=no
12004 if test x$enable___cxa_atexit = xyes || \
12005    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12006   if test x$host = x$target; then
12007     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12008 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12009 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h.  */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h.  */
12018 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12020 #define __cxa_atexit innocuous___cxa_atexit
12021
12022 /* System header to define __stub macros and hopefully few prototypes,
12023     which can conflict with char __cxa_atexit (); below.
12024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12025     <limits.h> exists even on freestanding compilers.  */
12026
12027 #ifdef __STDC__
12028 # include <limits.h>
12029 #else
12030 # include <assert.h>
12031 #endif
12032
12033 #undef __cxa_atexit
12034
12035 /* Override any gcc2 internal prototype to avoid an error.  */
12036 #ifdef __cplusplus
12037 extern "C"
12038 {
12039 #endif
12040 /* We use char because int might match the return type of a gcc2
12041    builtin and then its argument prototype would still apply.  */
12042 char __cxa_atexit ();
12043 /* The GNU C library defines this for functions which it implements
12044     to always fail with ENOSYS.  Some functions are actually named
12045     something starting with __ and the normal name is an alias.  */
12046 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12047 choke me
12048 #else
12049 char (*f) () = __cxa_atexit;
12050 #endif
12051 #ifdef __cplusplus
12052 }
12053 #endif
12054
12055 int
12056 main ()
12057 {
12058 return f != __cxa_atexit;
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065   (eval $ac_link) 2>conftest.er1
12066   ac_status=$?
12067   grep -v '^ *+' conftest.er1 >conftest.err
12068   rm -f conftest.er1
12069   cat conftest.err >&5
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } &&
12072          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; } &&
12078          { ac_try='test -s conftest$ac_exeext'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; }; then
12084   ac_cv_func___cxa_atexit=yes
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 ac_cv_func___cxa_atexit=no
12090 fi
12091 rm -f conftest.err conftest.$ac_objext \
12092       conftest$ac_exeext conftest.$ac_ext
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12095 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12096 if test $ac_cv_func___cxa_atexit = yes; then
12097   use_cxa_atexit=yes
12098 else
12099   echo "__cxa_atexit can't be enabled on this target"
12100 fi
12101
12102   else
12103     # We can't check for __cxa_atexit when building a cross, so assume
12104     # it is available
12105     use_cxa_atexit=yes
12106   fi
12107   if test x$use_cxa_atexit = xyes; then
12108
12109 cat >>confdefs.h <<\_ACEOF
12110 #define DEFAULT_USE_CXA_ATEXIT 1
12111 _ACEOF
12112
12113   fi
12114 fi
12115
12116 # Look for a file containing extra machine modes.
12117 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12118   extra_modes_file='$(srcdir)'/config/${extra_modes}
12119
12120
12121 cat >>confdefs.h <<_ACEOF
12122 #define EXTRA_MODES_FILE "config/$extra_modes"
12123 _ACEOF
12124
12125 fi
12126
12127 # Convert extra_options into a form suitable for Makefile use.
12128 extra_opt_files=
12129 for f in $extra_options; do
12130   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12131 done
12132
12133
12134 # auto-host.h is the file containing items generated by autoconf and is
12135 # the first file included by config.h.
12136 # If host=build, it is correct to have bconfig include auto-host.h
12137 # as well.  If host!=build, we are in error and need to do more
12138 # work to find out the build config parameters.
12139 if test x$host = x$build
12140 then
12141         build_auto=auto-host.h
12142 else
12143         # We create a subdir, then run autoconf in the subdir.
12144         # To prevent recursion we set host and build for the new
12145         # invocation of configure to the build for this invocation
12146         # of configure.
12147         tempdir=build.$$
12148         rm -rf $tempdir
12149         mkdir $tempdir
12150         cd $tempdir
12151         case ${srcdir} in
12152         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12153         *) realsrcdir=../${srcdir};;
12154         esac
12155         saved_CFLAGS="${CFLAGS}"
12156         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12157         ${realsrcdir}/configure \
12158                 --enable-languages=${enable_languages-all} \
12159                 --target=$target_alias --host=$build_alias --build=$build_alias
12160         CFLAGS="${saved_CFLAGS}"
12161
12162         # We just finished tests for the build machine, so rename
12163         # the file auto-build.h in the gcc directory.
12164         mv auto-host.h ../auto-build.h
12165         cd ..
12166         rm -rf $tempdir
12167         build_auto=auto-build.h
12168 fi
12169
12170
12171 tm_file="${tm_file} defaults.h"
12172 tm_p_file="${tm_p_file} tm-preds.h"
12173 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12174 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12175 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12176 # put this back in temporarily.
12177 xm_file="auto-host.h ansidecl.h ${xm_file}"
12178
12179 # --------
12180 # UNSORTED
12181 # --------
12182
12183 # Compile in configure arguments.
12184 if test -f configargs.h ; then
12185         # Being re-configured.
12186         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12187         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12188 else
12189         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12190 fi
12191
12192 # Double all backslashes and backslash all quotes to turn
12193 # gcc_config_arguments into a C string.
12194 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12195 $gcc_config_arguments
12196 EOF
12197 gcc_config_arguments_str=`cat conftest.out`
12198 rm -f conftest.out
12199
12200 cat > configargs.h <<EOF
12201 /* Generated automatically. */
12202 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12203 static const char thread_model[] = "$thread_file";
12204
12205 static const struct {
12206   const char *name, *value;
12207 } configure_default_options[] = $configure_default_options;
12208 EOF
12209
12210 # Internationalization
12211 # If we haven't got the data from the intl directory,
12212 # assume NLS is disabled.
12213 USE_NLS=no
12214 LIBINTL=
12215 LIBINTL_DEP=
12216 INCINTL=
12217 XGETTEXT=
12218 GMSGFMT=
12219 POSUB=
12220 if test -f ../intl/config.intl; then
12221   . ../intl/config.intl
12222 fi
12223 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12224 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12225 if test x"$USE_NLS" != xyes; then
12226   echo "$as_me:$LINENO: result: no" >&5
12227 echo "${ECHO_T}no" >&6
12228 else
12229   echo "$as_me:$LINENO: result: yes" >&5
12230 echo "${ECHO_T}yes" >&6
12231
12232 cat >>confdefs.h <<\_ACEOF
12233 #define ENABLE_NLS 1
12234 _ACEOF
12235
12236
12237   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12238 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12239   # Look for .po and .gmo files in the source directory.
12240   CATALOGS=
12241   XLINGUAS=
12242   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12243     # If there aren't any .gmo files the shell will give us the
12244     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12245     # weeded out.
12246     case "$cat" in *\**)
12247       continue;;
12248     esac
12249     # The quadruple backslash is collapsed to a double backslash
12250     # by the backticks, then collapsed again by the double quotes,
12251     # leaving us with one backslash in the sed expression (right
12252     # before the dot that mustn't act as a wildcard).
12253     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12254     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12255     # The user is allowed to set LINGUAS to a list of languages to
12256     # install catalogs for.  If it's empty that means "all of them."
12257     if test "x$LINGUAS" = x; then
12258       CATALOGS="$CATALOGS $cat"
12259       XLINGUAS="$XLINGUAS $lang"
12260     else
12261       case "$LINGUAS" in *$lang*)
12262         CATALOGS="$CATALOGS $cat"
12263         XLINGUAS="$XLINGUAS $lang"
12264         ;;
12265       esac
12266     fi
12267   done
12268   LINGUAS="$XLINGUAS"
12269   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12270 echo "${ECHO_T}$LINGUAS" >&6
12271 fi
12272
12273 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12274 # -liconv on the link line twice.
12275 case "$LIBINTL" in *$LIBICONV*)
12276         LIBICONV= ;;
12277 esac
12278
12279 # Check whether --enable-secureplt or --disable-secureplt was given.
12280 if test "${enable_secureplt+set}" = set; then
12281   enableval="$enable_secureplt"
12282
12283 fi;
12284
12285 # Windows32 Registry support for specifying GCC installation paths.
12286 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12287 if test "${enable_win32_registry+set}" = set; then
12288   enableval="$enable_win32_registry"
12289
12290 fi;
12291
12292 case $host_os in
12293   win32 | pe | cygwin* | mingw32* | uwin*)
12294     if test "x$enable_win32_registry" != xno; then
12295       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12296 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12297 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   ac_func_search_save_LIBS=$LIBS
12301 ac_cv_search_RegOpenKeyExA=no
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h.  */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h.  */
12308
12309 /* Override any gcc2 internal prototype to avoid an error.  */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 /* We use char because int might match the return type of a gcc2
12314    builtin and then its argument prototype would still apply.  */
12315 char RegOpenKeyExA ();
12316 int
12317 main ()
12318 {
12319 RegOpenKeyExA ();
12320   ;
12321   return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326   (eval $ac_link) 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } &&
12333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; } &&
12339          { ac_try='test -s conftest$ac_exeext'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   ac_cv_search_RegOpenKeyExA="none required"
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 fi
12351 rm -f conftest.err conftest.$ac_objext \
12352       conftest$ac_exeext conftest.$ac_ext
12353 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12354   for ac_lib in advapi32; do
12355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12356     cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362
12363 /* Override any gcc2 internal prototype to avoid an error.  */
12364 #ifdef __cplusplus
12365 extern "C"
12366 #endif
12367 /* We use char because int might match the return type of a gcc2
12368    builtin and then its argument prototype would still apply.  */
12369 char RegOpenKeyExA ();
12370 int
12371 main ()
12372 {
12373 RegOpenKeyExA ();
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380   (eval $ac_link) 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389   (eval $ac_try) 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; } &&
12393          { ac_try='test -s conftest$ac_exeext'
12394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395   (eval $ac_try) 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; }; then
12399   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12400 break
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405 fi
12406 rm -f conftest.err conftest.$ac_objext \
12407       conftest$ac_exeext conftest.$ac_ext
12408   done
12409 fi
12410 LIBS=$ac_func_search_save_LIBS
12411 fi
12412 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12413 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12414 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12415   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12416
12417 else
12418   enable_win32_registry=no
12419 fi
12420
12421     fi
12422
12423     if test "x$enable_win32_registry" != xno; then
12424
12425 cat >>confdefs.h <<\_ACEOF
12426 #define ENABLE_WIN32_REGISTRY 1
12427 _ACEOF
12428
12429
12430       if test "x$enable_win32_registry" != xyes \
12431          && test "x$enable_win32_registry" != x; then
12432
12433 cat >>confdefs.h <<_ACEOF
12434 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12435 _ACEOF
12436
12437       fi
12438     fi
12439   ;;
12440 esac
12441
12442 # Get an absolute path to the GCC top-level source directory
12443 holddir=`${PWDCMD-pwd}`
12444 cd $srcdir
12445 topdir=`${PWDCMD-pwd}`
12446 cd $holddir
12447
12448 # Conditionalize the makefile for this host machine.
12449 xmake_file=
12450 for f in ${host_xmake_file}
12451 do
12452         if test -f ${srcdir}/config/$f
12453         then
12454                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12455         fi
12456 done
12457
12458 # Conditionalize the makefile for this target machine.
12459 tmake_file_=
12460 for f in ${tmake_file}
12461 do
12462         if test -f ${srcdir}/config/$f
12463         then
12464                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12465         fi
12466 done
12467 tmake_file="${tmake_file_}"
12468
12469 # If the host doesn't support symlinks, modify CC in
12470 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12471 # Otherwise, we can use "CC=$(CC)".
12472 rm -f symtest.tem
12473 case "$LN_S" in
12474         *-s*)
12475                 cc_set_by_configure="\$(CC)"
12476                 quoted_cc_set_by_configure="\$(CC)"
12477                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12478                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12479                 ;;
12480         *)
12481                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12482                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12483                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12484                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12485                 ;;
12486 esac
12487
12488 # This is a terrible hack which will go away some day.
12489 host_cc_for_libada=${CC}
12490
12491
12492 out_object_file=`basename $out_file .c`.o
12493
12494 tm_file_list="options.h"
12495 tm_include_list="options.h"
12496 for f in $tm_file; do
12497   case $f in
12498     defaults.h )
12499        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12500        tm_include_list="${tm_include_list} $f"
12501        ;;
12502     * )
12503        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12504        tm_include_list="${tm_include_list} config/$f"
12505        ;;
12506   esac
12507 done
12508
12509 tm_p_file_list=
12510 tm_p_include_list=
12511 for f in $tm_p_file; do
12512   case $f in
12513     tm-preds.h )
12514        tm_p_file_list="${tm_p_file_list} $f"
12515        tm_p_include_list="${tm_p_include_list} $f"
12516        ;;
12517     * )
12518        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12519        tm_p_include_list="${tm_p_include_list} config/$f"
12520   esac
12521 done
12522
12523 xm_file_list=
12524 xm_include_list=
12525 for f in $xm_file; do
12526   case $f in
12527     ansidecl.h )
12528        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12529        xm_include_list="${xm_include_list} $f"
12530        ;;
12531     auto-host.h )
12532        xm_file_list="${xm_file_list} $f"
12533        xm_include_list="${xm_include_list} $f"
12534        ;;
12535     * )
12536        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12537        xm_include_list="${xm_include_list} config/$f"
12538        ;;
12539   esac
12540 done
12541
12542 host_xm_file_list=
12543 host_xm_include_list=
12544 for f in $host_xm_file; do
12545   case $f in
12546     ansidecl.h )
12547        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12548        host_xm_include_list="${host_xm_include_list} $f"
12549        ;;
12550     auto-host.h )
12551        host_xm_file_list="${host_xm_file_list} $f"
12552        host_xm_include_list="${host_xm_include_list} $f"
12553        ;;
12554     * )
12555        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12556        host_xm_include_list="${host_xm_include_list} config/$f"
12557        ;;
12558   esac
12559 done
12560
12561 build_xm_file_list=
12562 for f in $build_xm_file; do
12563   case $f in
12564     ansidecl.h )
12565        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12566        build_xm_include_list="${build_xm_include_list} $f"
12567        ;;
12568     auto-build.h | auto-host.h )
12569        build_xm_file_list="${build_xm_file_list} $f"
12570        build_xm_include_list="${build_xm_include_list} $f"
12571        ;;
12572     * )
12573        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12574        build_xm_include_list="${build_xm_include_list} config/$f"
12575        ;;
12576   esac
12577 done
12578
12579 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12580 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12581 CROSS=
12582 ALL=all.internal
12583 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12584
12585 if test "x$with_build_sysroot" != x; then
12586   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12587 else
12588   # This value is used, even on a native system, because
12589   # CROSS_SYSTEM_HEADER_DIR is just
12590   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12591   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12592 fi
12593
12594 if test x$host != x$target
12595 then
12596         CROSS="-DCROSS_COMPILE"
12597         ALL=all.cross
12598         SYSTEM_HEADER_DIR=$build_system_header_dir
12599         case "$host","$target" in
12600         # Darwin crosses can use the host system's libraries and headers,
12601         # because of the fat library support.  Of course, it must be the
12602         # same version of Darwin on both sides.  Allow the user to
12603         # just say --target=foo-darwin without a version number to mean
12604         # "the version on this system".
12605             *-*-darwin*,*-*-darwin*)
12606                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12607                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12608                 if test $hostos = $targetos -o $targetos = darwin ; then
12609                     CROSS=
12610                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12611                     with_headers=yes
12612                 fi
12613                 ;;
12614
12615             i?86-*-*,x86_64-*-* \
12616             | powerpc*-*-*,powerpc64*-*-*)
12617                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12618         esac
12619 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12620         SYSTEM_HEADER_DIR=$build_system_header_dir
12621 fi
12622
12623 # If this is a cross-compiler that does not
12624 # have its own set of headers then define
12625 # inhibit_libc
12626
12627 # If this is using newlib, without having the headers available now,
12628 # then define inhibit_libc in LIBGCC2_CFLAGS.
12629 # This prevents libgcc2 from containing any code which requires libc
12630 # support.
12631 inhibit_libc=false
12632 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12633        test x$with_newlib = xyes ; } &&
12634      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12635        inhibit_libc=true
12636 fi
12637
12638
12639 # When building gcc with a cross-compiler, we need to adjust things so
12640 # that the generator programs are still built with the native compiler.
12641 # Also, we cannot run fixincludes or fix-header.
12642
12643 # These are the normal (build=host) settings:
12644 CC_FOR_BUILD='$(CC)'
12645 BUILD_CFLAGS='$(ALL_CFLAGS)'
12646 STMP_FIXINC=stmp-fixinc
12647
12648 # Possibly disable fixproto, on a per-target basis.
12649 case ${use_fixproto} in
12650   no)
12651     STMP_FIXPROTO=
12652     ;;
12653   yes)
12654     STMP_FIXPROTO=stmp-fixproto
12655     ;;
12656 esac
12657
12658
12659 # And these apply if build != host, or we are generating coverage data
12660 if test x$build != x$host || test "x$coverage_flags" != x
12661 then
12662     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12663
12664     if test "x$TARGET_SYSTEM_ROOT" = x; then
12665         if test "x$STMP_FIXPROTO" != x; then
12666           STMP_FIXPROTO=stmp-install-fixproto
12667         fi
12668     fi
12669 fi
12670
12671 # Expand extra_headers to include complete path.
12672 # This substitutes for lots of t-* files.
12673 extra_headers_list=
12674 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12675 for file in ${extra_headers} ; do
12676   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12677 done
12678
12679 # Define collect2 in Makefile.
12680 case $host_can_use_collect2 in
12681   no) collect2= ;;
12682   *) collect2='collect2$(exeext)' ;;
12683 esac
12684
12685
12686 # Add a definition of USE_COLLECT2 if system wants one.
12687 case $use_collect2 in
12688   no) use_collect2= ;;
12689   "") ;;
12690   *)
12691     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12692     xm_defines="${xm_defines} USE_COLLECT2"
12693     case $host_can_use_collect2 in
12694       no)
12695         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12696 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12697    { (exit 1); exit 1; }; }
12698         ;;
12699     esac
12700     ;;
12701 esac
12702
12703 # ---------------------------
12704 # Assembler & linker features
12705 # ---------------------------
12706
12707 # Identify the assembler which will work hand-in-glove with the newly
12708 # built GCC, so that we can examine its features.  This is the assembler
12709 # which will be driven by the driver program.
12710 #
12711 # If build != host, and we aren't building gas in-tree, we identify a
12712 # build->target assembler and hope that it will have the same features
12713 # as the host->target assembler we'll be using.
12714 in_tree_gas=no
12715 gcc_cv_as=
12716 gcc_cv_gas_major_version=
12717 gcc_cv_gas_minor_version=
12718 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12719 if test -x "$DEFAULT_ASSEMBLER"; then
12720         gcc_cv_as="$DEFAULT_ASSEMBLER"
12721 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12722      && test -f ../gas/Makefile \
12723      && test x$build = x$host; then
12724   # Single tree build which includes gas.  We want to prefer it
12725   # over whatever linker top-level may have detected, since
12726   # we'll use what we're building after installation anyway.
12727   in_tree_gas=yes
12728   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12729 for f in $gcc_cv_as_bfd_srcdir/configure \
12730          $gcc_cv_as_gas_srcdir/configure \
12731          $gcc_cv_as_gas_srcdir/configure.in \
12732          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12733   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12734   if test x$gcc_cv_gas_version != x; then
12735     break
12736   fi
12737 done
12738 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12739 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12740 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12741 case $gcc_cv_gas_patch_version in
12742   "") gcc_cv_gas_patch_version="0" ;;
12743 esac
12744 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12745                             + $gcc_cv_gas_minor_version \) \* 1000 \
12746                             + $gcc_cv_gas_patch_version`
12747
12748   gcc_cv_as=../gas/as-new$build_exeext
12749   in_tree_gas_is_elf=no
12750   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12751      || (grep 'obj_format = multi' ../gas/Makefile \
12752          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12753   then
12754     in_tree_gas_is_elf=yes
12755   fi
12756 elif test -x as$build_exeext; then
12757         # Build using assembler in the current directory.
12758         gcc_cv_as=./as$build_exeext
12759 fi
12760
12761
12762 # When searching for the assembler or linker, search the same directories
12763 # that the installed compiler will search.  Else we may find the wrong
12764 # assembler or linker and lose.  If we do not find a suitable binary,
12765 # then try the user's path.
12766 #
12767 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12768 if test "x$exec_prefix" = xNONE; then
12769         if test "x$prefix" = xNONE; then
12770                 gcc_cv_tool_prefix=/usr/local
12771         else
12772                 gcc_cv_tool_prefix=$prefix
12773         fi
12774 else
12775         gcc_cv_tool_prefix=$exec_prefix
12776 fi
12777
12778 if test x$host = x$build; then
12779     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12780     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12781     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12782     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12783     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12784     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12785 else
12786     gcc_cv_tool_dirs=
12787 fi
12788
12789 if test x$build = x$target; then
12790     # Rummage through tm_files looking for MD_EXEC_PREFIX
12791     md_dirs=
12792     for f in ${tm_file_list}; do
12793         if test -f $f; then
12794             if grep '^#[        ]*undef[        ]*MD_EXEC_PREFIX' $f > /dev/null; then
12795                 md_dirs=
12796             fi
12797             md_dirs="$md_dirs "`sed -n -e 's@^#[        ]*define[       ]*MD_EXEC_PREFIX[       ]*"\(.*\)/"@\1@p' < $f`
12798         fi
12799     done
12800     for f in ${md_dirs}; do
12801         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12802     done
12803 fi
12804
12805
12806
12807
12808 exec 6>/dev/null
12809
12810 # First try the environment variables.  Handle full paths or basenames.
12811 if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
12812         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12813 set dummy $AS_FOR_TARGET; ac_word=$2
12814 echo "$as_me:$LINENO: checking for $ac_word" >&5
12815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12816 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12817   echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819   case $gcc_cv_as in
12820   [\\/]* | ?:[\\/]*)
12821   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12822   ;;
12823   *)
12824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827   IFS=$as_save_IFS
12828   test -z "$as_dir" && as_dir=.
12829   for ac_exec_ext in '' $ac_executable_extensions; do
12830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12833     break 2
12834   fi
12835 done
12836 done
12837
12838   ;;
12839 esac
12840 fi
12841 gcc_cv_as=$ac_cv_path_gcc_cv_as
12842
12843 if test -n "$gcc_cv_as"; then
12844   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12845 echo "${ECHO_T}$gcc_cv_as" >&6
12846 else
12847   echo "$as_me:$LINENO: result: no" >&5
12848 echo "${ECHO_T}no" >&6
12849 fi
12850
12851 fi
12852 if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
12853         # Extract the first word of "$AS", so it can be a program name with args.
12854 set dummy $AS; ac_word=$2
12855 echo "$as_me:$LINENO: checking for $ac_word" >&5
12856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12857 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12858   echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860   case $gcc_cv_as in
12861   [\\/]* | ?:[\\/]*)
12862   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12863   ;;
12864   *)
12865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12867 do
12868   IFS=$as_save_IFS
12869   test -z "$as_dir" && as_dir=.
12870   for ac_exec_ext in '' $ac_executable_extensions; do
12871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12874     break 2
12875   fi
12876 done
12877 done
12878
12879   ;;
12880 esac
12881 fi
12882 gcc_cv_as=$ac_cv_path_gcc_cv_as
12883
12884 if test -n "$gcc_cv_as"; then
12885   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12886 echo "${ECHO_T}$gcc_cv_as" >&6
12887 else
12888   echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6
12890 fi
12891
12892 fi
12893
12894 if test "x$gcc_cv_as" = x; then
12895         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12896         # is empty.
12897         if test "x$gcc_cv_tool_dirs" = x; then
12898                 gcc_cv_as=
12899         else
12900                 for ac_prog in as
12901 do
12902   # Extract the first word of "$ac_prog", so it can be a program name with args.
12903 set dummy $ac_prog; ac_word=$2
12904 echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12906 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12907   echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909   case $gcc_cv_as in
12910   [\\/]* | ?:[\\/]*)
12911   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12912   ;;
12913   *)
12914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $gcc_cv_tool_dirs
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919   for ac_exec_ext in '' $ac_executable_extensions; do
12920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12923     break 2
12924   fi
12925 done
12926 done
12927
12928   ;;
12929 esac
12930 fi
12931 gcc_cv_as=$ac_cv_path_gcc_cv_as
12932
12933 if test -n "$gcc_cv_as"; then
12934   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12935 echo "${ECHO_T}$gcc_cv_as" >&6
12936 else
12937   echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6
12939 fi
12940
12941   test -n "$gcc_cv_as" && break
12942 done
12943
12944         fi
12945 fi
12946 if test "x$gcc_cv_as" = x; then
12947         # If the loop above did not find a tool, then use whatever
12948         # one we can find in the users's path.  We are looking for a
12949         # ${build} -> ${target} tool.
12950         if test "x$program_prefix" != xNONE; then
12951                 default_tool_name=${program_prefix}as
12952         elif test x$build != x$host && test x$build != x$target; then
12953                 default_tool_name=${target_noncanonical}-as
12954         else
12955                 default_tool_name=`echo as | sed "${program_transform_name}"`
12956         fi
12957         for ac_prog in $default_tool_name
12958 do
12959   # Extract the first word of "$ac_prog", so it can be a program name with args.
12960 set dummy $ac_prog; ac_word=$2
12961 echo "$as_me:$LINENO: checking for $ac_word" >&5
12962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12963 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966   case $gcc_cv_as in
12967   [\\/]* | ?:[\\/]*)
12968   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12969   ;;
12970   *)
12971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12973 do
12974   IFS=$as_save_IFS
12975   test -z "$as_dir" && as_dir=.
12976   for ac_exec_ext in '' $ac_executable_extensions; do
12977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12978     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980     break 2
12981   fi
12982 done
12983 done
12984
12985   ;;
12986 esac
12987 fi
12988 gcc_cv_as=$ac_cv_path_gcc_cv_as
12989
12990 if test -n "$gcc_cv_as"; then
12991   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12992 echo "${ECHO_T}$gcc_cv_as" >&6
12993 else
12994   echo "$as_me:$LINENO: result: no" >&5
12995 echo "${ECHO_T}no" >&6
12996 fi
12997
12998   test -n "$gcc_cv_as" && break
12999 done
13000 test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13001
13002 fi
13003 test "$silent" != yes && exec 6>&1
13004
13005 ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13006
13007 echo "$as_me:$LINENO: checking what assembler to use" >&5
13008 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13009 case $in_tree_gas in
13010   yes)
13011     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13012 echo "${ECHO_T}\"newly built gas\"" >&6
13013     ;;
13014   no)
13015     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13016 echo "${ECHO_T}$gcc_cv_as" >&6
13017     ;;
13018 esac
13019
13020 # Identify the linker which will work hand-in-glove with the newly
13021 # built GCC, so that we can examine its features.  This is the linker
13022 # which will be driven by the driver program.
13023 #
13024 # If build != host, and we aren't building gas in-tree, we identify a
13025 # build->target linker and hope that it will have the same features
13026 # as the host->target linker we'll be using.
13027 in_tree_ld=no
13028 gcc_cv_ld=
13029 gcc_cv_gld_major_version=
13030 gcc_cv_gld_minor_version=
13031 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13032 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13033 if test -x "$DEFAULT_LINKER"; then
13034         gcc_cv_ld="$DEFAULT_LINKER"
13035 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13036      && test -f ../ld/Makefile \
13037      && test x$build = x$host; then
13038         # Single tree build which includes ld.  We want to prefer it
13039         # over whatever linker top-level may have detected, since
13040         # we'll use what we're building after installation anyway.
13041         in_tree_ld=yes
13042         in_tree_ld_is_elf=no
13043         if (grep 'EMUL = .*elf' ../ld/Makefile \
13044             || grep 'EMUL = .*linux' ../ld/Makefile \
13045             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13046           in_tree_ld_is_elf=yes
13047         fi
13048         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
13049         do
13050                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13051                 if test x$gcc_cv_gld_version != x; then
13052                         break
13053                 fi
13054         done
13055         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13056         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13057         gcc_cv_ld=../ld/ld-new$build_exeext
13058 elif test -x collect-ld$build_exeext; then
13059         # Build using linker in the current directory.
13060         gcc_cv_ld=./collect-ld$build_exeext
13061 fi
13062
13063
13064
13065
13066
13067 exec 6>/dev/null
13068
13069 # First try the environment variables.  Handle full paths or basenames.
13070 if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13071         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13072 set dummy $LD_FOR_TARGET; ac_word=$2
13073 echo "$as_me:$LINENO: checking for $ac_word" >&5
13074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13075 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13076   echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078   case $gcc_cv_ld in
13079   [\\/]* | ?:[\\/]*)
13080   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13081   ;;
13082   *)
13083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13085 do
13086   IFS=$as_save_IFS
13087   test -z "$as_dir" && as_dir=.
13088   for ac_exec_ext in '' $ac_executable_extensions; do
13089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13092     break 2
13093   fi
13094 done
13095 done
13096
13097   ;;
13098 esac
13099 fi
13100 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13101
13102 if test -n "$gcc_cv_ld"; then
13103   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13104 echo "${ECHO_T}$gcc_cv_ld" >&6
13105 else
13106   echo "$as_me:$LINENO: result: no" >&5
13107 echo "${ECHO_T}no" >&6
13108 fi
13109
13110 fi
13111 if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
13112         # Extract the first word of "$LD", so it can be a program name with args.
13113 set dummy $LD; ac_word=$2
13114 echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13116 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13117   echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119   case $gcc_cv_ld in
13120   [\\/]* | ?:[\\/]*)
13121   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13122   ;;
13123   *)
13124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13126 do
13127   IFS=$as_save_IFS
13128   test -z "$as_dir" && as_dir=.
13129   for ac_exec_ext in '' $ac_executable_extensions; do
13130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133     break 2
13134   fi
13135 done
13136 done
13137
13138   ;;
13139 esac
13140 fi
13141 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13142
13143 if test -n "$gcc_cv_ld"; then
13144   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13145 echo "${ECHO_T}$gcc_cv_ld" >&6
13146 else
13147   echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6
13149 fi
13150
13151 fi
13152
13153 if test "x$gcc_cv_ld" = x; then
13154         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13155         # is empty.
13156         if test "x$gcc_cv_tool_dirs" = x; then
13157                 gcc_cv_ld=
13158         else
13159                 for ac_prog in ld
13160 do
13161   # Extract the first word of "$ac_prog", so it can be a program name with args.
13162 set dummy $ac_prog; ac_word=$2
13163 echo "$as_me:$LINENO: checking for $ac_word" >&5
13164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13165 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   case $gcc_cv_ld in
13169   [\\/]* | ?:[\\/]*)
13170   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13171   ;;
13172   *)
13173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $gcc_cv_tool_dirs
13175 do
13176   IFS=$as_save_IFS
13177   test -z "$as_dir" && as_dir=.
13178   for ac_exec_ext in '' $ac_executable_extensions; do
13179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13182     break 2
13183   fi
13184 done
13185 done
13186
13187   ;;
13188 esac
13189 fi
13190 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13191
13192 if test -n "$gcc_cv_ld"; then
13193   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13194 echo "${ECHO_T}$gcc_cv_ld" >&6
13195 else
13196   echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6
13198 fi
13199
13200   test -n "$gcc_cv_ld" && break
13201 done
13202
13203         fi
13204 fi
13205 if test "x$gcc_cv_ld" = x; then
13206         # If the loop above did not find a tool, then use whatever
13207         # one we can find in the users's path.  We are looking for a
13208         # ${build} -> ${target} tool.
13209         if test "x$program_prefix" != xNONE; then
13210                 default_tool_name=${program_prefix}ld
13211         elif test x$build != x$host && test x$build != x$target; then
13212                 default_tool_name=${target_noncanonical}-ld
13213         else
13214                 default_tool_name=`echo ld | sed "${program_transform_name}"`
13215         fi
13216         for ac_prog in $default_tool_name
13217 do
13218   # Extract the first word of "$ac_prog", so it can be a program name with args.
13219 set dummy $ac_prog; ac_word=$2
13220 echo "$as_me:$LINENO: checking for $ac_word" >&5
13221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13222 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   case $gcc_cv_ld in
13226   [\\/]* | ?:[\\/]*)
13227   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13228   ;;
13229   *)
13230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233   IFS=$as_save_IFS
13234   test -z "$as_dir" && as_dir=.
13235   for ac_exec_ext in '' $ac_executable_extensions; do
13236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13239     break 2
13240   fi
13241 done
13242 done
13243
13244   ;;
13245 esac
13246 fi
13247 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13248
13249 if test -n "$gcc_cv_ld"; then
13250   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13251 echo "${ECHO_T}$gcc_cv_ld" >&6
13252 else
13253   echo "$as_me:$LINENO: result: no" >&5
13254 echo "${ECHO_T}no" >&6
13255 fi
13256
13257   test -n "$gcc_cv_ld" && break
13258 done
13259 test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13260
13261 fi
13262 test "$silent" != yes && exec 6>&1
13263
13264 ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
13265
13266 echo "$as_me:$LINENO: checking what linker to use" >&5
13267 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13268 case $in_tree_ld in
13269   yes)
13270     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13271 echo "${ECHO_T}\"newly built ld\"" >&6
13272     ;;
13273   no)
13274     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13275 echo "${ECHO_T}$gcc_cv_ld" >&6
13276     ;;
13277 esac
13278
13279 # Figure out what nm we will be using.
13280 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13281 in_tree_nm=no
13282 gcc_cv_nm=
13283 if test -f $gcc_cv_binutils_srcdir/configure.in \
13284      && test -f ../binutils/Makefile; then
13285         # Single tree build which includes binutils.
13286         in_tree_nm=yes
13287         gcc_cv_nm=../binutils/nm-new$build_exeext
13288 elif test -x nm$build_exeext; then
13289         gcc_cv_nm=./nm$build_exeext
13290 fi
13291
13292
13293
13294
13295
13296 exec 6>/dev/null
13297
13298 # First try the environment variables.  Handle full paths or basenames.
13299 if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
13300         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13301 set dummy $NM_FOR_TARGET; ac_word=$2
13302 echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13304 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   case $gcc_cv_nm in
13308   [\\/]* | ?:[\\/]*)
13309   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13310   ;;
13311   *)
13312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315   IFS=$as_save_IFS
13316   test -z "$as_dir" && as_dir=.
13317   for ac_exec_ext in '' $ac_executable_extensions; do
13318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321     break 2
13322   fi
13323 done
13324 done
13325
13326   ;;
13327 esac
13328 fi
13329 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13330
13331 if test -n "$gcc_cv_nm"; then
13332   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13333 echo "${ECHO_T}$gcc_cv_nm" >&6
13334 else
13335   echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6
13337 fi
13338
13339 fi
13340 if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
13341         # Extract the first word of "$NM", so it can be a program name with args.
13342 set dummy $NM; ac_word=$2
13343 echo "$as_me:$LINENO: checking for $ac_word" >&5
13344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13345 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348   case $gcc_cv_nm in
13349   [\\/]* | ?:[\\/]*)
13350   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13351   ;;
13352   *)
13353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in $PATH
13355 do
13356   IFS=$as_save_IFS
13357   test -z "$as_dir" && as_dir=.
13358   for ac_exec_ext in '' $ac_executable_extensions; do
13359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13362     break 2
13363   fi
13364 done
13365 done
13366
13367   ;;
13368 esac
13369 fi
13370 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13371
13372 if test -n "$gcc_cv_nm"; then
13373   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13374 echo "${ECHO_T}$gcc_cv_nm" >&6
13375 else
13376   echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6
13378 fi
13379
13380 fi
13381
13382 if test "x$gcc_cv_nm" = x; then
13383         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13384         # is empty.
13385         if test "x$gcc_cv_tool_dirs" = x; then
13386                 gcc_cv_nm=
13387         else
13388                 for ac_prog in nm
13389 do
13390   # Extract the first word of "$ac_prog", so it can be a program name with args.
13391 set dummy $ac_prog; ac_word=$2
13392 echo "$as_me:$LINENO: checking for $ac_word" >&5
13393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13394 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397   case $gcc_cv_nm in
13398   [\\/]* | ?:[\\/]*)
13399   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13400   ;;
13401   *)
13402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $gcc_cv_tool_dirs
13404 do
13405   IFS=$as_save_IFS
13406   test -z "$as_dir" && as_dir=.
13407   for ac_exec_ext in '' $ac_executable_extensions; do
13408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13411     break 2
13412   fi
13413 done
13414 done
13415
13416   ;;
13417 esac
13418 fi
13419 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13420
13421 if test -n "$gcc_cv_nm"; then
13422   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13423 echo "${ECHO_T}$gcc_cv_nm" >&6
13424 else
13425   echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6
13427 fi
13428
13429   test -n "$gcc_cv_nm" && break
13430 done
13431
13432         fi
13433 fi
13434 if test "x$gcc_cv_nm" = x; then
13435         # If the loop above did not find a tool, then use whatever
13436         # one we can find in the users's path.  We are looking for a
13437         # ${build} -> ${target} tool.
13438         if test "x$program_prefix" != xNONE; then
13439                 default_tool_name=${program_prefix}nm
13440         elif test x$build != x$host && test x$build != x$target; then
13441                 default_tool_name=${target_noncanonical}-nm
13442         else
13443                 default_tool_name=`echo nm | sed "${program_transform_name}"`
13444         fi
13445         for ac_prog in $default_tool_name
13446 do
13447   # Extract the first word of "$ac_prog", so it can be a program name with args.
13448 set dummy $ac_prog; ac_word=$2
13449 echo "$as_me:$LINENO: checking for $ac_word" >&5
13450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13451 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   case $gcc_cv_nm in
13455   [\\/]* | ?:[\\/]*)
13456   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13457   ;;
13458   *)
13459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13461 do
13462   IFS=$as_save_IFS
13463   test -z "$as_dir" && as_dir=.
13464   for ac_exec_ext in '' $ac_executable_extensions; do
13465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13468     break 2
13469   fi
13470 done
13471 done
13472
13473   ;;
13474 esac
13475 fi
13476 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13477
13478 if test -n "$gcc_cv_nm"; then
13479   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13480 echo "${ECHO_T}$gcc_cv_nm" >&6
13481 else
13482   echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6
13484 fi
13485
13486   test -n "$gcc_cv_nm" && break
13487 done
13488 test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13489
13490 fi
13491 test "$silent" != yes && exec 6>&1
13492
13493 ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
13494
13495 echo "$as_me:$LINENO: checking what nm to use" >&5
13496 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13497 case $in_tree_nm in
13498   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13499 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13500   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13501 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13502 esac
13503
13504 # Figure out what objdump we will be using.
13505 in_tree_objdump=no
13506 gcc_cv_objdump=
13507 if test -f $gcc_cv_binutils_srcdir/configure.in \
13508      && test -f ../binutils/Makefile; then
13509         # Single tree build which includes binutils.
13510         in_tree_objdump=yes
13511         gcc_cv_objdump=../binutils/objdump$build_exeext
13512 elif test -x objdump$build_exeext; then
13513         gcc_cv_objdump=./objdump$build_exeext
13514 fi
13515
13516
13517
13518
13519
13520 exec 6>/dev/null
13521
13522 # First try the environment variables.  Handle full paths or basenames.
13523 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
13524         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13525 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13526 echo "$as_me:$LINENO: checking for $ac_word" >&5
13527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13528 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   case $gcc_cv_objdump in
13532   [\\/]* | ?:[\\/]*)
13533   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13534   ;;
13535   *)
13536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13538 do
13539   IFS=$as_save_IFS
13540   test -z "$as_dir" && as_dir=.
13541   for ac_exec_ext in '' $ac_executable_extensions; do
13542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13545     break 2
13546   fi
13547 done
13548 done
13549
13550   ;;
13551 esac
13552 fi
13553 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13554
13555 if test -n "$gcc_cv_objdump"; then
13556   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13557 echo "${ECHO_T}$gcc_cv_objdump" >&6
13558 else
13559   echo "$as_me:$LINENO: result: no" >&5
13560 echo "${ECHO_T}no" >&6
13561 fi
13562
13563 fi
13564 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
13565         # Extract the first word of "$OBJDUMP", so it can be a program name with args.
13566 set dummy $OBJDUMP; ac_word=$2
13567 echo "$as_me:$LINENO: checking for $ac_word" >&5
13568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13569 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   case $gcc_cv_objdump in
13573   [\\/]* | ?:[\\/]*)
13574   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13575   ;;
13576   *)
13577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582   for ac_exec_ext in '' $ac_executable_extensions; do
13583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589 done
13590
13591   ;;
13592 esac
13593 fi
13594 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13595
13596 if test -n "$gcc_cv_objdump"; then
13597   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13598 echo "${ECHO_T}$gcc_cv_objdump" >&6
13599 else
13600   echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6
13602 fi
13603
13604 fi
13605
13606 if test "x$gcc_cv_objdump" = x; then
13607         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13608         # is empty.
13609         if test "x$gcc_cv_tool_dirs" = x; then
13610                 gcc_cv_objdump=
13611         else
13612                 for ac_prog in objdump
13613 do
13614   # Extract the first word of "$ac_prog", so it can be a program name with args.
13615 set dummy $ac_prog; ac_word=$2
13616 echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13618 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   case $gcc_cv_objdump in
13622   [\\/]* | ?:[\\/]*)
13623   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13624   ;;
13625   *)
13626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $gcc_cv_tool_dirs
13628 do
13629   IFS=$as_save_IFS
13630   test -z "$as_dir" && as_dir=.
13631   for ac_exec_ext in '' $ac_executable_extensions; do
13632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635     break 2
13636   fi
13637 done
13638 done
13639
13640   ;;
13641 esac
13642 fi
13643 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13644
13645 if test -n "$gcc_cv_objdump"; then
13646   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13647 echo "${ECHO_T}$gcc_cv_objdump" >&6
13648 else
13649   echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13651 fi
13652
13653   test -n "$gcc_cv_objdump" && break
13654 done
13655
13656         fi
13657 fi
13658 if test "x$gcc_cv_objdump" = x; then
13659         # If the loop above did not find a tool, then use whatever
13660         # one we can find in the users's path.  We are looking for a
13661         # ${build} -> ${target} tool.
13662         if test "x$program_prefix" != xNONE; then
13663                 default_tool_name=${program_prefix}objdump
13664         elif test x$build != x$host && test x$build != x$target; then
13665                 default_tool_name=${target_noncanonical}-objdump
13666         else
13667                 default_tool_name=`echo objdump | sed "${program_transform_name}"`
13668         fi
13669         for ac_prog in $default_tool_name
13670 do
13671   # Extract the first word of "$ac_prog", so it can be a program name with args.
13672 set dummy $ac_prog; ac_word=$2
13673 echo "$as_me:$LINENO: checking for $ac_word" >&5
13674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13675 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13676   echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678   case $gcc_cv_objdump in
13679   [\\/]* | ?:[\\/]*)
13680   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13681   ;;
13682   *)
13683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13685 do
13686   IFS=$as_save_IFS
13687   test -z "$as_dir" && as_dir=.
13688   for ac_exec_ext in '' $ac_executable_extensions; do
13689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13692     break 2
13693   fi
13694 done
13695 done
13696
13697   ;;
13698 esac
13699 fi
13700 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13701
13702 if test -n "$gcc_cv_objdump"; then
13703   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13704 echo "${ECHO_T}$gcc_cv_objdump" >&6
13705 else
13706   echo "$as_me:$LINENO: result: no" >&5
13707 echo "${ECHO_T}no" >&6
13708 fi
13709
13710   test -n "$gcc_cv_objdump" && break
13711 done
13712 test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13713
13714 fi
13715 test "$silent" != yes && exec 6>&1
13716
13717 ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
13718
13719 echo "$as_me:$LINENO: checking what objdump to use" >&5
13720 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13721 case $in_tree_objdump in
13722   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13723 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13724   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13725 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13726 esac
13727
13728 # Figure out what assembler alignment features are present.
13729 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13730 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13731 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   gcc_cv_as_balign_and_p2align=no
13735     if test $in_tree_gas = yes; then
13736     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13737   then gcc_cv_as_balign_and_p2align=yes
13738 fi
13739   elif test x$gcc_cv_as != x; then
13740     echo '.balign 4
13741 .p2align 2' > conftest.s
13742     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }
13748     then
13749         gcc_cv_as_balign_and_p2align=yes
13750     else
13751       echo "configure: failed program was" >&5
13752       cat conftest.s >&5
13753     fi
13754     rm -f conftest.o conftest.s
13755   fi
13756 fi
13757 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13758 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13759 if test $gcc_cv_as_balign_and_p2align = yes; then
13760
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13763 _ACEOF
13764
13765 fi
13766
13767 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13768 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13769 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13770   echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772   gcc_cv_as_max_skip_p2align=no
13773     if test $in_tree_gas = yes; then
13774     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13775   then gcc_cv_as_max_skip_p2align=yes
13776 fi
13777   elif test x$gcc_cv_as != x; then
13778     echo '.p2align 4,,7' > conftest.s
13779     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; }
13785     then
13786         gcc_cv_as_max_skip_p2align=yes
13787     else
13788       echo "configure: failed program was" >&5
13789       cat conftest.s >&5
13790     fi
13791     rm -f conftest.o conftest.s
13792   fi
13793 fi
13794 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13795 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13796 if test $gcc_cv_as_max_skip_p2align = yes; then
13797
13798 cat >>confdefs.h <<\_ACEOF
13799 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13800 _ACEOF
13801
13802 fi
13803
13804 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13805 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13806 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   gcc_cv_as_subsection_m1=no
13810     if test $in_tree_gas = yes; then
13811     if test $in_tree_gas_is_elf = yes \
13812   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13813   then gcc_cv_as_subsection_m1=yes
13814 fi
13815   elif test x$gcc_cv_as != x; then
13816     echo 'conftest_label1: .word 0
13817 .subsection -1
13818 conftest_label2: .word 0
13819 .previous' > conftest.s
13820     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822   (eval $ac_try) 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); }; }
13826     then
13827         if test x$gcc_cv_nm != x; then
13828     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13829     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13830     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13831     then :
13832     else gcc_cv_as_subsection_m1=yes
13833     fi
13834     rm -f conftest.nm1 conftest.nm2
13835   fi
13836     else
13837       echo "configure: failed program was" >&5
13838       cat conftest.s >&5
13839     fi
13840     rm -f conftest.o conftest.s
13841   fi
13842 fi
13843 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13844 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13845 if test $gcc_cv_as_subsection_m1 = yes; then
13846
13847 cat >>confdefs.h <<\_ACEOF
13848 #define HAVE_GAS_SUBSECTION_ORDERING 1
13849 _ACEOF
13850
13851 fi
13852
13853 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13854 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13855 if test "${gcc_cv_as_weak+set}" = set; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   gcc_cv_as_weak=no
13859     if test $in_tree_gas = yes; then
13860     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13861   then gcc_cv_as_weak=yes
13862 fi
13863   elif test x$gcc_cv_as != x; then
13864     echo '      .weak foobar' > conftest.s
13865     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867   (eval $ac_try) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }
13871     then
13872         gcc_cv_as_weak=yes
13873     else
13874       echo "configure: failed program was" >&5
13875       cat conftest.s >&5
13876     fi
13877     rm -f conftest.o conftest.s
13878   fi
13879 fi
13880 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13881 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13882 if test $gcc_cv_as_weak = yes; then
13883
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_GAS_WEAK 1
13886 _ACEOF
13887
13888 fi
13889
13890 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13891 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13892 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13893   echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895   gcc_cv_as_nsubspa_comdat=no
13896     if test $in_tree_gas = yes; then
13897     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13898   then gcc_cv_as_nsubspa_comdat=yes
13899 fi
13900   elif test x$gcc_cv_as != x; then
13901     echo '      .SPACE $TEXT$
13902         .NSUBSPA $CODE$,COMDAT' > conftest.s
13903     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }
13909     then
13910         gcc_cv_as_nsubspa_comdat=yes
13911     else
13912       echo "configure: failed program was" >&5
13913       cat conftest.s >&5
13914     fi
13915     rm -f conftest.o conftest.s
13916   fi
13917 fi
13918 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13919 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13920 if test $gcc_cv_as_nsubspa_comdat = yes; then
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_GAS_NSUBSPA_COMDAT 1
13924 _ACEOF
13925
13926 fi
13927
13928 # .hidden needs to be supported in both the assembler and the linker,
13929 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13930 # This is irritatingly difficult to feature test for; we have to check the
13931 # date string after the version number.  If we've got an in-tree
13932 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13933 # to be safe.
13934 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13935 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13936 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13937 if test "${gcc_cv_as_hidden+set}" = set; then
13938   echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940   gcc_cv_as_hidden=no
13941     if test $in_tree_gas = yes; then
13942     if test $in_tree_gas_is_elf = yes \
13943   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13944   then gcc_cv_as_hidden=yes
13945 fi
13946   elif test x$gcc_cv_as != x; then
13947     echo '      .hidden foobar
13948 foobar:' > conftest.s
13949     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951   (eval $ac_try) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }
13955     then
13956         gcc_cv_as_hidden=yes
13957     else
13958       echo "configure: failed program was" >&5
13959       cat conftest.s >&5
13960     fi
13961     rm -f conftest.o conftest.s
13962   fi
13963 fi
13964 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13965 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13966
13967
13968 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13969 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13970 if test "${gcc_cv_ld_hidden+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   if test $in_tree_ld = yes ; then
13974   gcc_cv_ld_hidden=no
13975   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 \
13976      && test $in_tree_ld_is_elf = yes; then
13977      gcc_cv_ld_hidden=yes
13978   fi
13979 else
13980   gcc_cv_ld_hidden=yes
13981   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13982   if echo "$ld_ver" | grep GNU > /dev/null; then
13983     ld_vers=`echo $ld_ver | sed -n \
13984         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13985         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13986         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13987         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13988         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13989         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13990         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
13991     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'`
13992     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13993     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13994     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13995     if test 0"$ld_date" -lt 20020404; then
13996       if test -n "$ld_date"; then
13997         # If there was date string, but was earlier than 2002-04-04, fail
13998         gcc_cv_ld_hidden=no
13999       elif test -z "$ld_vers"; then
14000         # If there was no date string nor ld version number, something is wrong
14001         gcc_cv_ld_hidden=no
14002       else
14003         test -z "$ld_vers_patch" && ld_vers_patch=0
14004         if test "$ld_vers_major" -lt 2; then
14005           gcc_cv_ld_hidden=no
14006         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14007           gcc_cv_ld_hidden="no"
14008         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14009           gcc_cv_ld_hidden=no
14010         fi
14011       fi
14012     fi
14013   else
14014     case "${target}" in
14015       hppa64*-*-hpux* | ia64*-*-hpux*)
14016         gcc_cv_ld_hidden=yes
14017         ;;
14018       *)
14019         gcc_cv_ld_hidden=no
14020         ;;
14021     esac
14022   fi
14023 fi
14024 fi
14025 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14026 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14027 libgcc_visibility=no
14028
14029
14030 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14031   libgcc_visibility=yes
14032
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_GAS_HIDDEN 1
14035 _ACEOF
14036
14037 fi
14038
14039 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14040 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14041 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14042 if test "${gcc_cv_as_leb128+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   gcc_cv_as_leb128=no
14046     if test $in_tree_gas = yes; then
14047     if test $in_tree_gas_is_elf = yes \
14048   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14049   then gcc_cv_as_leb128=yes
14050 fi
14051   elif test x$gcc_cv_as != x; then
14052     echo '      .data
14053         .uleb128 L2 - L1
14054 L1:
14055         .uleb128 1280
14056         .sleb128 -1010
14057 L2:' > conftest.s
14058     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060   (eval $ac_try) 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; }
14064     then
14065         # GAS versions before 2.11 do not support uleb128,
14066   # despite appearing to.
14067   # ??? There exists an elf-specific test that will crash
14068   # the assembler.  Perhaps it's better to figure out whether
14069   # arbitrary sections are supported and try the test.
14070   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14071   if echo "$as_ver" | grep GNU > /dev/null; then
14072     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14073     as_major=`echo $as_ver | sed 's/\..*//'`
14074     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14075     if test $as_major -eq 2 && test $as_minor -lt 11
14076     then :
14077     else gcc_cv_as_leb128=yes
14078     fi
14079   fi
14080     else
14081       echo "configure: failed program was" >&5
14082       cat conftest.s >&5
14083     fi
14084     rm -f conftest.o conftest.s
14085   fi
14086 fi
14087 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14088 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14089 if test $gcc_cv_as_leb128 = yes; then
14090
14091 cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_AS_LEB128 1
14093 _ACEOF
14094
14095 fi
14096
14097 # GAS versions up to and including 2.11.0 may mis-optimize
14098 # .eh_frame data.
14099 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14100 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14101 if test "${gcc_cv_as_eh_frame+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   gcc_cv_as_eh_frame=no
14105     if test $in_tree_gas = yes; then
14106     if test $in_tree_gas_is_elf = yes \
14107   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14108   then gcc_cv_as_eh_frame=yes
14109 fi
14110   elif test x$gcc_cv_as != x; then
14111     echo '      .text
14112 .LFB1:
14113         .4byte  0
14114 .L1:
14115         .4byte  0
14116 .LFE1:
14117         .section        .eh_frame,"aw",@progbits
14118 __FRAME_BEGIN__:
14119         .4byte  .LECIE1-.LSCIE1
14120 .LSCIE1:
14121         .4byte  0x0
14122         .byte   0x1
14123         .ascii "z\0"
14124         .byte   0x1
14125         .byte   0x78
14126         .byte   0x1a
14127         .byte   0x0
14128         .byte   0x4
14129         .4byte  1
14130         .p2align 1
14131 .LECIE1:
14132 .LSFDE1:
14133         .4byte  .LEFDE1-.LASFDE1
14134 .LASFDE1:
14135         .4byte  .LASFDE1-__FRAME_BEGIN__
14136         .4byte  .LFB1
14137         .4byte  .LFE1-.LFB1
14138         .byte   0x4
14139         .4byte  .LFE1-.LFB1
14140         .byte   0x4
14141         .4byte  .L1-.LFB1
14142 .LEFDE1:' > conftest.s
14143     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145   (eval $ac_try) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }
14149     then
14150           cat > conftest.lit <<EOF
14151  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14152  0010 01000000 12000000 18000000 00000000  ................
14153  0020 08000000 04080000 0044               .........D      
14154 EOF
14155 cat > conftest.big <<EOF
14156  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14157  0010 00000001 00000012 00000018 00000000  ................
14158  0020 00000008 04000000 0844               .........D      
14159 EOF
14160   # If the assembler didn't choke, and we can objdump,
14161   # and we got the correct data, then succeed.
14162   if test x$gcc_cv_objdump != x \
14163   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14164      | tail -3 > conftest.got \
14165   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
14166     || cmp conftest.big conftest.got > /dev/null 2>&1; }
14167   then
14168     gcc_cv_as_eh_frame=yes
14169   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; }; then
14175     gcc_cv_as_eh_frame=buggy
14176   else
14177     # Uh oh, what do we do now?
14178     gcc_cv_as_eh_frame=no
14179   fi
14180     else
14181       echo "configure: failed program was" >&5
14182       cat conftest.s >&5
14183     fi
14184     rm -f conftest.o conftest.s
14185   fi
14186 fi
14187 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14188 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14189
14190
14191 if test $gcc_cv_as_eh_frame = buggy; then
14192
14193 cat >>confdefs.h <<\_ACEOF
14194 #define USE_AS_TRADITIONAL_FORMAT 1
14195 _ACEOF
14196
14197 fi
14198
14199 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14200 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14201 if test "${gcc_cv_as_shf_merge+set}" = set; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204   gcc_cv_as_shf_merge=no
14205     if test $in_tree_gas = yes; then
14206     if test $in_tree_gas_is_elf = yes \
14207   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14208   then gcc_cv_as_shf_merge=yes
14209 fi
14210   elif test x$gcc_cv_as != x; then
14211     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14212     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }
14218     then
14219         gcc_cv_as_shf_merge=yes
14220     else
14221       echo "configure: failed program was" >&5
14222       cat conftest.s >&5
14223     fi
14224     rm -f conftest.o conftest.s
14225   fi
14226 fi
14227 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14228 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14229
14230 if test $gcc_cv_as_shf_merge = no; then
14231   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14232 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14233 if test "${gcc_cv_as_shf_merge+set}" = set; then
14234   echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236   gcc_cv_as_shf_merge=no
14237     if test $in_tree_gas = yes; then
14238     if test $in_tree_gas_is_elf = yes \
14239   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14240   then gcc_cv_as_shf_merge=yes
14241 fi
14242   elif test x$gcc_cv_as != x; then
14243     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14244     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246   (eval $ac_try) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); }; }
14250     then
14251         gcc_cv_as_shf_merge=yes
14252     else
14253       echo "configure: failed program was" >&5
14254       cat conftest.s >&5
14255     fi
14256     rm -f conftest.o conftest.s
14257   fi
14258 fi
14259 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14260 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14261
14262 fi
14263
14264 cat >>confdefs.h <<_ACEOF
14265 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14266 _ACEOF
14267
14268
14269 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14270 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14271 if test "${gcc_cv_as_comdat_group+set}" = set; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   gcc_cv_as_comdat_group=no
14275     if test $in_tree_gas = yes; then
14276     if test $in_tree_gas_is_elf = yes \
14277   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14278   then gcc_cv_as_comdat_group=yes
14279 fi
14280   elif test x$gcc_cv_as != x; then
14281     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14282     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }
14288     then
14289         gcc_cv_as_comdat_group=yes
14290     else
14291       echo "configure: failed program was" >&5
14292       cat conftest.s >&5
14293     fi
14294     rm -f conftest.o conftest.s
14295   fi
14296 fi
14297 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14298 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14299
14300 if test $gcc_cv_as_comdat_group = yes; then
14301   gcc_cv_as_comdat_group_percent=no
14302 else
14303  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14304 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14305 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   gcc_cv_as_comdat_group_percent=no
14309     if test $in_tree_gas = yes; then
14310     if test $in_tree_gas_is_elf = yes \
14311   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14312   then gcc_cv_as_comdat_group_percent=yes
14313 fi
14314   elif test x$gcc_cv_as != x; then
14315     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14316     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; }
14322     then
14323         gcc_cv_as_comdat_group_percent=yes
14324     else
14325       echo "configure: failed program was" >&5
14326       cat conftest.s >&5
14327     fi
14328     rm -f conftest.o conftest.s
14329   fi
14330 fi
14331 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14332 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14333
14334 fi
14335 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14336   comdat_group=yes
14337   if test 0"$ld_date" -lt 20050308; then
14338     if test -n "$ld_date"; then
14339       # If there was date string, but was earlier than 2005-03-08, fail
14340       comdat_group=no
14341     elif test "$ld_vers_major" -lt 2; then
14342       comdat_group=no
14343     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14344       comdat_group=no
14345     fi
14346   fi
14347   if test $comdat_group = no; then
14348     gcc_cv_as_comdat_group=no
14349     gcc_cv_as_comdat_group_percent=no
14350   fi
14351 fi
14352
14353 cat >>confdefs.h <<_ACEOF
14354 #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`
14355 _ACEOF
14356
14357
14358 # Thread-local storage - the check is heavily parametrized.
14359 conftest_s=
14360 tls_first_major=
14361 tls_first_minor=
14362 tls_as_opt=
14363 case "$target" in
14364   alpha*-*-*)
14365     conftest_s='
14366         .section ".tdata","awT",@progbits
14367 foo:    .long   25
14368         .text
14369         ldq     $27,__tls_get_addr($29)         !literal!1
14370         lda     $16,foo($29)                    !tlsgd!1
14371         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14372         ldq     $27,__tls_get_addr($29)         !literal!2
14373         lda     $16,foo($29)                    !tlsldm!2
14374         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14375         ldq     $1,foo($29)                     !gotdtprel
14376         ldah    $2,foo($29)                     !dtprelhi
14377         lda     $3,foo($2)                      !dtprello
14378         lda     $4,foo($29)                     !dtprel
14379         ldq     $1,foo($29)                     !gottprel
14380         ldah    $2,foo($29)                     !tprelhi
14381         lda     $3,foo($2)                      !tprello
14382         lda     $4,foo($29)                     !tprel'
14383         tls_first_major=2
14384         tls_first_minor=13
14385         tls_as_opt=--fatal-warnings
14386         ;;
14387   frv*-*-*)
14388     conftest_s='
14389         .section ".tdata","awT",@progbits
14390 x:      .long   25
14391         .text
14392         call    #gettlsoff(x)'
14393         tls_first_major=2
14394         tls_first_minor=14
14395         ;;
14396   hppa*-*-linux*)
14397     conftest_s='
14398 t1:     .reg    %r20
14399 t2:     .reg    %r21
14400 gp:     .reg    %r19
14401         .section ".tdata","awT",@progbits
14402 foo:    .long   25
14403         .text
14404         .align  4
14405         addil LT%foo-$tls_gdidx$,gp
14406         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14407         b __tls_get_addr
14408         nop
14409         addil LT%foo-$tls_ldidx$,gp
14410         b __tls_get_addr
14411         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14412         addil LR%foo-$tls_dtpoff$,%ret0
14413         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14414         mfctl %cr27,%t1
14415         addil LT%foo-$tls_ieoff$,gp
14416         ldw RT%foo-$tls_ieoff$(%r1),%t2
14417         add %t1,%t2,%t3
14418         mfctl %cr27,%t1
14419         addil LR%foo-$tls_leoff$,%t1
14420         ldo RR%foo-$tls_leoff$(%r1),%t2'
14421         tls_first_major=2
14422         tls_first_minor=15
14423         tls_as_opt=--fatal-warnings
14424         ;;
14425   i[34567]86-*-*)
14426     conftest_s='
14427         .section ".tdata","awT",@progbits
14428 foo:    .long   25
14429         .text
14430         movl    %gs:0, %eax
14431         leal    foo@TLSGD(,%ebx,1), %eax
14432         leal    foo@TLSLDM(%ebx), %eax
14433         leal    foo@DTPOFF(%eax), %edx
14434         movl    foo@GOTTPOFF(%ebx), %eax
14435         subl    foo@GOTTPOFF(%ebx), %eax
14436         addl    foo@GOTNTPOFF(%ebx), %eax
14437         movl    foo@INDNTPOFF, %eax
14438         movl    $foo@TPOFF, %eax
14439         subl    $foo@TPOFF, %eax
14440         leal    foo@NTPOFF(%ecx), %eax'
14441         tls_first_major=2
14442         tls_first_minor=14
14443         tls_as_opt=--fatal-warnings
14444         ;;
14445   x86_64-*-*)
14446     conftest_s='
14447         .section ".tdata","awT",@progbits
14448 foo:    .long   25
14449         .text
14450         movq    %fs:0, %rax
14451         leaq    foo@TLSGD(%rip), %rdi
14452         leaq    foo@TLSLD(%rip), %rdi
14453         leaq    foo@DTPOFF(%rax), %rdx
14454         movq    foo@GOTTPOFF(%rip), %rax
14455         movq    $foo@TPOFF, %rax'
14456         tls_first_major=2
14457         tls_first_minor=14
14458         tls_as_opt=--fatal-warnings
14459         ;;
14460   ia64-*-*)
14461     conftest_s='
14462         .section ".tdata","awT",@progbits
14463 foo:    data8   25
14464         .text
14465         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14466         addl    r17 = @ltoff(@dtprel(foo#)), gp
14467         addl    r18 = @ltoff(@tprel(foo#)), gp
14468         addl    r19 = @dtprel(foo#), gp
14469         adds    r21 = @dtprel(foo#), r13
14470         movl    r23 = @dtprel(foo#)
14471         addl    r20 = @tprel(foo#), gp
14472         adds    r22 = @tprel(foo#), r13
14473         movl    r24 = @tprel(foo#)'
14474         tls_first_major=2
14475         tls_first_minor=13
14476         tls_as_opt=--fatal-warnings
14477         ;;
14478   mips*-*-*)
14479     conftest_s='
14480         .section .tdata,"awT",@progbits
14481 x:
14482         .word 2
14483         .text
14484         addiu $4, $28, %tlsgd(x)
14485         addiu $4, $28, %tlsldm(x)
14486         lui $4, %dtprel_hi(x)
14487         addiu $4, $4, %dtprel_lo(x)
14488         lw $4, %gottprel(x)($28)
14489         lui $4, %tprel_hi(x)
14490         addiu $4, $4, %tprel_lo(x)'
14491         tls_first_major=2
14492         tls_first_minor=16
14493         tls_as_opt='-32 --fatal-warnings'
14494         ;;
14495   powerpc-*-*)
14496     conftest_s='
14497         .section ".tdata","awT",@progbits
14498         .align 2
14499 ld0:    .space 4
14500 ld1:    .space 4
14501 x1:     .space 4
14502 x2:     .space 4
14503 x3:     .space 4
14504         .text
14505         addi 3,31,ld0@got@tlsgd
14506         bl __tls_get_addr
14507         addi 3,31,x1@got@tlsld
14508         bl __tls_get_addr
14509         addi 9,3,x1@dtprel
14510         addis 9,3,x2@dtprel@ha
14511         addi 9,9,x2@dtprel@l
14512         lwz 9,x3@got@tprel(31)
14513         add 9,9,x@tls
14514         addi 9,2,x1@tprel
14515         addis 9,2,x2@tprel@ha
14516         addi 9,9,x2@tprel@l'
14517         tls_first_major=2
14518         tls_first_minor=14
14519         tls_as_opt="-a32 --fatal-warnings"
14520         ;;
14521   powerpc64-*-*)
14522     conftest_s='
14523         .section ".tdata","awT",@progbits
14524         .align 3
14525 ld0:    .space 8
14526 ld1:    .space 8
14527 x1:     .space 8
14528 x2:     .space 8
14529 x3:     .space 8
14530         .text
14531         addi 3,2,ld0@got@tlsgd
14532         bl .__tls_get_addr
14533         nop
14534         addi 3,2,ld1@toc
14535         bl .__tls_get_addr
14536         nop
14537         addi 3,2,x1@got@tlsld
14538         bl .__tls_get_addr
14539         nop
14540         addi 9,3,x1@dtprel
14541         bl .__tls_get_addr
14542         nop
14543         addis 9,3,x2@dtprel@ha
14544         addi 9,9,x2@dtprel@l
14545         bl .__tls_get_addr
14546         nop
14547         ld 9,x3@got@dtprel(2)
14548         add 9,9,3
14549         bl .__tls_get_addr
14550         nop'
14551         tls_first_major=2
14552         tls_first_minor=14
14553         tls_as_opt="-a64 --fatal-warnings"
14554         ;;
14555   s390-*-*)
14556     conftest_s='
14557         .section ".tdata","awT",@progbits
14558 foo:    .long   25
14559         .text
14560         .long   foo@TLSGD
14561         .long   foo@TLSLDM
14562         .long   foo@DTPOFF
14563         .long   foo@NTPOFF
14564         .long   foo@GOTNTPOFF
14565         .long   foo@INDNTPOFF
14566         l       %r1,foo@GOTNTPOFF(%r12)
14567         l       %r1,0(%r1):tls_load:foo
14568         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14569         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14570         tls_first_major=2
14571         tls_first_minor=14
14572         tls_as_opt="-m31 --fatal-warnings"
14573         ;;
14574   s390x-*-*)
14575     conftest_s='
14576         .section ".tdata","awT",@progbits
14577 foo:    .long   25
14578         .text
14579         .quad   foo@TLSGD
14580         .quad   foo@TLSLDM
14581         .quad   foo@DTPOFF
14582         .quad   foo@NTPOFF
14583         .quad   foo@GOTNTPOFF
14584         lg      %r1,foo@GOTNTPOFF(%r12)
14585         larl    %r1,foo@INDNTPOFF
14586         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14587         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14588         tls_first_major=2
14589         tls_first_minor=14
14590         tls_as_opt="-m64 -Aesame --fatal-warnings"
14591         ;;
14592   sh-*-* | sh[34]-*-*)
14593     conftest_s='
14594         .section ".tdata","awT",@progbits
14595 foo:    .long   25
14596         .text
14597         .long   foo@TLSGD
14598         .long   foo@TLSLDM
14599         .long   foo@DTPOFF
14600         .long   foo@GOTTPOFF
14601         .long   foo@TPOFF'
14602         tls_first_major=2
14603         tls_first_minor=13
14604         tls_as_opt=--fatal-warnings
14605         ;;
14606   sparc*-*-*)
14607     case "$target" in
14608       sparc*-sun-solaris2.*)
14609         on_solaris=yes
14610         ;;
14611       *)
14612         on_solaris=no
14613         ;;
14614     esac
14615     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14616       conftest_s='
14617         .section ".tdata",#alloc,#write,#tls
14618 foo:    .long   25
14619         .text
14620         sethi   %tgd_hi22(foo), %o0
14621         add     %o0, %tgd_lo10(foo), %o1
14622         add     %l7, %o1, %o0, %tgd_add(foo)
14623         call    __tls_get_addr, %tgd_call(foo)
14624         sethi   %tldm_hi22(foo), %l1
14625         add     %l1, %tldm_lo10(foo), %l2
14626         add     %l7, %l2, %o0, %tldm_add(foo)
14627         call    __tls_get_addr, %tldm_call(foo)
14628         sethi   %tldo_hix22(foo), %l3
14629         xor     %l3, %tldo_lox10(foo), %l4
14630         add     %o0, %l4, %l5, %tldo_add(foo)
14631         sethi   %tie_hi22(foo), %o3
14632         add     %o3, %tie_lo10(foo), %o3
14633         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14634         add     %g7, %o2, %o4, %tie_add(foo)
14635         sethi   %tle_hix22(foo), %l1
14636         xor     %l1, %tle_lox10(foo), %o5
14637         ld      [%g7 + %o5], %o1'
14638         tls_first_major=0
14639         tls_first_minor=0
14640     else
14641       conftest_s='
14642         .section ".tdata","awT",@progbits
14643 foo:    .long   25
14644         .text
14645         sethi   %tgd_hi22(foo), %o0
14646         add     %o0, %tgd_lo10(foo), %o1
14647         add     %l7, %o1, %o0, %tgd_add(foo)
14648         call    __tls_get_addr, %tgd_call(foo)
14649         sethi   %tldm_hi22(foo), %l1
14650         add     %l1, %tldm_lo10(foo), %l2
14651         add     %l7, %l2, %o0, %tldm_add(foo)
14652         call    __tls_get_addr, %tldm_call(foo)
14653         sethi   %tldo_hix22(foo), %l3
14654         xor     %l3, %tldo_lox10(foo), %l4
14655         add     %o0, %l4, %l5, %tldo_add(foo)
14656         sethi   %tie_hi22(foo), %o3
14657         add     %o3, %tie_lo10(foo), %o3
14658         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14659         add     %g7, %o2, %o4, %tie_add(foo)
14660         sethi   %tle_hix22(foo), %l1
14661         xor     %l1, %tle_lox10(foo), %o5
14662         ld      [%g7 + %o5], %o1'
14663         tls_first_major=2
14664         tls_first_minor=14
14665         tls_as_opt="-32 --fatal-warnings"
14666       fi
14667         ;;
14668 esac
14669 if test -z "$tls_first_major"; then
14670   : # If we don't have a check, assume no support.
14671 else
14672   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14673 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14674 if test "${gcc_cv_as_tls+set}" = set; then
14675   echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677   gcc_cv_as_tls=no
14678     if test $in_tree_gas = yes; then
14679     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14680   then gcc_cv_as_tls=yes
14681 fi
14682   elif test x$gcc_cv_as != x; then
14683     echo "$conftest_s" > conftest.s
14684     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; }
14690     then
14691         gcc_cv_as_tls=yes
14692     else
14693       echo "configure: failed program was" >&5
14694       cat conftest.s >&5
14695     fi
14696     rm -f conftest.o conftest.s
14697   fi
14698 fi
14699 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14700 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14701 if test $gcc_cv_as_tls = yes; then
14702
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_AS_TLS 1
14705 _ACEOF
14706
14707 fi
14708 fi
14709
14710 # Target-specific assembler checks.
14711
14712 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14713 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14714 gcc_cv_ld_static_dynamic=no
14715 if test $in_tree_ld = yes ; then
14716   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14717     gcc_cv_ld_static_dynamic=yes
14718   fi
14719 elif test x$gcc_cv_ld != x; then
14720         # Check if linker supports -Bstatic/-Bdynamic option
14721         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14722           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14723                 gcc_cv_ld_static_dynamic=yes
14724         fi
14725 fi
14726 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14727
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_LD_STATIC_DYNAMIC 1
14730 _ACEOF
14731
14732 fi
14733 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14734 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14735
14736 if test x"$demangler_in_ld" = xyes; then
14737   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14738 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14739   gcc_cv_ld_demangle=no
14740   if test $in_tree_ld = yes; then
14741     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 \
14742       gcc_cv_ld_demangle=yes
14743     fi
14744   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14745     # Check if the GNU linker supports --demangle option
14746     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14747       gcc_cv_ld_demangle=yes
14748     fi
14749   fi
14750   if test x"$gcc_cv_ld_demangle" = xyes; then
14751
14752 cat >>confdefs.h <<\_ACEOF
14753 #define HAVE_LD_DEMANGLE 1
14754 _ACEOF
14755
14756   fi
14757   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14758 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14759 fi
14760
14761 case "$target" in
14762   # All TARGET_ABI_OSF targets.
14763   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14764     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14765 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14766 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769   gcc_cv_as_alpha_explicit_relocs=no
14770     if test $in_tree_gas = yes; then
14771     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14772   then gcc_cv_as_alpha_explicit_relocs=yes
14773 fi
14774   elif test x$gcc_cv_as != x; then
14775     echo '      .set nomacro
14776         .text
14777         extbl   $3, $2, $3      !lituse_bytoff!1
14778         ldq     $2, a($29)      !literal!1
14779         ldq     $4, b($29)      !literal!2
14780         ldq_u   $3, 0($2)       !lituse_base!1
14781         ldq     $27, f($29)     !literal!5
14782         jsr     $26, ($27), f   !lituse_jsr!5
14783         ldah    $29, 0($26)     !gpdisp!3
14784         lda     $0, c($29)      !gprel
14785         ldah    $1, d($29)      !gprelhigh
14786         lda     $1, d($1)       !gprellow
14787         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14788     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790   (eval $ac_try) 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; }
14794     then
14795         gcc_cv_as_alpha_explicit_relocs=yes
14796     else
14797       echo "configure: failed program was" >&5
14798       cat conftest.s >&5
14799     fi
14800     rm -f conftest.o conftest.s
14801   fi
14802 fi
14803 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14804 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14805 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14806
14807 cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_AS_EXPLICIT_RELOCS 1
14809 _ACEOF
14810
14811 fi
14812     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14813 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14814 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14815   echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817   gcc_cv_as_alpha_jsrdirect_relocs=no
14818     if test $in_tree_gas = yes; then
14819     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14820   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14821 fi
14822   elif test x$gcc_cv_as != x; then
14823     echo '      .set nomacro
14824         .text
14825         ldq     $27, a($29)     !literal!1
14826         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14827     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829   (eval $ac_try) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; }
14833     then
14834         gcc_cv_as_alpha_jsrdirect_relocs=yes
14835     else
14836       echo "configure: failed program was" >&5
14837       cat conftest.s >&5
14838     fi
14839     rm -f conftest.o conftest.s
14840   fi
14841 fi
14842 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14843 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14844 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14845
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_AS_JSRDIRECT_RELOCS 1
14848 _ACEOF
14849
14850 fi
14851     ;;
14852
14853   cris-*-*)
14854     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14855 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14856 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14857   echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859   gcc_cv_as_cris_no_mul_bug=no
14860     if test $in_tree_gas = yes; then
14861     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14862   then gcc_cv_as_cris_no_mul_bug=yes
14863 fi
14864   elif test x$gcc_cv_as != x; then
14865     echo '.text' > conftest.s
14866     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }
14872     then
14873         gcc_cv_as_cris_no_mul_bug=yes
14874     else
14875       echo "configure: failed program was" >&5
14876       cat conftest.s >&5
14877     fi
14878     rm -f conftest.o conftest.s
14879   fi
14880 fi
14881 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14882 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14883 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14884
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14887 _ACEOF
14888
14889 fi
14890     ;;
14891
14892   sparc*-*-*)
14893     echo "$as_me:$LINENO: checking assembler for .register" >&5
14894 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14895 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   gcc_cv_as_sparc_register_op=no
14899   if test x$gcc_cv_as != x; then
14900     echo '.register %g2, #scratch' > conftest.s
14901     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }
14907     then
14908         gcc_cv_as_sparc_register_op=yes
14909     else
14910       echo "configure: failed program was" >&5
14911       cat conftest.s >&5
14912     fi
14913     rm -f conftest.o conftest.s
14914   fi
14915 fi
14916 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14917 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14918 if test $gcc_cv_as_sparc_register_op = yes; then
14919
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14922 _ACEOF
14923
14924 fi
14925
14926     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14927 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14928 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   gcc_cv_as_sparc_relax=no
14932   if test x$gcc_cv_as != x; then
14933     echo '.text' > conftest.s
14934     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }
14940     then
14941         gcc_cv_as_sparc_relax=yes
14942     else
14943       echo "configure: failed program was" >&5
14944       cat conftest.s >&5
14945     fi
14946     rm -f conftest.o conftest.s
14947   fi
14948 fi
14949 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14950 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14951 if test $gcc_cv_as_sparc_relax = yes; then
14952
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_AS_RELAX_OPTION 1
14955 _ACEOF
14956
14957 fi
14958
14959     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14960 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14961 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14962   echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964   gcc_cv_as_sparc_ua_pcrel=no
14965   if test x$gcc_cv_as != x; then
14966     echo '.text
14967 foo:
14968         nop
14969 .data
14970 .align 4
14971 .byte 0
14972 .uaword %r_disp32(foo)' > conftest.s
14973     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; }
14979     then
14980         if test x$gcc_cv_ld != x \
14981        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14982          gcc_cv_as_sparc_ua_pcrel=yes
14983        fi
14984        rm -f conftest
14985     else
14986       echo "configure: failed program was" >&5
14987       cat conftest.s >&5
14988     fi
14989     rm -f conftest.o conftest.s
14990   fi
14991 fi
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14993 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14994 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14995
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_AS_SPARC_UA_PCREL 1
14998 _ACEOF
14999
15000
15001       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15002 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15003 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   gcc_cv_as_sparc_ua_pcrel_hidden=no
15007   if test x$gcc_cv_as != x; then
15008     echo '.data
15009 .align 4
15010 .byte 0x31
15011 .uaword %r_disp32(foo)
15012 .byte 0x32, 0x33, 0x34
15013 .global foo
15014 .hidden foo
15015 foo:
15016 .skip 4' > conftest.s
15017     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019   (eval $ac_try) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; }
15023     then
15024         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15025          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15026          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15027             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15028             if $gcc_cv_objdump -R conftest 2> /dev/null \
15029                | grep 'DISP32' > /dev/null 2>&1; then
15030                 :
15031             else
15032                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15033             fi
15034          fi
15035          rm -f conftest
15036     else
15037       echo "configure: failed program was" >&5
15038       cat conftest.s >&5
15039     fi
15040     rm -f conftest.o conftest.s
15041   fi
15042 fi
15043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15044 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15045 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15046
15047 cat >>confdefs.h <<\_ACEOF
15048 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15049 _ACEOF
15050
15051 fi
15052
15053 fi # unaligned pcrel relocs
15054
15055     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15056 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15057 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060   gcc_cv_as_sparc_offsetable_lo10=no
15061   if test x$gcc_cv_as != x; then
15062     echo '.text
15063         or %g1, %lo(ab) + 12, %g1
15064         or %g1, %lo(ab + 12), %g1' > conftest.s
15065     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }
15071     then
15072         if test x$gcc_cv_objdump != x \
15073        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15074           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15075          gcc_cv_as_sparc_offsetable_lo10=yes
15076        fi
15077     else
15078       echo "configure: failed program was" >&5
15079       cat conftest.s >&5
15080     fi
15081     rm -f conftest.o conftest.s
15082   fi
15083 fi
15084 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15085 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15086 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15087
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_AS_OFFSETABLE_LO10 1
15090 _ACEOF
15091
15092 fi
15093     ;;
15094
15095   i[34567]86-*-* | x86_64-*-*)
15096     case $target_os in
15097       cygwin* | pe | mingw32*)
15098         # Used for DWARF 2 in PE
15099         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15100 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15101 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15102   echo $ECHO_N "(cached) $ECHO_C" >&6
15103 else
15104   gcc_cv_as_ix86_pe_secrel32=no
15105     if test $in_tree_gas = yes; then
15106     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15107   then gcc_cv_as_ix86_pe_secrel32=yes
15108 fi
15109   elif test x$gcc_cv_as != x; then
15110     echo '.text
15111 foo:    nop
15112 .data
15113         .secrel32 foo' > conftest.s
15114     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }
15120     then
15121         if test x$gcc_cv_ld != x \
15122            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15123              gcc_cv_as_ix86_pe_secrel32=yes
15124            fi
15125            rm -f conftest
15126     else
15127       echo "configure: failed program was" >&5
15128       cat conftest.s >&5
15129     fi
15130     rm -f conftest.o conftest.s
15131   fi
15132 fi
15133 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15134 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15135 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15136
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_GAS_PE_SECREL32_RELOC 1
15139 _ACEOF
15140
15141 fi
15142         ;;
15143     esac
15144
15145     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15146 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15147 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150   gcc_cv_as_ix86_filds_fists=no
15151     if test $in_tree_gas = yes; then
15152     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15153   then gcc_cv_as_ix86_filds_fists=yes
15154 fi
15155   elif test x$gcc_cv_as != x; then
15156     echo 'filds mem; fists mem' > conftest.s
15157     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159   (eval $ac_try) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; }
15163     then
15164         gcc_cv_as_ix86_filds_fists=yes
15165     else
15166       echo "configure: failed program was" >&5
15167       cat conftest.s >&5
15168     fi
15169     rm -f conftest.o conftest.s
15170   fi
15171 fi
15172 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15173 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15174 if test $gcc_cv_as_ix86_filds_fists = yes; then
15175
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_GAS_FILDS_FISTS 1
15178 _ACEOF
15179
15180 fi
15181
15182     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15183 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15184 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   gcc_cv_as_ix86_cmov_sun_syntax=no
15188   if test x$gcc_cv_as != x; then
15189     echo 'cmovl.l %edx, %eax' > conftest.s
15190     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192   (eval $ac_try) 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; }
15196     then
15197         gcc_cv_as_ix86_cmov_sun_syntax=yes
15198     else
15199       echo "configure: failed program was" >&5
15200       cat conftest.s >&5
15201     fi
15202     rm -f conftest.o conftest.s
15203   fi
15204 fi
15205 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15206 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15207 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15208
15209 cat >>confdefs.h <<\_ACEOF
15210 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15211 _ACEOF
15212
15213 fi
15214
15215     # This one is used unconditionally by i386.[ch]; it is to be defined
15216     # to 1 if the feature is present, 0 otherwise.
15217     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15218 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15219 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   gcc_cv_as_ix86_gotoff_in_data=no
15223     if test $in_tree_gas = yes; then
15224     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15225   then gcc_cv_as_ix86_gotoff_in_data=yes
15226 fi
15227   elif test x$gcc_cv_as != x; then
15228     echo '      .text
15229 .L0:
15230         nop
15231         .data
15232         .long .L0@GOTOFF' > conftest.s
15233     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235   (eval $ac_try) 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); }; }
15239     then
15240         gcc_cv_as_ix86_gotoff_in_data=yes
15241     else
15242       echo "configure: failed program was" >&5
15243       cat conftest.s >&5
15244     fi
15245     rm -f conftest.o conftest.s
15246   fi
15247 fi
15248 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15249 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15250
15251
15252 cat >>confdefs.h <<_ACEOF
15253 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15254 _ACEOF
15255
15256     ;;
15257
15258   ia64*-*-*)
15259     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15260 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15261 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15262   echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15265     if test $in_tree_gas = yes; then
15266     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15267   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15268 fi
15269   elif test x$gcc_cv_as != x; then
15270     echo '      .text
15271         addl r15 = @ltoffx(x#), gp
15272         ;;
15273         ld8.mov r16 = [r15], x#' > conftest.s
15274     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276   (eval $ac_try) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }
15280     then
15281         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15282     else
15283       echo "configure: failed program was" >&5
15284       cat conftest.s >&5
15285     fi
15286     rm -f conftest.o conftest.s
15287   fi
15288 fi
15289 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15290 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15291 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15292
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15295 _ACEOF
15296
15297 fi
15298
15299     ;;
15300
15301   powerpc*-*-*)
15302     case $target in
15303       *-*-aix*) conftest_s='    .machine "pwr5"
15304         .csect .text[PR]
15305         mfcr 3,128';;
15306       *-*-darwin*)
15307         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15308 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15309 if test "${gcc_cv_as_machine_directive+set}" = set; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   gcc_cv_as_machine_directive=no
15313   if test x$gcc_cv_as != x; then
15314     echo '      .machine ppc7400' > conftest.s
15315     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317   (eval $ac_try) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; }
15321     then
15322         gcc_cv_as_machine_directive=yes
15323     else
15324       echo "configure: failed program was" >&5
15325       cat conftest.s >&5
15326     fi
15327     rm -f conftest.o conftest.s
15328   fi
15329 fi
15330 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15331 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15332
15333         if test x$gcc_cv_as_machine_directive != xyes; then
15334           echo "*** This target requires an assembler supporting \".machine\"" >&2
15335           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15336           test x$build = x$target && exit 1
15337         fi
15338         conftest_s='    .text
15339         mfcr r3,128';;
15340       *) conftest_s='   .machine power4
15341         .text
15342         mfcr 3,128';;
15343     esac
15344
15345     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15346 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15347 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15348   echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350   gcc_cv_as_powerpc_mfcrf=no
15351     if test $in_tree_gas = yes; then
15352     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15353   then gcc_cv_as_powerpc_mfcrf=yes
15354 fi
15355   elif test x$gcc_cv_as != x; then
15356     echo "$conftest_s" > conftest.s
15357     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359   (eval $ac_try) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }; }
15363     then
15364         gcc_cv_as_powerpc_mfcrf=yes
15365     else
15366       echo "configure: failed program was" >&5
15367       cat conftest.s >&5
15368     fi
15369     rm -f conftest.o conftest.s
15370   fi
15371 fi
15372 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15373 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15374 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15375
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_AS_MFCRF 1
15378 _ACEOF
15379
15380 fi
15381
15382     case $target in
15383       *-*-aix*) conftest_s='    .machine "pwr5"
15384         .csect .text[PR]
15385         popcntb 3,3';;
15386       *) conftest_s='   .machine power5
15387         .text
15388         popcntb 3,3';;
15389     esac
15390
15391     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15392 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15393 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   gcc_cv_as_powerpc_popcntb=no
15397     if test $in_tree_gas = yes; then
15398     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15399   then gcc_cv_as_powerpc_popcntb=yes
15400 fi
15401   elif test x$gcc_cv_as != x; then
15402     echo "$conftest_s" > conftest.s
15403     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405   (eval $ac_try) 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; }
15409     then
15410         gcc_cv_as_powerpc_popcntb=yes
15411     else
15412       echo "configure: failed program was" >&5
15413       cat conftest.s >&5
15414     fi
15415     rm -f conftest.o conftest.s
15416   fi
15417 fi
15418 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15419 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15420 if test $gcc_cv_as_powerpc_popcntb = yes; then
15421
15422 cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_AS_POPCNTB 1
15424 _ACEOF
15425
15426 fi
15427
15428     case $target in
15429       *-*-aix*) conftest_s='    .csect .text[PR]
15430 LCF..0:
15431         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15432       *-*-darwin*)
15433         conftest_s='    .text
15434 LCF0:
15435         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15436       *) conftest_s='   .text
15437 .LCF0:
15438         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15439     esac
15440
15441     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15442 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15443 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   gcc_cv_as_powerpc_rel16=no
15447     if test $in_tree_gas = yes; then
15448     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15449   then gcc_cv_as_powerpc_rel16=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 -a32 -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_rel16=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_rel16" >&5
15469 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15470 if test $gcc_cv_as_powerpc_rel16 = yes; then
15471
15472 cat >>confdefs.h <<\_ACEOF
15473 #define HAVE_AS_REL16 1
15474 _ACEOF
15475
15476 fi
15477     ;;
15478
15479   mips*-*-*)
15480     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15481 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15482 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15483   echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485   gcc_cv_as_mips_explicit_relocs=no
15486     if test $in_tree_gas = yes; then
15487     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15488   then gcc_cv_as_mips_explicit_relocs=yes
15489 fi
15490   elif test x$gcc_cv_as != x; then
15491     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15492     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; }
15498     then
15499         gcc_cv_as_mips_explicit_relocs=yes
15500     else
15501       echo "configure: failed program was" >&5
15502       cat conftest.s >&5
15503     fi
15504     rm -f conftest.o conftest.s
15505   fi
15506 fi
15507 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15508 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15509 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15510   if test x$target_cpu_default = x
15511        then target_cpu_default=MASK_EXPLICIT_RELOCS
15512        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15513        fi
15514 fi
15515
15516     if test x$gas_flag = xyes \
15517        || test x"$host" != x"$build" \
15518        || test ! -x "$gcc_cv_as" \
15519        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15520       :
15521     else
15522       echo "*** This configuration requires the GNU assembler" >&2
15523       exit 1
15524     fi
15525     ;;
15526 esac
15527 # ??? Not all targets support dwarf2 debug_line, even within a version
15528 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15529 # info to the output file.  So, as supported targets are added to gas 2.11,
15530 # add some instruction here to (also) show we expect this might work.
15531 # ??? Once 2.11 is released, probably need to add first known working
15532 # version to the per-target configury.
15533 case "$target" in
15534   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15535   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15536   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
15537     insn="nop"
15538     ;;
15539   ia64*-*-* | s390*-*-*)
15540     insn="nop 0"
15541     ;;
15542   mmix-*-*)
15543     insn="swym 0"
15544     ;;
15545 esac
15546 if test x"$insn" != x; then
15547  conftest_s="\
15548         .file 1 \"conftest.s\"
15549         .loc 1 3 0
15550         $insn"
15551  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15552 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15553 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15554   echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556   gcc_cv_as_dwarf2_debug_line=no
15557     if test $in_tree_gas = yes; then
15558     if test $in_tree_gas_is_elf = yes \
15559   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15560   then gcc_cv_as_dwarf2_debug_line=yes
15561 fi
15562   elif test x$gcc_cv_as != x; then
15563     echo "$conftest_s" > conftest.s
15564     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566   (eval $ac_try) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }
15570     then
15571         if test x$gcc_cv_objdump != x \
15572    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15573       | grep debug_line > /dev/null 2>&1; then
15574      gcc_cv_as_dwarf2_debug_line=yes
15575    fi
15576     else
15577       echo "configure: failed program was" >&5
15578       cat conftest.s >&5
15579     fi
15580     rm -f conftest.o conftest.s
15581   fi
15582 fi
15583 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15584 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15585
15586
15587 # The .debug_line file table must be in the exact order that
15588 # we specified the files, since these indices are also used
15589 # by DW_AT_decl_file.  Approximate this test by testing if
15590 # the assembler bitches if the same index is assigned twice.
15591  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15592 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15593 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15594   echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596   gcc_cv_as_dwarf2_file_buggy=no
15597   if test x$gcc_cv_as != x; then
15598     echo '      .file 1 "foo.s"
15599         .file 1 "bar.s"' > conftest.s
15600     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602   (eval $ac_try) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); }; }
15606     then
15607         gcc_cv_as_dwarf2_file_buggy=yes
15608     else
15609       echo "configure: failed program was" >&5
15610       cat conftest.s >&5
15611     fi
15612     rm -f conftest.o conftest.s
15613   fi
15614 fi
15615 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15616 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15617
15618
15619  if test $gcc_cv_as_dwarf2_debug_line = yes \
15620  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15621
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15624 _ACEOF
15625
15626  fi
15627
15628  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15629 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15630 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633   gcc_cv_as_gdwarf2_flag=no
15634     if test $in_tree_gas = yes; then
15635     if test $in_tree_gas_is_elf = yes \
15636   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15637   then gcc_cv_as_gdwarf2_flag=yes
15638 fi
15639   elif test x$gcc_cv_as != x; then
15640     echo "$insn" > conftest.s
15641     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }
15647     then
15648         gcc_cv_as_gdwarf2_flag=yes
15649     else
15650       echo "configure: failed program was" >&5
15651       cat conftest.s >&5
15652     fi
15653     rm -f conftest.o conftest.s
15654   fi
15655 fi
15656 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15657 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15658 if test $gcc_cv_as_gdwarf2_flag = yes; then
15659
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15662 _ACEOF
15663
15664 fi
15665
15666  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15667 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15668 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15669   echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671   gcc_cv_as_gstabs_flag=no
15672     if test $in_tree_gas = yes; then
15673     if test $in_tree_gas_is_elf = yes \
15674   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15675   then gcc_cv_as_gstabs_flag=yes
15676 fi
15677   elif test x$gcc_cv_as != x; then
15678     echo "$insn" > conftest.s
15679     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681   (eval $ac_try) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }
15685     then
15686         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15687    # and warns about it, but still exits successfully.  So check for
15688    # this.
15689    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }
15695    then :
15696    else gcc_cv_as_gstabs_flag=yes
15697    fi
15698     else
15699       echo "configure: failed program was" >&5
15700       cat conftest.s >&5
15701     fi
15702     rm -f conftest.o conftest.s
15703   fi
15704 fi
15705 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15706 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15707 if test $gcc_cv_as_gstabs_flag = yes; then
15708
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15711 _ACEOF
15712
15713 fi
15714 fi
15715
15716 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15717 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15718 gcc_cv_ld_ro_rw_mix=unknown
15719 if test $in_tree_ld = yes ; then
15720   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 \
15721      && test $in_tree_ld_is_elf = yes; then
15722     gcc_cv_ld_ro_rw_mix=read-write
15723   fi
15724 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15725   echo '.section myfoosect, "a"' > conftest1.s
15726   echo '.section myfoosect, "aw"' > conftest2.s
15727   echo '.byte 1' >> conftest2.s
15728   echo '.section myfoosect, "a"' > conftest3.s
15729   echo '.byte 0' >> conftest3.s
15730   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15731      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15732      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15733      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15734         conftest2.o conftest3.o > /dev/null 2>&1; then
15735     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15736                          | sed -e '/myfoosect/!d' -e N`
15737     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15738       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15739         gcc_cv_ld_ro_rw_mix=read-only
15740       else
15741         gcc_cv_ld_ro_rw_mix=read-write
15742       fi
15743     fi
15744   fi
15745   rm -f conftest.* conftest[123].*
15746 fi
15747 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15748
15749 cat >>confdefs.h <<\_ACEOF
15750 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15751 _ACEOF
15752
15753 fi
15754 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15755 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15756
15757 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15758 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15759 gcc_cv_ld_eh_frame_hdr=no
15760 if test $in_tree_ld = yes ; then
15761   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 \
15762      && test $in_tree_ld_is_elf = yes; then
15763     gcc_cv_ld_eh_frame_hdr=yes
15764   fi
15765 elif test x$gcc_cv_ld != x; then
15766         # Check if linker supports --eh-frame-hdr option
15767         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15768                 gcc_cv_ld_eh_frame_hdr=yes
15769         fi
15770 fi
15771
15772 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15773
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_LD_EH_FRAME_HDR 1
15776 _ACEOF
15777
15778 fi
15779 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15780 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15781
15782 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15783 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15784 gcc_cv_ld_pie=no
15785 if test $in_tree_ld = yes ; then
15786   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 \
15787      && test $in_tree_ld_is_elf = yes; then
15788     gcc_cv_ld_pie=yes
15789   fi
15790 elif test x$gcc_cv_ld != x; then
15791         # Check if linker supports -pie option
15792         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15793                 gcc_cv_ld_pie=yes
15794         fi
15795 fi
15796 if test x"$gcc_cv_ld_pie" = xyes; then
15797
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_LD_PIE 1
15800 _ACEOF
15801
15802 fi
15803 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15804 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15805
15806 # --------
15807 # UNSORTED
15808 # --------
15809
15810 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15811 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15812 if test "${gcc_cv_ld_as_needed+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   gcc_cv_ld_as_needed=no
15816 if test $in_tree_ld = yes ; then
15817   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 \
15818      && test $in_tree_ld_is_elf = yes; then
15819     gcc_cv_ld_as_needed=yes
15820   fi
15821 elif test x$gcc_cv_ld != x; then
15822         # Check if linker supports --as-needed and --no-as-needed options
15823         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15824                 gcc_cv_ld_as_needed=yes
15825         fi
15826 fi
15827
15828 fi
15829 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15830 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15831 if test x"$gcc_cv_ld_as_needed" = xyes; then
15832
15833 cat >>confdefs.h <<\_ACEOF
15834 #define HAVE_LD_AS_NEEDED 1
15835 _ACEOF
15836
15837 fi
15838
15839 case "$target:$tm_file" in
15840   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15841     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15842 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15843 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846   gcc_cv_ld_no_dot_syms=no
15847     if test $in_tree_ld = yes ; then
15848       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
15849         gcc_cv_ld_no_dot_syms=yes
15850       fi
15851     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15852       cat > conftest1.s <<EOF
15853         .text
15854         bl .foo
15855 EOF
15856       cat > conftest2.s <<EOF
15857         .section ".opd","aw"
15858         .align 3
15859         .globl foo
15860         .type foo,@function
15861 foo:
15862         .quad .LEfoo,.TOC.@tocbase,0
15863         .text
15864 .LEfoo:
15865         blr
15866         .size foo,.-.LEfoo
15867 EOF
15868       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15869          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15870          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15871         gcc_cv_ld_no_dot_syms=yes
15872       fi
15873       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15874     fi
15875
15876 fi
15877 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15878 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15879     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15880
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_LD_NO_DOT_SYMS 1
15883 _ACEOF
15884
15885     fi
15886     ;;
15887 esac
15888
15889 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15890 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15891 if test "${gcc_cv_ld_sysroot+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   gcc_cv_ld_sysroot=no
15895   if test $in_tree_ld = yes ; then
15896       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
15897         gcc_cv_ld_sysroot=yes
15898       fi
15899   elif test x$gcc_cv_ld != x; then
15900     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15901       gcc_cv_ld_sysroot=yes
15902     fi
15903   fi
15904 fi
15905 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15906 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15907 if test x"$gcc_cv_ld_sysroot" = xyes; then
15908
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_LD_SYSROOT 1
15911 _ACEOF
15912
15913 fi
15914
15915 if test x$with_sysroot = x && test x$host = x$target \
15916    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15917
15918 cat >>confdefs.h <<_ACEOF
15919 #define PREFIX_INCLUDE_DIR "$prefix/include"
15920 _ACEOF
15921
15922 fi
15923
15924 # Test for stack protector support in target C library.
15925 case "$target" in
15926   *-*-linux*)
15927     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15928 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15929 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   gcc_cv_libc_provides_ssp=no
15933       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15934         if test "x$with_sysroot" = x; then
15935           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15936         elif test "x$with_sysroot" = xyes; then
15937           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15938         else
15939           glibc_header_dir="${with_sysroot}/usr/include"
15940         fi
15941       else
15942         glibc_header_dir=/usr/include
15943       fi
15944       # glibc 2.4 and later provides __stack_chk_fail and
15945       # either __stack_chk_guard, or TLS access to stack guard canary.
15946       if test -f $glibc_header_dir/features.h \
15947          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
15948             $glibc_header_dir/features.h > /dev/null; then
15949         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
15950            $glibc_header_dir/features.h > /dev/null; then
15951           gcc_cv_libc_provides_ssp=yes
15952         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
15953              $glibc_header_dir/features.h > /dev/null \
15954              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
15955              $glibc_header_dir/features.h > /dev/null; then
15956           gcc_cv_libc_provides_ssp=yes
15957         fi
15958       fi
15959 fi
15960 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15961 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15962   *) gcc_cv_libc_provides_ssp=no ;;
15963 esac
15964 if test x$gcc_cv_libc_provides_ssp = xyes; then
15965
15966 cat >>confdefs.h <<\_ACEOF
15967 #define TARGET_LIBC_PROVIDES_SSP 1
15968 _ACEOF
15969
15970 fi
15971
15972 # Find out what GC implementation we want, or may, use.
15973
15974 # Check whether --with-gc or --without-gc was given.
15975 if test "${with_gc+set}" = set; then
15976   withval="$with_gc"
15977   case "$withval" in
15978   page)
15979     GGC=ggc-$withval
15980     ;;
15981   zone)
15982     GGC=ggc-$withval
15983
15984 cat >>confdefs.h <<\_ACEOF
15985 #define GGC_ZONE 1
15986 _ACEOF
15987
15988     ;;
15989   *)
15990     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15991 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15992    { (exit 1); exit 1; }; }
15993     ;;
15994 esac
15995 else
15996   GGC=ggc-page
15997 fi;
15998
15999 echo "Using $GGC for garbage collection."
16000
16001 # Use the system's zlib library.
16002 zlibdir=-L../zlib
16003 zlibinc="-I\$(srcdir)/../zlib"
16004
16005 # Check whether --with-system-zlib or --without-system-zlib was given.
16006 if test "${with_system_zlib+set}" = set; then
16007   withval="$with_system_zlib"
16008   zlibdir=
16009 zlibinc=
16010
16011 fi;
16012
16013
16014
16015
16016 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16017 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16018     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16019 if test "${enable_maintainer_mode+set}" = set; then
16020   enableval="$enable_maintainer_mode"
16021   maintainer_mode=$enableval
16022 else
16023   maintainer_mode=no
16024 fi;
16025
16026 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16027 echo "${ECHO_T}$maintainer_mode" >&6
16028
16029 if test "$maintainer_mode" = "yes"; then
16030   MAINT=''
16031 else
16032   MAINT='#'
16033 fi
16034
16035 # --------------
16036 # Language hooks
16037 # --------------
16038
16039 # Make empty files to contain the specs and options for each language.
16040 # Then add #include lines to for a compiler that has specs and/or options.
16041
16042 lang_opt_files=
16043 lang_specs_files=
16044 lang_tree_files=
16045 for subdir in . $subdirs
16046 do
16047         if test -f $srcdir/$subdir/lang.opt; then
16048             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16049         fi
16050         if test -f $srcdir/$subdir/lang-specs.h; then
16051             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16052         fi
16053         if test -f $srcdir/$subdir/$subdir-tree.def; then
16054             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16055         fi
16056 done
16057
16058 # These (without "all_") are set in each config-lang.in.
16059 # `language' must be a single word so is spelled singularly.
16060 all_languages=
16061 all_boot_languages=
16062 all_compilers=
16063 all_stagestuff=
16064 all_outputs='Makefile gccbug mklibgcc libada-mk'
16065 # List of language makefile fragments.
16066 all_lang_makefrags=
16067 # List of language subdirectory makefiles.  Deprecated.
16068 all_lang_makefiles=
16069 # Files for gengtype
16070 all_gtfiles="$target_gtfiles"
16071 # Files for gengtype with language
16072 all_gtfiles_files_langs=
16073 all_gtfiles_files_files=
16074
16075 # Add the language fragments.
16076 # Languages are added via two mechanisms.  Some information must be
16077 # recorded in makefile variables, these are defined in config-lang.in.
16078 # We accumulate them and plug them into the main Makefile.
16079 # The other mechanism is a set of hooks for each of the main targets
16080 # like `clean', `install', etc.
16081
16082 language_hooks="Make-hooks"
16083
16084 for s in $subdirs
16085 do
16086                 language=
16087                 boot_language=
16088                 compilers=
16089                 stagestuff=
16090                 outputs=
16091                 gtfiles=
16092                 . ${srcdir}/$s/config-lang.in
16093                 if test "x$language" = x
16094                 then
16095                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
16096                         exit 1
16097                 fi
16098                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
16099                 if test -f ${srcdir}/$s/Makefile.in
16100                 then all_lang_makefiles="$s/Makefile"
16101                 fi
16102                 all_languages="$all_languages $language"
16103                 if test "x$boot_language" = xyes
16104                 then
16105                         all_boot_languages="$all_boot_languages $language"
16106                 fi
16107                 all_compilers="$all_compilers $compilers"
16108                 all_stagestuff="$all_stagestuff $stagestuff"
16109                 all_outputs="$all_outputs $outputs"
16110                 all_gtfiles="$all_gtfiles $gtfiles"
16111                 for f in $gtfiles
16112                 do
16113                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16114                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16115                 done
16116 done
16117
16118 # Pick up gtfiles for c
16119 gtfiles=
16120 s="c"
16121 . ${srcdir}/c-config-lang.in
16122 all_gtfiles="$all_gtfiles $gtfiles"
16123 for f in $gtfiles
16124 do
16125         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16126         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16127 done
16128
16129 check_languages=
16130 for language in $all_languages
16131 do
16132                 check_languages="$check_languages check-$language"
16133 done
16134
16135 # We link each language in with a set of hooks, reached indirectly via
16136 # lang.${target}.
16137
16138 rm -f Make-hooks
16139 touch Make-hooks
16140 target_list="all.build all.cross start.encap rest.encap tags \
16141         install-normal install-common install-man \
16142         uninstall info man srcextra srcman srcinfo \
16143         mostlyclean clean distclean maintainer-clean \
16144         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16145 for t in $target_list
16146 do
16147         x=
16148         for lang in $all_languages
16149         do
16150                         x="$x $lang.$t"
16151         done
16152         echo "lang.$t: $x" >> Make-hooks
16153 done
16154
16155 # --------
16156 # UNSORTED
16157 # --------
16158
16159 # Create .gdbinit.
16160
16161 echo "dir ." > .gdbinit
16162 echo "dir ${srcdir}" >> .gdbinit
16163 if test x$gdb_needs_out_file_path = xyes
16164 then
16165         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16166 fi
16167 if test "x$subdirs" != x; then
16168         for s in $subdirs
16169         do
16170                 echo "dir ${srcdir}/$s" >> .gdbinit
16171         done
16172 fi
16173 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16174
16175 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16176 # absolute path for gcc_tooldir based on inserting the number of up-directory
16177 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16178 # $(libsubdir)/@(unlibsubdir) based path.
16179 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16180 # make and thus we'd get different behavior depending on where we built the
16181 # sources.
16182 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16183     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16184 else
16185 # An explanation of the sed strings:
16186 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16187 #  -e 's|/$||'            match a trailing forward slash and eliminates it
16188 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16189 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
16190 #
16191 # (*) Note this pattern overwrites the first character of the string
16192 # with a forward slash if one is not already present.  This is not a
16193 # problem because the exact names of the sub-directories concerned is
16194 # unimportant, just the number of them matters.
16195 #
16196 # The practical upshot of these patterns is like this:
16197 #
16198 #  prefix     exec_prefix        result
16199 #  ------     -----------        ------
16200 #   /foo        /foo/bar          ../
16201 #   /foo/       /foo/bar          ../
16202 #   /foo        /foo/bar/         ../
16203 #   /foo/       /foo/bar/         ../
16204 #   /foo        /foo/bar/ugg      ../../
16205 #
16206     dollar='$$'
16207     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16208 fi
16209
16210
16211
16212 # Find a directory in which to install a shared libgcc.
16213
16214 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16215 if test "${enable_version_specific_runtime_libs+set}" = set; then
16216   enableval="$enable_version_specific_runtime_libs"
16217
16218 fi;
16219
16220
16221 # Check whether --with-slibdir or --without-slibdir was given.
16222 if test "${with_slibdir+set}" = set; then
16223   withval="$with_slibdir"
16224   slibdir="$with_slibdir"
16225 else
16226   if test "${enable_version_specific_runtime_libs+set}" = set; then
16227   slibdir='$(libsubdir)'
16228 elif test "$host" != "$target"; then
16229   slibdir='$(build_tooldir)/lib'
16230 else
16231   slibdir='$(libdir)'
16232 fi
16233 fi;
16234
16235
16236 objdir=`${PWDCMD-pwd}`
16237
16238
16239 # Substitute configuration variables
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303 # Echo link setup.
16304 if test x${build} = x${host} ; then
16305   if test x${host} = x${target} ; then
16306     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16307   else
16308     echo "Links are now set up to build a cross-compiler" 1>&2
16309     echo " from ${host} to ${target}." 1>&2
16310   fi
16311 else
16312   if test x${host} = x${target} ; then
16313     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16314     echo " for ${target}." 1>&2
16315   else
16316     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16317     echo " from ${host} to ${target}." 1>&2
16318   fi
16319 fi
16320
16321
16322
16323
16324 # Configure the subdirectories
16325 # AC_CONFIG_SUBDIRS($subdirs)
16326
16327 # Create the Makefile
16328 # and configure language subdirectories
16329           ac_config_files="$ac_config_files $all_outputs"
16330
16331
16332           ac_config_commands="$ac_config_commands default"
16333
16334 cat >confcache <<\_ACEOF
16335 # This file is a shell script that caches the results of configure
16336 # tests run on this system so they can be shared between configure
16337 # scripts and configure runs, see configure's option --config-cache.
16338 # It is not useful on other systems.  If it contains results you don't
16339 # want to keep, you may remove or edit it.
16340 #
16341 # config.status only pays attention to the cache file if you give it
16342 # the --recheck option to rerun configure.
16343 #
16344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16346 # following values.
16347
16348 _ACEOF
16349
16350 # The following way of writing the cache mishandles newlines in values,
16351 # but we know of no workaround that is simple, portable, and efficient.
16352 # So, don't put newlines in cache variables' values.
16353 # Ultrix sh set writes to stderr and can't be redirected directly,
16354 # and sets the high bit in the cache file unless we assign to the vars.
16355 {
16356   (set) 2>&1 |
16357     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16358     *ac_space=\ *)
16359       # `set' does not quote correctly, so add quotes (double-quote
16360       # substitution turns \\\\ into \\, and sed turns \\ into \).
16361       sed -n \
16362         "s/'/'\\\\''/g;
16363           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16364       ;;
16365     *)
16366       # `set' quotes correctly as required by POSIX, so do not add quotes.
16367       sed -n \
16368         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16369       ;;
16370     esac;
16371 } |
16372   sed '
16373      t clear
16374      : clear
16375      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16376      t end
16377      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16378      : end' >>confcache
16379 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16380   if test -w $cache_file; then
16381     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16382     cat confcache >$cache_file
16383   else
16384     echo "not updating unwritable cache $cache_file"
16385   fi
16386 fi
16387 rm -f confcache
16388
16389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16390 # Let make expand exec_prefix.
16391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16392
16393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16395 # trailing colons and then remove the whole line if VPATH becomes empty
16396 # (actually we leave an empty line to preserve line numbers).
16397 if test "x$srcdir" = x.; then
16398   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16399 s/:*\$(srcdir):*/:/;
16400 s/:*\${srcdir}:*/:/;
16401 s/:*@srcdir@:*/:/;
16402 s/^\([^=]*=[     ]*\):*/\1/;
16403 s/:*$//;
16404 s/^[^=]*=[       ]*$//;
16405 }'
16406 fi
16407
16408 DEFS=-DHAVE_CONFIG_H
16409
16410 ac_libobjs=
16411 ac_ltlibobjs=
16412 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16413   # 1. Remove the extension, and $U if already installed.
16414   ac_i=`echo "$ac_i" |
16415          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16416   # 2. Add them.
16417   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16418   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16419 done
16420 LIBOBJS=$ac_libobjs
16421
16422 LTLIBOBJS=$ac_ltlibobjs
16423
16424
16425
16426 : ${CONFIG_STATUS=./config.status}
16427 ac_clean_files_save=$ac_clean_files
16428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16431 cat >$CONFIG_STATUS <<_ACEOF
16432 #! $SHELL
16433 # Generated by $as_me.
16434 # Run this file to recreate the current configuration.
16435 # Compiler output produced by configure, useful for debugging
16436 # configure, is in config.log if it exists.
16437
16438 debug=false
16439 ac_cs_recheck=false
16440 ac_cs_silent=false
16441 SHELL=\${CONFIG_SHELL-$SHELL}
16442 _ACEOF
16443
16444 cat >>$CONFIG_STATUS <<\_ACEOF
16445 ## --------------------- ##
16446 ## M4sh Initialization.  ##
16447 ## --------------------- ##
16448
16449 # Be Bourne compatible
16450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16451   emulate sh
16452   NULLCMD=:
16453   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16454   # is contrary to our usage.  Disable this feature.
16455   alias -g '${1+"$@"}'='"$@"'
16456 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16457   set -o posix
16458 fi
16459 DUALCASE=1; export DUALCASE # for MKS sh
16460
16461 # Support unset when possible.
16462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16463   as_unset=unset
16464 else
16465   as_unset=false
16466 fi
16467
16468
16469 # Work around bugs in pre-3.0 UWIN ksh.
16470 $as_unset ENV MAIL MAILPATH
16471 PS1='$ '
16472 PS2='> '
16473 PS4='+ '
16474
16475 # NLS nuisances.
16476 for as_var in \
16477   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16478   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16479   LC_TELEPHONE LC_TIME
16480 do
16481   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16482     eval $as_var=C; export $as_var
16483   else
16484     $as_unset $as_var
16485   fi
16486 done
16487
16488 # Required to use basename.
16489 if expr a : '\(a\)' >/dev/null 2>&1; then
16490   as_expr=expr
16491 else
16492   as_expr=false
16493 fi
16494
16495 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16496   as_basename=basename
16497 else
16498   as_basename=false
16499 fi
16500
16501
16502 # Name of the executable.
16503 as_me=`$as_basename "$0" ||
16504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16505          X"$0" : 'X\(//\)$' \| \
16506          X"$0" : 'X\(/\)$' \| \
16507          .     : '\(.\)' 2>/dev/null ||
16508 echo X/"$0" |
16509     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16510           /^X\/\(\/\/\)$/{ s//\1/; q; }
16511           /^X\/\(\/\).*/{ s//\1/; q; }
16512           s/.*/./; q'`
16513
16514
16515 # PATH needs CR, and LINENO needs CR and PATH.
16516 # Avoid depending upon Character Ranges.
16517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16520 as_cr_digits='0123456789'
16521 as_cr_alnum=$as_cr_Letters$as_cr_digits
16522
16523 # The user is always right.
16524 if test "${PATH_SEPARATOR+set}" != set; then
16525   echo "#! /bin/sh" >conf$$.sh
16526   echo  "exit 0"   >>conf$$.sh
16527   chmod +x conf$$.sh
16528   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16529     PATH_SEPARATOR=';'
16530   else
16531     PATH_SEPARATOR=:
16532   fi
16533   rm -f conf$$.sh
16534 fi
16535
16536
16537   as_lineno_1=$LINENO
16538   as_lineno_2=$LINENO
16539   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16540   test "x$as_lineno_1" != "x$as_lineno_2" &&
16541   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16542   # Find who we are.  Look in the path if we contain no path at all
16543   # relative or not.
16544   case $0 in
16545     *[\\/]* ) as_myself=$0 ;;
16546     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $PATH
16548 do
16549   IFS=$as_save_IFS
16550   test -z "$as_dir" && as_dir=.
16551   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16552 done
16553
16554        ;;
16555   esac
16556   # We did not find ourselves, most probably we were run as `sh COMMAND'
16557   # in which case we are not to be found in the path.
16558   if test "x$as_myself" = x; then
16559     as_myself=$0
16560   fi
16561   if test ! -f "$as_myself"; then
16562     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16563 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16564    { (exit 1); exit 1; }; }
16565   fi
16566   case $CONFIG_SHELL in
16567   '')
16568     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16569 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16570 do
16571   IFS=$as_save_IFS
16572   test -z "$as_dir" && as_dir=.
16573   for as_base in sh bash ksh sh5; do
16574          case $as_dir in
16575          /*)
16576            if ("$as_dir/$as_base" -c '
16577   as_lineno_1=$LINENO
16578   as_lineno_2=$LINENO
16579   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16580   test "x$as_lineno_1" != "x$as_lineno_2" &&
16581   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16582              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16583              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16584              CONFIG_SHELL=$as_dir/$as_base
16585              export CONFIG_SHELL
16586              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16587            fi;;
16588          esac
16589        done
16590 done
16591 ;;
16592   esac
16593
16594   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16595   # uniformly replaced by the line number.  The first 'sed' inserts a
16596   # line-number line before each line; the second 'sed' does the real
16597   # work.  The second script uses 'N' to pair each line-number line
16598   # with the numbered line, and appends trailing '-' during
16599   # substitution so that $LINENO is not a special case at line end.
16600   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16601   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16602   sed '=' <$as_myself |
16603     sed '
16604       N
16605       s,$,-,
16606       : loop
16607       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16608       t loop
16609       s,-$,,
16610       s,^['$as_cr_digits']*\n,,
16611     ' >$as_me.lineno &&
16612   chmod +x $as_me.lineno ||
16613     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16614 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16615    { (exit 1); exit 1; }; }
16616
16617   # Don't try to exec as it changes $[0], causing all sort of problems
16618   # (the dirname of $[0] is not the place where we might find the
16619   # original and so on.  Autoconf is especially sensible to this).
16620   . ./$as_me.lineno
16621   # Exit status is that of the last command.
16622   exit
16623 }
16624
16625
16626 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16627   *c*,-n*) ECHO_N= ECHO_C='
16628 ' ECHO_T='      ' ;;
16629   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16630   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16631 esac
16632
16633 if expr a : '\(a\)' >/dev/null 2>&1; then
16634   as_expr=expr
16635 else
16636   as_expr=false
16637 fi
16638
16639 rm -f conf$$ conf$$.exe conf$$.file
16640 echo >conf$$.file
16641 if ln -s conf$$.file conf$$ 2>/dev/null; then
16642   # We could just check for DJGPP; but this test a) works b) is more generic
16643   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16644   if test -f conf$$.exe; then
16645     # Don't use ln at all; we don't have any links
16646     as_ln_s='cp -p'
16647   else
16648     as_ln_s='ln -s'
16649   fi
16650 elif ln conf$$.file conf$$ 2>/dev/null; then
16651   as_ln_s=ln
16652 else
16653   as_ln_s='cp -p'
16654 fi
16655 rm -f conf$$ conf$$.exe conf$$.file
16656
16657 if mkdir -p . 2>/dev/null; then
16658   as_mkdir_p=:
16659 else
16660   test -d ./-p && rmdir ./-p
16661   as_mkdir_p=false
16662 fi
16663
16664 as_executable_p="test -f"
16665
16666 # Sed expression to map a string onto a valid CPP name.
16667 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16668
16669 # Sed expression to map a string onto a valid variable name.
16670 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16671
16672
16673 # IFS
16674 # We need space, tab and new line, in precisely that order.
16675 as_nl='
16676 '
16677 IFS="   $as_nl"
16678
16679 # CDPATH.
16680 $as_unset CDPATH
16681
16682 exec 6>&1
16683
16684 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16685 # report actual input values of CONFIG_FILES etc. instead of their
16686 # values after options handling.  Logging --version etc. is OK.
16687 exec 5>>config.log
16688 {
16689   echo
16690   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16691 ## Running $as_me. ##
16692 _ASBOX
16693 } >&5
16694 cat >&5 <<_CSEOF
16695
16696 This file was extended by $as_me, which was
16697 generated by GNU Autoconf 2.59.  Invocation command line was
16698
16699   CONFIG_FILES    = $CONFIG_FILES
16700   CONFIG_HEADERS  = $CONFIG_HEADERS
16701   CONFIG_LINKS    = $CONFIG_LINKS
16702   CONFIG_COMMANDS = $CONFIG_COMMANDS
16703   $ $0 $@
16704
16705 _CSEOF
16706 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16707 echo >&5
16708 _ACEOF
16709
16710 # Files that config.status was made for.
16711 if test -n "$ac_config_files"; then
16712   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16713 fi
16714
16715 if test -n "$ac_config_headers"; then
16716   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16717 fi
16718
16719 if test -n "$ac_config_links"; then
16720   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16721 fi
16722
16723 if test -n "$ac_config_commands"; then
16724   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16725 fi
16726
16727 cat >>$CONFIG_STATUS <<\_ACEOF
16728
16729 ac_cs_usage="\
16730 \`$as_me' instantiates files from templates according to the
16731 current configuration.
16732
16733 Usage: $0 [OPTIONS] [FILE]...
16734
16735   -h, --help       print this help, then exit
16736   -V, --version    print version number, then exit
16737   -q, --quiet      do not print progress messages
16738   -d, --debug      don't remove temporary files
16739       --recheck    update $as_me by reconfiguring in the same conditions
16740   --file=FILE[:TEMPLATE]
16741                    instantiate the configuration file FILE
16742   --header=FILE[:TEMPLATE]
16743                    instantiate the configuration header FILE
16744
16745 Configuration files:
16746 $config_files
16747
16748 Configuration headers:
16749 $config_headers
16750
16751 Configuration commands:
16752 $config_commands
16753
16754 Report bugs to <bug-autoconf@gnu.org>."
16755 _ACEOF
16756
16757 cat >>$CONFIG_STATUS <<_ACEOF
16758 ac_cs_version="\\
16759 config.status
16760 configured by $0, generated by GNU Autoconf 2.59,
16761   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16762
16763 Copyright (C) 2003 Free Software Foundation, Inc.
16764 This config.status script is free software; the Free Software Foundation
16765 gives unlimited permission to copy, distribute and modify it."
16766 srcdir=$srcdir
16767 _ACEOF
16768
16769 cat >>$CONFIG_STATUS <<\_ACEOF
16770 # If no file are specified by the user, then we need to provide default
16771 # value.  By we need to know if files were specified by the user.
16772 ac_need_defaults=:
16773 while test $# != 0
16774 do
16775   case $1 in
16776   --*=*)
16777     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16778     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16779     ac_shift=:
16780     ;;
16781   -*)
16782     ac_option=$1
16783     ac_optarg=$2
16784     ac_shift=shift
16785     ;;
16786   *) # This is not an option, so the user has probably given explicit
16787      # arguments.
16788      ac_option=$1
16789      ac_need_defaults=false;;
16790   esac
16791
16792   case $ac_option in
16793   # Handling of the options.
16794 _ACEOF
16795 cat >>$CONFIG_STATUS <<\_ACEOF
16796   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16797     ac_cs_recheck=: ;;
16798   --version | --vers* | -V )
16799     echo "$ac_cs_version"; exit 0 ;;
16800   --he | --h)
16801     # Conflict between --help and --header
16802     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16803 Try \`$0 --help' for more information." >&5
16804 echo "$as_me: error: ambiguous option: $1
16805 Try \`$0 --help' for more information." >&2;}
16806    { (exit 1); exit 1; }; };;
16807   --help | --hel | -h )
16808     echo "$ac_cs_usage"; exit 0 ;;
16809   --debug | --d* | -d )
16810     debug=: ;;
16811   --file | --fil | --fi | --f )
16812     $ac_shift
16813     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16814     ac_need_defaults=false;;
16815   --header | --heade | --head | --hea )
16816     $ac_shift
16817     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16818     ac_need_defaults=false;;
16819   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16820   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16821     ac_cs_silent=: ;;
16822
16823   # This is an error.
16824   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16825 Try \`$0 --help' for more information." >&5
16826 echo "$as_me: error: unrecognized option: $1
16827 Try \`$0 --help' for more information." >&2;}
16828    { (exit 1); exit 1; }; } ;;
16829
16830   *) ac_config_targets="$ac_config_targets $1" ;;
16831
16832   esac
16833   shift
16834 done
16835
16836 ac_configure_extra_args=
16837
16838 if $ac_cs_silent; then
16839   exec 6>/dev/null
16840   ac_configure_extra_args="$ac_configure_extra_args --silent"
16841 fi
16842
16843 _ACEOF
16844 cat >>$CONFIG_STATUS <<_ACEOF
16845 if \$ac_cs_recheck; then
16846   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16847   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16848 fi
16849
16850 _ACEOF
16851
16852 cat >>$CONFIG_STATUS <<_ACEOF
16853 #
16854 # INIT-COMMANDS section.
16855 #
16856
16857 subdirs='$subdirs'
16858
16859 _ACEOF
16860
16861
16862
16863 cat >>$CONFIG_STATUS <<\_ACEOF
16864 for ac_config_target in $ac_config_targets
16865 do
16866   case "$ac_config_target" in
16867   # Handling of arguments.
16868   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16869   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16870   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16871   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16872 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16873    { (exit 1); exit 1; }; };;
16874   esac
16875 done
16876
16877 # If the user did not use the arguments to specify the items to instantiate,
16878 # then the envvar interface is used.  Set only those that are not.
16879 # We use the long form for the default assignment because of an extremely
16880 # bizarre bug on SunOS 4.1.3.
16881 if $ac_need_defaults; then
16882   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16883   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16884   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16885 fi
16886
16887 # Have a temporary directory for convenience.  Make it in the build tree
16888 # simply because there is no reason to put it here, and in addition,
16889 # creating and moving files from /tmp can sometimes cause problems.
16890 # Create a temporary directory, and hook for its removal unless debugging.
16891 $debug ||
16892 {
16893   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16894   trap '{ (exit 1); exit 1; }' 1 2 13 15
16895 }
16896
16897 # Create a (secure) tmp directory for tmp files.
16898
16899 {
16900   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16901   test -n "$tmp" && test -d "$tmp"
16902 }  ||
16903 {
16904   tmp=./confstat$$-$RANDOM
16905   (umask 077 && mkdir $tmp)
16906 } ||
16907 {
16908    echo "$me: cannot create a temporary directory in ." >&2
16909    { (exit 1); exit 1; }
16910 }
16911
16912 _ACEOF
16913
16914 cat >>$CONFIG_STATUS <<_ACEOF
16915
16916 #
16917 # CONFIG_FILES section.
16918 #
16919
16920 # No need to generate the scripts if there are no CONFIG_FILES.
16921 # This happens for instance when ./config.status config.h
16922 if test -n "\$CONFIG_FILES"; then
16923   # Protect against being on the right side of a sed subst in config.status.
16924   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16925    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16926 s,@SHELL@,$SHELL,;t t
16927 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16928 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16929 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16930 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16931 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16932 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16933 s,@exec_prefix@,$exec_prefix,;t t
16934 s,@prefix@,$prefix,;t t
16935 s,@program_transform_name@,$program_transform_name,;t t
16936 s,@bindir@,$bindir,;t t
16937 s,@sbindir@,$sbindir,;t t
16938 s,@libexecdir@,$libexecdir,;t t
16939 s,@datadir@,$datadir,;t t
16940 s,@sysconfdir@,$sysconfdir,;t t
16941 s,@sharedstatedir@,$sharedstatedir,;t t
16942 s,@localstatedir@,$localstatedir,;t t
16943 s,@libdir@,$libdir,;t t
16944 s,@includedir@,$includedir,;t t
16945 s,@oldincludedir@,$oldincludedir,;t t
16946 s,@infodir@,$infodir,;t t
16947 s,@mandir@,$mandir,;t t
16948 s,@build_alias@,$build_alias,;t t
16949 s,@host_alias@,$host_alias,;t t
16950 s,@target_alias@,$target_alias,;t t
16951 s,@DEFS@,$DEFS,;t t
16952 s,@ECHO_C@,$ECHO_C,;t t
16953 s,@ECHO_N@,$ECHO_N,;t t
16954 s,@ECHO_T@,$ECHO_T,;t t
16955 s,@LIBS@,$LIBS,;t t
16956 s,@build@,$build,;t t
16957 s,@build_cpu@,$build_cpu,;t t
16958 s,@build_vendor@,$build_vendor,;t t
16959 s,@build_os@,$build_os,;t t
16960 s,@host@,$host,;t t
16961 s,@host_cpu@,$host_cpu,;t t
16962 s,@host_vendor@,$host_vendor,;t t
16963 s,@host_os@,$host_os,;t t
16964 s,@target@,$target,;t t
16965 s,@target_cpu@,$target_cpu,;t t
16966 s,@target_vendor@,$target_vendor,;t t
16967 s,@target_os@,$target_os,;t t
16968 s,@target_noncanonical@,$target_noncanonical,;t t
16969 s,@build_subdir@,$build_subdir,;t t
16970 s,@host_subdir@,$host_subdir,;t t
16971 s,@target_subdir@,$target_subdir,;t t
16972 s,@GENINSRC@,$GENINSRC,;t t
16973 s,@CC@,$CC,;t t
16974 s,@CFLAGS@,$CFLAGS,;t t
16975 s,@LDFLAGS@,$LDFLAGS,;t t
16976 s,@CPPFLAGS@,$CPPFLAGS,;t t
16977 s,@ac_ct_CC@,$ac_ct_CC,;t t
16978 s,@EXEEXT@,$EXEEXT,;t t
16979 s,@OBJEXT@,$OBJEXT,;t t
16980 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16981 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16982 s,@CPP@,$CPP,;t t
16983 s,@EGREP@,$EGREP,;t t
16984 s,@strict1_warn@,$strict1_warn,;t t
16985 s,@warn_cflags@,$warn_cflags,;t t
16986 s,@WERROR@,$WERROR,;t t
16987 s,@nocommon_flag@,$nocommon_flag,;t t
16988 s,@TREEBROWSER@,$TREEBROWSER,;t t
16989 s,@valgrind_path@,$valgrind_path,;t t
16990 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16991 s,@valgrind_command@,$valgrind_command,;t t
16992 s,@coverage_flags@,$coverage_flags,;t t
16993 s,@enable_multilib@,$enable_multilib,;t t
16994 s,@enable_shared@,$enable_shared,;t t
16995 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16996 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16997 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16998 s,@onestep@,$onestep,;t t
16999 s,@SET_MAKE@,$SET_MAKE,;t t
17000 s,@AWK@,$AWK,;t t
17001 s,@LN_S@,$LN_S,;t t
17002 s,@LN@,$LN,;t t
17003 s,@RANLIB@,$RANLIB,;t t
17004 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17005 s,@ranlib_flags@,$ranlib_flags,;t t
17006 s,@INSTALL@,$INSTALL,;t t
17007 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17008 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17009 s,@make_compare_target@,$make_compare_target,;t t
17010 s,@have_mktemp_command@,$have_mktemp_command,;t t
17011 s,@MAKEINFO@,$MAKEINFO,;t t
17012 s,@BUILD_INFO@,$BUILD_INFO,;t t
17013 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17014 s,@FLEX@,$FLEX,;t t
17015 s,@BISON@,$BISON,;t t
17016 s,@NM@,$NM,;t t
17017 s,@AR@,$AR,;t t
17018 s,@stage1_cflags@,$stage1_cflags,;t t
17019 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17020 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17021 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17022 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17023 s,@LIBICONV@,$LIBICONV,;t t
17024 s,@LTLIBICONV@,$LTLIBICONV,;t t
17025 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17026 s,@manext@,$manext,;t t
17027 s,@objext@,$objext,;t t
17028 s,@gthread_flags@,$gthread_flags,;t t
17029 s,@extra_modes_file@,$extra_modes_file,;t t
17030 s,@extra_opt_files@,$extra_opt_files,;t t
17031 s,@USE_NLS@,$USE_NLS,;t t
17032 s,@LIBINTL@,$LIBINTL,;t t
17033 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17034 s,@INCINTL@,$INCINTL,;t t
17035 s,@XGETTEXT@,$XGETTEXT,;t t
17036 s,@GMSGFMT@,$GMSGFMT,;t t
17037 s,@POSUB@,$POSUB,;t t
17038 s,@CATALOGS@,$CATALOGS,;t t
17039 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17040 s,@CROSS@,$CROSS,;t t
17041 s,@ALL@,$ALL,;t t
17042 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17043 s,@inhibit_libc@,$inhibit_libc,;t t
17044 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17045 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17046 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17047 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17048 s,@collect2@,$collect2,;t t
17049 s,@gcc_cv_as@,$gcc_cv_as,;t t
17050 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17051 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17052 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17053 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17054 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17055 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17056 s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t
17057 s,@libgcc_visibility@,$libgcc_visibility,;t t
17058 s,@GGC@,$GGC,;t t
17059 s,@zlibdir@,$zlibdir,;t t
17060 s,@zlibinc@,$zlibinc,;t t
17061 s,@MAINT@,$MAINT,;t t
17062 s,@gcc_tooldir@,$gcc_tooldir,;t t
17063 s,@dollar@,$dollar,;t t
17064 s,@slibdir@,$slibdir,;t t
17065 s,@objdir@,$objdir,;t t
17066 s,@subdirs@,$subdirs,;t t
17067 s,@srcdir@,$srcdir,;t t
17068 s,@all_boot_languages@,$all_boot_languages,;t t
17069 s,@all_compilers@,$all_compilers,;t t
17070 s,@all_gtfiles@,$all_gtfiles,;t t
17071 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17072 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17073 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17074 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17075 s,@all_languages@,$all_languages,;t t
17076 s,@all_stagestuff@,$all_stagestuff,;t t
17077 s,@build_exeext@,$build_exeext,;t t
17078 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17079 s,@build_xm_file_list@,$build_xm_file_list,;t t
17080 s,@build_xm_include_list@,$build_xm_include_list,;t t
17081 s,@build_xm_defines@,$build_xm_defines,;t t
17082 s,@check_languages@,$check_languages,;t t
17083 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17084 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17085 s,@cpp_install_dir@,$cpp_install_dir,;t t
17086 s,@xmake_file@,$xmake_file,;t t
17087 s,@tmake_file@,$tmake_file,;t t
17088 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17089 s,@extra_headers_list@,$extra_headers_list,;t t
17090 s,@extra_objs@,$extra_objs,;t t
17091 s,@extra_parts@,$extra_parts,;t t
17092 s,@extra_passes@,$extra_passes,;t t
17093 s,@extra_programs@,$extra_programs,;t t
17094 s,@float_h_file@,$float_h_file,;t t
17095 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17096 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17097 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17098 s,@host_exeext@,$host_exeext,;t t
17099 s,@host_xm_file_list@,$host_xm_file_list,;t t
17100 s,@host_xm_include_list@,$host_xm_include_list,;t t
17101 s,@host_xm_defines@,$host_xm_defines,;t t
17102 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17103 s,@install@,$install,;t t
17104 s,@lang_opt_files@,$lang_opt_files,;t t
17105 s,@lang_specs_files@,$lang_specs_files,;t t
17106 s,@lang_tree_files@,$lang_tree_files,;t t
17107 s,@local_prefix@,$local_prefix,;t t
17108 s,@md_file@,$md_file,;t t
17109 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17110 s,@out_file@,$out_file,;t t
17111 s,@out_object_file@,$out_object_file,;t t
17112 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17113 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17114 s,@thread_file@,$thread_file,;t t
17115 s,@tm_file_list@,$tm_file_list,;t t
17116 s,@tm_include_list@,$tm_include_list,;t t
17117 s,@tm_defines@,$tm_defines,;t t
17118 s,@tm_p_file_list@,$tm_p_file_list,;t t
17119 s,@tm_p_include_list@,$tm_p_include_list,;t t
17120 s,@xm_file_list@,$xm_file_list,;t t
17121 s,@xm_include_list@,$xm_include_list,;t t
17122 s,@xm_defines@,$xm_defines,;t t
17123 s,@c_target_objs@,$c_target_objs,;t t
17124 s,@cxx_target_objs@,$cxx_target_objs,;t t
17125 s,@target_cpu_default@,$target_cpu_default,;t t
17126 s,@GMPLIBS@,$GMPLIBS,;t t
17127 s,@GMPINC@,$GMPINC,;t t
17128 s,@LIBOBJS@,$LIBOBJS,;t t
17129 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17130 /@language_hooks@/r $language_hooks
17131 s,@language_hooks@,,;t t
17132 CEOF
17133
17134 _ACEOF
17135
17136   cat >>$CONFIG_STATUS <<\_ACEOF
17137   # Split the substitutions into bite-sized pieces for seds with
17138   # small command number limits, like on Digital OSF/1 and HP-UX.
17139   ac_max_sed_lines=48
17140   ac_sed_frag=1 # Number of current file.
17141   ac_beg=1 # First line for current file.
17142   ac_end=$ac_max_sed_lines # Line after last line for current file.
17143   ac_more_lines=:
17144   ac_sed_cmds=
17145   while $ac_more_lines; do
17146     if test $ac_beg -gt 1; then
17147       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17148     else
17149       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17150     fi
17151     if test ! -s $tmp/subs.frag; then
17152       ac_more_lines=false
17153     else
17154       # The purpose of the label and of the branching condition is to
17155       # speed up the sed processing (if there are no `@' at all, there
17156       # is no need to browse any of the substitutions).
17157       # These are the two extra sed commands mentioned above.
17158       (echo ':t
17159   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17160       if test -z "$ac_sed_cmds"; then
17161         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17162       else
17163         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17164       fi
17165       ac_sed_frag=`expr $ac_sed_frag + 1`
17166       ac_beg=$ac_end
17167       ac_end=`expr $ac_end + $ac_max_sed_lines`
17168     fi
17169   done
17170   if test -z "$ac_sed_cmds"; then
17171     ac_sed_cmds=cat
17172   fi
17173 fi # test -n "$CONFIG_FILES"
17174
17175 _ACEOF
17176 cat >>$CONFIG_STATUS <<\_ACEOF
17177 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17178   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17179   case $ac_file in
17180   - | *:- | *:-:* ) # input from stdin
17181         cat >$tmp/stdin
17182         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17183         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17184   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17185         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17186   * )   ac_file_in=$ac_file.in ;;
17187   esac
17188
17189   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17190   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17192          X"$ac_file" : 'X\(//\)[^/]' \| \
17193          X"$ac_file" : 'X\(//\)$' \| \
17194          X"$ac_file" : 'X\(/\)' \| \
17195          .     : '\(.\)' 2>/dev/null ||
17196 echo X"$ac_file" |
17197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17198           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17199           /^X\(\/\/\)$/{ s//\1/; q; }
17200           /^X\(\/\).*/{ s//\1/; q; }
17201           s/.*/./; q'`
17202   { if $as_mkdir_p; then
17203     mkdir -p "$ac_dir"
17204   else
17205     as_dir="$ac_dir"
17206     as_dirs=
17207     while test ! -d "$as_dir"; do
17208       as_dirs="$as_dir $as_dirs"
17209       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17211          X"$as_dir" : 'X\(//\)[^/]' \| \
17212          X"$as_dir" : 'X\(//\)$' \| \
17213          X"$as_dir" : 'X\(/\)' \| \
17214          .     : '\(.\)' 2>/dev/null ||
17215 echo X"$as_dir" |
17216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17218           /^X\(\/\/\)$/{ s//\1/; q; }
17219           /^X\(\/\).*/{ s//\1/; q; }
17220           s/.*/./; q'`
17221     done
17222     test ! -n "$as_dirs" || mkdir $as_dirs
17223   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17225    { (exit 1); exit 1; }; }; }
17226
17227   ac_builddir=.
17228
17229 if test "$ac_dir" != .; then
17230   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17231   # A "../" for each directory in $ac_dir_suffix.
17232   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17233 else
17234   ac_dir_suffix= ac_top_builddir=
17235 fi
17236
17237 case $srcdir in
17238   .)  # No --srcdir option.  We are building in place.
17239     ac_srcdir=.
17240     if test -z "$ac_top_builddir"; then
17241        ac_top_srcdir=.
17242     else
17243        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17244     fi ;;
17245   [\\/]* | ?:[\\/]* )  # Absolute path.
17246     ac_srcdir=$srcdir$ac_dir_suffix;
17247     ac_top_srcdir=$srcdir ;;
17248   *) # Relative path.
17249     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17250     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17251 esac
17252
17253 # Do not use `cd foo && pwd` to compute absolute paths, because
17254 # the directories may not exist.
17255 case `pwd` in
17256 .) ac_abs_builddir="$ac_dir";;
17257 *)
17258   case "$ac_dir" in
17259   .) ac_abs_builddir=`pwd`;;
17260   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17261   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17262   esac;;
17263 esac
17264 case $ac_abs_builddir in
17265 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17266 *)
17267   case ${ac_top_builddir}. in
17268   .) ac_abs_top_builddir=$ac_abs_builddir;;
17269   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17270   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17271   esac;;
17272 esac
17273 case $ac_abs_builddir in
17274 .) ac_abs_srcdir=$ac_srcdir;;
17275 *)
17276   case $ac_srcdir in
17277   .) ac_abs_srcdir=$ac_abs_builddir;;
17278   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17279   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17280   esac;;
17281 esac
17282 case $ac_abs_builddir in
17283 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17284 *)
17285   case $ac_top_srcdir in
17286   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17287   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17288   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17289   esac;;
17290 esac
17291
17292
17293
17294   # Let's still pretend it is `configure' which instantiates (i.e., don't
17295   # use $as_me), people would be surprised to read:
17296   #    /* config.h.  Generated by config.status.  */
17297   if test x"$ac_file" = x-; then
17298     configure_input=
17299   else
17300     configure_input="$ac_file.  "
17301   fi
17302   configure_input=$configure_input"Generated from `echo $ac_file_in |
17303                                      sed 's,.*/,,'` by configure."
17304
17305   # First look for the input files in the build tree, otherwise in the
17306   # src tree.
17307   ac_file_inputs=`IFS=:
17308     for f in $ac_file_in; do
17309       case $f in
17310       -) echo $tmp/stdin ;;
17311       [\\/$]*)
17312          # Absolute (can't be DOS-style, as IFS=:)
17313          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17314 echo "$as_me: error: cannot find input file: $f" >&2;}
17315    { (exit 1); exit 1; }; }
17316          echo "$f";;
17317       *) # Relative
17318          if test -f "$f"; then
17319            # Build tree
17320            echo "$f"
17321          elif test -f "$srcdir/$f"; then
17322            # Source tree
17323            echo "$srcdir/$f"
17324          else
17325            # /dev/null tree
17326            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17327 echo "$as_me: error: cannot find input file: $f" >&2;}
17328    { (exit 1); exit 1; }; }
17329          fi;;
17330       esac
17331     done` || { (exit 1); exit 1; }
17332
17333   if test x"$ac_file" != x-; then
17334     { echo "$as_me:$LINENO: creating $ac_file" >&5
17335 echo "$as_me: creating $ac_file" >&6;}
17336     rm -f "$ac_file"
17337   fi
17338 _ACEOF
17339 cat >>$CONFIG_STATUS <<_ACEOF
17340   sed "$ac_vpsub
17341 $extrasub
17342 _ACEOF
17343 cat >>$CONFIG_STATUS <<\_ACEOF
17344 :t
17345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17346 s,@configure_input@,$configure_input,;t t
17347 s,@srcdir@,$ac_srcdir,;t t
17348 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17349 s,@top_srcdir@,$ac_top_srcdir,;t t
17350 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17351 s,@builddir@,$ac_builddir,;t t
17352 s,@abs_builddir@,$ac_abs_builddir,;t t
17353 s,@top_builddir@,$ac_top_builddir,;t t
17354 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17355 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17356   rm -f $tmp/stdin
17357   if test x"$ac_file" != x-; then
17358     mv $tmp/out $ac_file
17359   else
17360     cat $tmp/out
17361     rm -f $tmp/out
17362   fi
17363
17364 done
17365 _ACEOF
17366 cat >>$CONFIG_STATUS <<\_ACEOF
17367
17368 #
17369 # CONFIG_HEADER section.
17370 #
17371
17372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17374 #
17375 # ac_d sets the value in "#define NAME VALUE" lines.
17376 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17377 ac_dB='[         ].*$,\1#\2'
17378 ac_dC=' '
17379 ac_dD=',;t'
17380 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17381 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17382 ac_uB='$,\1#\2define\3'
17383 ac_uC=' '
17384 ac_uD=',;t'
17385
17386 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17387   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17388   case $ac_file in
17389   - | *:- | *:-:* ) # input from stdin
17390         cat >$tmp/stdin
17391         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17392         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17393   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17394         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17395   * )   ac_file_in=$ac_file.in ;;
17396   esac
17397
17398   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17399 echo "$as_me: creating $ac_file" >&6;}
17400
17401   # First look for the input files in the build tree, otherwise in the
17402   # src tree.
17403   ac_file_inputs=`IFS=:
17404     for f in $ac_file_in; do
17405       case $f in
17406       -) echo $tmp/stdin ;;
17407       [\\/$]*)
17408          # Absolute (can't be DOS-style, as IFS=:)
17409          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17410 echo "$as_me: error: cannot find input file: $f" >&2;}
17411    { (exit 1); exit 1; }; }
17412          # Do quote $f, to prevent DOS paths from being IFS'd.
17413          echo "$f";;
17414       *) # Relative
17415          if test -f "$f"; then
17416            # Build tree
17417            echo "$f"
17418          elif test -f "$srcdir/$f"; then
17419            # Source tree
17420            echo "$srcdir/$f"
17421          else
17422            # /dev/null tree
17423            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17424 echo "$as_me: error: cannot find input file: $f" >&2;}
17425    { (exit 1); exit 1; }; }
17426          fi;;
17427       esac
17428     done` || { (exit 1); exit 1; }
17429   # Remove the trailing spaces.
17430   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17431
17432 _ACEOF
17433
17434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17435 # `conftest.undefs', that substitutes the proper values into
17436 # config.h.in to produce config.h.  The first handles `#define'
17437 # templates, and the second `#undef' templates.
17438 # And first: Protect against being on the right side of a sed subst in
17439 # config.status.  Protect against being in an unquoted here document
17440 # in config.status.
17441 rm -f conftest.defines conftest.undefs
17442 # Using a here document instead of a string reduces the quoting nightmare.
17443 # Putting comments in sed scripts is not portable.
17444 #
17445 # `end' is used to avoid that the second main sed command (meant for
17446 # 0-ary CPP macros) applies to n-ary macro definitions.
17447 # See the Autoconf documentation for `clear'.
17448 cat >confdef2sed.sed <<\_ACEOF
17449 s/[\\&,]/\\&/g
17450 s,[\\$`],\\&,g
17451 t clear
17452 : clear
17453 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17454 t end
17455 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17456 : end
17457 _ACEOF
17458 # If some macros were called several times there might be several times
17459 # the same #defines, which is useless.  Nevertheless, we may not want to
17460 # sort them, since we want the *last* AC-DEFINE to be honored.
17461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17463 rm -f confdef2sed.sed
17464
17465 # This sed command replaces #undef with comments.  This is necessary, for
17466 # example, in the case of _POSIX_SOURCE, which is predefined and required
17467 # on some systems where configure will not decide to define it.
17468 cat >>conftest.undefs <<\_ACEOF
17469 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17470 _ACEOF
17471
17472 # Break up conftest.defines because some shells have a limit on the size
17473 # of here documents, and old seds have small limits too (100 cmds).
17474 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17475 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17476 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17477 echo '  :' >>$CONFIG_STATUS
17478 rm -f conftest.tail
17479 while grep . conftest.defines >/dev/null
17480 do
17481   # Write a limited-size here document to $tmp/defines.sed.
17482   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17483   # Speed up: don't consider the non `#define' lines.
17484   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17485   # Work around the forget-to-reset-the-flag bug.
17486   echo 't clr' >>$CONFIG_STATUS
17487   echo ': clr' >>$CONFIG_STATUS
17488   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17489   echo 'CEOF
17490   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17491   rm -f $tmp/in
17492   mv $tmp/out $tmp/in
17493 ' >>$CONFIG_STATUS
17494   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17495   rm -f conftest.defines
17496   mv conftest.tail conftest.defines
17497 done
17498 rm -f conftest.defines
17499 echo '  fi # grep' >>$CONFIG_STATUS
17500 echo >>$CONFIG_STATUS
17501
17502 # Break up conftest.undefs because some shells have a limit on the size
17503 # of here documents, and old seds have small limits too (100 cmds).
17504 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17505 rm -f conftest.tail
17506 while grep . conftest.undefs >/dev/null
17507 do
17508   # Write a limited-size here document to $tmp/undefs.sed.
17509   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17510   # Speed up: don't consider the non `#undef'
17511   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17512   # Work around the forget-to-reset-the-flag bug.
17513   echo 't clr' >>$CONFIG_STATUS
17514   echo ': clr' >>$CONFIG_STATUS
17515   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17516   echo 'CEOF
17517   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17518   rm -f $tmp/in
17519   mv $tmp/out $tmp/in
17520 ' >>$CONFIG_STATUS
17521   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17522   rm -f conftest.undefs
17523   mv conftest.tail conftest.undefs
17524 done
17525 rm -f conftest.undefs
17526
17527 cat >>$CONFIG_STATUS <<\_ACEOF
17528   # Let's still pretend it is `configure' which instantiates (i.e., don't
17529   # use $as_me), people would be surprised to read:
17530   #    /* config.h.  Generated by config.status.  */
17531   if test x"$ac_file" = x-; then
17532     echo "/* Generated by configure.  */" >$tmp/config.h
17533   else
17534     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17535   fi
17536   cat $tmp/in >>$tmp/config.h
17537   rm -f $tmp/in
17538   if test x"$ac_file" != x-; then
17539     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17540       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17541 echo "$as_me: $ac_file is unchanged" >&6;}
17542     else
17543       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17545          X"$ac_file" : 'X\(//\)[^/]' \| \
17546          X"$ac_file" : 'X\(//\)$' \| \
17547          X"$ac_file" : 'X\(/\)' \| \
17548          .     : '\(.\)' 2>/dev/null ||
17549 echo X"$ac_file" |
17550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17551           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17552           /^X\(\/\/\)$/{ s//\1/; q; }
17553           /^X\(\/\).*/{ s//\1/; q; }
17554           s/.*/./; q'`
17555       { if $as_mkdir_p; then
17556     mkdir -p "$ac_dir"
17557   else
17558     as_dir="$ac_dir"
17559     as_dirs=
17560     while test ! -d "$as_dir"; do
17561       as_dirs="$as_dir $as_dirs"
17562       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17564          X"$as_dir" : 'X\(//\)[^/]' \| \
17565          X"$as_dir" : 'X\(//\)$' \| \
17566          X"$as_dir" : 'X\(/\)' \| \
17567          .     : '\(.\)' 2>/dev/null ||
17568 echo X"$as_dir" |
17569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17570           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17571           /^X\(\/\/\)$/{ s//\1/; q; }
17572           /^X\(\/\).*/{ s//\1/; q; }
17573           s/.*/./; q'`
17574     done
17575     test ! -n "$as_dirs" || mkdir $as_dirs
17576   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17578    { (exit 1); exit 1; }; }; }
17579
17580       rm -f $ac_file
17581       mv $tmp/config.h $ac_file
17582     fi
17583   else
17584     cat $tmp/config.h
17585     rm -f $tmp/config.h
17586   fi
17587 done
17588 _ACEOF
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17590
17591 #
17592 # CONFIG_COMMANDS section.
17593 #
17594 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17595   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17596   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17597   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17598 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17599          X"$ac_dest" : 'X\(//\)[^/]' \| \
17600          X"$ac_dest" : 'X\(//\)$' \| \
17601          X"$ac_dest" : 'X\(/\)' \| \
17602          .     : '\(.\)' 2>/dev/null ||
17603 echo X"$ac_dest" |
17604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17605           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17606           /^X\(\/\/\)$/{ s//\1/; q; }
17607           /^X\(\/\).*/{ s//\1/; q; }
17608           s/.*/./; q'`
17609   { if $as_mkdir_p; then
17610     mkdir -p "$ac_dir"
17611   else
17612     as_dir="$ac_dir"
17613     as_dirs=
17614     while test ! -d "$as_dir"; do
17615       as_dirs="$as_dir $as_dirs"
17616       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17618          X"$as_dir" : 'X\(//\)[^/]' \| \
17619          X"$as_dir" : 'X\(//\)$' \| \
17620          X"$as_dir" : 'X\(/\)' \| \
17621          .     : '\(.\)' 2>/dev/null ||
17622 echo X"$as_dir" |
17623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17624           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17625           /^X\(\/\/\)$/{ s//\1/; q; }
17626           /^X\(\/\).*/{ s//\1/; q; }
17627           s/.*/./; q'`
17628     done
17629     test ! -n "$as_dirs" || mkdir $as_dirs
17630   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17632    { (exit 1); exit 1; }; }; }
17633
17634   ac_builddir=.
17635
17636 if test "$ac_dir" != .; then
17637   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17638   # A "../" for each directory in $ac_dir_suffix.
17639   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17640 else
17641   ac_dir_suffix= ac_top_builddir=
17642 fi
17643
17644 case $srcdir in
17645   .)  # No --srcdir option.  We are building in place.
17646     ac_srcdir=.
17647     if test -z "$ac_top_builddir"; then
17648        ac_top_srcdir=.
17649     else
17650        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17651     fi ;;
17652   [\\/]* | ?:[\\/]* )  # Absolute path.
17653     ac_srcdir=$srcdir$ac_dir_suffix;
17654     ac_top_srcdir=$srcdir ;;
17655   *) # Relative path.
17656     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17657     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17658 esac
17659
17660 # Do not use `cd foo && pwd` to compute absolute paths, because
17661 # the directories may not exist.
17662 case `pwd` in
17663 .) ac_abs_builddir="$ac_dir";;
17664 *)
17665   case "$ac_dir" in
17666   .) ac_abs_builddir=`pwd`;;
17667   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17668   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17669   esac;;
17670 esac
17671 case $ac_abs_builddir in
17672 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17673 *)
17674   case ${ac_top_builddir}. in
17675   .) ac_abs_top_builddir=$ac_abs_builddir;;
17676   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17677   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17678   esac;;
17679 esac
17680 case $ac_abs_builddir in
17681 .) ac_abs_srcdir=$ac_srcdir;;
17682 *)
17683   case $ac_srcdir in
17684   .) ac_abs_srcdir=$ac_abs_builddir;;
17685   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17686   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17687   esac;;
17688 esac
17689 case $ac_abs_builddir in
17690 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17691 *)
17692   case $ac_top_srcdir in
17693   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17694   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17695   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17696   esac;;
17697 esac
17698
17699
17700   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17701 echo "$as_me: executing $ac_dest commands" >&6;}
17702   case $ac_dest in
17703     default )
17704 case ${CONFIG_HEADERS} in
17705   *auto-host.h:config.in*)
17706   echo > cstamp-h ;;
17707 esac
17708 # Make sure all the subdirs exist.
17709 for d in $subdirs doc build
17710 do
17711     test -d $d || mkdir $d
17712 done
17713 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17714 # bootstrapping and the installation procedure can still use
17715 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17716 # FLAGS_TO_PASS has been modified to solve the problem there.
17717 # This is virtually a duplicate of what happens in configure.lang; we do
17718 # an extra check to make sure this only happens if ln -s can be used.
17719 case "$LN_S" in
17720   *-s*)
17721     for d in ${subdirs} ; do
17722         STARTDIR=`${PWDCMD-pwd}`
17723         cd $d
17724         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17725         do
17726                 rm -f $t
17727                 $LN_S ../$t $t 2>/dev/null
17728         done
17729         cd $STARTDIR
17730     done
17731   ;;
17732 esac
17733  ;;
17734   esac
17735 done
17736 _ACEOF
17737
17738 cat >>$CONFIG_STATUS <<\_ACEOF
17739
17740 { (exit 0); exit 0; }
17741 _ACEOF
17742 chmod +x $CONFIG_STATUS
17743 ac_clean_files=$ac_clean_files_save
17744
17745
17746 # configure is writing to config.log, and then calls config.status.
17747 # config.status does its own redirection, appending to config.log.
17748 # Unfortunately, on DOS this fails, as config.log is still kept open
17749 # by configure, so config.status won't be able to write to it; its
17750 # output is simply discarded.  So we exec the FD to /dev/null,
17751 # effectively closing config.log, so it can be properly (re)opened and
17752 # appended to by config.status.  When coming back to configure, we
17753 # need to make the FD available again.
17754 if test "$no_create" != yes; then
17755   ac_cs_success=:
17756   ac_config_status_args=
17757   test "$silent" = yes &&
17758     ac_config_status_args="$ac_config_status_args --quiet"
17759   exec 5>/dev/null
17760   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17761   exec 5>>config.log
17762   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17763   # would make configure fail if this is the last instruction.
17764   $ac_cs_success || { (exit 1); exit 1; }
17765 fi
17766